[0000172] Difference between Customer Balances and Print Statements
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 14 Oct 2009 14:36:27 +0000 (14:36 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 14 Oct 2009 14:36:27 +0000 (14:36 +0000)
CHANGELOG.txt
reporting/rep108.php

index 3f0dc9e12107a60810e8f9640287f93fc65c45db..b0dfaaff98338316c99d34c09fbf950b17a3a80a 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+14-Oct-2009 Joe Hunt
+# [0000172] Difference between Customer Balances and Print Statements
+$ /reporting/rep108.pp
+
 13-Oct-2009 Janusz Dobrowolski
 # Fixed default page access.
 $ /sales/inquiry/sales_orders_view.php
index a85073a2388d5653a895a73ffd07434566186415..843e747ee80cd7c720f49a8accbb66e8d2e42022 100644 (file)
@@ -32,7 +32,8 @@ print_statements();
 function getTransactions($debtorno, $date)
 {
     $sql = "SELECT ".TB_PREF."debtor_trans.*,
-                               (".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_discount)
+                               (".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + ".TB_PREF."debtor_trans.ov_freight + 
+                               ".TB_PREF."debtor_trans.ov_freight_tax + ".TB_PREF."debtor_trans.ov_discount)
                                AS TotalAmount, ".TB_PREF."debtor_trans.alloc AS Allocated,
                                ((".TB_PREF."debtor_trans.type = ".ST_SALESINVOICE.")
                                        AND ".TB_PREF."debtor_trans.due_date < '$date') AS OverDue