X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_view.inc;h=1d4f1fc1788ac6b6416e42b2ef72a2f40cb31b8c;hb=2e181b13aa722a43e78b897404912d6b13a0a937;hp=63040d18d996e825fe66e833757a51ceb5795240;hpb=a4db318fa0c84e099e0970ca82e36215782d661e;p=fa-stable.git diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index 63040d18..1d4f1fc1 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ include_once($path_to_root . "/admin/db/voiding_db.inc"); include_once($path_to_root . "/includes/types.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;