Commit Graph
71 Commits
Author SHA1 Message Date
Jacopo Cappellato ecfc14a6bc ${bsh: to ${groovy: scriptlet conversions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1613432 13f79535-47bb-0310-9956-ffa450edef68
2014-07-25 13:28:20 +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
Jacques Le Roux 2858c8e36f A patch from Pierre Smits "Accounting: PDF rendering in same browser window as of OFBiz in stead of new windows" (https://issues.apache.org/jira/browse/OFBIZ-4138) - OFBIZ-4138
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063686 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 11:56:46 +00:00
Jacopo Cappellato 407f17ad61 Reimplemented "inventory valuation" report (that was buggy) and its csv and pdf variants: the new version is now based on the new LIFO and FIFO costing methods and it is more efficient because it is based on a single view-entity (that I have extended in order to be used in the new report).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927014 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 11:28:17 +00:00
Ashish Vijaywargiya 12c66e4c2b Applied patch from jira issue OFBIZ-3332 - Implement Comparative Cash Flow Statement.
Thanks Sumit & Jacopo for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890272 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 11:02:40 +00:00
Ashish Vijaywargiya adad2d41a1 Applied patch from jira issue OFBIZ-3326 - Imporve Cash Flow Statement.
Currently Cash flow statement showing many sections like asset, liability ..... that are not required. Sections contains account payable, receivable and these should no part of cash flow.
So doing improvements in Cash Flow Statement by showing only Cash_Equivalent transactions.

New implementation contains three parts -

    * Opening Cash flow
          o It will contain sum of transactions form last closing period to current from date.
    * Period Cash Flow
          o It will contain sum of transaction during date range.
    * Closing Cash flow
          o It will contain sum of amounts of opening cash flows and closing cash flow.

There is a last section of totals, which will in same format of other reports. 

Also PDF and CSV feature added in this work.

Thanks Sumit & Jacopo for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889598 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 12:54:18 +00:00
Jacopo Cappellato aa321ed509 Enhanced the "Transaction Totals" financial reports with information about opening and closing balances; removed the "Monthly Trial Balance" report because the same (and improved) information is now available in the "Transaction Totals" report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888489 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 17:14:18 +00:00
Jacopo Cappellato 36e62e223b Renamed report month selection script; misc cleanups and enhancements to financial report screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888305 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 10:16:42 +00:00
Jacopo Cappellato c5e27c43d5 Misc layout enhancements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887874 13f79535-47bb-0310-9956-ffa450edef68
2009-12-07 10:07:29 +00:00
Jacopo Cappellato e55995a041 Implemented pdf and csv versions of the comparative balance sheet report; misc enhancements to the other financial reports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887870 13f79535-47bb-0310-9956-ffa450edef68
2009-12-07 09:50:36 +00:00
Anil Patel 267dc82186 Updated report to show GlAccountBalances by Cost Centers. Now following pattern established by Jacopo in other financial reports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887810 13f79535-47bb-0310-9956-ffa450edef68
2009-12-07 00:34:14 +00:00
Jacopo Cappellato b9788f830d Minor fix for the cash flow statement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887753 13f79535-47bb-0310-9956-ffa450edef68
2009-12-06 19:47:51 +00:00
Jacopo Cappellato 4b2e297c47 New and enhanced financial reports:
* new cash flow statement report from Sumit Pandit; this is a draft and a work in progress and it is only partially working at this stage
* reimplemented the comparative income statement
* misc enhancements to the other financial statements



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887752 13f79535-47bb-0310-9956-ffa450edef68
2009-12-06 19:45:59 +00:00
Jacopo Cappellato 78c461adfe Reimplemented and improved the "comparative balance sheet" report; improved layout of totals for income statement and balance sheet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887308 13f79535-47bb-0310-9956-ffa450edef68
2009-12-04 18:14:14 +00:00
Jacopo Cappellato 9307aef424 Sorted screen definitions: no functional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887200 13f79535-47bb-0310-9956-ffa450edef68
2009-12-04 14:06:48 +00:00
Jacopo Cappellato 2e80ccb60d Reimplemented Balance Sheet report (added subtotals, improved layout, especially the one of the PDF version, misc fixes); misc enhancements to the Income Statement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887179 13f79535-47bb-0310-9956-ffa450edef68
2009-12-04 12:53:27 +00:00
Jacopo Cappellato 057b4b248c Completely reimplemented Income Statement: improved data preparation code, added more subtotals, cleaned up code, improved layout (especially of PDF version); still some work needs to be done (labels, layout).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886815 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 15:27:10 +00:00
Jacopo Cappellato a3b09b1635 Set big viewSize for financial reports that should not paginate.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885733 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 11:07:31 +00:00
Jacopo Cappellato 33744fb2b3 Added default from/thru date values for income statement and cost center report; removed time period selection from cost center report because the report should not be based on this (still we have to improve the logic there).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885723 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 10:30:33 +00:00
Jacopo Cappellato 8705b6d883 Removed old screen and sorted menu items for financial reports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885716 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 10:16:18 +00:00
Jacopo Cappellato b07c8e750c Completely reimplemented the "Transaction Totals" financial report because the existing one had a series of issues:
1) the bottom list was missing the last record
2) the grand totals were not computed
3) a bad selection strategy was a problem with big record sets
4) the code in general was messed up
5) improved the layout of the PDF export
6) meaningful default from and thru dates are pre set
7) misc enhancements



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885712 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 10:07:09 +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
Anil Patel 52e7a3ad66 Removed extra container around labels. Apply h1 (or h2, h3) style to label instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@834376 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 07:38:24 +00:00
Bruno Busco 0094fb71e1 A patch from Akash Jain "Remove extra UnPosted Totals screenlet from Transactions Total Screen" (https://issues.apache.org/jira/browse/OFBIZ-3070) - OFBIZ-3070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828085 13f79535-47bb-0310-9956-ffa450edef68
2009-10-21 16:25:29 +00:00
Bruno Busco f4829840f2 Changed <container style="screenlet"> pattern to <screenlet...>.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826449 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 14:37:45 +00:00
Ashish Vijaywargiya 2b1371c8f6 Applied patch from jira issue OFBIZ-2997 - Inventory Valuation tab not shown selected on Inventory Valuation Screen.
Accounting >> Organization GL Settings >> Accounting >> Reports >> Inventory Valuation
Here Inventory Valuation tab should be shown selected.
https://demo.ofbiz.org/accounting/control/InventoryValuation?organizationPartyId=Company

Thanks Chirag for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821734 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 10:11:05 +00:00
Anil Patel 9090ef142a Remaining reports are now including sub-division gl entries when preparing financial reports. Patch from OFBIZ-2818. Thanks Awdesh, Eva for help.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808047 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 15:11:37 +00:00
Ashish Vijaywargiya 6731a9e748 Applied patch from jira issue OFBIZ-2835 - Under Accounting - Report tab create a new screen for showing comparative income statements.
Following point is covered in this patch:
– Added option and functionality for generating CSV and PDF on same screen. 

Thanks Awdesh & Sumit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804993 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 14:22:29 +00:00
Ashish Vijaywargiya 963c118e8d Applied patch from jira issue OFBIZ-2835 (Under Accounting - Report tab create a new screen for showing comparative income statements.)
Following points are covered in this patch:

1) Added New tab under Accounting -> Organization Gl Setting (Company) -> Reports with name Comparative Income Statment .
2) Used groovy for preparing list of compared income/expenses statements.
3) Added list form to show compared Income/expenses statements. 

Thanks Awdesh and Sumit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804869 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 06:19:34 +00:00
Anil Patel 164f4f082f Enhancements to Income Statement. Patch from OFBIZ-2827. Thanks Sumit for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803854 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 12:08:59 +00:00
Anil Patel 60a109302f Improvements in Cost Center report datafetching process and templates.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803415 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 08:38:21 +00:00
Anil Patel 8ab04fa7af Implement Inventory Valuation report. Patch from OFBIZ-2824. Thanks Surya, Sumit for implementation and Jacapo, Vince and Eva for review.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803363 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 04:54:50 +00:00
Anil Patel 37150752c6 Pdf export of Cost Center reports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802840 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 16:10:19 +00:00
Anil Patel bf8341f71f Accounting reports should display consolidated data from divisions. Patch from OFBIZ-2818. Thanks Rishi, Sumit and Awdesh for contribution. Also Thanks for Vince and Eva for help in designing tools.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802495 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 06:57:02 +00:00
Anil Patel 1ed141d988 First pass of Cost Center report Gl Report. Patch from OFBIZ-2811. Thanks Brajesh for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802295 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 03:47:50 +00:00
Vikas Mayur bc749c2367 Fixed Monthly Trial Balance PDF not showing anything. Applied patch from Brajesh Patel, part of OFBIZ-2809 (https://issues.apache.org/jira/browse/OFBIZ-2809)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@801949 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 11:06:09 +00:00
Anil Patel 0bf540f0c4 Code cleanup. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@796224 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 09:54:20 +00:00
Anil Patel 768cb44c4a GL Account Name (to the right of the "GL Account Id" field).
Total of Current Fiscal Period (to the right of the "Total Amount" field): this is computed considering all the transactions posted to the account from the beginning of the Fiscal Period to the thruDate set by the user.

Added to the search for at the top of the screen an optional "Month" drop down field: it contains all the 12 months of the year; if a value (e.g. January) in this drop down is selected and the from/thru date are left empty then the system will compute the from/thru dates for the report considering the beginning and end of the selected month.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@795910 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 16:47:31 +00:00
Anil Patel 1d3d85f1e0 Now form widget drop downs can handle non strings for key. Removing ftl in favor of form widget.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@795319 13f79535-47bb-0310-9956-ffa450edef68
2009-07-18 06:02:08 +00:00
Anil Patel 5a57761f99 Report for Monthly trial balance.
Accounting > Organization GL settings > Accounting > Reports > Monthly Trial Balance.
Brajesh Patel (Guru Dev), Thanks for working on it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@794667 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 13:30:45 +00:00
Anil Patel 923314928b New report "GL Account Trial Balance"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792105 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 11:50:42 +00:00
Vikas Mayur f8c67390d5 Trial Balance reports can now be exported to CSV and PDF format.
Applied patch from Brajesh Patel and Kirti Dhakad, part of OFBIZ-2675 (https://issues.apache.org/jira/browse/OFBIZ-2675)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@790219 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 15:32:28 +00:00
Vikas Mayur 03c73c86ce Balance Sheet reports can now be exported to CSV and PDF format.
Applied patch from Brajesh Patel, part of OFBIZ-2673 (https://issues.apache.org/jira/browse/OFBIZ-2673)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@790208 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 15:10:12 +00:00
Anil Patel 8c4adbb869 removed screenlet wrapper around action buttons.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@790169 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 13:58:37 +00:00
Anil Patel a78204dca9 removed screenlet wrapper around action buttons.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@790167 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 13:55:40 +00:00
Vikas Mayur 55b3029be5 Income Statement report can now be exported to CSV and PDF format.
Applied patch from Brajesh Patel, part of OFBIZ-2676 (https://issues.apache.org/jira/browse/OFBIZ-2676)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@790136 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 12:20:45 +00:00
Vikas Mayur 5d9c79f5c6 Transaction Totals report can now be exported to PDF and CSV format.
Applied patch from Brajesh Patel, OFBIZ-2677 (https://issues.apache.org/jira/browse/OFBIZ-2677)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@790120 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 11:16:11 +00:00
Ashish Vijaywargiya baed74e0db Applied patch from jira issue OFBIZ-2678 (Currency not shown on the Transaction Totals search result.)
Thanks Brajesh for your contribution on this.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789784 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 15:05:54 +00:00
Jacopo Cappellato 4c0a8c2320 Misc enhancements to the "Transaction Totals" report; thanks to Sumit for the patch. OFBIZ-2611
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@785537 13f79535-47bb-0310-9956-ffa450edef68
2009-06-17 10:17:57 +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