X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep202.php;h=e6cc707b8255e5510f16b665b7859e64e9501117;hb=b0c4c9777f9574e9c2805fddc2a12576d75d94ce;hp=7ba8b0d7733ad3d5dcc53d1d3d36789af5ba74b6;hpb=40da959b32eb27fcb0422207a284eed13cc27d7e;p=fa-stable.git diff --git a/reporting/rep202.php b/reporting/rep202.php index 7ba8b0d7..e6cc707b 100644 --- a/reporting/rep202.php +++ b/reporting/rep202.php @@ -38,7 +38,7 @@ function get_invoices($supplier_id, $to, $all=true) // Revomed allocated from sql if ($all) $value = "(".TB_PREF."supp_trans.ov_amount + ".TB_PREF."supp_trans.ov_gst + ".TB_PREF."supp_trans.ov_discount)"; - else + else $value = "IF (".TB_PREF."supp_trans.type=".ST_SUPPINVOICE." OR ".TB_PREF."supp_trans.type=".ST_BANKDEPOSIT.", (".TB_PREF."supp_trans.ov_amount + ".TB_PREF."supp_trans.ov_gst + ".TB_PREF."supp_trans.ov_discount - ".TB_PREF."supp_trans.alloc), (".TB_PREF."supp_trans.ov_amount + ".TB_PREF."supp_trans.ov_gst + ".TB_PREF."supp_trans.ov_discount + ".TB_PREF."supp_trans.alloc))"; @@ -269,4 +269,3 @@ function print_aged_supplier_analysis() $rep->End(); } -?>