When updating tax rate, it didn't show and calculate correct in documents.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 30 Dec 2009 23:41:36 +0000 (23:41 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 30 Dec 2009 23:41:36 +0000 (23:41 +0000)
CHANGELOG.txt
taxes/db/tax_groups_db.inc

index d62db57a8817503367a0d2de3072018be7d665a3..f0963d07cacdae78a6b957f2ee968f7701ffed47 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+31-Dec-2009 Joe Hunt
+# When updating tax rate, it didn't show and calculate correct in documents.
+$ /taxes/db/tax_groups_db.inc
+
 27-Dec-2009 Joe Hunt
 # Problems letting various currency bank accounts sharing the same GL account
 $ /gl/manage/bank_accounts.php
index 392ec8cbbec5528c1a49234df3658742d0d8f1e9..5c217aa275bb0457c67a8285b57bf0ff4f509fca 100644 (file)
@@ -96,7 +96,7 @@ function delete_tax_group_items($id)
 
 function get_tax_group_items($id)
 {
-       $sql = "SELECT ".TB_PREF."tax_group_items.*, ".TB_PREF."tax_types.name AS tax_type_name, 
+       $sql = "SELECT ".TB_PREF."tax_group_items.*, ".TB_PREF."tax_types.name AS tax_type_name, ".TB_PREF."tax_types.rate, 
                ".TB_PREF."tax_types.sales_gl_code, ".TB_PREF."tax_types.purchasing_gl_code  
                FROM ".TB_PREF."tax_group_items, ".TB_PREF."tax_types 
                WHERE tax_group_id=".db_escape($id)."
@@ -128,7 +128,7 @@ function get_tax_group_items_as_array($id)
 function get_shipping_tax_group_items()
 {
 
-       $sql = "SELECT ".TB_PREF."tax_group_items.*, ".TB_PREF."tax_types.name AS tax_type_name, 
+       $sql = "SELECT ".TB_PREF."tax_group_items.*, ".TB_PREF."tax_types.name AS tax_type_name, ".TB_PREF."tax_types.rate,
                ".TB_PREF."tax_types.sales_gl_code, ".TB_PREF."tax_types.purchasing_gl_code  
                FROM " .TB_PREF."tax_group_items, ".TB_PREF."tax_types, ".TB_PREF."tax_groups
                WHERE " .TB_PREF."tax_groups.tax_shipping=1