GL Receipt - Wrong SysType? - 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: GL Receipt - Wrong SysType? (/showthread.php?tid=8087) |
GL Receipt - Wrong SysType? - VortecCPI - 02-09-2018 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. RE: GL Receipt - Wrong SysType? - TimSchofield - 02-09-2018 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 RE: GL Receipt - Wrong SysType? - VortecCPI - 02-09-2018 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. RE: GL Receipt - Wrong SysType? - TimSchofield - 02-09-2018 That is what should happen. Sounds like a bug i need to check the code RE: GL Receipt - Wrong SysType? - VortecCPI - 02-09-2018 I am thinking we need something like this: PHP Code: if ($_POST['GLEntry']==1) { //so its a GL receipt 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... |