Commit Graph
24 Commits
Author SHA1 Message Date
Jacopo Cappellato 0d5bab4c73 Fixed wrong classifications (Liability<-->Asset) for the unapplied payments accounts demo data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1657507 13f79535-47bb-0310-9956-ffa450edef68
2015-02-05 10:09:21 +00:00
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
Anil Patel 295cfd972e Fix issue with classification of returns. Returns are of debit type transactions. Added contra revenue class and applied the fix to demo CoA. Financial reports will have to be fixed up. Will do that soon. Thanks Jacopo for review and help.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1028053 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 17:59:26 +00:00
Jacopo Cappellato bfeb62aada Improved and completed implementation of automatic gl postings for payment and applications and added new demo accounts and mappings to show the new feature available:
it is now possible to generate separate gl transactions for payments and for payment applications.
Based on initial suggestions from Scott Gray and Anil Patel.

Minor fixes:
- removed a duplicated gl account type (PREPAID_EXPENSES)
- fixed a typo in a description of an account of the demo chart of accounts



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892585 13f79535-47bb-0310-9956-ffa450edef68
2009-12-20 11:44:03 +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
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux a5042291f7 1st part of an effort to remove trailing spaces
" +/> => "/>
Should be easier when dealing with Eclipse S/R regexp

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762648 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 08:27:15 +00:00
David E. Jones 384d187e29 Added FinAccountTypeGlAccount entity, postToGlAccountId field on the FinAccount entity, and demo data for these for the Company party; note that this required moving the Company Party data to the accounting component from the ecommerce component, so the DemoMerchant.xml file is gone and the data from there is now in the DemoOrganizationData.xml file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@522187 13f79535-47bb-0310-9956-ffa450edef68
2007-03-25 10:15:22 +00:00
Si Chen e020e8a090 new gl account for paypal receivables
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@504769 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 02:48:44 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Si Chen a1ab59c439 fix a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@497558 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 20:14:39 +00:00
Si Chen 18b7b23a9d Some gl accounts related to payroll
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@496906 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 00:51:34 +00:00
Si Chen ed3be9907d better classification of some customer credit, deposit, and prepaid expenses accounts
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@489499 13f79535-47bb-0310-9956-ffa450edef68
2006-12-21 23:29:15 +00:00
Si Chen cf55573682 Fix typo for commissions due gl account
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@487384 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 23:14:30 +00:00
Si Chen 3762db260c New GL accounts and account types for supporting sales commissions on the general ledger
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@487381 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 23:00:17 +00:00
Si Chen 115056c8b0 seed and demo data to help with assessing interest charges on invoices
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@481473 13f79535-47bb-0310-9956-ffa450edef68
2006-12-02 01:08:15 +00:00
Si Chen 50e75d656a new gl account and account type to support undeposited receipts or funds classification
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@475907 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 20:11:31 +00:00
Si Chen 0b002528fd reclassified customer returns as revenue accounts instead of cogs
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@472580 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 18:41:28 +00:00
Si Chen c490f5d876 reverse earlier commit for uninvoiced item receipts. it should be a current liability
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@472577 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 18:29:54 +00:00
Si Chen 125faf5c60 new gl account types for f/x gain loss and for writeoffs. also fixed a bug in classifying uninvoiced item receipts which might cause it to show up on cash flow statements
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@472343 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 00:05:16 +00:00
Si Chen a922f761db new inventory asset gl account class for use in sales and inventory analysis
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@468443 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 16:25:55 +00:00
Si Chen ce1aa3e14c Fixed classification of freight in gl accounts in demo general chart of accounts
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@467185 13f79535-47bb-0310-9956-ffa450edef68
2006-10-24 00:35:52 +00:00
Jacopo Cappellato 420a909049 Conversion from MIT to ASL2.0 for the files of the accounting component.
Many thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422403 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 08:10:15 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00