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


PHP invoice::error方法代碼示例

本文整理匯總了PHP中invoice::error方法的典型用法代碼示例。如果您正苦於以下問題:PHP invoice::error方法的具體用法?PHP invoice::error怎麽用?PHP invoice::error使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在invoice的用法示例。


在下文中一共展示了invoice::error方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: invoice

     $preview = true;
 } else {
     $preview = false;
 }
 if (!count($warning)) {
     $invoice = new invoice();
 }
 if (!count($warning) && $preview) {
     if (!$invoice->doDaChecking($TMP_invoice_extra_content['invoice_time_due'], $TMP_invoice_extra_content['invoice_time'], $TMP_invoice_content, $TMP_invoice_extra_content)) {
         if ($invoice->error_code != '100') {
             require "include/invoice_menu.php";
             echo '<h1>Opprett faktura - feilmelding</h1>' . chr(10);
             echo 'Problemer med faktura. Vennligst ta kontakt.';
             echo '<br><br>';
             echo 'Feilmelding:<br>';
             echo $invoice->error();
             exit;
         } else {
             $error_msg = $invoice->error();
             $error = $invoice->inndata_error;
             // array
             $preview = false;
         }
     }
 } elseif (!count($warning)) {
     if (!$invoice->create($TMP_invoice_extra_content['invoice_time_due'], $TMP_invoice_extra_content['invoice_time'], $TMP_invoice_content, $TMP_invoice_extra_content)) {
         if ($invoice->error_code != '100') {
             require "include/invoice_menu.php";
             echo '<h1>Opprett faktura - feilmelding</h1>' . chr(10);
             echo 'Problemer med faktura. Vennligst ta kontakt.';
             echo '<br><br>';
開發者ID:HNygard,項目名稱:JM-booking,代碼行數:31,代碼來源:invoice_create.php

示例2: header

    $return2 = 'returnToInvoice';
} else {
    $return = 'invoice_payed_not.php';
    $return2 = '';
}
if ($invoice->invoice_payed == '1') {
    echo 'Allerede registert som betalt.';
    exit;
}
if (isset($_GET['reg_payment']) && isset($_POST['payment_amount']) && isset($_POST['payment_time'])) {
    if (isset($_POST['payment_comment'])) {
        $payment_comment = $_POST['payment_comment'];
    }
    if (!$invoice->register_payment($_POST['payment_time'], $_POST['payment_amount'], $payment_comment)) {
        echo 'Problemer med å registere betalingen.<br><br>';
        echo '<b>Feilmelding:</b><br>' . $invoice->error();
        exit;
    }
    header('Location: ' . $return);
    exit;
}
$section = 'payed_not';
require "include/invoice_menu.php";
$smarty = new Smarty();
templateAssignInvoice('smarty', $invoice);
templateAssignSystemvars('smarty');
$smarty->assign('return', $return);
$smarty->assign('return2', $return2);
$smarty->display('file:invoice_payment.tpl');
/*
require "topp.php";
開發者ID:HNygard,項目名稱:JM-booking,代碼行數:31,代碼來源:invoice_payment.php


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