当前位置: 首页>>代码示例>>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;未经允许,请勿转载。