Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037265Retail ModulesAuto BOM For Retailpublic2017-11-08 17:432017-12-01 08:39
ngarcia 
rqueralta 
urgentmajoralways
closedfixed 
5
 
RR18Q1 
marvintm
No
0037265: Related entry in Transactions tab is being created for not Stocked consumed products and it should not
Related entry in Transactions tab is being created for not Stocked consumed products and it should not
In the backend:
   Create a new product (BOMPart) and set it as:
      Stocked: 'N'
   Create a new product (BOM)and set it as:
      Product type: Item
      Stocked: 'Y'
      Bill Of Materials: 'Y'
      Auto Generate BOM: Y
   Add the previously created product (BOMPart) in Bill Of Materials tab of BOM product and Verify BOM
   Add a price in Vall Blanca Store price list and add the product to the assortment
   Add a storage bin for Vall Blanca Store in Product - Manufacturing tab
   Set the 'Auto BOM: Allow negative stock in raw materials' preference to Y

In the POS:
   Create a new ticket, add the previously created product and pay it

In the backend:
   Check a Bill Of Materials document has been created for the product
   Go to Product window and check a transaction has been created for consumed product (not stocked products should not have entries in M_TRANSACTION table)
Do not generate a entry in M_TRANSACTION for consumed products
No tags attached.
related to defect 0037237 closed rqueralta Bill Of Materials production and related entry in Transactions tab are being created for Not Stocked produced products 
Issue History
2017-11-08 17:43ngarciaNew Issue
2017-11-08 17:43ngarciaAssigned To => Retail
2017-11-08 17:43ngarciaResolution time => 1511823600
2017-11-08 17:43ngarciaTriggers an Emergency Pack => No
2017-11-08 17:43ngarciaIssue generated from0037237
2017-11-08 17:44ngarciaRelationship addedrelated to 0037237
2017-11-08 18:08ngarciaIssue Monitored: networkb
2017-11-20 22:13hgbotCheckin
2017-11-20 22:13hgbotNote Added: 0100633
2017-11-20 22:13hgbotStatusnew => resolved
2017-11-20 22:13hgbotResolutionopen => fixed
2017-11-20 22:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.autobom/rev/6acba4b36a2e813977fe6a3228032aec569196b7 [^]
2017-11-21 13:13marvintmAssigned ToRetail => rqueralta
2017-11-30 13:29marvintmNote Added: 0100834
2017-11-30 13:29marvintmStatusresolved => new
2017-11-30 13:29marvintmResolutionfixed => open
2017-11-30 22:01hgbotCheckin
2017-11-30 22:01hgbotNote Added: 0100850
2017-12-01 08:39marvintmStatusnew => scheduled
2017-12-01 08:39marvintmStatusscheduled => resolved
2017-12-01 08:39marvintmFixed in Version => RR18Q1
2017-12-01 08:39marvintmResolutionopen => fixed
2017-12-01 08:39marvintmReview Assigned To => marvintm
2017-12-01 08:39marvintmStatusresolved => closed

Notes
(0100633)
hgbot   
2017-11-20 22:13   
Repository: erp/pmods/org.openbravo.retail.autobom
Changeset: 6acba4b36a2e813977fe6a3228032aec569196b7
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Nov 20 16:10:38 2017 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.autobom/rev/6acba4b36a2e813977fe6a3228032aec569196b7 [^]

Fixed issue 37265: Related entry in Transactions tab is being created for not
Stocked consumed products and it should not

---
M src/org/openbravo/retail/autobom/BOMProcess.java
---
(0100834)
marvintm   
2017-11-30 13:29   
The fix is not correct. Instead of avoiding generating the production, we just want to avoid generating the movement transaction.

Therefore, the added check should be reverted, and instead, the "processProduction" method should be modified so that it ignores products which are either not "item", or not stocked.
(0100850)
hgbot   
2017-11-30 22:01   
Repository: erp/pmods/org.openbravo.retail.autobom
Changeset: 66639ce8e6777f4ee85a0754d0e752a01efa5115
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Thu Nov 30 16:00:15 2017 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.autobom/rev/66639ce8e6777f4ee85a0754d0e752a01efa5115 [^]

Related to issue 37265: Related entry in Transactions tab is being created for
not Stocked consumed products and it should not

---
M src/org/openbravo/retail/autobom/BOMProcess.java
---