From: Janusz Dobrowolski Date: Wed, 26 Jun 2013 19:24:01 +0000 (+0200) Subject: Fixed mysql 5.0 issue in Print Statements report X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=85ed351346a0da8d90417436ac6e626ad5162175;p=textcart.git Fixed mysql 5.0 issue in Print Statements report --- diff --git a/reporting/rep108.php b/reporting/rep108.php index 894e7f6..b438e64 100644 --- a/reporting/rep108.php +++ b/reporting/rep108.php @@ -44,7 +44,7 @@ function getTransactions($debtorno, $date, $show_also_allocated) AND ABS(".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_freight_tax + ".TB_PREF."debtor_trans.ov_discount) > 1e-6"; if (!$show_also_allocated) - $sql .= " AND ABS (ABS(".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + ".TB_PREF."debtor_trans.ov_freight + + $sql .= " AND ABS(ABS(".TB_PREF."debtor_trans.ov_amount + ".TB_PREF."debtor_trans.ov_gst + ".TB_PREF."debtor_trans.ov_freight + ".TB_PREF."debtor_trans.ov_freight_tax + ".TB_PREF."debtor_trans.ov_discount) - alloc) > 1e-6"; $sql .= " ORDER BY ".TB_PREF."debtor_trans.tran_date";