Validation on Gross/Net Price and Qty fields in Sales/Purchase Invoice Transactions

By | September 28, 2021

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]
[Purchase Invoice – Qty field]

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]
[Purchase Invoice – Net Price]

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, 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 caters to a wide range of Sage X3, a Sage Business Cloud Solution, offerings. Our unique GUMU™ integrations include Sage X3 for Sage, Dynamics 365 CRM, and Magento eCommerce along with Implementation and Technical Support worldwide for Sage X3. Currently we are Sage X3 Implementation Partner in East Africa, Middle East, Australia, Asia, US, UK. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit and India Legislation for Sage X3 to Sage business partners, end users and Sage PSG worldwide. Greytrix Sales Commission App for Sage X3 simplifies commission calculations and postings on sales transactions.

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.

Greytrix is a recognized Sage champion ISV Partner for GUMU™ Sage X3 – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage X3 – Salesforce is a 5-star rated app listed on Salesforce AppExchange and GUMU™ integration for Dynamics 365 CRM – Sage ERP listed on Microsoft AppSource.

For more information on Sage X3 Integration and Services, please contact us at, We would like to hear from you.