Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010842Openbravo ERP07. Sales managementpublic2009-10-02 14:312009-10-05 14:04
rafaroda 
rafaroda 
highmajoralways
closedfixed 
5
2.40MP3 
2.35MP15 
Core
No
0010842: Function M_INOUT_CREATE (Create/Generate Shipments) delivers from locators where the quantity is negative
Create Shipments happily delivers from the locators where the quantity is negative.

Don't deliver if the stock quantity is negative. See the attached patch.
No tags attached.
related to backport 00106722.35MP16 closed rafaroda Duplicate lines are added to sales invoice, when the user create's Sales order (POS) for a product which has negative inventory 
blocks defect 0008266 closed gorkaion Function M_INOUT_CREATE (Create/Generate Shipments) delivers from locators where the quantity is negative 
Issue History
2009-10-02 14:31rafarodaNew Issue
2009-10-02 14:31rafarodaAssigned To => rafaroda
2009-10-02 14:31rafarodaIssue generated from0008352
2009-10-02 14:32rafarodaRelationship addedblocks 0008266
2009-10-02 14:33rafarodaNote Added: 0020667
2009-10-02 14:33rafarodaStatusnew => scheduled
2009-10-02 14:33rafarodafix_in_branch => 2.3x
2009-10-02 14:33rafarodaRelationship addedrelated to 0010672
2009-10-02 14:48hgbotCheckin
2009-10-02 14:48hgbotNote Added: 0020669
2009-10-02 14:48hgbotStatusscheduled => resolved
2009-10-02 14:48hgbotResolutionopen => fixed
2009-10-02 14:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.3x/rev/c8df912b66022bd127a550aed401e205a43421f5 [^]
2009-10-02 14:51rafarodaNote Added: 0020672
2009-10-05 14:04psarobeStatusresolved => closed
2009-10-05 14:04psarobeFixed in Version => 2.35MP15

Notes
(0020667)
rafaroda   
2009-10-02 14:33   
Opened in order that the 2.3x behavior is the same as in 2.40 and pi. See https://issues.openbravo.com/view.php?id=8524#bugnotes [^]
(0020669)
hgbot   
2009-10-02 14:48   
Repository: erp/stable/2.3x
Changeset: c8df912b66022bd127a550aed401e205a43421f5
Author: Rafa Roda Palacios <rafael.roda <at> openbravo.com>
Date: Thu Oct 01 06:54:15 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.3x/rev/c8df912b66022bd127a550aed401e205a43421f5 [^]

Fixes bug 0010842 Function M_INOUT_CREATE now only delivers from locators where quantity is positive

---
M database/model/functions/M_INOUT_CREATE.xml
---
(0020672)
rafaroda   
2009-10-02 14:51   
Current behaviour, including the fix should be:

1) Run stock report and see the quantity stocked of Hats: 499 units in ML1 (Warehouse Management || Analysis Tools || Stock Report)
2) Create Hat stock for ML2 (101 units) and ML3 (50 units) locators and process it (Warehouse Management || Transactions || Physical Inventory || Header)
3) If you run the stock report for Hats, you have now:
* 499 Units in ML1
* 101 Units in ML2
* 50 Units in ML3
* Total = 650
4) Create an POS Sales Order of 670 Hats and complete it.
5) The Shipment created has 4 lines, which is correct:
* 499 Units movement in ML1
* 50 Units movement in ML3
* 101 Units movement in ML2
* 20 Units movement in ML1
6) Run the stock report: you have now -20 Units in ML1
7) The Invoice created has 4 lines: each line is linked with the corresponding shipment line which is the regular behaviour of Openbravo ERP.