Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043895Retail ModulesAuto BOM For Retailpublic2020-04-29 09:042020-05-25 13:11
gorkaion 
ranjith_qualiantech_com 
highmajorhave not tried
closedfixed 
5
 
RR20Q3 
jorge-garcia
No
0043895: Cancel and replace of an AutoBOM products creates an extra BOM Production
When a cancel and replace of a order containing a AutoBOM product the product is produced twice instead of reusing the units reused on the original order.
On live retail with modules instance.

1. Check that product Veg Burger with the AutoBOm enabled is available.
2. Ensure that there is stock of the 4 products defined on its Bill of Materials definition.
3. Open the POS and create a ticket selling 1 unit of Veg Burger
4. Notice in the backend on Product window Transactions tab that for Veg Burger product a "Production +" is generated.
5. On the POS load the ticket and do a Cancel and Replace.
6. Add a new product to the ticket and pay it.
7. Check again the transactions tab and notice that an additional "Production +" is done.
8. Check any of the products of the Bill of Materials list (Veg Plain Patty for example). Notice that 2 units have been consumed although only 1 burger has been sold.
No tags attached.
Issue History
2020-04-29 09:04gorkaionNew Issue
2020-04-29 09:04gorkaionAssigned To => Retail
2020-04-29 09:04gorkaionTriggers an Emergency Pack => No
2020-04-29 19:09ahernandezgilIssue Monitored: ahernandezgil
2020-05-19 14:07ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-05-19 14:41ranjith_qualiantech_comStatusnew => scheduled
2020-05-21 19:33hgbotCheckin
2020-05-21 19:33hgbotNote Added: 0120146
2020-05-22 03:48ranjith_qualiantech_comStatusscheduled => resolved
2020-05-22 03:48ranjith_qualiantech_comResolutionopen => fixed
2020-05-25 12:03jorge-garciaReview Assigned To => jorge-garcia
2020-05-25 13:11jorge-garciaNote Added: 0120237
2020-05-25 13:11jorge-garciaStatusresolved => closed
2020-05-25 13:11jorge-garciaFixed in Version => RR20Q3

Notes
(0120146)
hgbot   
2020-05-21 19:33   
Repository: erp/pmods/org.openbravo.retail.autobom
Changeset: 7a47a717661fd4cfa537e07066b8be8ef9387de0
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu May 21 23:03:26 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.autobom/rev/7a47a717661fd4cfa537e07066b8be8ef9387de0 [^]

Related to issue-43895 : ProductionPlan should be created only for non-delivered quantity

* For Autobom products, When doing Cancel and Replace,
  ProductionPlan should be created only for non-delivered quantity

---
M src/org/openbravo/retail/autobom/process/BOMProcess.java
---
(0120237)
jorge-garcia   
2020-05-25 13:11   
Code reviewed and tested