Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024211Openbravo ERP07. Sales managementpublic2013-06-27 12:032013-07-16 14:27
psarobe 
pramakrishnan 
urgentmajoralways
closedfixed 
5
 
 
Sandrahuguet
Core
No
0024211: Invoice status and Delivery status not properly calculated when negative quantities
Invoice status and Delivery status not properly calculated when negative quantities. This is the case:

line 1: Product A qty ordered: 1; qty delivered: 1
line 2: Product B qty ordered: -1;qty delivered: -1

Then the result is delivery status:0 and it is wrong. It should be 100%
1. Create one sales order
2. Two lines:
line 1: Product A qty ordered: 1
line 2: Product B qty ordered: -1
3. Complete
4. Create a goods shipment and complete it
5. Move back to sales order

Current behaviour: Delivery status: 0%
Expected behaviour: Delivery status: 100%
When the qty order is in negative, multiply by -1 the qty order and the qty delivered
No tags attached.
blocks defect 00245213.0MP30 closed pramakrishnan Delivery status not correctly updated when the total quantity of the sales order is 0 
Issue History
2013-06-27 12:03psarobeNew Issue
2013-06-27 12:03psarobeAssigned To => dmiguelez
2013-06-27 12:03psarobeModules => Core
2013-06-27 12:03psarobeTriggers an Emergency Pack => No
2013-07-02 08:05pramakrishnanAssigned Todmiguelez => pramakrishnan
2013-07-02 08:06pramakrishnanStatusnew => scheduled
2013-07-02 08:06pramakrishnanfix_in_branch => pi
2013-07-15 16:13hgbotCheckin
2013-07-15 16:13hgbotNote Added: 0059974
2013-07-15 16:13hgbotStatusscheduled => resolved
2013-07-15 16:13hgbotResolutionopen => fixed
2013-07-15 16:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6feeefdd8377c033ce5566fe9260660c5e4ba53c [^]
2013-07-15 16:15SandrahuguetReview Assigned To => Sandrahuguet
2013-07-15 16:15SandrahuguetNote Added: 0059980
2013-07-15 16:15SandrahuguetStatusresolved => closed
2013-07-16 14:27hudsonbotCheckin
2013-07-16 14:27hudsonbotNote Added: 0060046
2013-11-06 11:00jonalegriaesarteRelationship addedblocks 0024521

Notes
(0059974)
hgbot   
2013-07-15 16:13   
Repository: erp/devel/pi
Changeset: 6feeefdd8377c033ce5566fe9260660c5e4ba53c
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Wed Jul 03 14:48:58 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/6feeefdd8377c033ce5566fe9260660c5e4ba53c [^]

Fixes Issue 24211: Invoice status, Delivery status not properly calculated
The delivery status, Invoice status are not properly calculated when there are negative quantities and their sum becomes zero

---
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0059980)
Sandrahuguet   
2013-07-15 16:15   
Code review + testing OK
(0060046)
hudsonbot   
2013-07-16 14:27   
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/9a5d5983399f [^]

Maturity status: Test