{"id":23187,"date":"2021-08-30T14:24:08","date_gmt":"2021-08-30T14:24:08","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=23187"},"modified":"2021-08-30T14:46:17","modified_gmt":"2021-08-30T14:46:17","slug":"data-flow-from-purchase-invoice-screen-to-journal-entry-on-via-ap-ar-payment-posting-using-automatic-journal","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/08\/30\/data-flow-from-purchase-invoice-screen-to-journal-entry-on-via-ap-ar-payment-posting-using-automatic-journal\/","title":{"rendered":"Data flow from Purchase invoice screen to Journal entry on via AP\/AR Payment Posting using Automatic Journal"},"content":{"rendered":"\n<p>In our last blog, we see how to flow date from payment screen to Journal entry using auto journal. In this, we\u2019ll see how we can flow data from Purchase invoice to journal entry while posting payment. The \u201cSupplier doc. no.\u201d field present on Management tab in Purchase invoice screen for the invoice entries linked in Payment screen is flowed to \u201cReference\u201d 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.<\/p>\n\n\n\n<p>First, to navigate on the following screens below are the steps:<\/p>\n\n\n\n<p>Payment\/Receipt screen: All &gt; A\/P-A\/R accounting &gt; Payment\/Receipt entry<br>Purchase invoice screen: All &gt; Purchasing &gt; Invoices<br>Journal Entry: All &gt; Financials &gt; Journal Entry<br>Automatic Journals: All &gt; Setup &gt; Automatic Journals<\/p>\n\n\n\n<p>For the purpose of making things a bit more clear visually, below are the screenshots fields locations on their respective screens:<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/08\/30\/project-snapshots-in-project-management\/\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/08\/30\/project-snapshots-in-project-management\/\" target=\"_blank\" rel=\"noreferrer noopener\">Project snapshots in Project management<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Linked-invoice-no.-on-Payment-1024x462.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Linked-invoice-no.-on-Payment-1024x462.jpg\" alt=\"[Linked invoice no. on Payment]\"><\/a><\/center>\n<font size=\"2\"><center>[Linked invoice no. on Payment]<\/center><\/font>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Supplier-doc-no.-field-on-Purchase-invoice.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Supplier-doc-no.-field-on-Purchase-invoice.jpg\" alt=\"[Supplier doc no. field on Purchase invoice]\"><\/a><\/center>\n<font size=\"2\"><center>[Supplier doc no. field on Purchase invoice]<\/center><\/font>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Reference-field-on-Journal-Entry-1024x442.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Reference-field-on-Journal-Entry-1024x442.jpg\" alt=\"[Reference field on Journal Entry]\"><\/a><\/center>\n<font size=\"2\"><center>[Reference field on Journal Entry]<\/center><\/font>\n\n\n\n<p>Now once we\u2019re familiar with the screens, we\u2019ll first find out the Automatic journal code used for the posted Payment. Follow the below mentioned steps:<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Check on the respective payment entry whether it&#8217;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&#8217;s hidden the Payment is posted and it\u2019s Journal entry is already created, if not then please post it first.<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Jump onto its respective Journal entry screen via Accounting document button as shown below.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Accounting-document-on-Payment-Invoice-1024x254.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Accounting-document-on-Payment-Invoice-1024x254.jpg\" alt=\"[Accounting document on Payment Invoice]\"><\/a><\/center>\n<font size=\"2\"><center>[Accounting document on Payment Invoice]<\/center><\/font>\n\n\n\n<p><strong>Step 3:<\/strong> Once on the Journal Entry screen, scroll below to find the Source tab in that look for Source field which\u2019ll show \u201cAutomatic generation\u201d and next to it will be Source transaction field showing \u201cPRINC\u201d. This is the Automatic Journal code we\u2019re looking for.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Automatic-Journals-code-on-Journal-Entry.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Automatic-Journals-code-on-Journal-Entry.jpg\" alt=\"[Automatic Journals code on Journal Entry]\"><\/a><\/center>\n<font size=\"2\"><center>[Automatic Journals code on Journal Entry]<\/center><\/font>\n\n\n\n<p>Now that we\u2019ve noted the Automatic Journal code, next steps involve us flowing the data.<\/p>\n\n\n\n<p><strong>Step 4:<\/strong> 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:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Journal-reference-field-on-Automatic-Journals-1024x511.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Journal-reference-field-on-Automatic-Journals-1024x511.jpg\" alt=\"[Journal reference field on Automatic Journals]\"><\/a><\/center>\n<font size=\"2\"><center>[Journal reference field on Automatic Journals]<\/center><\/font>\n\n\n\n<p><strong>Step 5:<\/strong> The Supplier doc. no. field data is stored in PINVOICE table as \u201cSource Document\u201d from where the data will be flowing to the Reference field on the Journal Entry screen.<br>Now we\u2019ve to use that field data from Purchase invoice screen so below we need to check where in PINVOICE table it is storing:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/PINVOICE-table-in-Table-dictionary-1024x503.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/PINVOICE-table-in-Table-dictionary-1024x503.jpg\" alt=\"[PINVOICE table in Table dictionary]\"><\/a><\/center>\n<font size=\"2\"><center>[PINVOICE table in Table dictionary]<\/center><\/font>\n\n\n\n<p><strong>Step 6:<\/strong> Now for the Supplier doc. no. on Purchase invoice (linked on Payment screen in lines) screen, we\u2019ll have to create a Specific script for a function. The Script name we used here is SPESUPDOCNO, below is the function:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/GETSUPPDOC-function-1024x217.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/GETSUPPDOC-function-1024x217.jpg\" alt=\"[GETSUPPDOC function]\"><\/a><\/center>\n<font size=\"2\"><center>[GETSUPPDOC function]<\/center><\/font>\n\n\n\n<p>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.<\/p>\n\n\n\n<p><strong>Step 7:<\/strong> Since we need to flow this data on the Journal Entry reference field, we\u2019ll 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:<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Calling-function-in-Journal-Reference-field-1024x511.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Calling-function-in-Journal-Reference-field-1024x511.jpg\" alt=\"[Calling function in Journal Reference field]\"><\/a><\/center>\n<font size=\"2\"><center>[Calling function in Journal Reference field]<\/center><\/font>\n\n\n\n<p>Here we\u2019re passing the Payment no. as a parameter in the function which\u2019ll retrieve the Supplier doc. no. data from the respective invoice no. linked on this Payment.<br>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.<\/p>\n\n\n\n<p><strong>Step 8: <\/strong>Once the changes are done Save the Automatic Journal and perform a restart of the application, this is necessary to take effect.<\/p>\n\n\n\n<p><strong>Step 9:<\/strong> 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.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Supplier-doc-no.-field-on-Purchase-invoice-1.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Supplier-doc-no.-field-on-Purchase-invoice-1.jpg\" alt=\"[Supplier doc no. field on Purchase invoice]\"><\/a><\/center>\n<font size=\"2\"><center>[Supplier doc no. field on Purchase invoice]<\/center><\/font>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Data-flowed-over-to-Reference-field-on-Journal-Entry-screen-from-P.Invoice-screen-1024x442.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2021\/08\/Data-flowed-over-to-Reference-field-on-Journal-Entry-screen-from-P.Invoice-screen-1024x442.jpg\" alt=\"[Data flowed over to Reference field on Journal Entry from Purchase Invoice]\"><\/a><\/center><font size=\"2\"><center>[Data flowed over to Reference field on Journal Entry from Purchase Invoice]<\/center><\/font>\n\n\n\n<p>In this way, we can make use of the Automatic Journals module to flow data without making changes in Specific scripts.<\/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\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our last blog, we see how to flow date from payment screen to Journal entry using auto journal. In this, we\u2019ll see how we can flow data from Purchase invoice to journal entry while posting payment. The \u201cSupplier doc. no.\u201d field present on Management tab in Purchase invoice screen for the invoice entries linked\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2021\/08\/30\/data-flow-from-purchase-invoice-screen-to-journal-entry-on-via-ap-ar-payment-posting-using-automatic-journal\/\">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":[5,8,2796],"tags":[176,3374,1123,1564,1620,1865],"class_list":["post-23187","post","type-post","status-publish","format-standard","hentry","category-features","category-sage-erp-x3","category-technical","tag-automatic-journal","tag-data-flow","tag-journal-entry","tag-purchase-invoice","tag-receipts","tag-sage-x3-erp"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23187","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=23187"}],"version-history":[{"count":9,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23187\/revisions"}],"predecessor-version":[{"id":23309,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/23187\/revisions\/23309"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=23187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=23187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=23187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}