Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016512
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajorhave not tried2011-03-28 12:562011-05-12 13:25
ReporterAinhoaPagolaView Statuspublic 
Assigned ToAinhoaPagola 
PriorityurgentResolutionfixedFixed in Version3.0RC7
StatusclosedFix in branchFixed in SCM revision601527a7b71a
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.5
OS VersionUbuntu 8.4Database version8.3Ant version1.7
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016512: Error when creating shipments with negative quantities for products with negative stock

DescriptionA "null value in column "c_uom_id" violates not-null constraint" error is displayed when a POS sales order with two lines with a negative amount of a product without stock is completed.
Steps To Reproduce- Create a product and check as stocked. Link it to a pricelist
- Make sure the client allows negative stock
- Create a POS sales order with one line and a positive amount of the product. The product will have a negative amount on stock. Complete the order. The shipment and invoice will be created.
- Create a POS sales order with two lines. Both of them with negative amounts of the product. Complete the order. The error will be thrown because the shipment can not be created.

This issue only reproduces when the stocked quantity of the product is negative. I does not reproduce if different products are used.
Proposed SolutionThe problem may be related to the Cursor Cur_Storage in the function m_inout_create.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0016645 closedAinhoaPagola Error when creating shipments with negative quantities for products with negative stock 

-  Notes
(0035293)
jpcalvente (developer)
2011-03-29 09:11

(JCA):
The possible solution is to change
m_inout_create(IN p_pinstance_id character varying, OUT p_inout_id character varying, IN p_order_id character varying, IN p_invoice_id character varying, IN p_forcedelivery character, IN p_locator_id character varying)

line 416, put v_LocatorQty>0 instead of v_LocatorQty<>0.

This should be tested with all possibilites
(0036023)
hgbot (developer)
2011-04-20 09:37

Repository: erp/devel/pi
Changeset: 601527a7b71ae8834d82716055388b39b3319cfe
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Mon Apr 11 18:10:06 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/601527a7b71ae8834d82716055388b39b3319cfe [^]

Fixes issue 16512. Error in shipments with negative quantities and negative stock

---
M src-db/database/model/functions/M_INOUT_CREATE.xml
---
(0036179)
maite (developer)
2011-04-28 17:14

verfied
(0036733)
hudsonbot (developer)
2011-05-12 13:25

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c40e579fcd38 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2011-03-28 12:56 AinhoaPagola New Issue
2011-03-28 12:56 AinhoaPagola Assigned To => adrianromero
2011-03-28 12:56 AinhoaPagola Modules => Core
2011-03-28 12:57 AinhoaPagola Priority normal => high
2011-03-29 09:11 jpcalvente Note Added: 0035293
2011-03-29 10:10 AinhoaPagola Priority high => urgent
2011-03-29 10:10 AinhoaPagola Severity minor => major
2011-04-05 10:20 AinhoaPagola Assigned To adrianromero => AinhoaPagola
2011-04-05 13:11 AinhoaPagola Status new => scheduled
2011-04-05 13:11 AinhoaPagola fix_in_branch => pi
2011-04-06 13:03 AinhoaPagola fix_in_branch pi =>
2011-04-06 13:03 AinhoaPagola Steps to Reproduce Updated View Revisions
2011-04-20 09:37 hgbot Checkin
2011-04-20 09:37 hgbot Note Added: 0036023
2011-04-20 09:37 hgbot Status scheduled => resolved
2011-04-20 09:37 hgbot Resolution open => fixed
2011-04-20 09:37 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/601527a7b71ae8834d82716055388b39b3319cfe [^]
2011-04-28 17:14 maite Note Added: 0036179
2011-04-28 17:14 maite Status resolved => closed
2011-04-28 17:14 maite Fixed in Version => 3.0RC7
2011-04-29 00:00 anonymous sf_bug_id 0 => 3294643
2011-05-12 13:25 hudsonbot Checkin
2011-05-12 13:25 hudsonbot Note Added: 0036733


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker