Skip to content

Instantly share code, notes, and snippets.

@petersonfs
Created July 12, 2013 14:36
Show Gist options
  • Save petersonfs/5984942 to your computer and use it in GitHub Desktop.
Save petersonfs/5984942 to your computer and use it in GitHub Desktop.
Whatahell?????????
void run()
{
//Void method with a variable called ret
str ret;
Args args;
;
if (this.validate())
{
ttsbegin;
if (agreement.FinInterestIgnoreFirstLine)
{
this.updateInterestAmount();
}
debitAmount = agreementManager.getTotalAgreementLines(true);
creditAmount = agreementManager.getTotalMarkedTrans(true);
if (creditAmount != debitAmount)
{
throw error("@SYS3012312");
}
this.createJournal();
voucher = NumberSeq::newGetVoucherFromCode(ledgerJournalTable.VoucherSeries).voucher();
this.createCreditLines();
this.createDebitLines();
this.post();
this.updateOldAgreements();
this.updateGeneratedTrans();
this.updateFinancialAgreement();
this.createNote();
this.updateCalcCommission();
ttscommit;
if (caller)
caller.close();
args = new Args();
args.caller(new Object());
args.record(agreement);
new MenuFunction(menuItemDisplayStr(agreementHistory), MenuItemType::Display).run(args);
ret = FinancialAgreementPost::send(agreement);
//Whatahell?????
if (ret != 'True')
{
warning(strfmt("@SYS123948", ret));
}
}
}
@jnettome
Copy link

WHATA???

@SparK-Cruz
Copy link

Whatahell?! huahuahauhauhauh

"//Void method with a variable called ret" - Capitão Obvio

@ljohann
Copy link

ljohann commented Jul 16, 2013

Frustrating!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment