X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep201.php;h=d06adb53a1655f8121af15ca1c43c5dfc5692c17;hb=17b390efcf904072b02ec866b2a427490471a260;hp=1d25b8af6754c5aeb1089b014659ccab8d1898ca;hpb=a093e88c7571e931f9109a09f95bb7f983f78023;p=fa-stable.git diff --git a/reporting/rep201.php b/reporting/rep201.php index 1d25b8af..d06adb53 100644 --- a/reporting/rep201.php +++ b/reporting/rep201.php @@ -174,9 +174,11 @@ function print_supplier_balances() $grandtotal[$i] += $init[$i]; } $rep->NewLine(1, 2); - if (db_num_rows($res)==0) continue; - $rep->Line($rep->row + 4); + if (db_num_rows($res)==0) { + $rep->NewLine(1, 2); + continue; + } while ($trans=db_fetch($res)) { if ($no_zeros && floatcmp(abs($trans['TotalAmount']), $trans['Allocated']) == 0) continue; @@ -240,4 +242,3 @@ function print_supplier_balances() $rep->End(); } -?>