Quick Entry Lines of type Supplier Invoice. When using, the Supplier Tax Group Id...
[fa-stable.git] / 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))