Quick Entry Lines of type Supplier Invoice. When using, the Supplier Tax Group Id...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 18 Aug 2009 07:39:39 +0000 (07:39 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 18 Aug 2009 07:39:39 +0000 (07:39 +0000)
CHANGELOG.txt
includes/ui/ui_view.inc

index e512760d572cd362f2edf5524e9d56f003c52846..627d78ac22647c7e3d5f9e56d742de6913578170 100644 (file)
@@ -21,6 +21,7 @@ $ -> Affected files
 
 18-Aug-2009 Joe Hunt
 ! Quick Entries uses Tax Groups instead of Item Tax Types for calculating taxes (Please change the item lines for tax).
+  Quick Entry Lines of type Supplier Invoice. When using, the Supplier Tax Group Id overrides the The Tax Group set on the line.
 $ /gl/includes/db/gl_db_bank_accounts.inc
   /gl/manage/gl_quick_entries.php
   /includes/ui/ui_view.inc
index d9a33af98cedd1cc61b6107f5116aab659e4a763..b7e0a12e0f2ac9cef2932e009b80ceaec85b5025 100644 (file)
@@ -597,6 +597,8 @@ function display_quick_entries(&$cart, $id, $base, $type, $descr='')
                                case "t+": // ditto & increase base amount
                                case "t-": // ditto & reduce base amount
                                        //$taxes = get_taxes_for_item_tax($qe_line['dest_id']);
+                                       if ($type == QE_SUPPINV)
+                                               $qe_line['dest_id'] = $cart->tax_group_id;
                                        $taxes = array();
                                        $res = get_tax_group_items($qe_line['dest_id']);
                                        while ($row = db_fetch($res))