Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GL Receipt - Wrong SysType?
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


Messages In This Thread
GL Receipt - Wrong SysType? - by VortecCPI - 02-09-2018, 06:16 AM
RE: GL Receipt - Wrong SysType? - by falkoner - 02-09-2018, 06:31 AM
RE: GL Receipt - Wrong SysType? - by VortecCPI - 02-09-2018, 06:42 AM
RE: GL Receipt - Wrong SysType? - by falkoner - 02-09-2018, 07:03 AM
RE: GL Receipt - Wrong SysType? - by VortecCPI - 02-09-2018, 07:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)