當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Facture::demande_prelevement方法代碼示例

本文整理匯總了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;
        }
開發者ID:ADDAdev,項目名稱:Dolibarr,代碼行數:31,代碼來源:prelevement.php

示例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);
開發者ID:remyyounes,項目名稱:dolibarr,代碼行數:31,代碼來源:prelevement.php

示例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);
開發者ID:Samara94,項目名稱:dolibarr,代碼行數:31,代碼來源:prelevement.php


注:本文中的Facture::demande_prelevement方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。