Following from discussion here:
https://sourceforge.net/projects/adempiere/forums/forum/611161/topic/3415006
There is a need for an amount type that outputs the Accounted Amount (DR-CR) Balance without changing the sign. (Currently the balance type amounts always switch sign based on the account type.)
Conversely, the quantity amount types always print the accounted quantity regardless of account type, so there needs to be a new amount type that prints the quantity according to the expected sign.
The attached patch does the following:
1. Per Carlos' suggestion, split the AmountType column into two: PAAmountType and PAPeriodType. (Retain the old column for reference.)
2. Add PAAmountType list: CreditOnly, Debit Only, Balance (expected sign), Balance (accounted sign), Quantity (expected sign), Quantity (accounted sign).
3. Add PAPeriodType list: Total, Year, Period, Natural
4. Modify the report column and line code to use the new columns.
Please review and comment.
Paul Bowden
patch against trunk
I forgot to add the sql to migrate existing data in the patch migration scripts:
update pa_reportline set paamounttype = substr(amounttype, 1,1), paperiodtype = substr(amounttype,2,1);
update pa_reportcolumn set paamounttype = substr(amounttype, 1,1), paperiodtype = substr(amounttype,2,1);
Does anyone care to comment on this -- or can I just take silence as consent? ;-)
Paul
Hello Paul,
We have applied your changes in the test server of our biggest user and so far the outcome has been very good, they were able to get their trial balance as expected with the net sum to zero, wich is very good for the auditors to track major discrepancies in the general ledger.
We'd be happy to have these changes applied in trunk, it is an excellent contribution.
Regards,
Enrique Ruibal
Hi Paul,
your proposal looks good to me.
Unfortunately had no time to test, but based on Enrique comment i vote positivly.
[+1]
Regards,
Trifon
I've committed this to trunk (more on the lack of any objection, than the underwhelming number of positive votes).
Revision: 11352
http://adempiere.svn.sourceforge.net/adempiere/?rev=11352&view=rev
Author: phib
Date: 2010-01-27 00:29:04 +0000 (Wed, 27 Jan 2010)
Hi Paul,
Peer review for FR [2871676] New Fin Report Amount types
Applying rules I5 -> indirectly I9
http://www.adempiere.com/index.php/Release_Commit_Rules
with revision 11371
http://adempiere.svn.sourceforge.net/adempiere/?rev=11371&view=rev
Regards,
Carlos Ruiz
Arrived to /release with revision 11372
Regards,
Carlos Ruiz
Thanks for reviewing this Carlos.
Paul Bowden
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 15 days (the time period specified by
the administrator of this Tracker).