We figured it out! There is a section of code in the CustVendCheque class, method output that prints notes on the check from the LedgerJournalTrans record. This code also creates a blank void check if the notes run on to a second page. We don't use the notes so we just commented out the whole section of code. No more extra blank void checks! Below is section of code we commented out.
if (notesLines <= endLines - 1)
{
tmpChequePrintout.SlipTxt += strFmt('\n%1', ledgerJournalTrans.PaymentNotes);
endLines -= notesLines;
}
else
{
while (endLines >1)
{
tmpChequePrintout.SlipTxt += '\n';
endLines --;
}
tmpChequePrintout.insert();
this.clear();
endLines = slipLines;
//Printing Payment notes but the payment notes won't fit on one check, spread it out to several checks
paymentNotesList = Global::strSplit(ledgerJournalTrans.PaymentNotes,'\n');
notesLines = paymentNotesList.elements();
le = paymentNotesList.getEnumerator();
while (notesLines > 0)
{
this.initTmpChequePrintout(ledgerJournalTrans.AccountType,
address,
location,
vendTable,
custTable,
bankAccountTableCurrent,
ledgerJournalTrans.BankNegInstRecipientName,
ledgerJournalTrans.ledgerJournalTable().RecId,
bankChequeLayout.ChequeFormType,
false,
false);
this.setBlankCheque(ledgerJournalTrans);
tmpChequePrintout.ChequeNum = chequeNum;
tmpChequePrintout.Void = NoYes::Yes;
tmpChequePrintout.AccountId = accountId;
tmpChequePrintout.TransDate = ledgerJournalTrans.TransDate;
tmpChequePrintout.MaturityDate = this.getMaturityDate(custVendPDCRegister.MaturityDate, ledgerJournalTrans.TransDate);
paymentNotesHeaderLinesPrinted = 0;
switch (bankChequeLayout.ChequeFormType)
{
case ChequeFormType::USStyle :
tmpChequePrintout.SlipTxt = strFmt("@SYS22495"+' '+slipChequeNum+'\n\n');
paymentNotesHeaderLinesPrinted =2;
endLines -= 2;
break;
case ChequeFormType::ESStyle :
tmpChequePrintout.SlipTxt = strFmt("@SYS22495"+' '+slipChequeNum+'\n\n');
paymentNotesHeaderLinesPrinted =2;
endLines -= 2;
break;
}
for (i = 0; i < slipLines - paymentNotesHeaderLinesPrinted; i++)
{
le.moveNext();
paymentNotesLine = le.current();
if (endLines == 1)
{
tmpChequePrintout.SlipTxt += paymentNotesLine;
}
else
{
tmpChequePrintout.SlipTxt += paymentNotesLine + '\n';
}
notesLines --;
endLines -= 1;
if (notesLines <=0 || endLines == 0)
{
break;
}
}
while (endLines >1)
{
tmpChequePrintout.SlipTxt += '\n';
endLines --;
}
if (endLines == 0 && notesLines > 0)
{
endLines = slipLines;
}
tmpChequePrintout.insert();
tmpChequePrintout.SlipTxt = '';
if (notesLines <= 0)
{
return;
}
} //while notesLines
}