Originaldocuments originaldocuments;
TmpLedgerBase tmpLedgerBase;
Common common;
GeneralJournalAccountEntry accountEntry;
LedgerTransModule ledgerTransModule;
;
accountEntry = GeneralJournalAccountEntry::find(this.RecId,false);
common = accountEntry;
//Consider first - original documents
originaldocuments = new Originaldocuments(common);
originaldocuments.findRelations();
tmpLedgerBase.setTmpData(originaldocuments.relations());
if(!tmpLedgerBase)//if it Original Document is not There means - then as per requested considering Transaction Origin
{
ledgerTransModule=new LedgerTransModule();
ledgerTransModule.createTransModule(accountEntry.RecId);
tmpLedgerBase.setTmpData(ledgerTransModule.transModule());
}
return tmpLedgerBase;
TmpLedgerBase tmpLedgerBase;
Common common;
GeneralJournalAccountEntry accountEntry;
LedgerTransModule ledgerTransModule;
;
accountEntry = GeneralJournalAccountEntry::find(this.RecId,false);
common = accountEntry;
//Consider first - original documents
originaldocuments = new Originaldocuments(common);
originaldocuments.findRelations();
tmpLedgerBase.setTmpData(originaldocuments.relations());
if(!tmpLedgerBase)//if it Original Document is not There means - then as per requested considering Transaction Origin
{
ledgerTransModule=new LedgerTransModule();
ledgerTransModule.createTransModule(accountEntry.RecId);
tmpLedgerBase.setTmpData(ledgerTransModule.transModule());
}
return tmpLedgerBase;
No comments:
Post a Comment