question about row fillers
Can anyone help me rewrite and decipher the following code. Right now if an invoice goes over 15 lines the row filler display correctly, I am looking to add row fillers to invoices that are only 1,2, or 3 rows so that the layout matches.
Filling Out Space - this contains the logic to check if the number of rows rendered equals the lines per page variable. If not then insert the table row until it does.
<?if:not(count($invLines) mod $lpp=0) and ($start+$lpp>count($invLines))?>
<?for-each:$invLines?>
<?if:position()<$lpp - (count($invLines) mod $lpp)?>
Filling Out Space - this contains the logic to check if the number of rows rendered equals the lines per page variable. If not then insert the table row until it does.
<?if:not(count($invLines) mod $lpp=0) and ($start+$lpp>count($invLines))?>
<?for-each:$invLines?>
<?if:position()<$lpp - (count($invLines) mod $lpp)?>
0