In Sage X3, “Document type” is a mandatory field in every transaction screen. So we need to select document type while creating any transaction. Also, “Invoice” button is available in Sales Delivery screen to create Invoice entry of that Delivery from the delivery screen. And when Invoice is created by clicking on that Invoice button from delivery screen, default document type of Invoice will be selected automatically.
We recently had a requirement to link the Delivery Document Type to Invoice Document Type upon clicking the Invoice button in the Delivery screen. They were having no. of Delivery types and Invoice types saved in their respective document type masters. And they wanted to flow specific invoice type instead of default invoice type in invoice entry which will be created directly from the delivery screen. To do so we have created a Miscellaneous Table and linked the Delivery Document Type to the related Invoice Document Type.
New Stuff: Sage X3 Integration with Weighing Scales

As you can see, in the above screen shot we have mentioned all the Delivery Document Types in the Column “Code” and its corresponding Invoice Types in “Short description” Column of the Miscellaneous Table.
Now to link the invoice types, we have written a script to fetch the corresponding Invoice Type (Short description column) based on the Delivery Type Document (Code column) selected in the Delivery Screen and assigned the same Invoice Document Type which we have already saved in the Miscellaneous table for that specific Delivery type to the Invoice Type field in the Sales Invoice screen.
Below is an example of DFDI document type in the Delivery Screen.

After creating and validating Delivery entry with DFDI Delivery type, we will try to create Invoice of the same delivery by clicking on “Invoice” button.

As you can observe in the above screenshot, IFDI Invoice type is getting displayed which is saved against DFDI delivery type in the miscellaneous table. So it is mandatory to save invoice types against delivery types in the table to work this customization in a correct manner.
This way we have linked the Delivery document type to the Invoice document type in SageX3.
About Us
Greytrix – a globally recognized and one of the oldest Sage Development Partner 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 CRM, Salesforce.com, 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 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 x3@greytrix.com, We would like to hear from you.