Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005524Openbravo ERP07. Sales managementpublic2008-10-14 17:582008-12-11 16:24
Mauri 
cromero 
normalmajorrandom
closedfixed 
208.04.1
pi 
 
No
Core
No
0005524: Complete order, sales order shipped in partial shipments when stock is smaller than order qty
Sometimes a sales orders with the "complete order" set as the Delivery terms leave as partial shipments when processed threw the "Create shipments from orders". NOTE: This happens only in the event that the order quantity exceeds the stock value of the product.

But sometimes in the same scenario the stock goes to negative value and the Shipment is created as Complete order and not as partial shipment.

If the Sales order's delivery term is set to "Complete order" shouldn't it always leave as a Complete order and not as partial shipments? (Setting the stock value below zero or not shipping the order at all)
 - Create a new Sales order with Complete Order set as the delivery terms
 - Create lines for the sales order that has products in them with the quantity amount that exceeds the stock value of that product
 - Complete the sales order
 - Use the Create Shipments form orders proses to create a shipment of the Sales Order made
No tags attached.
blocks defect 0004593 closed cromero Complete order, sales order shipped in partial shipments when stock is smaller than order qty 
Issue History
2008-10-14 17:58cromeroNew Issue
2008-10-14 17:58cromeroAssigned To => cromero
2008-10-14 17:58cromeroStatusnew => scheduled
2008-10-31 18:45svnbotCheckin
2008-10-31 18:45svnbotNote Added: 0009901
2008-10-31 18:45svnbotStatusscheduled => resolved
2008-10-31 18:45svnbotResolutionopen => fixed
2008-10-31 18:45svnbotsvn_revision => 9536
2008-10-31 18:47cromeroNote Added: 0009902
2008-11-20 15:25svnbotCheckin
2008-11-20 15:25svnbotNote Added: 0010448
2008-11-20 15:25svnbotsvn_revision9536 => 10329
2008-12-11 16:24psarobeRegression testing => No
2008-12-11 16:24psarobeStatusresolved => closed

Notes
(0009901)
svnbot   
2008-10-31 18:45   
Repository: openbravo
Revision: 9536
Author: cromeroherrero
Date: 2008-10-31 18:45:09 +0100 (Fri, 31 Oct 2008)

Fixed bug 5524: Complete order, sales order shipped in partial shipments when stock is smaller than order qty

---
U branches/r2.40/src-db/database/model/functions/M_INOUT_CREATE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=9536&sc=1 [^]
(0009902)
cromero   
2008-10-31 18:47   
Added a validation to not allow generation of shipments when delivery rule is equal to "Complete Order" and there is not enough stock.
(0010448)
svnbot   
2008-11-20 15:25   
Repository: openbravo
Revision: 10329
Author: villind
Date: 2008-11-20 15:24:57 +0100 (Thu, 20 Nov 2008)

Merged r9536. Fixed bug 5524: Complete order, sales order shipped in partial shipments when stock is smaller than order qty

---
_U branches/bonware/r2.40/
_U branches/bonware/r2.40/config/setup-tool/
_U branches/bonware/r2.40/eclipse.install.source.launch
_U branches/bonware/r2.40/export.database.launch
_U branches/bonware/r2.40/src-core/src/org/openbravo/database/OpenbravoDriverManagerConnectionFactory.java
U branches/bonware/r2.40/src-db/database/model/functions/M_INOUT_CREATE.xml
_U branches/bonware/r2.40/update.database.launch
---

https://dev.openbravo.com/websvn/openbravo/?rev=10329&sc=1 [^]