本文整理匯總了PHP中Facture::demande_prelevement方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facture::demande_prelevement方法的具體用法?PHP Facture::demande_prelevement怎麽用?PHP Facture::demande_prelevement使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Facture
的用法示例。
在下文中一共展示了Facture::demande_prelevement方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: restrictedArea
}
$result = restrictedArea($user, 'facture', $id, '', '', 'fk_soc', $fieldid);
$object = new Facture($db);
// Load object
if ($id > 0 || !empty($ref)) {
$ret = $object->fetch($id, $ref);
if ($ret > 0) {
$object->fetch_thirdparty();
}
}
/*
* Actions
*/
if ($action == "new") {
if ($object->id > 0) {
$result = $object->demande_prelevement($user);
if ($result > 0) {
setEventMessage($langs->trans("RecordSaved"));
} else {
setEventMessage($object->error, 'errors');
}
}
$action = '';
}
if ($action == "delete") {
if ($object->id > 0) {
$result = $object->demande_prelevement_delete($user, GETPOST('did'));
if ($result == 0) {
header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $object->id);
exit;
}
示例2: Facture
{
$action = '';
$socid = $user->societe_id;
}
/*
* Actions
*/
if ($_GET["action"] == "new")
{
$fact = new Facture($db);
if ($fact->fetch($_GET["facid"]))
{
$result = $fact->demande_prelevement($user);
if ($result > 0)
{
Header("Location: prelevement.php?facid=".$fact->id);
exit;
}
else
{
$mesg='<div class="error">'.$fact->error.'</div>';
}
}
}
if ($_GET["action"] == "delete")
{
$fact = new Facture($db);
示例3: restrictedArea
$result = restrictedArea($user, 'facture', $id, '', '', 'fk_soc', $fieldid);
$object = new Facture($db);
// Load object
if ($id > 0 || !empty($ref)) {
$ret = $object->fetch($id, $ref);
if ($ret > 0) {
$object->fetch_thirdparty();
}
}
/*
* Actions
*/
if ($action == "new") {
if ($object->id > 0) {
$db->begin();
$result = $object->demande_prelevement($user, GETPOST('withdraw_request_amount'));
if ($result > 0) {
$db->commit();
setEventMessages($langs->trans("RecordSaved"), null, 'mesgs');
} else {
$db->rollback();
setEventMessages($object->error, $object->errors, 'errors');
}
}
$action = '';
}
if ($action == "delete") {
if ($object->id > 0) {
$result = $object->demande_prelevement_delete($user, GETPOST('did'));
if ($result == 0) {
header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $object->id);