0001497: Tax for journal entry the other way round
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 6 Apr 2012 06:30:20 +0000 (08:30 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 6 Apr 2012 06:30:20 +0000 (08:30 +0200)
reporting/rep709.php

index dbe25e5bd59e82f1472f06b0c566ee4e9f055baf..54b1a9007ef824d014de5ddab25e935d52201f15 100644 (file)
@@ -122,7 +122,7 @@ function print_tax_report()
 
        while ($trans=db_fetch($transactions))
        {
-               if (in_array($trans['trans_type'], array(ST_CUSTCREDIT,ST_SUPPINVOICE))) {
+               if (in_array($trans['trans_type'], array(ST_CUSTCREDIT,ST_SUPPINVOICE,ST_JOURNAL))) {
                        $trans['net_amount'] *= -1;
                        $trans['amount'] *= -1;
                }