X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep210.php;h=f25b792543661359c681f12216a107c2814bde31;hb=df444f84379276fbc46eddca894ed3529120b2bb;hp=1a99195e06e732545999fc611868daa45b36f487;hpb=08e465dd87f4929fcd07ba944c4451bc3437f2b3;p=fa-stable.git diff --git a/reporting/rep210.php b/reporting/rep210.php index 1a99195e..f25b7925 100644 --- a/reporting/rep210.php +++ b/reporting/rep210.php @@ -98,7 +98,13 @@ function print_remittances() for ($i = $fno[0]; $i <= $tno[0]; $i++) { - for ($j = ST_BANKPAYMENT; $j <= ST_SUPPAYMENT; $j = ($j == ST_BANKPAYMENT ? ST_SUPPAYMENT : 999)) + if ($fno[0] == $tno[0]) + $types = array($fno[1]); + else + $types = array(ST_BANKPAYMENT, ST_SUPPAYMENT, ST_SUPPCREDIT); + foreach ($types as $j) + //for ($j = ST_BANKPAYMENT; $j <= ST_SUPPAYMENT; $j = ($j == ST_BANKPAYMENT ? ST_SUPPAYMENT : 999)) + //for ($j = $ft; $j <= $tt; $j = ($j == ST_BANKPAYMENT ? ST_SUPPAYMENT : 999)) { $myrow = get_remittance($j, $i); if (!$myrow)