webERP Forum
P&L Report - Account Link Missing Periods - SOLVED - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+--- Thread: P&L Report - Account Link Missing Periods - SOLVED (/showthread.php?tid=8128)



P&L Report - Account Link Missing Periods - SOLVED - VortecCPI - 03-10-2018

GLProfit_Loss.php

When clicking on an Account hyperlink it is only passing "Period" whereas in the Trial Balance it passes "FromPeriod" and "ToPeriod". This causes GLAccountInquiry.php to show only the end period instead of the entire range used for the P&L report.
Looks like a simple change for the fix.

Change this line:
PHP Code:
$ActEnquiryURL '<a href="' $RootPath '/GLAccountInquiry.php?Period=' $_POST['ToPeriod'] . '&amp;Account=' $myrow['accountcode'] . '&amp;Show=Yes">' $myrow['accountcode'] . '</a>'

To this:
PHP Code:
$ActEnquiryURL '<a href="' $RootPath '/GLAccountInquiry.php?FromPeriod=' $_POST['FromPeriod'] . '&amp;ToPeriod=' $_POST['ToPeriod'] . '&amp;Account=' $myrow['accountcode'] . '&amp;Show=Yes">' $myrow['accountcode'] . '</a>'

Hyperlink code borrowed fromGLTrialBalance.php.




RE: P&L Report - Account Link Missing Periods - SOLVED - VortecCPI - 03-10-2018

Same issue with AnalysisHorizontalIncome.php and GLTagProfit_Loss.php scripts.


RE: P&L Report - Account Link Missing Periods - SOLVED - TurboPT - 03-10-2018

Changed committed to all 3 files.