Description |
This is inline with the performance enhancement of Bank Accounts loading. Since Bank Account record is already loaded on your screen we can use that to pass the additional parameters so the Process Paycheck will just display that.
Note: This is applicable only on the screen that calls Process Paycheck and not from the menu.
Here is the sample calling of Process Paycheck.
{noformat}var bankAccountRecord = cboBankNumber.getSelectedRecord();
var printChecks = Ext.create('CashManagement.common.ChequePrintManager', \{
intBankAccountId: cboBankNumber.getValue(),
strBankAccountNo: bankAccountRecord.get('strBankAccountNo'),
strBankName: bankAccountRecord.get('strBankName'),
intNextCheckNumber: bankAccountRecord.get('intNextCheckNo'),
strTransactionId: txtPaycheckNumber.getValue() + (currentRecord.get('ysnVoid') && currentRecord.get('ysnDirectDeposit') ? 'V' : ''),
strBatchId: null,
intTransactionType: currentRecord.get('ysnDirectDeposit') ? 23 : 21
\});{noformat}
|