Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GL Receipt - Wrong SysType?
02-09-2018, 06:16 AM, (This post was last modified: 02-09-2018, 06:24 AM by VortecCPI.)
#1
GL Receipt - Wrong SysType?
I received monies into a bank account using CustomerReceipt.php and I see in the SysTypes table it incremented Receipt (Type 12). Should it not be incrementing Receipt - GL (Type 2) instead?

The reason I ask is because when using Payments.php it increments Payment - GL (Type 1) so I would expect to see increment on Receipt - GL (Type 2) on the receipt side.
Other scripts that mark receipts as Type 2 are ImportBankTrans.php and PcAuthorizeCash.php.
https://www.linkedin.com/in/eclipsepaulbecker
Reply
02-09-2018, 06:31 AM,
#2
RE: GL Receipt - Wrong SysType?
Did you enter it as a receipt from a customer or against a GL zccoint? Receipts from customers are type 12 against GL account is type 2. That's the theory is that what you see?

Tim
Reply
02-09-2018, 06:42 AM, (This post was last modified: 02-09-2018, 06:44 AM by VortecCPI.)
#3
RE: GL Receipt - Wrong SysType?
I entered it as cash into the Bank Account against GL COA 2800. It was a Shareholder Loan.
So yes... I expected it to be of Type 2, not Type 12.
Looking at the code I see only 12 hard-coded into the SQL queries.
I would really like to see a segregation between receipts from customers and receipts via GL entries.
https://www.linkedin.com/in/eclipsepaulbecker
Reply
02-09-2018, 07:03 AM,
#4
RE: GL Receipt - Wrong SysType?
That is what should happen. Sounds like a bug i need to check the code
Reply
02-09-2018, 07:13 AM, (This post was last modified: 02-09-2018, 07:42 AM by VortecCPI.)
#5
RE: GL Receipt - Wrong SysType?
I am thinking we need something like this:

PHP Code:
    if ($_POST['GLEntry']==1) { //so its a GL receipt
            
$TransType 2;
            
$_SESSION['ReceiptBatch' $identifier]->BatchNo GetNextTransNo(2$db);
    } else {
            
$TransType 12;
            
$_SESSION['ReceiptBatch' $identifier]->BatchNo GetNextTransNo(12$db);
    } 

Change hard-coded values of 12 to $TransType.

The above seems to work unless you mix customer receipts with GL receipts but that would be bad practice.

Attached is my hack for your review...


Attached Files
.php   CustomerReceiptGSI.php (Size: 55.76 KB / Downloads: 0)
https://www.linkedin.com/in/eclipsepaulbecker
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)