Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0016645 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] 07. Sales management | major | have not tried | 2011-03-28 12:56 | 2011-04-13 12:46 | |||
Reporter | AinhoaPagola | View Status | public | |||||
Assigned To | AinhoaPagola | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 2.50MP29 | |||
Status | closed | Fix in branch | 2.50 | Fixed in SCM revision | 1d7dfcf437a7 | |||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.5 | |||
OS Version | Ubuntu 8.4 | Database version | 8.3 | Ant version | 1.7 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0016645: Error when creating shipments with negative quantities for products with negative stock | |||||||
Description | A "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. | |||||||
Proposed Solution | The problem may be related to the Cursor Cur_Storage in the function m_inout_create. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0035787) hgbot (developer) 2011-04-08 15:19 |
Repository: erp/stable/2.50 Changeset: 1d7dfcf437a782253f3c7357555ae9a8fa6d646b Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com> Date: Wed Apr 06 17:22:43 2011 +0200 URL: http://code.openbravo.com/erp/stable/2.50/rev/1d7dfcf437a782253f3c7357555ae9a8fa6d646b [^] Fixes bug 16645. Error creating shipments with negative quantites --- M src-db/database/model/functions/M_INOUT_CREATE.xml --- |
(0035900) maite (viewer) 2011-04-13 12:46 |
Verified that situation reported is not reproducible any more. As change affects to M_INOUT_CREATE procedure have also been tested that: * POS order with more than one positive line, one positive and another negative, only one line... works fine. * Same for Warehouse Order, as it also creates shipment * Process Generate Receipt from Invoice has also been tested as it calls to M_INOUT_CREATE procedure |
![]() |
|||
Date Modified | Username | Field | Change |
2011-04-05 13:11 | AinhoaPagola | Type | defect => backport |
2011-04-05 13:11 | AinhoaPagola | fix_in_branch | => 2.50 |
2011-04-08 15:19 | hgbot | Checkin | |
2011-04-08 15:19 | hgbot | Note Added: 0035787 | |
2011-04-08 15:19 | hgbot | Status | scheduled => resolved |
2011-04-08 15:19 | hgbot | Resolution | open => fixed |
2011-04-08 15:19 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.50/rev/1d7dfcf437a782253f3c7357555ae9a8fa6d646b [^] |
2011-04-13 12:46 | maite | Note Added: 0035900 | |
2011-04-13 12:46 | maite | Status | resolved => closed |
2011-04-13 12:46 | maite | Fixed in Version | => 2.50MP29 |
Copyright © 2000 - 2009 MantisBT Group |