本文整理汇总了PHP中Receipt::insertReceipt方法的典型用法代码示例。如果您正苦于以下问题:PHP Receipt::insertReceipt方法的具体用法?PHP Receipt::insertReceipt怎么用?PHP Receipt::insertReceipt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Receipt
的用法示例。
在下文中一共展示了Receipt::insertReceipt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AccountsAPI
$pl->linedescription = $_POST['linedescription'];
$pl->linedel = $_POST['linedel'];
$chkAddNew = $_POST['chkAddNew'];
$o->addreceiptlineqty = $_POST['addreceiptlineqty'];
if ($iscomplete == 1 or $iscomplete == "on") {
$o->iscomplete = 1;
} else {
$o->iscomplete = 0;
}
switch ($action) {
//When user submit new organization
case "create":
// if the token is exist and not yet expired
$log->showLog(4, "Accessing create record event, with receipt name={$o->paidto}");
if ($s->check(true, $token, "CREATE_ACG")) {
if ($o->insertReceipt()) {
$latest_id = $o->getLatestReceiptID();
/*
if($o->iscomplete==1){
include_once "class/AccountsAPI.php";
$accapi=new AccountsAPI();
$accountsarray=array($o->accountsto_id,$o->accountsfrom_id);
$amtarray=array($o->amt,$o->amt*-1);
$currencyarray=array($o->currency_id,$o->currency_id);
$conversionarray=array($o->exchangerate,$o->exchangerate);
$bpartnerarray=array(0,$o->bpartner_id);
$originalamtarray=array($o->originalamt,$o->originalamt*-1);
$transtypearray=array("","");
$linetypearray=array(0,1);
$documentnoarray=array($o->receipt_no,$o->receipt_no);
$chequenoarray=array($o->chequeno,$o->chequeno);