本文整理匯總了PHP中Store::insertFaHuo方法的典型用法代碼示例。如果您正苦於以下問題:PHP Store::insertFaHuo方法的具體用法?PHP Store::insertFaHuo怎麽用?PHP Store::insertFaHuo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Store
的用法示例。
在下文中一共展示了Store::insertFaHuo方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Store
$_GET['action'] = "savechuku";
$_GET['rowid'] = $_GET['billid'];
}
}
}
if ($_GET['action'] == "savechuku") {
$rowid = $_GET['rowid'];
try {
$Store = new Store($db);
//$db->debug=1;
//開啟事務
$db->StartTrans();
//確認出庫
$Store->confirmChuKu($rowid);
//創建發貨單
$Store->insertFaHuo($rowid);
//是否事務出現錯誤
if ($db->HasFailedTrans()) {
print "<script language=javascript>alert('錯誤:" . str_replace("'", "\\'", $db->ErrorMsg()) . "');window.history.back(-1);</script>";
} else {
page_css("出庫單確認");
$return = FormPageAction("action", "init_default");
print_infor("出庫單已確認", 'trip', "location='?{$return}'", "?{$return}", 0);
}
$db->CompleteTrans();
exit;
} catch (Exception $e) {
print "<script language=javascript>alert('錯誤:" . $e->getMessage() . "');window.history.back(-1);</script>";
exit;
}
}
示例2: floatval
$shoukuan = floatval($_POST['shoukuan']);
$opertype = '';
if ($_POST['ifpay'] == 1) {
//付全款
$opertype = '貨款收取';
} else {
//付押金
$opertype = '收押金';
}
//插入新回款記錄
if ($shoukuan != 0 || $oddment != 0) {
$CaiWu->insertShoukuanReocord($customerid, $billid, $shoukuan, $accountid, $_SESSION['LOGIN_USER_ID'], $opertype, $oddment);
}
//發貨
if ($billinfo['fahuostate'] == 0 && $chukubillid > 0) {
$Store->insertFaHuo($chukubillid, $customerid, $billid, $shouhuoren, $mobile, $address);
}
//開票
if ($billinfo['kaipiaostate'] == 0 && $shoukuan + $oddment != 0) {
$CaiWu->insertKaiPiao($customerid, $billid, $fapiaoneirong, $fapiaotype, $fapiaono, $shoukuan + $oddment, $_SESSION['LOGIN_USER_ID']);
}
$db->CompleteTrans();
page_css("店麵銷售單");
//是否事務出現錯誤
if ($db->HasFailedTrans()) {
throw new Exception($db->ErrorMsg());
} else {
$return = FormPageAction("action", "init_default");
print_infor("店麵銷售單執行完成", 'trip', "location='?{$return}'", "?{$return}", 0);
}
} catch (Exception $e) {