{"id":26588,"date":"2023-05-29T12:41:02","date_gmt":"2023-05-29T12:41:02","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=26588"},"modified":"2023-05-29T12:41:04","modified_gmt":"2023-05-29T12:41:04","slug":"tracking-restriction-and-creation-on-the-basis-of-stock-availability","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/05\/29\/tracking-restriction-and-creation-on-the-basis-of-stock-availability\/","title":{"rendered":"Tracking Restriction and Creation on the basis of Stock Availability"},"content":{"rendered":"\n<p>As we know, Production Tracking is created against Work Order 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>. But if stock of raw materials\/components is not available then creation of Tracking should be restricted. Usually this type of customizations are done to restrict Tracking creation. But here in this customization we have added one more condition to handle partial Tracking scenarios.<\/p>\n\n\n\n<p>In this customization, we can change the total actual quantity in operations tab as per the stock available and it should allow user to create Partial Tracking with the available stock. That means here we are applying 2 conditions:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>If stock is not available and <strong>(Component\u2019s quantity &gt; Stock available) <\/strong>then tracking should be restricted.<\/li><li>But if user has changed the component\u2019s quantity while creating tracking entry by changing total actual quantity of operations tab as per the available stock and <strong>(Component\u2019s quantity &lt;= Stock available)<\/strong> then it should allow user to create Partial Tracking.<\/li><\/ol>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/04\/28\/modifying-the-wo-component-product-in-sage-x3\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/04\/28\/modifying-the-wo-component-product-in-sage-x3\/\" rel=\"noreferrer noopener\">Modifying the WO component product in Sage X3<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/05\/Fig-1.-Work-Order-1-1024x490.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\/05\/Fig-1.-Work-Order-1-1024x490.jpg\" alt=\"[Fig 1. Work Order]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 1. Work Order]<\/center><\/font>\n\n\n\n<p>Now, we have created 1 Work Order for FG Product with 50 quantity as shown in the above screenshot Fig 1.<\/p>\n\n\n\n<p>Then we tried to create Production Tracking against the same Work Order.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/05\/Fig-2.-Production-Tracking-with-shortage-1-1024x488.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\/05\/Fig-2.-Production-Tracking-with-shortage-1-1024x488.jpg\" alt=\"[Fig 2. Production Tracking with shortage]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 2. Production Tracking with shortage]<\/center><\/font>\n\n\n\n<p>As we can see in Fig 2, Quantity Tracked is 11.420 which means only 11.42 quantity is available. But 16.340 is required to produce 50 quantity of FG product. So, here as per our 1st condition, component\u2019s quantity is greater than the stock available i.e. <strong>(16.340 > 11.42)<\/strong>. Therefore Tracking will be restricted.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/05\/Fig-3.-Error-on-Tracking-1-1024x489.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\/05\/Fig-3.-Error-on-Tracking-1-1024x489.jpg\" alt=\"[Fig 3. Error on Tracking]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 3. Error on Tracking]<\/center><\/font>\n\n\n\n<p>It is generating pop-up message and not allowing user to create Tracking entry with material shortage as shown in the Fig 3.<\/p>\n\n\n\n<p>Now, to create partial tracking, we will change the total actual quantity in the operations tab.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/05\/Fig-4.-Total-Actual-Quantity-1-1024x486.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\/05\/Fig-4.-Total-Actual-Quantity-1-1024x486.jpg\" alt=\"[Fig 4. Total Actual Quantity]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 4. Total Actual Quantity]<\/center><\/font>\n\n\n\n<p>Total Actual Quantity is 50 as shown in the Fig 4.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/05\/Fig-5.-Changed-actual-quantity-1-1024x491.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\/05\/Fig-5.-Changed-actual-quantity-1-1024x491.jpg\" alt=\"[Fig 5. Changed actual quantity]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 5. Changed actual quantity]<\/center><\/font>\n\n\n\n<p>And we have changed it to 10 as shown in the Fig 5. Because total required quantity is not available.<\/p>\n\n\n\n<p>After changing the total actual quantity, it will automatically affect the required quantity of component and FG. Only 10 FGs will be produced instead of 50 as the enough stock is not available. And for the production of 10 FGs, 3.268 components are required. Because for 1 FG, 0.3268 components is required. So, 10 * 0.3268 = 3.268. Refer Fig 6 for the same.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2023\/05\/Fig-6.-Changed-Quantity-Tracked-1-1024x492.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\/05\/Fig-6.-Changed-Quantity-Tracked-1-1024x492.jpg\" alt=\"[Fig 6. Changed Quantity Tracked]\"><\/a><\/center>\n<font size=\"2\"><center>[Fig 6. Changed Quantity Tracked]<\/center><\/font>\n\n\n\n<p>After changing total actual quantity, Quantity Tracked is changed to 3.268 as per calculations. Now, component\u2019s quantity is less than the stock available i.e. <strong>(3.268 &lt; 16.340)<\/strong>. It will allow me to create partial Tracking entry with available stock quantity because our second condition is satisfied.<\/p>\n\n\n\n<p>By using this customization user can create partial tracking on the basis of stock availability only if stock available is greater than or equal to the required quantity. And if stock available is less than the required quantity then creation of tracking will be restricted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we know, Production Tracking is created against Work Order in Sage X3. But if stock of raw materials\/components is not available then creation of Tracking should be restricted. Usually this type of customizations are done to restrict Tracking creation. But here in this customization we have added one more condition to handle partial Tracking\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2023\/05\/29\/tracking-restriction-and-creation-on-the-basis-of-stock-availability\/\">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":[3699,3609,1547,3726,3099,2162,2428],"class_list":["post-26588","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","category-integration","tag-conditions","tag-partial","tag-production-tracking","tag-quantity-tracked","tag-restriction","tag-stock","tag-work-order"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26588","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=26588"}],"version-history":[{"count":16,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26588\/revisions"}],"predecessor-version":[{"id":26604,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/26588\/revisions\/26604"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=26588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=26588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=26588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}