Commit Graph
11 Commits
Author SHA1 Message Date
Jacopo Cappellato 3874109539 A pretty important refactoring of some GL data and code that fixes a series of long standing gaps, errors and design issues affecting account balances and the closure of fiscal periods (some of them introduced by me when I initially wrote the first version of these business logics; at that time I didn't have a clear and deep enough understanding of these accounting rules sigh…).
This new version is cleaner (less code, less redundancy of information), correct and it also resolves some pretty relevant issues (including some db deadlock errors) affecting performance in instances with medium/high number of GL postings.
Here is a list of changes introduced in this commit:
* removed the postedBalance field from GlAccount and GlAccountOrganization: this was a wrong design; the field in GlAccount was not used by the applications; the field in GlAccountOrganization was used but not consistently
* added openingBalance field to GlAccountHistory: now this entity has full information about an account in a financial period after the period closed (opening and ending balance, posted debits and credits); now the endingBalance is computed correctly both for Debits and Credits accounts
* updated demo data for the data model changes mentioned above
* the business logic to compute the account balances is now implemented in a service (computeGlAccountBalanceForTimePeriod) and reused consistently
* removed several FIXME/TODO comments now that the new code addresses the related gaps and issues
* removed some old, incorrect or no more used artifacts: getGlAcctgOrgWithPostedBalanceSplit (service), getNetBalance (utily methods)
* refactored the TrialBalanceReport and GlAccountTrialBalance reports and related pdf versions: the new versions have cleaner code and show the correct balances both for debits and credits
* fixed a series of Groovy compilation issues due to missing imports


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1530273 13f79535-47bb-0310-9956-ffa450edef68
2013-10-08 13:49:19 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Jacopo Cappellato 4850e8e5de Demo data for a depreciation transaction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898754 13f79535-47bb-0310-9956-ffa450edef68
2010-01-13 13:55:29 +00:00
Jacopo Cappellato 40757f357b Pretty big enhancements for the accounting processes and demo data:
1) completely refactored the trial balance report: now it is based on GLAccountHistory and no more on GlAccountOrganization records; the main advantage is that now it it possible to run the report per different financial time periods
2) big enhancements to the demo data: data was incomplete or wrong and this was affecting reports and the financial time period closing process
3) several fixes for the financial time period process
More fixes and enhancements will come, but now the closing process works fine and the financial reports make sense.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885256 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 18:32:31 +00:00
Jacopo Cappellato 3a97100842 Fix for the initial value of inventory gl account.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883468 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 19:16:22 +00:00
Jacopo Cappellato 3279f9361e Small fixes for comments and formatting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883449 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 18:35:26 +00:00
Jacopo Cappellato 287200a9ca A bunch of enhancements to demo data related to general ledger:
1) the value of inventory in gl now matches the value of inventory items
2) the purchase cost of fixed assets also matches the value in gl
3) fixed several demo accouting transactions with better accounts

Now the Balance Sheet looks in much better shape (but there is still a lot to do).



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883445 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 18:18:01 +00:00
Anil Patel 1c5741d91e Moved demo Payment and Invoice Acctg transactions closer to Demo Payments and Invoices in DemoPaymentsInvoices.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@825364 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 01:09:07 +00:00
Ashish Vijaywargiya 5e6354fc2e Applied patch from jira issue OFBIZ-2711 - Junit test case for Accounting - Void Payment and Cancel Invoice services.
Thanks Surya, Awdesh & Sumit for your contribution on this.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792185 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 15:25:34 +00:00
Ashish Vijaywargiya b747284938 Fixed Typo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788936 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27 07:56:29 +00:00
Ashish Vijaywargiya 38937ac543 Applied patch from jira issue OFBIZ-2611(Add "Posted and UnPosted" section to the "Transaction Totals" report.)
Added demo data so this report can be tested.

Thanks Sumit for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788928 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27 06:42:47 +00:00