Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032829Openbravo ERP07. Sales managementpublic2016-05-03 01:402016-05-03 13:58
rbianchini 
Triage Omni OMS 
normalmajoralways
newopen 
5
 
 
Google Chrome
Core
No
0032829: Delivery Status shows wrong value
In some cases, the Delivery Status field on Sales Order shows a wrong value.
1 - Log in ERP
2 - Go to sales Order Window
3 - Create a new Sales Order
4 - Create 2 lines:
A - Product A order quantity = 499
B - Product B order quantity = 1
5 - Book the order
6 - Go to Goods Shipment and create a new shipment with the same business partner than sales order created in 3 step
7 - Hit Create lines from button
8 - Select the line created for product A in 4A step
9 - Complete the shipment
10 - Go to sales Order window and open the Sales order created in step 3
11 - Observes that the field Delivery Status in status bar shows 100%, but the line for product B is not shipped.

Change reference to Numeric of the column DeliveryStatus from c_order table and don't round in the sql query
No tags attached.
diff 32829.diff (2,106) 2016-05-03 13:58
https://issues.openbravo.com/file_download.php?file_id=9354&type=bug
Issue History
2016-05-03 01:40rbianchiniNew Issue
2016-05-03 01:40rbianchiniAssigned To => Triage Finance
2016-05-03 01:40rbianchiniWeb browser => Google Chrome
2016-05-03 01:40rbianchiniModules => Core
2016-05-03 01:40rbianchiniResolution time => 1462417200
2016-05-03 01:40rbianchiniTriggers an Emergency Pack => No
2016-05-03 13:58aferrazWeb browserGoogle Chrome => Google Chrome
2016-05-03 13:58aferrazResolution time1462417200 => 1462399200
2016-05-03 13:58aferrazNote Added: 0086154
2016-05-03 13:58aferrazTypedefect => design defect
2016-05-03 13:58aferrazFile Added: 32829.diff
2016-05-03 14:04aferrazNote Edited: 0086154bug_revision_view_page.php?bugnote_id=0086154#r11953

Notes
(0086154)
aferraz   
2016-05-03 13:58   
(edited on: 2016-05-03 14:04)
Several status fields show a rounded integer value such as Delivery Status, Invoice Status or Payment Status in Sales Order window.
In order to have a consistent behaviour, all of them should be updated with a reference supporting decimals.
Also, computed columns should be reviewed due to bad performance.
Besides, any user can customize the number of decimals displayed in those columns with a template.

Attached a patch to change the number of decimals displayed in C_Order.DeliveryStatus column to 2 and moved to Design Defect.