{"id":26868,"date":"2023-07-31T03:50:56","date_gmt":"2023-07-31T03:50:56","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=26868"},"modified":"2023-07-31T03:50:59","modified_gmt":"2023-07-31T03:50:59","slug":"automatic-product-code-and-description-generation-from-the-user-input","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/07\/31\/automatic-product-code-and-description-generation-from-the-user-input\/","title":{"rendered":"Automatic Product Code and Description generation from the User Input"},"content":{"rendered":"\n<p>In <a href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" rel=\"noreferrer noopener\">Sage X3<\/a>, user can create products manually by setting the product code sequence and entering description for the same product in the product master. But now we have added a customization for automatic Product Code and Description generation to fulfil the client\u2019s requirement. In this customization we have used one standard field &#8220;Product Line&#8221; which is already available in the product master.<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/07\/28\/how-to-trigger-mail-with-payment-voucher-report-attachment-on-posting-the-payment-entry\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/07\/28\/how-to-trigger-mail-with-payment-voucher-report-attachment-on-posting-the-payment-entry\/\" rel=\"noreferrer noopener\">How to trigger mail with Payment Voucher report attachment on posting the Payment entry<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-1.-Product-Line-field-1024x338.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-1.-Product-Line-field-1024x338.jpg\" alt=\"[Fig 1. Product Line field]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 1. Product Line field]<\/center><\/font>\n\n\n\n<p>In the Product Line selection, you will get 4 options &#8211; CN\/FG\/PM and RM after clicking on the finder.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-2.-Product-Line-options.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-2.-Product-Line-options.jpg\" alt=\"[Fig 2. Product Line options]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 2. Product Line options]<\/center><\/font>\n\n\n\n<p>For each option selected in the product lines, below are the attributes:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Product: 2 characters (FG\/RM\/CN\/PM)<\/li><li>Category: 2 characters (HP\/NB\/SW\/SP\/WR\/TW\/SB\/NA)<\/li><li>Product TYPE: 3 characters numerical (Sub category of Category, with serial nos. as 001\/002)<\/li><li>Color: Color codes in 3 characters. For example BLK\/BLU\/GRN\/RED etc.<\/li><\/ol>\n\n\n\n<p><strong>The Product code generation process is as mentioned below:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>For RM\/PM\/CN Type Products:<\/strong><br>With the combination of Type, Category, Product and Color, sequence number will be generated with the product code.<\/li><\/ol>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-3.-User-Input-in-Product-Lines-for-RM-1024x343.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-3.-User-Input-in-Product-Lines-for-RM-1024x343.jpg\" alt=\"[Fig 3. User Input in Product Lines for RM]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 3. User Input in Product Lines for RM]<\/center><\/font>\n\n\n\n<p>Suppose we have selected values in the product line for RM as shown in the above screenshot. Then for the above case, the product code will be RMHP001BLK_00001 and so on i.e. concatenation of those 4 product line fields and 5 characters sequence no, as shown in the below screenshot.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-4.-Generated-Product-Code-and-Description-for-RM.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-4.-Generated-Product-Code-and-Description-for-RM.jpg\" alt=\"[Fig 4. Generated Product Code and Description for RM]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 4. Generated Product Code and Description for RM]<\/center><\/font>\n\n\n\n<p>Now, Product description must be auto set for RM\/CN\/PM products. Logic for description generation is &#8211; First 3 characters \u2018BA-\u2019 are fixed then description for product line with selection of \u201cProduct\u201d and \u201cColor\u201d will be considered.<\/p>\n\n\n\n<p>For Example \u2013 Description of 001 product is \u201cAnchor\u201d and Description of color BLK is \u201cBlack\u201d therefore description generated for the Product Code \u201cRMHP001BLK_00001\u201d is \u201cBA-Anchor-Black\u201d as shown in the Fig. 4.<\/p>\n\n\n\n<p>Sequence number will be incremented automatically by 1 if user has selected the same combination again i.e. if user has selected same combination of Type, Category, Product and color as shown in the Fig.3 for the second time, then product code will be generated as RMHP001BLK_00002.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li><strong>For FG Type Products:<\/strong><br>The series will not have sequence number. Only combination of Type, Category, Product and Color will be considered for product generation.<\/li><\/ol>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-5.-User-Input-in-Product-Lines-for-FG-1024x366.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-5.-User-Input-in-Product-Lines-for-FG-1024x366.jpg\" alt=\"[Fig 5. User Input in Product Lines for FG]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 5. User Input in Product Lines for FG]<\/center><\/font>\n\n\n\n<p>Suppose we have selected values in the product line for FG as shown in the above screenshot. Then for the above case, the product code will be FGNB009BLK i.e. concatenation of those 4 product line fields only, as shown in the below screenshot.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-6.-Generated-Product-Code-and-Description-for-FG-1024x483.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/07\/Fig-6.-Generated-Product-Code-and-Description-for-FG-1024x483.jpg\" alt=\"[Fig 6. Generated Product Code and Description for FG]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 6. Generated Product Code and Description for FG]<\/center><\/font>\n\n\n\n<p>Now, Product description generation logic for FG will remain same as we have done for RM\/CN\/PM Type products i.e. First 3 characters \u2018BA-\u2019 are fixed then description for product line with selection of \u201cProduct\u201d and \u201cColor\u201d will be considered.<\/p>\n\n\n\n<p>For Example \u2013 Description of 009 product is \u201cThunder\u201d and Description of color BLK is \u201cBlack\u201d therefore description generated for the Product Code \u201cFGNB009BLK\u201d is \u201cBA-Thunder-Black\u201d as shown in the Fig. 6.<\/p>\n\n\n\n<p>So, on the basis of product line selection Product Code and Description will be generated automatically with different combinations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><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","protected":false},"excerpt":{"rendered":"<p>In Sage X3, user can create products manually by setting the product code sequence and entering description for the same product in the product master. But now we have added a customization for automatic Product Code and Description generation to fulfil the client\u2019s requirement. In this customization we have used one standard field &#8220;Product Line&#8221;\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/07\/31\/automatic-product-code-and-description-generation-from-the-user-input\/\">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":[8,13],"tags":[3700,3699,572,3512,1534,3554],"class_list":["post-26868","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-integration","tag-automatically","tag-conditions","tag-description","tag-generation","tag-product","tag-product-code"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26868","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=26868"}],"version-history":[{"count":7,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26868\/revisions"}],"predecessor-version":[{"id":26883,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26868\/revisions\/26883"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=26868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=26868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=26868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}