From:
ledgerJournalTrans = this.ledgerJournalTransInitFromCreate(_tmpProjAdjustmentCreate);
if (ledgerJournalTrans.validateWrite())
{
ledgerJournalTrans.insert();
ProjPostLedger = ProjPost::construct(ledgerJournalTrans,ledgerVoucherTrans);
if (projPostLedger.checkTrans())
{
projPostLedger.PostTrans();
}
else
{
throw error("@SYS21628");
}
}
else
{
throw error("@SYS21628");
}
ledgerjournalTrans.delete(false);
...
To:
ledgerJournalTrans = this.ledgerJournalTransInitFromCreate(_tmpProjAdjustmentCreate);
if (!ledgerJournalTrans.validateWrite())
{
throw error("@SYS21628");
}
ledgerJournalTrans.insert();
ProjPostLedger = ProjPost::construct(ledgerJournalTrans,ledgerVoucherTrans);
if (!projPostLedger.checkTrans())
{
throw error("@SYS21628");
}
projPostLedger.PostTrans();
ledgerjournalTrans.delete(false);
...