static void Job14(Args _args)
{
LedgerJournalTrans ledgerJournalTrans;
BankAccountTable bankAccountTable;
LogisticsPostalAddress logisticsPostalAddress;
VendTable vendTable;
VendBankAccount vendBankAccount;
DirPartyTable party;
LogisticsPostalAddress address;
str txt,vendname;
ledgerJournalTrans = LedgerJournalTrans::find('00468', 'APPM000394',false);
if(ledgerJournalTrans)
{
while select ledgerJournalTrans join BankAccountTable where ledgerJournalTrans.BankAccountId == bankAccountTable.AccountID
join vendBankAccount where ledgerJournalTrans.VendBankAccount == vendBankAccount.RecId
join vendTable where VendTable.AccountNum == VendBankAccount.AccountID
join party where vendTable.Party == party.RecId
{
address = BankAccountTable.postalAddress();
txt = LedgerJournalTrans.sst_NumToText();
vendname = party.Name;
info(strFmt("currencyCode: %1, transdate: %2, amountdebit: %3, vaccount: %4, nameofbank: %5, : iban%6, swiftNo: %7, offbank: %9, phone: %11",
ledgerJournalTrans.CurrencyCode, ledgerJournalTrans.TransDate, ledgerJournalTrans.AmountCurDebit,
vendBankAccount.AccountNum, vendBankAccount.Name, vendBankAccount.BankIBAN,
vendBankAccount.SWIFTNo, bankAccountTable.Name, bankAccountTable.Phone));
}
}