X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_view.inc;h=1d4f1fc1788ac6b6416e42b2ef72a2f40cb31b8c;hb=67d97bfd7398b932698e254d937f905943412561;hp=66d42c7fefa37e8bbc18a1a9757fe7fd7467517f;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index 66d42c7f..1d4f1fc1 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -611,8 +611,8 @@ function display_quick_entries(&$cart, $id, $base, $type, $descr='') else $tax = round2($base * $item_tax['rate'] / 100, user_price_dec()); - $gl_code = $type != QE_DEPOSIT - ? $item_tax['purchasing_gl_code'] : $item_tax['sales_gl_code']; + $gl_code = ($type == QE_DEPOSIT || ($type == QE_JOURNAL && $base < 0)) + ? $item_tax['sales_gl_code'] : $item_tax['purchasing_gl_code']; $tax_total += $tax; if ($type != QE_SUPPINV) $cart->add_gl_item($gl_code, @@ -713,30 +713,6 @@ function get_js_date_picker() global $comp_path, $go_debug; $fpath = $comp_path.'/'.user_company().'/js_cache/'.'date_picker.js'; - $js = " -"; - add_js_source($js); - if (!file_exists($fpath) || $go_debug) { global $dateseps, $date_system;