Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032392Openbravo ERP07. Sales managementpublic2016-03-03 09:442016-06-17 19:36
ngarcia 
markmm82 
urgentmajoralways
closedfixed 
5
 
3.0PR16Q3 
aferraz
Core
No
0032392: Wrong value in qtyreserved column of m_storage_pending when creating an order from a sales quotation
Wrong value in qtyreserved column of m_storage_pending when creating an order from a sales quotation
As group admin role:
   Create a new product, set it as stocked and add a sales price list to it
   Create a Sales Quotation and add it
   Check the M_STORAGE_PENDING is empty for that product
   Launch the Create Order process from it
   Check qtyreserved is twice the ordered quantity in the M_STORAGE_PENDING for that product. It should be the ordered quantity
   Create the shipment
   Check qtyreserved is the ordered quantity in the M_STORAGE_PENDING for that product. It should be 0
   
No tags attached.
related to defect 0031833 closed aferraz Inconsistent data in M_STORAGE_PENDING table if the product is changed from Not Stocked to Stocked having pending orders 
related to defect 00246203.0MP28 closed pramakrishnan Sales quotation is modifying qty reserved in m_storage_pending table and it shouldn't 
Issue History
2016-03-03 09:44ngarciaNew Issue
2016-03-03 09:44ngarciaAssigned To => Triage Finance
2016-03-03 09:44ngarciaModules => Core
2016-03-03 09:44ngarciaResolution time => 1459893600
2016-03-03 09:44ngarciaTriggers an Emergency Pack => No
2016-03-03 09:45ngarciaIssue Monitored: networkb
2016-03-03 09:49ngarciaRelationship addedrelated to 0031833
2016-03-28 07:43SanjotaAssigned ToTriage Finance => Sanjota
2016-03-29 14:35markmm82Note Added: 0085313
2016-03-29 14:37markmm82Note Deleted: 0085313
2016-03-29 14:46markmm82Note Added: 0085314
2016-03-29 16:58markmm82Assigned ToSanjota => markmm82
2016-03-29 16:58markmm82Statusnew => scheduled
2016-03-31 14:21psanjuanNote Added: 0085363
2016-04-04 11:41aferrazRelationship addedrelated to 0024620
2016-04-04 12:01hgbotCheckin
2016-04-04 12:01hgbotNote Added: 0085407
2016-04-04 12:01hgbotStatusscheduled => resolved
2016-04-04 12:01hgbotResolutionopen => fixed
2016-04-04 12:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8f219033b0d838be1b2cabd688b7d953bab9d193 [^]
2016-04-04 12:01hgbotCheckin
2016-04-04 12:01hgbotNote Added: 0085408
2016-04-04 12:03aferrazReview Assigned To => aferraz
2016-04-04 12:03aferrazNote Added: 0085409
2016-04-04 12:03aferrazStatusresolved => closed
2016-04-04 12:03aferrazFixed in Version => 3.0PR16Q3
2016-06-17 19:36hudsonbotCheckin
2016-06-17 19:36hudsonbotNote Added: 0087414
2016-06-17 19:36hudsonbotCheckin
2016-06-17 19:36hudsonbotNote Added: 0087415

Notes
(0085314)
markmm82   
2016-03-29 14:46   
Test Plan:

As group admin role:
   Create a new product, set it as stocked and add a sales price list to it
   Create a Sales Quotation and add it
   Check the M_STORAGE_PENDING is empty for that product
   Launch the Create Order process from it
   Check qtyreserved is the ordered quantity in the M_STORAGE_PENDING for that product as expected.
   Create goods receipt for product created, with a movement quantity greater than reserved
   Create the shipment from the generated Order
   Check qtyreserved is 0 inside the M_STORAGE_PENDING for that product as expected.
(0085363)
psanjuan   
2016-03-31 14:21   
Test plan above verified.

Issue can be code reviewed and closed.
(0085407)
hgbot   
2016-04-04 12:01   
Repository: erp/devel/pi
Changeset: 8f219033b0d838be1b2cabd688b7d953bab9d193
Author: Mark <m.molina <at> nectus.com>
Date: Mon Mar 28 12:44:57 2016 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/8f219033b0d838be1b2cabd688b7d953bab9d193 [^]

Fixes issue 32392: Wrong value in qtyreserved column of m_storage_pending in sales quotation.

When the "Create Order process" was launched from a Sales Quotation that generates pending storage, the ordered quantity in the M_STORAGE_PENDING was the double than the original for a recently created product. It was caused because a double call of the M_UPDATE_STORAGE_PENDING PL. Inside the C_ORDER_POST PL (it creates the entry inside the M_STORAGE_PENDING with the quantity reserved), and then the lines were processed again, the M_UPDATE_STORAGE_PENDING was called again and it updates the previously created entry increasing the quantity reserved once more time.
The process is working as expected now.

---
M src/org/openbravo/erpCommon/ad_process/ConvertQuotationIntoOrder.java
---
(0085408)
hgbot   
2016-04-04 12:01   
Repository: erp/devel/pi
Changeset: b678870f424ca70165e1f2f1c7abe504073b018e
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Apr 04 11:59:06 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b678870f424ca70165e1f2f1c7abe504073b018e [^]

Related to issue 32392: Remove unused variables and methods

---
M src/org/openbravo/erpCommon/ad_process/ConvertQuotationIntoOrder.java
---
(0085409)
aferraz   
2016-04-04 12:03   
Code review OK
(0087414)
hudsonbot   
2016-06-17 19:36   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0dc7be081b1c [^]
Maturity status: Test
(0087415)
hudsonbot   
2016-06-17 19:36   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0dc7be081b1c [^]
Maturity status: Test