Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007334Openbravo ERP07. Sales managementpublic2009-01-30 18:072009-07-03 13:11
networkb 
gorkaion 
immediatemajoralways
closedfixed 
30
2.40 
2.50MP1 
Core
No
0007334: 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
related to backport 0008489 closed gorkaion The complete process of sales order does not work with POS document type if the product has not stock 
blocks defect 0007289 closed gorkaion The processes to generate Shipments and invoices automatically don't allow negative stock 
Issue History
2009-02-03 10:44psarobeTypedefect => backport
2009-02-03 10:44psarobefix_in_branch => 2.40
2009-02-03 11:16rafarodaAssigned Torafaroda => gorkaion
2009-02-06 19:08svnbotCheckin
2009-02-06 19:08svnbotNote Added: 0013236
2009-02-06 19:08svnbotStatusscheduled => resolved
2009-02-06 19:08svnbotResolutionopen => fixed
2009-02-06 19:08svnbotsvn_revision => 12927
2009-02-09 13:03svnbotCheckin
2009-02-09 13:03svnbotNote Added: 0013257
2009-02-09 13:03svnbotsvn_revision12927 => 12949
2009-02-09 13:45rafarodaNote Deleted: 0013257
2009-02-12 18:56gorkaionTag Attached: commsup_sprint6
2009-03-03 17:32psarobeFixed in Version => 2.40MP3
2009-03-04 07:41arunkumarStatusresolved => closed
2009-03-04 07:41arunkumarNote Added: 0014356
2009-04-01 16:29hgbotCheckin
2009-04-01 16:29hgbotNote Added: 0015114
2009-04-01 16:29hgbotFixed in SCM revision12949 => http://code.openbravo.com/erp/devel/pi/rev/bab9d2f42e6c5bc56597d50323dff69e669a9763 [^]
2009-04-07 17:40rafarodaRelationship addedrelated to 0008489
2009-05-11 17:34hgbotCheckin
2009-05-11 17:34hgbotNote Added: 0016272
2009-05-11 17:34hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/bab9d2f42e6c5bc56597d50323dff69e669a9763 [^] => http://code.openbravo.com/erp/stable/2.40/rev/5fc7e7b3fd09d2218c0ab9e24f5c6b5f1a437a06 [^]
2009-07-03 13:11hgbotCheckin
2009-07-03 13:11hgbotNote Added: 0017811
2009-07-03 13:11hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.40/rev/5fc7e7b3fd09d2218c0ab9e24f5c6b5f1a437a06 [^] => http://code.openbravo.com/erp/devel/pi/rev/3e33e785788709c4537c145718ccd676db22c600 [^]

Notes
(0013236)
svnbot   
2009-02-06 19:08   
Repository: openbravo
Revision: 12927
Author: gorkaion
Date: 2009-02-06 19:08:02 +0100 (Fri, 06 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 branches/r2.40/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.java
U branches/r2.40/src-db/database/model/functions/M_INOUT_CREATE.xml
U branches/r2.40/src-db/database/sourcedata/AD_MESSAGE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12927&sc=1 [^]
(0014356)
arunkumar   
2009-03-04 07:41   
Able to create a shipment successfully.This issue has been fixed.
(0015114)
hgbot   
2009-04-01 16:29   
Repository: erp/devel/pi
Changeset: bab9d2f42e6c5bc56597d50323dff69e669a9763
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon Mar 16 17:59:57 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bab9d2f42e6c5bc56597d50323dff69e669a9763 [^]

Related to issue 7334. Fixed a postgresql/database problem.

---
M src-db/database/model/functions/M_INOUT_CREATE.xml
---
(0016272)
hgbot   
2009-05-11 17:34   
Repository: erp/stable/2.40
Changeset: 5fc7e7b3fd09d2218c0ab9e24f5c6b5f1a437a06
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon May 11 17:32:48 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/5fc7e7b3fd09d2218c0ab9e24f5c6b5f1a437a06 [^]

Fixed bug 8985. Related to issue 7334. Fixed the procedure to generate shipments.

---
M src-db/database/model/functions/M_INOUT_CREATE.xml
---
(0017811)
hgbot   
2009-07-03 13:11   
Repository: erp/devel/pi
Changeset: 3e33e785788709c4537c145718ccd676db22c600
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon Mar 16 17:59:57 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3e33e785788709c4537c145718ccd676db22c600 [^]

Related to issue 7334. Fixed a postgresql/database problem.

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