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 ‘0’ 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 ‘0’ in those fields.
For this purpose, we have added validation on price and quantity fields for those particular transactions.
Now, we will check the working of this validation with an example of the Purchase Invoice transaction. Refer below screenshot.
New Stuff: Sales Group and Ship-to-State Group code in Sales Commission Module
![[Purchase Invoice - Qty field]](https://www.greytrix.com/blogs/sagex3/wp-content/uploads/2021/09/Purchase-Invoice-Qty-field-1024x468.jpg)
As you can see, we are trying to create purchase invoice entry with ‘0’ quantity. When we enter ‘0’ in quantity field, pop-up message is getting generated – “Invoiced qty. should not be 0”. It will not allow user to proceed further until he/she enters quantity other than zero.
Now, we will check the same functionality for Net Price field in Purchase Invoice screen.
![[Purchase Invoice - Net Price]](https://www.greytrix.com/blogs/sagex3/wp-content/uploads/2021/09/Purchase-Invoice-Net-Price-1024x467.jpg)
As you can see, similarly we are trying to create purchase invoice entry with ‘0’ net price. When we enter ‘0’ in net price field, pop-up message is getting generated – “Net Price should not be 0”. It will not allow user to proceed further until he/she enters net price other than zero.
After creating invoice entry, it will not even allow user to modify/save the entry with ‘0’ quantity and ‘0’ Net Price. User has to enter some value in those fields other than zero.
Same validation will be applied on quantity and Gross Price fields in Sales Invoice screen.
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 ‘0’ in Price and Qty fields.
About Us
Greytrix – 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.
Greytrix has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3, Sage Intacct, Sage 100, Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature, Sage CRM CTI Framework.
Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework 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.
For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.