Topic: Problems running some reports

I downloaded the last version 2 hours ago
https://github.com/apmuthu/FA24extensions/tree/master/Extensions

-------------------------------------------------- --------------

When you enter the Annual Expense Breakdown - Detailed and Annual Balance Breakdown - Detailed report
I have this error: http://prntscr.com/lric63
-------------------------------------------------- --------------

When entering the Bank Statement w / Reconcile and Cash Flow Statement
I have this error: http://prntscr.com/lriduq + http://prntscr.com/lrie5h

-------------------------------------------------- --------------
When entering the Customer Ledger report
This error shows me http://prntscr.com/lrifud

Post's attachments

FA24Extns_Errors.zip 103.2 kb, 1 downloads since 2018-12-07 

You don't have the permssions to download the attachments of this post.

Re: Problems running some reports

These are strict variable scoping issues with PHP 7.2+. Just declare the said variables as 0 just before the structure ("if", "while", etc.,) in which it is used for the first time. In the case of your first issue, you will need to insert the following just before the "if" statement at line 110 in rep_statement_reconcile.php:

$total_debit = $total_credit = 0;

Re: Problems running some reports

apmuthu wrote:

These are strict variable scoping issues with PHP 7.2+. Just declare the said variables as 0 just before the structure ("if", "while", etc.,) in which it is used for the first time. In the case of your first issue, you will need to insert the following just before the "if" statement at line 110 in rep_statement_reconcile.php:

$total_debit = $total_credit = 0;

Excellent
you are amazing

Problem solved Bank Statement w / Reconcile

It remains a problem
--------------------
When you enter the Annual Expense Breakdown - Detailed and Annual Balance Breakdown - Detailed report
I have this error: http://prntscr.com/lric63
---------------------

Re: Problems running some reports

This parameter 4 is available only when the company preferences is set to use 2 dimensions and the report request form has the second dimension chosen. If you still get this error, then you should get a similar error when using report rep706.php too - Balance Sheet - with similar form request parameters chosen. The same applies to the Cash Flow Statement as well.

Customer Ledger Report: The constants ST_BULKDEPOSIT and ST_CASHDEPOSIT are not part of standard FrontAccounting and is what @braathwaate has in his fork. You may remove those entries in the said line and it should work.