In our last blog, we see how to flow date from payment screen to Journal entry using auto journal. In this, we’ll see how we can flow data from Purchase invoice to journal entry while posting payment. The “Supplier doc. no.” field present on Management tab in Purchase invoice screen for the invoice entries linked in Payment screen is flowed to “Reference” field under Reference tab on Journal Entry screen. All this will be done with the use of Automatic Journals, which creates the Journal data based on Posting of a Payment.
First, to navigate on the following screens below are the steps:
Payment/Receipt screen: All > A/P-A/R accounting > Payment/Receipt entry
Purchase invoice screen: All > Purchasing > Invoices
Journal Entry: All > Financials > Journal Entry
Automatic Journals: All > Setup > Automatic Journals
For the purpose of making things a bit more clear visually, below are the screenshots fields locations on their respective screens:
New Stuff: Project snapshots in Project management
Now once we’re familiar with the screens, we’ll first find out the Automatic journal code used for the posted Payment. Follow the below mentioned steps:
Step 1: Check on the respective payment entry whether it’s posted or not. You can do that by checking the POST button (on the right top side on version 12 Sage X3) being enabled or hidden. If it’s hidden the Payment is posted and it’s Journal entry is already created, if not then please post it first.
Step 2: Jump onto its respective Journal entry screen via Accounting document button as shown below.
Step 3: Once on the Journal Entry screen, scroll below to find the Source tab in that look for Source field which’ll show “Automatic generation” and next to it will be Source transaction field showing “PRINC”. This is the Automatic Journal code we’re looking for.
Now that we’ve noted the Automatic Journal code, next steps involve us flowing the data.
Step 4: Now in a new tab, open Automatic Journal and on the left-list search for PRINC. Scroll below to the formula section on screen and check below for the Journal Reference field as shown:
Step 5: The Supplier doc. no. field data is stored in PINVOICE table as “Source Document” from where the data will be flowing to the Reference field on the Journal Entry screen.
Now we’ve to use that field data from Purchase invoice screen so below we need to check where in PINVOICE table it is storing:
Step 6: Now for the Supplier doc. no. on Purchase invoice (linked on Payment screen in lines) screen, we’ll have to create a Specific script for a function. The Script name we used here is SPESUPDOCNO, below is the function:
This function is used to retrieve the Supplier doc. no. data stored in PINVOICE table based on the Invoice number present on the Payment screen.
Step 7: Since we need to flow this data on the Journal Entry reference field, we’ll again go over to the Automatic Journals module with PRINC code. There on scrolling below we can find the Journal Reference field in the formulas section and write the instruction to call the function as shown:
Here we’re passing the Payment no. as a parameter in the function which’ll retrieve the Supplier doc. no. data from the respective invoice no. linked on this Payment.
Note: Before making any change on the Automatic Journal formula field, keep a backup of the existing value present on the fields in case of mistake.
Step 8: Once the changes are done Save the Automatic Journal and perform a restart of the application, this is necessary to take effect.
Step 9: After restart, open the Payment screen and first cancel the previously posted entry using the Accounting cancellation option below the Accounting document as shown in Step 2. Give some time and then repost the Payment, and jump to the Journal Entry screen to see if the data is flowing properly.
In this way, we can make use of the Automatic Journals module to flow data without making changes in Specific scripts.
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 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 email@example.com, We will like to hear from you.