Topic: Bug in rep108
Now since Transactions to customers can be recorded through Journal Entry also and It can be either Debit Or Credit to customer.
The following code is not sufficient to handle the transactions through Journal Entry
if ($myrow2['type'] == ST_SALESINVOICE || $myrow2['type'] == ST_BANKPAYMENT)
$rep->TextCol(4, 5, $DisplayTotal, -2);
else
$rep->TextCol(5, 6, $DisplayTotal, -2);
Secondly one more thing is that If we Debit the Customer through JE then it appears in the ov_amount column in debtor_trans table as -ve value while if we credit the customer through JE the value appears as +ve value.
Except from the JE all values from any other transaction whether charges or credits appear as +ve value.
rep101 is also affected through JE Transactions. Debit is appearing on Credit Side and Credit is appearing on Debit Side.