{"id":23478,"date":"2021-09-28T11:57:06","date_gmt":"2021-09-28T11:57:06","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=23478"},"modified":"2021-09-28T11:57:08","modified_gmt":"2021-09-28T11:57:08","slug":"validation-on-gross-net-price-and-qty-fields-in-sales-purchase-invoice-transactions","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/09\/28\/validation-on-gross-net-price-and-qty-fields-in-sales-purchase-invoice-transactions\/","title":{"rendered":"Validation on Gross\/Net Price and Qty fields in Sales\/Purchase Invoice Transactions"},"content":{"rendered":"\n<p>As we all know, while creating any transaction in <a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\" rel=\"noreferrer noopener\">Sage X3<\/a>, we can enter quantity and price manually in detail line as per the requirement. But one of our client wanted to restrict the creation of the Sales\/Purchase Invoice Transactions if the user is trying to enter \u20180\u2019 in Gross\/Net Price and Quantity fields. Even after creation of the transaction if user is trying to update the price and quantity fields in the detail line, it should not allow user to enter \u20180\u2019 in those fields.<\/p>\n\n\n\n<p>For this purpose, we have added validation on price and quantity fields for those particular transactions.<\/p>\n\n\n\n<p>Now, we will check the working of this validation with an example of the Purchase Invoice transaction. Refer below screenshot.<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/09\/22\/sales-group-and-ship-to-state-group-code-in-sales-commission-module\/\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/09\/22\/sales-group-and-ship-to-state-group-code-in-sales-commission-module\/\" target=\"_blank\">Sales Group and Ship-to-State Group code in Sales Commission Module<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/09\/Purchase-Invoice-Qty-field-1024x468.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/09\/Purchase-Invoice-Qty-field-1024x468.jpg\" alt=\"[Purchase Invoice - Qty field]\"><\/a><\/center>\n<font size=\"2\"><center>[Purchase Invoice &#8211; Qty field]<\/center><\/font>\n\n\n\n<p>As you can see, we are trying to create purchase invoice entry with \u20180\u2019 quantity. When we enter \u20180\u2019 in quantity field, pop-up message is getting generated &#8211; \u201cInvoiced qty. should not be 0\u201d. It will not allow user to proceed further until he\/she enters quantity other than zero.<\/p>\n\n\n\n<p>Now, we will check the same functionality for Net Price field in Purchase Invoice screen.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/09\/Purchase-Invoice-Net-Price-1024x467.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/09\/Purchase-Invoice-Net-Price-1024x467.jpg\" alt=\"[Purchase Invoice - Net Price]\"><\/a><\/center>\n<font size=\"2\"><center>[Purchase Invoice &#8211; Net Price]<\/center><\/font>\n\n\n\n<p>As you can see, similarly we are trying to create purchase invoice entry with \u20180\u2019 net price. When we enter \u20180\u2019 in net price field, pop-up message is getting generated &#8211; \u201cNet Price should not be 0\u201d. It will not allow user to proceed further until he\/she enters net price other than zero.<\/p>\n\n\n\n<p>After creating invoice entry, it will not even allow user to modify\/save the entry with \u20180\u2019 quantity and \u20180\u2019 Net Price. User has to enter some value in those fields other than zero.<\/p>\n\n\n\n<p>Same validation will be applied on quantity and Gross Price fields in Sales Invoice screen.<\/p>\n\n\n\n<p>In this way, validation will be applied on Gross\/Net Price and Qty fields in Sales\/Purchase Invoice transactions and transactions will be restricted until user enters value other than \u20180\u2019 in Price and Qty fields.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-c5e1638fe0db781fd132d689b469078c\" style=\"color:#c71d22\"><strong>About Us<\/strong><\/h2>\n\n\n\n<p>Greytrix \u2013 a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p id=\"block-28013e99-0882-44c6-b705-7b16c85053b2\">Greytrix&nbsp;has some unique integration solutions developed for&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-crm\/\">Sage CRM<\/a>&nbsp;with Sage ERPs&nbsp;namely&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-x3-erp\/\">Sage X3<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-intacct\/\">Sage Intacct<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-100-erp\/\">Sage 100<\/a>,&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-500-erp\/\">Sage 500<\/a>,&nbsp;and&nbsp;<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 300<\/a>. We also offer best-in-class&nbsp;Sage ERP&nbsp;and&nbsp;Sage CRM&nbsp;customization and development services&nbsp;to&nbsp;Business&nbsp;Partners,&nbsp;End&nbsp;Users, and Sage PSG worldwide. Greytrix&nbsp;helps in&nbsp;the migration of Sage CRM from&nbsp;Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes&nbsp;addons like&nbsp;&nbsp;Greytrix Business Manager,&nbsp;Sage CRM Project Manager,&nbsp;Sage CRM Resource Planner,&nbsp;Sage CRM Contract Manager,&nbsp;Sage CRM Event Manager,&nbsp;Sage CRM Budget Planner,&nbsp;Gmail Integration,&nbsp;Sage CRM Mobile Service Signature,&nbsp;Sage CRM CTI Framework.<\/p>\n\n\n\n<p id=\"block-4bc42a09-fb13-4598-8137-ce5f7b91ce28\">Greytrix is a recognized&nbsp;Sage Champion Partner&nbsp;for GUMU&#x2122; Sage X3 \u2013 Sage CRM integration listed on&nbsp;<a href=\"https:\/\/www.sage.com\/marketplace\/asb_ListingDetail?listingId=a1h24000007PC3aAAG\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Marketplace<\/a>&nbsp;and Sage CRM \u2013 Sage Intacct integration listed on&nbsp;<a href=\"https:\/\/marketplace.intacct.com\/MPListing?lid=a2D0H000007kiHyUAI\" target=\"_blank\" rel=\"noreferrer noopener\">Sage Intacct Marketplace<\/a>. The&nbsp;<a href=\"https:\/\/www.greytrix.com\/gumu\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Cloud framework<\/a>&nbsp;by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.<\/p>\n\n\n\n<p id=\"block-76376301-1c3e-4250-8a09-727595a606f0\">For more information on our integration solutions, please contact us at&nbsp;<a href=\"mailto:sage@greytrix.com\">sage@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we all know, while creating any transaction in Sage X3, we can enter quantity and price manually in detail line as per the requirement. But one of our client wanted to restrict the creation of the Sales\/Purchase Invoice Transactions if the user is trying to enter \u20180\u2019 in Gross\/Net Price and Quantity fields. Even\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/09\/28\/validation-on-gross-net-price-and-qty-fields-in-sales-purchase-invoice-transactions\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,8],"tags":[1507,1564,1590,3099,2538,2357],"class_list":["post-23478","post","type-post","status-publish","format-standard","hentry","category-integration","category-sage-erp-x3","tag-price","tag-purchase-invoice","tag-quantity","tag-restriction","tag-sales-invoice","tag-validation"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=23478"}],"version-history":[{"count":4,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23478\/revisions"}],"predecessor-version":[{"id":23482,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23478\/revisions\/23482"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=23478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=23478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=23478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}