static void AlfasithPrintLedgerBalance(Args _args)
{
LedgerBalanceMainAccountAmounts balance;
MainAccountListPageBalanceParameters balanceParameters;
MainAccount mainAccount;
;
mainAccount = MainAccount::findByMainAccountId( "11120005");
balanceParameters = MainAccountListPageBalanceParameters::construct();
balance = LedgerBalanceMainAccountAmounts::construct();
balance.parmAccountingDateRange(balanceParameters.getStartDate(),balanceParameters.getEndDate());
balance.parmPostingLayer(balanceParameters.getPostingLayer());
balance.parmIncludeOpeningPeriod(balanceParameters.getIncludeOpeningPeriods());
balance.parmIncludeRegularPeriod(balanceParameters.getIncludeOperatingPeriods());
balance.parmIncludeClosingPeriod(balanceParameters.getIncludeClosingPeriods());
balance.parmIncludeClosingPeriodBySystem(balanceParameters.getIncludeClosingPeriods());
balance.calculateBalance(mainAccount);
info(strFmt("%1", balance.getAccountingCurrencyBalance()));
}
{
LedgerBalanceMainAccountAmounts balance;
MainAccountListPageBalanceParameters balanceParameters;
MainAccount mainAccount;
;
mainAccount = MainAccount::findByMainAccountId( "11120005");
balanceParameters = MainAccountListPageBalanceParameters::construct();
balance = LedgerBalanceMainAccountAmounts::construct();
balance.parmAccountingDateRange(balanceParameters.getStartDate(),balanceParameters.getEndDate());
balance.parmPostingLayer(balanceParameters.getPostingLayer());
balance.parmIncludeOpeningPeriod(balanceParameters.getIncludeOpeningPeriods());
balance.parmIncludeRegularPeriod(balanceParameters.getIncludeOperatingPeriods());
balance.parmIncludeClosingPeriod(balanceParameters.getIncludeClosingPeriods());
balance.parmIncludeClosingPeriodBySystem(balanceParameters.getIncludeClosingPeriods());
balance.calculateBalance(mainAccount);
info(strFmt("%1", balance.getAccountingCurrencyBalance()));
}
No comments:
Post a Comment