Topic: Decimals in values on Chart of Accounts

I'm trying to display decimals when I show values in Chart of Accounts reports.

Editing 701.php (the appropriate report file, I believe), I set $dec to 1 in the appropriate place, but now I find that while two decimal places are (mostly) shown, the values are rounded.

Where can I edit the rounding?

Re: Decimals in values on Chart of Accounts

This is strange. If you change $dec in line 105 in rep701.php  to 1, all amounts are shown with 1 decimal. Of course rounded. Setting it to 2 shows correct too.
I cannot reproduce your error.

This is only meant to be a snapshot of the balances, just like in balance sheet. Therefore no decimals.

/Joe

Re: Decimals in values on Chart of Accounts

Hi Joe,

You've answered my question that I didn't ask well - the $dec is not a boolean 1 or 0, it's actually how many decimals to show.

Thanks1

Re: Decimals in values on Chart of Accounts

You are welcome kharding smile

Joe

5 (edited by apmuthu 11/11/2012 03:38:37 pm)

Re: Decimals in values on Chart of Accounts

A comment in the code may be useful if it is one off.

All Booleans may have to be changed to true/false otherwise, to avoid confusion.

Maybe an option to show decimals in the form requesting the report may be useful, the number of decimals being taken from the preferences.

Re: Decimals in values on Chart of Accounts

I see no reason to change this. If uou want to see the decimals, then you can select a Balance Sheet.

Joe