{"id":4048,"date":"2021-01-28T01:25:59","date_gmt":"2021-01-28T01:25:59","guid":{"rendered":"https:\/\/himbap.com\/blog\/?p=4048"},"modified":"2021-01-28T01:26:44","modified_gmt":"2021-01-28T01:26:44","slug":"order-pricing-is-not-updated-sales-order-integration-with-bc","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=4048","title":{"rendered":"Order pricing is not updated &#8211; Integration with BC"},"content":{"rendered":"<p><strong>Issue<\/strong><br \/>\nRecently while working in one of the customer environment we found sales order is automatically submitted to BC without pricing details as we soon as order is created like below:<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/pricecalculation.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4052 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/pricecalculation-300x260.png\" alt=\"pricecalculation\" width=\"300\" height=\"260\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/pricecalculation-300x260.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/pricecalculation-624x541.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/pricecalculation.png 846w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I am going to share some details how I fixed this issue.<\/p>\n<p><strong>Details<\/strong><br \/>\nThis environment has Sales order integration enabled and we have developed a custom workflow for customer where they create order from the Customer Asset. While troubleshooting, when we try to create order using a console app we saw order is created correctly with price calculation based on the order line items but not automatically submitted. Another thing we noticed that when some users was creating orders from the UI those were not submitted automatically but when some user was creating order those were submitted automatically without any price calculation from the line items. This finding directed us to look into difference between user profiles and while looking <a href=\"https:\/\/docs.microsoft.com\/en-us\/dynamics365\/sales-enterprise\/developer\/enable-sales-order-processing-integration\">documentation<\/a> we found this:<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationdetails.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4051 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationdetails-300x240.png\" alt=\"integrationdetails\" width=\"300\" height=\"240\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationdetails-300x240.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationdetails-624x500.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationdetails.png 1013w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>So we changed below setting to false for the user (earlier it was true)<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationmode.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-4053 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationmode-300x194.png\" alt=\"integrationmode\" width=\"300\" height=\"194\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationmode-300x194.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2021\/01\/integrationmode.png 503w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>After disabling this setting, automatic submission of the order stopped and we were able to see the price calculation happening without any issue.<\/p>\n<p><strong>Summary<\/strong><br \/>\nIn this post we saw how we can resolve Sales to NAV integration issue where price is not calculating based on the order line product before sending order to BC.<\/p>\n<p>Hope it will help someone!<br \/>\n<strong>Keep learning, Keep sharing !!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue Recently while working in one of the customer environment we found sales order is automatically submitted to BC without pricing details as we soon as order is created like below: I am going to share some details how I fixed this issue. Details This environment has Sales order integration enabled and we have developed a custom workflow for customer&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=4048\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4053,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[847,21,402,522],"tags":[844,845,843,846],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4048"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4048"}],"version-history":[{"count":5,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4048\/revisions"}],"predecessor-version":[{"id":4057,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4048\/revisions\/4057"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4053"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}