{"id":20807,"date":"2020-09-30T13:13:08","date_gmt":"2020-09-30T13:13:08","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=20807"},"modified":"2020-09-30T13:15:16","modified_gmt":"2020-09-30T13:15:16","slug":"restrict-purchase-order-based-on-open-so-amount","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/09\/30\/restrict-purchase-order-based-on-open-so-amount\/","title":{"rendered":"Restrict Purchase Order based on Open SO amount"},"content":{"rendered":"\n<p>Recently one of our client wants customization in <a rel=\"noreferrer noopener\" href=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\">Sage X3<\/a> where they want to restrict creation of Purchase Order based on the Sales Order amount i.e. if Purchase order amount get exceeded than total Sales Order amount then user should not able to create Purchase Order.<\/p>\n\n\n\n<p>To achieve this, we have added a custom field name as &#8220;Open SO&#8221; under the \u2018Management tab\u2019 where user can able to see all the open sales order using finder button and can select the appropriate sales order from the list. Please refer below screenshot:-<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/09\/30\/define-daily-and-monthly-rate-type-in-sage-x3\/\" data-type=\"URL\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/09\/30\/define-daily-and-monthly-rate-type-in-sage-x3\/\" target=\"_blank\" rel=\"noreferrer noopener\">Define Daily and Monthly rate type in Sage X3<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/09\/Purchase-Order-Sample-1-1-1024x476.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\/2020\/09\/Purchase-Order-Sample-1-1-1024x476.jpg\" alt=\"Purchase Order Sample 1\"><\/a><\/center>\n<font size=\"2\"><center>Purchase Order Sample 1<\/center><\/font>\n\n\n\n<p>So with our customization, program checks the open sales Order amount for the respective sales order with Purchase order amount. If the Purchase Order amount is greater than the Sales order amount then it shows the message popup \u201cPurchase order amount cannot be greater than Sales order amount\u201d and restrict users from creating purchase order. Please refer below screenshot:-<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2020\/09\/Purchase-Order-Sample-1-1024x474.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\/2020\/09\/Purchase-Order-Sample-1-1024x474.jpg\" alt=\"GPurchase Order Sample 2\"><\/a><\/center>\n<font size=\"2\"><center>Purchase Order Sample 2<\/center><\/font>\n\n\n\n<p>In case, if sales order already selected for any purchase order then it will sum both the purchase order amounts i.e. Current PO amount + Previous PO amount and this amount will be compared with the sales order amount and accordingly program check for the validation.<\/p>\n\n\n\n<p>As explained above, by using this customization, user will restrict the Purchase order creation on the basis of Open Sales Order amount by comparing the respective PO amounts. So using this validation, user can restrict the Purchase order creation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently one of our client wants customization in Sage X3 where they want to restrict creation of Purchase Order based on the Sales Order amount i.e. if Purchase order amount get exceeded than total Sales Order amount then user should not able to create Purchase Order. To achieve this, we have added a custom field\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2020\/09\/30\/restrict-purchase-order-based-on-open-so-amount\/\">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],"tags":[3013,1564,1565,1822,1983,2376],"class_list":["post-20807","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-global-validation","tag-purchase-invoice","tag-purchase-order","tag-sage-x3","tag-sales-order","tag-vendor"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20807","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=20807"}],"version-history":[{"count":4,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20807\/revisions"}],"predecessor-version":[{"id":20844,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/20807\/revisions\/20844"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=20807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=20807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=20807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}