I thought new logic that apply currency precision for display when Display type of "Amount" or"Costs+Preices".

Description

Hi,all.
My name is Hideaki Hagiwara in Japan.

I thought new logic that apply currency precision for display when Display type of "Amount" or"Costs+Prices".

(Fundamental Rule) Apply "Currency Precision" for display, if Format Pattern is Null.

->In spite of Display type is "Amount" or "Costs+Prices", Display currency precision of iDempiere apply the decimal point second place. I think this specification need to improve for currency that is not the decimal point second place.
->I think best that if "Format Pattern" of "Amount" and Costs+Prices" are null, apply "Currency Precision" for display.
*If "Format Pattern" is not null, Apply "Format Pattern" for display basically.
->"Web-UI" and "Swing-UI" refer to "Format Pattern" at table of AD_Column. If "Format Pattern" at table of AD_Column is null and "Display Type" is "Amount" or "Costs+Prices", apply "Currency Precision" for Display.
->"Reports" refer to "Format Pattern" at table of AD_PrintFormatItem at first. If "Format Pattern" at table of AD_PrintFormatItem is null, "Reports" refer to "Format Pattern" at table of AD_Column at second. If "Format Pattern" at table of AD_Column is null, apply "Currency Precision" for Display thirdly.

I think that this rule keeps consistency to display of currency in iDempiere.

See attachment file.
And see "Pull Request" at Bitbucket.

thank you for reading.

Environment

None

Assignee

Unassigned

Reporter

萩原秀明

Tested By

None

Components

Affects versions

Priority

Major
Configure