Skip to content

Commit

Permalink
PaulB link updates to GLAccountInquiry
Browse files Browse the repository at this point in the history
Update links to include FromPeriod and ToPeriod need by GLAccountInquiry.
  • Loading branch information
TurboPT committed Mar 10, 2018
1 parent 60d85e0 commit ee91eb1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AnalysisHorizontalIncome.php
Expand Up @@ -373,7 +373,7 @@ function RelativeChange($selected_period, $previous_period) {
if($_POST['Detail']=='Detailed') {
if(isset($_POST['ShowZeroBalances']) OR (!isset($_POST['ShowZeroBalances']) AND ($AccountTotal <> 0 OR $AccountTotalLY <> 0))) {
echo '<tr class="striped_row">
<td class="text"><a href="', $RootPath, '/GLAccountInquiry.php?Period=', $_POST['ToPeriod'], '&amp;Account=', $myrow['accountcode'], '&amp;Show=Yes">', $myrow['accountcode'], '</a></td>';
<td class="text"><a href="', $RootPath, '/GLAccountInquiry.php?FromPeriod=', urlencode($_POST['FromPeriod']), '&amp;ToPeriod=', urlencode($_POST['ToPeriod']), '&amp;Account=', urlencode($myrow['accountcode']), '&amp;Show=Yes">', $myrow['accountcode'], '</a></td>';
// --->
if($Section ==1) {
echo ' <td class="text">', htmlspecialchars($myrow['accountname'],ENT_QUOTES,'UTF-8',false), '</td>
Expand Down
2 changes: 1 addition & 1 deletion GLProfit_Loss.php
Expand Up @@ -984,7 +984,7 @@
if ($_POST['Detail']=='Detailed'){

if (isset($_POST['ShowZeroBalances']) OR (!isset($_POST['ShowZeroBalances']) AND ($AccountPeriodActual <> 0 OR $AccountPeriodBudget <> 0 OR $AccountPeriodLY <> 0))){
$ActEnquiryURL = '<a href="' . $RootPath . '/GLAccountInquiry.php?Period=' . $_POST['ToPeriod'] . '&amp;Account=' . $myrow['accountcode'] . '&amp;Show=Yes">' . $myrow['accountcode'] . '</a>';
$ActEnquiryURL = '<a href="' . $RootPath . '/GLAccountInquiry.php?FromPeriod=' . urlencode($_POST['FromPeriod']) . '&amp;ToPeriod=' . urlencode($_POST['ToPeriod']) . '&amp;Account=' . urlencode($myrow['accountcode']) . '&amp;Show=Yes">' . $myrow['accountcode'] . '</a>';
if ($Section ==1){
printf('<tr class="striped_row">
<td>%s</td>
Expand Down
2 changes: 1 addition & 1 deletion GLTagProfit_Loss.php
Expand Up @@ -751,7 +751,7 @@

if ($_POST['Detail']==_('Detailed')){

$ActEnquiryURL = '<a href="' . $RootPath . '/GLAccountInquiry.php?Period=' . $_POST['ToPeriod'] . '&amp;Account=' . $myrow['account'] . '&amp;Show=Yes">' . $myrow['account'] . '</a>';
$ActEnquiryURL = '<a href="' . $RootPath . '/GLAccountInquiry.php?FromPeriod=' . urlencode($_POST['FromPeriod']) . '&amp;ToPeriod=' . urlencode($_POST['ToPeriod']) . '&amp;Account=' . urlencode($myrow['account']) . '&amp;Show=Yes">' . $myrow['account'] . '</a>';

if ($Section ==4){
printf('<tr class="striped_row">
Expand Down

0 comments on commit ee91eb1

Please sign in to comment.