Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036825Openbravo ERP04. Warehouse managementpublic2017-09-11 15:212017-09-21 16:50
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR17Q4 
aferraz
Core
No
0036825: Warehouse field of Inventory Amount Update Lines is not shown after saving the record although it has a value
Warehouse field of Inventory Amount Update Lines is not shown after saving the record although it has a value

The problem is that iswarehousedimension auxiliary input has a value of 'N' and the callout SL_InvAmtUpd_ProductRefDate is not launched as there is not any change on product or reference date fields
As group admin role:
   Create a new costing rule, set Warehouse Dimension to Y
   Validate it
   Create a new Inventory Amount Update
   Add a line to it
   Select a warehouse, add a product and a cost to it
   Save it
   Check the Warehouse field disappears
Remove iswarehousedimension calculation in SL_InvAmtUpd_ProductRefDate callout.
Move this logic to warehouse field display logic.
No tags attached.
Issue History
2017-09-11 15:21ngarciaNew Issue
2017-09-11 15:21ngarciaAssigned To => Triage Finance
2017-09-11 15:21ngarciaModules => Core
2017-09-11 15:21ngarciaResolution time => 1504303200
2017-09-11 15:21ngarciaTriggers an Emergency Pack => No
2017-09-11 15:21ngarciaIssue Monitored: networkb
2017-09-11 16:39ngarciaResolution time1504303200 => 1506895200
2017-09-11 16:49aferrazAssigned ToTriage Finance => AtulOpenbravo
2017-09-11 16:51aferrazProposed Solution updated
2017-09-14 20:06AtulOpenbravoStatusnew => scheduled
2017-09-14 23:18AtulOpenbravoNote Added: 0099054
2017-09-18 12:02hgbotCheckin
2017-09-18 12:02hgbotNote Added: 0099099
2017-09-18 12:02hgbotStatusscheduled => resolved
2017-09-18 12:02hgbotResolutionopen => fixed
2017-09-18 12:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6db8cd340ee21fe8a4a84acb146999d14b2b8641 [^]
2017-09-18 12:02hgbotCheckin
2017-09-18 12:02hgbotNote Added: 0099100
2017-09-18 12:05aferrazReview Assigned To => aferraz
2017-09-18 12:05aferrazNote Added: 0099102
2017-09-18 12:05aferrazStatusresolved => closed
2017-09-18 12:05aferrazFixed in Version => 3.0PR17Q4
2017-09-21 16:50hudsonbotCheckin
2017-09-21 16:50hudsonbotNote Added: 0099403
2017-09-21 16:50hudsonbotCheckin
2017-09-21 16:50hudsonbotNote Added: 0099404

Notes
(0099054)
AtulOpenbravo   
2017-09-14 23:18   
Test Plan

- Login as group admin role.
- In Costing rule realize that for F&B US Inc Org, Warehouse dimension is set as No.
- Create a new Inventory Amount Update.
- Add a line to it.
- Check the Warehouse field is not displayed.
- Remove Inventory Amount Update record created.

- Create a new costing rule for F&B US Inc organization, set Warehouse Dimension to Y and validate it.
- Create a new Inventory Amount Update in F&B US Inc Org.
- Add a line to it.
- Check the Warehouse field is displayed.
- Select a warehouse, add a product and a cost to it and save it.
- Check the Warehouse field is still displayed.
(0099099)
hgbot   
2017-09-18 12:02   
Repository: erp/devel/pi
Changeset: 6db8cd340ee21fe8a4a84acb146999d14b2b8641
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Sep 15 04:46:11 2017 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/6db8cd340ee21fe8a4a84acb146999d14b2b8641 [^]

Fixes issue 36825: Warehouse field of Inventory Amount Update Lines not shown

Warehouse field of Inventory Amount Update Lines is not shown after
saving the record although it has a value

Set SQL based value for auxiliar input iswarehousedimension in inventory amount update
line tab. It is calculated on organization and reference date in the line tab.

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
---
(0099100)
hgbot   
2017-09-18 12:02   
Repository: erp/devel/pi
Changeset: cebdb602a9f11f904a99d38327f3074ed5bf14e8
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Sep 18 11:40:40 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cebdb602a9f11f904a99d38327f3074ed5bf14e8 [^]

Related to issue 36825: Code review improvements

Use min to retrieve only one record.
Remove coalesce as Warehouse_Dimension is a not null column.
Rename alias with a shorter name.
Remove IsActive condition.
Remove exists condition and change datefrom and dateto conditions to retrieve always the current costing rule.
SL_InvAmtUpd_ProductRefDate callout will remove warehouse value in case auxiliary input retrieves false.

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
M src/org/openbravo/erpCommon/ad_callouts/SL_InvAmtUpd_ProductRefDate.java
---
(0099102)
aferraz   
2017-09-18 12:05   
Code review + Testing OK
(0099403)
hudsonbot   
2017-09-21 16:50   
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/9750b78d3e5c [^]
Maturity status: Test
(0099404)
hudsonbot   
2017-09-21 16:50   
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/9750b78d3e5c [^]
Maturity status: Test