Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007289Openbravo ERP07. Sales managementpublic2009-01-30 18:072009-07-03 13:14
networkb 
gorkaion 
immediatemajoralways
closedfixed 
30
2.40 
2.50MP1 
Core
No
0007289: The processes to generate Shipments and invoices automatically don't allow negative stock
The following processes
  Create Shipments from Orders
  Generate Shipments
  Create Invoices from Orders
  Generate Invoices

don't work well when creating them from order where you have define an amount of a product bigger than the quantity stocked in the warehouse.
This happens although you have checked the "allow negative stock" in the information tab of the client (entity).

The lines of the generated document don't have the quantity defined in the order but the quantity stored in the warehouse.
-Go to the client window and the information tab. Check the "allow negative stock" checkbox

-Create a sales order. In the lines select a product item without attributes.
-Fill the quantity field with a quantity bigger than the quantity stored in the warehouse.
-Complete the order.
-Go to a process detailed in the previous field. (i.e. Generate Shipments form orders)
-Select the order created before.
-Process it
-Then you get the following message: "Partially shipment created".
commsup_sprint6
depends on backport 0007334 closed gorkaion The processes to generate Shipments and invoices automatically don't allow negative stock 
related to defect 0008485 closed gorkaion The complete process of sales order does not work with POS document type if the product has not stock 
Issue History
2009-01-30 18:07networkbNew Issue
2009-01-30 18:07networkbAssigned To => rafaroda
2009-01-30 18:08networkbsf_bug_id0 => 2549649
2009-01-30 18:08networkbRegression testing => No
2009-02-03 10:44psarobeStatusnew => scheduled
2009-02-03 10:44psarobeAssigned Torafaroda => gorkaion
2009-02-03 10:44psarobefix_in_branch => trunk
2009-02-09 13:04gorkaionStatusscheduled => resolved
2009-02-09 13:04gorkaionsvn_revision => 12949
2009-02-09 13:04gorkaionResolutionopen => fixed
2009-02-09 13:04gorkaionNote Added: 0013258
2009-02-09 13:45rafarodaNote Added: 0013261
2009-02-12 18:55gorkaionTag Attached: commsup_sprint6
2009-03-06 11:56sureshbabuStatusresolved => closed
2009-03-06 11:56sureshbabuNote Added: 0014481
2009-03-06 11:56sureshbabuFixed in Version => 2.50beta
2009-04-07 17:30rafarodaRelationship addedrelated to 0008485
2009-05-11 17:14hgbotCheckin
2009-05-11 17:14hgbotNote Added: 0016270
2009-05-11 17:14hgbotFixed in SCM revision12949 => http://code.openbravo.com/erp/devel/pi/rev/d128f84ed54662cc71209d67e39757764d51a0e2 [^]
2009-07-03 13:14hgbotCheckin
2009-07-03 13:14hgbotNote Added: 0017879
2009-07-03 13:14hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/d128f84ed54662cc71209d67e39757764d51a0e2 [^] => http://code.openbravo.com/erp/devel/pi/rev/046023152f283f783e472f2774db9309092b9f40 [^]

Notes
(0013258)
gorkaion   
2009-02-09 13:04   
The process now inserts an extra line with the remaining quantity when the client allows negative stock.
Changed the message system to correct an issue with multiline orders.
Removed the Oracle's savepoint from the procedure and replaced the rollback with delete statements.
(0013261)
rafaroda   
2009-02-09 13:45   
Repository: openbravo
Revision: 12949
Author: gorkaion
Date: 2009-02-09 13:03:48 +0100 (Mon, 09 Feb 2009)

Fixed bug 7334.
The process now inserts an extra line with the remaining quantity when the client allows negative stock.
Changed the message system to correct an issue with multiline orders.
Removed the Oracle's savepoint from the procedure and replaced the rollback with delete statements.

---
U trunk/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.java
U trunk/src-db/database/model/functions/M_INOUT_CREATE.xml
U trunk/src-db/database/sourcedata/AD_MESSAGE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12949&sc=1 [^] [^]
(0014481)
sureshbabu   
2009-03-06 11:56   
Retested working fine(trunk)
(0016270)
hgbot   
2009-05-11 17:14   
Repository: erp/devel/pi
Changeset: d128f84ed54662cc71209d67e39757764d51a0e2
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon May 11 17:11:55 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d128f84ed54662cc71209d67e39757764d51a0e2 [^]

Related to issue 7289. Fixed an error in a delete statement.

---
M src-db/database/model/functions/M_INOUT_CREATE.xml
---
(0017879)
hgbot   
2009-07-03 13:14   
Repository: erp/devel/pi
Changeset: 046023152f283f783e472f2774db9309092b9f40
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon May 11 17:11:55 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/046023152f283f783e472f2774db9309092b9f40 [^]

Related to issue 7289. Fixed an error in a delete statement.

---
M src-db/database/model/functions/M_INOUT_CREATE.xml
---