Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010672Openbravo ERP07. Sales managementpublic2009-09-21 09:442009-10-02 14:50
networkb 
rafaroda 
urgentmajoralways
closedno change required 
30
2.50beta 
2.35MP16 
Core
No
0010672: 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 0010842 closed rafaroda 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-09-21 09:44rafarodaNew Issue
2009-09-21 09:44rafarodaAssigned To => rafaroda
2009-09-21 09:44rafarodaIssue generated from0008524
2009-09-21 09:44rafarodaRelationship addedblocks 0008524
2009-09-21 09:47rafarodaReporterrafaroda => networkb
2009-09-21 09:47rafarodaStatusnew => scheduled
2009-09-21 09:47rafarodaFixed in Version => 2.35MP15
2009-09-21 09:47rafarodafix_in_branch => 2.3x
2009-09-22 07:01rafarodaFixed in Version2.35MP15 =>
2009-09-22 07:01rafarodaTarget Version => 2.35MP15
2009-10-01 17:53networkbTarget Version2.35MP15 => 2.35MP16
2009-10-02 14:33rafarodaRelationship addedrelated to 0010842
2009-10-02 14:50rafarodaStatusscheduled => closed
2009-10-02 14:50rafarodaNote Added: 0020671
2009-10-02 14:50rafarodaResolutionopen => no change required

Notes
(0020671)
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 [^]