X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Frep709.php;h=3fc4c6375673372cf19974563a047c1fb5625ee0;hb=6f8094c63f914fce9fcfd02780c452d712a2dba3;hp=4baf0105841b9e4e4b91416a7c8446ab4258f03e;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git diff --git a/reporting/rep709.php b/reporting/rep709.php index 4baf0105..3fc4c637 100644 --- a/reporting/rep709.php +++ b/reporting/rep709.php @@ -143,7 +143,11 @@ function print_tax_report() $rep->Header(); } } - if (in_array($trans['trans_type'], array(ST_BANKDEPOSIT,ST_SALESINVOICE,ST_CUSTCREDIT))) { + if ($trans['trans_type']==ST_JOURNAL && $trans['amount']<0) { + $taxes[$trans['tax_type_id']]['taxout'] -= $trans['amount']; + $taxes[$trans['tax_type_id']]['out'] -= $trans['net_amount']; + } + elseif (in_array($trans['trans_type'], array(ST_BANKDEPOSIT,ST_SALESINVOICE,ST_CUSTCREDIT))) { $taxes[$trans['tax_type_id']]['taxout'] += $trans['amount']; $taxes[$trans['tax_type_id']]['out'] += $trans['net_amount']; } else {