Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044747Retail ModulesAuto BOM For Retailpublic2020-08-04 11:362020-08-18 07:37
gorkaion 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
No
0044747: Invoicing a Cancel and replace of an AutoBOM products creates an extra BOM Production
Having a Cancel and Replace of a ticket with an AutoBOM product with the replacement order not invoiced.

When that latest order is invoiced through the POS an extra BOM Production is generated.
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 for anonymous customer
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. Change the Business Partner to Arturo Montoro and ensure that the Invoice this ticket flag is NOT enabled and process the order.
7. Check again the transactions tab and notice that no additional Production + is done.
8. Load the latest ticket for Arturo Montoro. Enable the invoice this ticket flag and process it.
9. Check again the transactions tab and notice that a new additional Production + is done.
10. 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.
related to defect 0043895 closed ranjith_qualiantech_com Cancel and replace of an AutoBOM products creates an extra BOM Production 
Issue History
2020-08-04 11:36gorkaionNew Issue
2020-08-04 11:36gorkaionAssigned To => Retail
2020-08-04 11:36gorkaionResolution time => 1598306400
2020-08-04 11:36gorkaionTriggers an Emergency Pack => No
2020-08-04 11:36gorkaionIssue generated from0043895
2020-08-04 11:36gorkaionRelationship addedrelated to 0043895
2020-08-13 13:13ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-08-13 15:24ranjith_qualiantech_comStatusnew => scheduled
2020-08-14 06:25hgbotNote Added: 0122038
2020-08-18 07:37hgbotResolutionopen => fixed
2020-08-18 07:37hgbotStatusscheduled => closed
2020-08-18 07:37hgbotNote Added: 0122111
2020-08-18 07:37hgbotNote Added: 0122112

Notes
(0122038)
hgbot   
2020-08-14 06:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.autobom/-/merge_requests/3 [^]
(0122111)
hgbot   
2020-08-18 07:37   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.autobom [^]
Changeset: 66accd877b975874ab222f04601748e8768d6cca
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-08-13T18:35:17+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.autobom/-/commit/66accd877b975874ab222f04601748e8768d6cca [^]

Fixed ISSUE-44747: BOM should not be processed for existing processed lines
* When Invoice is processed for existing order, BOM should not be processed

---
M src/org/openbravo/retail/autobom/process/BOMProcess.java
---
(0122112)
hgbot   
2020-08-18 07:37   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.autobom/-/merge_requests/3 [^]