X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep709.php;h=bd807a6973fcd7b8ff915da694587a72a09b0925;hb=a0e36794a39ed024175b216413ee80cbeced2946;hp=36984ff290ef43903e3c1e963ec24f59b0e84c37;hpb=14e0807fc87e0096af43f414f98764a6f8c8a4a8;p=fa-stable.git diff --git a/reporting/rep709.php b/reporting/rep709.php index 36984ff2..bd807a69 100644 --- a/reporting/rep709.php +++ b/reporting/rep709.php @@ -133,7 +133,8 @@ function print_tax_report() while ($trans=db_fetch($transactions)) { - if (in_array($trans['trans_type'], array(ST_CUSTCREDIT,ST_SUPPINVOICE,ST_JOURNAL))) { + if (in_array($trans['trans_type'], array(ST_CUSTCREDIT,ST_SUPPINVOICE)) || + ($trans['trans_type'] == ST_JOURNAL && $trans['reg_type'] == TR_INPUT)) { $trans['net_amount'] *= -1; $trans['amount'] *= -1; }