END print qq!Invoice #$invnum!; print qq!
Date: !, time2str("%D",$_date), qq!!; print qq!
Amount \$!; print qq!
Payby: $payby!; #payinfo (check # now as payby="BILL" hardcoded.. what to do later?) print qq!
Check #!; #paybatch print qq!!; print <
END print <