Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0004593Openbravo ERP07. Sales managementpublic2008-08-07 15:152008-12-04 00:02
Mauri 
cromero 
immediatemajorrandom
closedfixed 
208.04.1
pi 
 
Core
No
0004593: 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.
depends on backport 0005524 closed cromero Complete order, sales order shipped in partial shipments when stock is smaller than order qty 
blocks defect 0006361 closed gmauleon Incorrect error message while verifying a bug 
Issue History
2008-08-07 15:15MauriNew Issue
2008-08-07 15:15MauriAssigned To => cromero
2008-08-07 15:15Maurisf_bug_id0 => 2041665
2008-08-07 15:22villindIssue Monitored: villind
2008-08-07 15:23MauriIssue Monitored: Mauri
2008-08-14 10:13psarobeStatusnew => acknowledged
2008-10-10 09:47pjuvaraSeverityminor => major
2008-10-14 17:58cromeroStatusacknowledged => scheduled
2008-10-14 17:58cromerofix_in_branch => trunk
2008-10-24 11:16cromeroPrioritynormal => immediate
2008-10-24 11:16cromerofix_in_branchtrunk =>
2008-10-31 18:49svnbotCheckin
2008-10-31 18:49svnbotNote Added: 0009903
2008-10-31 18:49svnbotStatusscheduled => resolved
2008-10-31 18:49svnbotResolutionopen => fixed
2008-10-31 18:49svnbotsvn_revision => 9537
2008-12-04 00:00psarobeRelationship addedblocks 0006361
2008-12-04 00:02psarobeRegression testing => No
2008-12-04 00:02psarobeStatusresolved => closed
2008-12-04 00:02psarobeNote Added: 0010958

Notes
(0009903)
svnbot   
2008-10-31 18:49   
Repository: openbravo
Revision: 9537
Author: cromeroherrero
Date: 2008-10-31 18:49:11 +0100 (Fri, 31 Oct 2008)

Fixed bug 4593: Complete order, sales order shipped in partial shipments when stock is smaller than order qty. Added a validation to not allow generation of shipments when delivery rule is equal to 'Complete Order' and there is not enough stock.

---
U trunk/src-db/database/model/functions/M_INOUT_CREATE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=9537&sc=1 [^]
(0010958)
psarobe   
2008-12-04 00:02   
The message is incorrect and another bug has been open for this