Should execute confirmPrint before printing of check.

This commit is contained in:
Heng Sin Low 2011-02-07 17:29:46 +08:00
parent fa6cfacb25
commit 02c41740fa
1 changed files with 39 additions and 38 deletions

View File

@ -383,6 +383,9 @@ public class WPayPrint extends PayPrint implements IFormController, EventListene
if (!getChecks(PaymentRule))
return;
// Update BankAccountDoc
int lastDocumentNo = MPaySelectionCheck.confirmPrint (m_checks, m_batch);
// for all checks
List<File> pdfList = new ArrayList<File>();
for (int i = 0; i < m_checks.length; i++)
@ -418,8 +421,6 @@ public class WPayPrint extends PayPrint implements IFormController, EventListene
return;
}
// Update BankAccountDoc
int lastDocumentNo = MPaySelectionCheck.confirmPrint (m_checks, m_batch);
if (lastDocumentNo != 0)
{
StringBuffer sb = new StringBuffer();