Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General Ledger Account Inquiry - No Show - SOLVED
03-16-2018, 11:32 AM, (This post was last modified: 03-16-2018, 11:16 PM by VortecCPI.)
#1
General Ledger Account Inquiry - No Show - SOLVED
GLAccountInquiry.php

When passing the Parameter Show=Yes the script does not show data. The user must click the "Show Account Transactions" button even though all the data has been passed to the script via Parameters.

I made it work by adding this to the top of the script:

PHP Code:
if(isset($_GET['Show'])) {
    
$_POST['Show'] = $_GET['Show'];


And by changing this:

PHP Code:
} elseif(isset($_GET['FromPeriod'])) { //If it was called from the Trial Balance/P&L or Balance sheet
    
$FirstPeriodSelected $_GET['FromPeriod'];
    
$LastPeriodSelected $_GET['ToPeriod']; 

To this:

PHP Code:
} elseif(isset($_GET['FromPeriod'])) { //If it was called from the Trial Balance/P&L or Balance sheet
    
$FirstPeriodSelected $_GET['FromPeriod'];
    
$LastPeriodSelected $_GET['ToPeriod'];
    
$SelectedPeriod[0] = $_GET['FromPeriod'];
    
$SelectedPeriod[1] = $_GET['ToPeriod']; 

Can somebody please check my work?

Thank you!
https://www.linkedin.com/in/eclipsepaulbecker
Reply


Messages In This Thread
General Ledger Account Inquiry - No Show - SOLVED - by VortecCPI - 03-16-2018, 11:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)