Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032711Openbravo ERP09. Financial managementpublic2016-04-19 12:532017-09-18 17:13
JONHM 
CSousa 
normalminoralways
closedno change required 
5
 
 
aferraz
Core
No
0032711: SL_Depreciate callout is not working having AssetGroup with no default values
SL_Depreciate callout is not working when field Depreciate field is not checked in Asset Group and no values are set in not mandatory columns, for example "Depreciation Type" and "Calculate Type"
1) Set columns "Depreciation Type" and "Calculate Type" as NOT MANDATORY in "FinancialMgmtAssetGroup" table
2) Create new "Asset Group" having Depreciate field unchecked
3) Create new "Asset" with this new "Asset Category"
4) Check Depreciate checkbox, not able to display the list until go to another tab and come back.
Create condition in "SL_Depreciate" callout to check the values only if the field isDepreciate() is set:

if (assetGroup.isDepreciate()) {
          info.addResult("inpisdepreciated",assetGroup.isDepreciate());
          info.addResult("inpamortizationtype",assetGroup.getDepreciationType());
    ...
}
No tags attached.
Issue History
2016-04-19 12:53JONHMNew Issue
2016-04-19 12:53JONHMAssigned To => Triage Finance
2016-04-19 12:53JONHMModules => Core
2016-04-19 12:53JONHMTriggers an Emergency Pack => No
2017-04-20 13:02CSousaNote Added: 0096086
2017-05-08 13:19CSousaStatusnew => scheduled
2017-05-08 13:22CSousaAssigned ToTriage Finance => CSousa
2017-09-18 17:13aferrazReview Assigned To => aferraz
2017-09-18 17:13aferrazNote Added: 0099129
2017-09-18 17:13aferrazStatusscheduled => closed
2017-09-18 17:13aferrazResolutionopen => no change required

Notes
(0096086)
CSousa   
2017-04-20 13:02   
1) Set columns "Depreciation Type" and "Calculate Type" as NOT MANDATORY in "FinancialMgmtAssetGroup" table
2) Create new "Asset Group" having Depreciate field unchecked
3) Create new "Asset" with this new "Asset Category"
4) Check Depreciate checkbox, able to display the list.
(0099129)
aferraz   
2017-09-18 17:13   
Callout works properly if we don't change the definition of FinancialMgmtAssetGroup table.