ProjJournalTable projJournalTable;
ProjBegBalJournalCheckPost projBegBalJournalCheckPost;
LedgerVoucher ledgerVoucher;
JournalTableData journalTableData;
;
try
{
ttsBegin;
while select forUpdate projJournalTable
where projJournalTable.Posted == NoYes::No &&
projJournalTable.JournalType == ProjJournalType::BegBalance
{
projBegBalJournalCheckPost = null;
projBegBalJournalCheckPost = ProjBegBalJournalCheckPost::newJournalCheckPost(false,
false,
JournalCheckPostType::Post,
projJournalTable.TableId,
projJournalTable.JournalId);
journalTableData = JournalTableData::newTable(projJournalTable);
projBegBalJournalCheckPost.postTransLedger(journalTableData.journalTransList().journalTransData(), ledgerVoucher);
}
ttsCommit;
info("Posted successfully.");
}
catch
{
info("Posting failed.");
}
}
ProjBegBalJournalCheckPost projBegBalJournalCheckPost;
LedgerVoucher ledgerVoucher;
JournalTableData journalTableData;
;
try
{
ttsBegin;
while select forUpdate projJournalTable
where projJournalTable.Posted == NoYes::No &&
projJournalTable.JournalType == ProjJournalType::BegBalance
{
projBegBalJournalCheckPost = null;
projBegBalJournalCheckPost = ProjBegBalJournalCheckPost::newJournalCheckPost(false,
false,
JournalCheckPostType::Post,
projJournalTable.TableId,
projJournalTable.JournalId);
journalTableData = JournalTableData::newTable(projJournalTable);
projBegBalJournalCheckPost.postTransLedger(journalTableData.journalTransList().journalTransData(), ledgerVoucher);
}
ttsCommit;
info("Posted successfully.");
}
catch
{
info("Posting failed.");
}
}
No comments:
Post a Comment