From 6186d55597370e9235009f3e031268a6415df524 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 18 Aug 2009 07:39:39 +0000 Subject: [PATCH] Quick Entry Lines of type Supplier Invoice. When using, the Supplier Tax Group Id overrides the The Tax Group set on the line --- CHANGELOG.txt | 1 + includes/ui/ui_view.inc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e512760d..627d78ac 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index d9a33af9..b7e0a12e 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -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)) -- 2.30.2