本文整理汇总了PHP中Accounts::getRetainEarningAccount方法的典型用法代码示例。如果您正苦于以下问题:PHP Accounts::getRetainEarningAccount方法的具体用法?PHP Accounts::getRetainEarningAccount怎么用?PHP Accounts::getRetainEarningAccount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Accounts
的用法示例。
在下文中一共展示了Accounts::getRetainEarningAccount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Accounts
}
} else {
redirect_header("financialyear.php?action=edit&financialyear_id={$o->financialyear_id}", $pausetime, "Warning! Can't delete data from database.");
}
break;
case "postretainearning":
$period_id = $_POST['period_id'];
$amt = $_POST['amt'] * -1;
$financialyearline_id = $_POST['financialyearline_id'];
$period_name = $_POST['period_name'];
include "class/Accounts.php";
include "class/AccountsAPI.php";
$newbatchno = $l->getNewBatchNo();
$acc = new Accounts();
$api = new AccountsAPI();
$account = $acc->getRetainEarningAccount();
$retainearningacc = $account[0];
$reverseretainearningacc = $account[1];
$batchdate = getLastDayByMonth($period_name);
//$amtarray
//$uid,$date,$systemname,$batch_name,$description,$totaltransactionamt,$documentnoarray,
// $accountsarray,$amtarray,$currencyarray,$conversionarray,$originalamtarray,$bpartnerarray,$transtypearray,$linetypearray,
// $chequenoarray,$linedesc="",isreadonly=0
$api->PostBatch($o->createdby, $batchdate, "simbiz", "Retain Earning For {$period_name}", "", $amt, array("***", "***"), array($retainearningacc, $reverseretainearningacc), array($amt, $amt * -1), array($defaultcurrency_id, $defaultcurrency_id), array(1, 1), array($amt, $amt * -1), array(0, 0), array("RE", "RE"), array(0, 1), array("", ""), "", 1, $newbatchno);
$sql = "update {$tablefinancialline} set batch_id={$api->resultbatch_id} where financialyearline_id={$financialyearline_id}";
$xoopsDB->query($sql);
$amt = $amt * -1;
if ($amt == 0) {
$amt = 0;
}
echo <<<EOF