X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep709.php;fp=reporting%2Frep709.php;h=21646d78d0e77b92cb6c7f9421238c9a5e6a2314;hb=57ca25ad728e9a483bb9478e192f5e5f8804fc4c;hp=54b1a9007ef824d014de5ddab25e935d52201f15;hpb=29897258f8daa00a8ce1f8d9a113f28a58c2e4c2;p=fa-stable.git diff --git a/reporting/rep709.php b/reporting/rep709.php index 54b1a900..21646d78 100644 --- a/reporting/rep709.php +++ b/reporting/rep709.php @@ -152,8 +152,12 @@ function print_tax_report() } } 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']; + $taxes[$trans['tax_type_id']]['taxin'] += $trans['amount']; + $taxes[$trans['tax_type_id']]['in'] += $trans['net_amount']; + } + elseif ($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'];