projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added site default language setting.
[fa-stable.git]
/
includes
/
ui
/
ui_view.inc
diff --git
a/includes/ui/ui_view.inc
b/includes/ui/ui_view.inc
index 66d42c7fefa37e8bbc18a1a9757fe7fd7467517f..fff49cb0af62bc9897b165b4636bebb1a31e666f 100644
(file)
--- 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());
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,
$tax_total += $tax;
if ($type != QE_SUPPINV)
$cart->add_gl_item($gl_code,