[ https://issues.apache.org/jira/browse/OFBIZ-10932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Foxworthy updated OFBIZ-10932: ----------------------------------- Description: When you edit on order item, the details are reloaded into a shopping cart and after editing the order is updated from the cart. At present the supplierProductId for the order item is not read into the cart. Try this in the demo site: Product GZ-1000 has several suppliers, including BigSupplier Order-Order Entry In Purchase Order, choose BigSupplier, click Continue In "Enter Order, Agreements and Ship Dates", click Continue In Create Purchase Order, enter Product ID of GZ-1000 and Quantity of 500 Click Finalize Order Click Continue several times to reach Purchase Order: Order Confirmation Click Create Order Note Purchase Order number. When I did this, it was 10000 Applications - Web Tools Click Entity Data Maintenance In Filter by Entity Name, choose OrderItem, click Apply Click OrderItem in the Entity Name column Enter Purchase Order number, e.g. 10000 Scroll down and click Search Observe that the OrderItem has a SupplierProductId of BKGZ_1000 as you'd expect Applications - Order - Find Order Enter Order ID (e.g. 10000) and click Find In Actions, click Edit Items Change Unit Price from 3.75 to 4.00, check checkbox next to Unit Price, and click Update Selected Items Return to Entity Data Maintenance in the Web Tools, and find the OrderItem for the purchase order again You'll see that the SupplierProductId has been lost was: When you edit on order item, the details are reloaded into a shopping cart and efter editing the order is updated from the cart. At present the supplierProductId for the order item is not read into the cart. Try this in the demo site: Product GZ-1000 has several suppliers, including BigSupplier Order-Order Entry In Purchase Order, choose BigSupplier, click Continue In "Enter Order, Agreements and Ship Dates", click Continue In Create Purchase Order, enter Product ID of GZ-1000 and Quantity of 500 Click Finalize Order Click Continue several times to reach Purchase Order: Order Confirmation Click Create Order Note Purchase Order number. When I did this, it was 10000 Applications - Web Tools Click Entity Data Maintenance In Filter by Entity Name, choose OrderItem, click Apply Click OrderItem in the Entity Name column Enter Purchase Order number, e.g. 10000 Scroll down and click Search Observe that the OrderItem has a SupplierProductId of BKGZ_1000 as you'd expect Applications - Order - Find Order Enter Order ID (e.g. 10000) and click Find In Actions, click Edit Items Change Unit Price from 3.75 to 4.00, check checkbox next to Unit Price, and click Update Selected Items Return to Entity Data Maintenance in the Web Tools, and find the OrderItem for the purchase order again You'll see that the SupplierProductId has been lost > Updating an OrderItem loses supplierProductId > --------------------------------------------- > > Key: OFBIZ-10932 > URL: https://issues.apache.org/jira/browse/OFBIZ-10932 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: Trunk, 17.12.01, 18.12.01 > Reporter: Paul Foxworthy > Assignee: Paul Foxworthy > Priority: Minor > Labels: order, order_item > Attachments: > OFBIZ-10932_Preserve_supplierProductId_when_updating_OrderItem.patch > > > When you edit on order item, the details are reloaded into a shopping cart > and after editing the order is updated from the cart. At present the > supplierProductId for the order item is not read into the cart. > > Try this in the demo site: > Product GZ-1000 has several suppliers, including BigSupplier > Order-Order Entry > In Purchase Order, choose BigSupplier, click Continue > In "Enter Order, Agreements and Ship Dates", click Continue > In Create Purchase Order, enter Product ID of GZ-1000 and Quantity of 500 > Click Finalize Order > Click Continue several times to reach Purchase Order: Order Confirmation > Click Create Order > Note Purchase Order number. When I did this, it was 10000 > Applications - Web Tools > Click Entity Data Maintenance > In Filter by Entity Name, choose OrderItem, click Apply > Click OrderItem in the Entity Name column > Enter Purchase Order number, e.g. 10000 > Scroll down and click Search > Observe that the OrderItem has a SupplierProductId of BKGZ_1000 as you'd > expect > Applications - Order - Find Order > Enter Order ID (e.g. 10000) and click Find > In Actions, click Edit Items > Change Unit Price from 3.75 to 4.00, check checkbox next to Unit Price, and > click Update Selected Items > Return to Entity Data Maintenance in the Web Tools, and find the OrderItem > for the purchase order again > You'll see that the SupplierProductId has been lost > -- This message was sent by Atlassian JIRA (v7.6.3#76005)