! -> Note
$ -> Affected files
+13-Feb-2009 Joe Hunt
+# Minor bug fix in Quick Entry tax account choice for Journal Entry.
+$ /includes/ui/ui_view.inc
+
12-Feb-2009 Janusz Dobrowolski
! Changed extension menu file placement, added support for gettext in extensions.
$ /frontaccounting.php
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,