Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008525Openbravo ERP07. Sales managementpublic2009-04-09 10:302009-10-02 14:50
networkb 
rafaroda 
normalmajoralways
closedno change required 
30
2.50beta 
 
Core
No
0008525: Duplicate lines are added to sales invoice, when the user create's Sales order (POS) for a product which has negative inventory
Duplicate line items are added to the sales invoice, if a product has negative inventory in warehouse and create a Sales order for the same product with document type as POS.



Step 1) Run the stock report to verify the inventory of the warehouse. identify any product which has positive qty(i.e., Hammer qty = N)

Step 2) Move to Sales Management and complete a sales order with document type as POS (Sales Management || Transactions || Sales Order || Header)
with BP = <any business partner> and product = hammer , Qty = N+1 and click complete button 'Process completed successfully' with Receipt id & Invoice id

Step 3) Create another Sales order with document type as POS and select the same BP, Product = hammer and Qty = 10 and click complete button. 'Process completed successfully' message appears with Receipt id & invoice id.

Open the above created sales invoice and check the line item details.

Actual result: you can find 3 line items instead of one line item




No tags attached.
related to backport 0008490 closed gorkaion A POS order (sales order) can not be reactivated more than once 
related to backport 0008352 closed gorkaion Function M_INOUT_CREATE (Create/Generate Shipments) delivers from locators where the quantity is negative 
blocks defect 0008524 closed rafaroda Duplicate lines are added to sales invoice, when the user create's Sales order (POS) for a product which has negative inventory 
Issue History
2009-04-09 10:37rafarodaTypedefect => backport
2009-04-09 10:37rafarodafix_in_branch => 2.40
2009-04-09 10:37rafarodaRelationship addedrelated to 0008490
2009-04-14 12:16psarobeSeverityminor => major
2009-10-01 14:26rafarodaReportersureshbabu => networkb
2009-10-01 14:26rafarodaAssigned Togorkaion => rafaroda
2009-10-02 14:31rafarodaRelationship addedrelated to 0008352
2009-10-02 14:50rafarodaStatusscheduled => closed
2009-10-02 14:50rafarodaNote Added: 0020670
2009-10-02 14:50rafarodaResolutionopen => no change required

Notes
(0020670)
rafaroda   
2009-10-02 14:50   
This is not a defect but the regular Openbravo ERP behaviour. Please see defect notes https://issues.openbravo.com/view.php?id=8524#bugnotes [^]