本文整理汇总了PHP中invoice类的典型用法代码示例。如果您正苦于以下问题:PHP invoice类的具体用法?PHP invoice怎么用?PHP invoice使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了invoice类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: showAction
/**
* @EXT\Route(
* "/admin/invoice/{invoice}/show",
* name="admin_invoice_show"
* )
* @EXT\Template
*/
public function showAction(invoice $invoice)
{
if ($invoice->getChart()->getOwner() !== $this->tokenStorage->getToken()->getUser() && !$this->authorization->isGranted('ROLE_ADMIN')) {
throw new AccessDeniedException();
}
return array('invoice' => $invoice);
}
开发者ID:kitan1982,项目名称:InvoiceBundle,代码行数:14,代码来源:InvoiceController.php
示例2: cacheInvoiceFees
/**
* Calculates invoice fees and stores it in panel_users,
* according to details in billing_service_categories.
*
* @param int The mode
* @param int Userid to begin with Subject, eg tablename.
* @param int Number of Users we should handle in this run
* @param int Single userid we should focus on.
* @return array Results like current invoice fees etc.
*
* @author Former03 GmbH :: Florian Lippert <[email protected]>
*/
function cacheInvoiceFees($mode = 0, $begin = null, $count = null, $userid = null)
{
global $db;
$returnval = array();
$service_categories_result = $db->query('SELECT * FROM `' . getModeDetails($mode, 'TABLE_BILLING_SERVICE_CATEGORIES', 'table') . '` ORDER BY `id` ASC');
while ($service_categories_row = $db->fetch_array($service_categories_result)) {
$service_categories[$service_categories_row['category_name']] = $service_categories_row;
if ($service_categories_row['category_cachefield'] != '') {
$zeroUpdates[$service_categories_row['category_cachefield']] = 0;
}
}
if ($userid !== null && intval($userid) !== 0) {
$userSelection = " WHERE `" . getModeDetails($mode, 'TABLE_PANEL_USERS', 'key') . "` = '" . $userid . "' ";
} else {
$userSelection = '';
}
if ($begin !== null && intval($count) !== 0) {
$limit = ' LIMIT ' . intval($begin) . ', ' . intval($count);
} else {
$limit = '';
}
$users = $db->query("SELECT * FROM `" . getModeDetails($mode, 'TABLE_PANEL_USERS', 'table') . "` " . $userSelection . ' ' . $limit);
while ($user = $db->fetch_array($users)) {
if (!isset($user['customer_categories_once'])) {
$user['customer_categories_once'] = '';
}
if (!isset($user['customer_categories_period'])) {
$user['customer_categories_period'] = '';
}
$myInvoice = new invoice($db, $mode, explode('-', $user['customer_categories_once']), explode('-', $user['customer_categories_period']));
if ($myInvoice->collect($user[getModeDetails($mode, 'TABLE_PANEL_USERS', 'key')]) === true) {
$total_fee_taxed = 0;
$myUpdates = $zeroUpdates;
$total_fees_array = $myInvoice->getTotalFee($lng);
foreach ($total_fees_array as $service_type => $total_fee_array) {
if (isset($service_categories[$service_type]) && isset($service_categories[$service_type]['category_cachefield']) && $service_categories[$service_type]['category_cachefield'] != '') {
$myUpdates[$service_categories[$service_type]['category_cachefield']] = $total_fee_array['total_fee_taxed'];
$total_fee_taxed += $total_fee_array['total_fee_taxed'];
}
}
$updates = '';
foreach ($myUpdates as $myField => $myValue) {
$updates .= ', `' . $myField . '` = \'' . $myValue . '\' ';
}
$db->query('UPDATE `' . getModeDetails($mode, 'TABLE_PANEL_USERS', 'table') . '` SET `invoice_fee` = \'' . $total_fee_taxed . '\' ' . $updates . ' WHERE `' . getModeDetails($mode, 'TABLE_PANEL_USERS', 'key') . '` = \'' . $user[getModeDetails($mode, 'TABLE_PANEL_USERS', 'key')] . '\' ');
$returnval[$user[getModeDetails($mode, 'TABLE_PANEL_USERS', 'key')]] = $myUpdates;
$returnval[$user[getModeDetails($mode, 'TABLE_PANEL_USERS', 'key')]]['total'] = $total_fee_taxed;
$returnval[$user[getModeDetails($mode, 'TABLE_PANEL_USERS', 'key')]]['loginname'] = $user['loginname'];
}
}
return $returnval;
}
开发者ID:HobbyNToys,项目名称:SysCP,代码行数:64,代码来源:function.cacheInvoiceFees.php
示例3: addInvoice
/**
* Add Invoice
*/
public function addInvoice($customer_id)
{
// Validation Rules
$validator = Validator::make(['customer_id' => $customer_id], ['customer_id' => 'integer']);
// If Validation Fails
if ($validator->fails()) {
return redirect('/customers')->withErrors($validator->messages()->toArray());
}
// Start a new invoice model
$invoice = new invoice();
// Edit Properties
$invoice->customer_id = $customer_id;
$invoice_id = $invoice->save();
// Redirect to the invoice profile
return redirect('/invoice/' . $invoice_id);
}
开发者ID:GobleB,项目名称:POS-CRUD,代码行数:19,代码来源:InvoiceController.php
示例4: submit_paypal_post
function submit_paypal_post()
{
global $dbh, $postvar, $getvar, $instance;
echo "<form action=" . $this->paypal_url . " method='post' name='frm'>";
foreach ($this->fields as $a => $b) {
if ($a == "amount") {
if ($b == "0") {
$user_data = $dbh->select("users", array("id", "=", $_SESSION['cuser']));
$signup_date = date("m-d-Y", $user_data['signup']);
if ($signup_date == date("m-d-Y")) {
$noemail = "1";
}
invoice::set_paid($getvar['iid'], $noemail);
main::redirect("../client/?page=invoices");
exit;
}
}
echo "<input type='hidden' name='" . $a . "' value='" . $b . "'>";
}
echo '</form>
<script language="JavaScript">
document.frm.submit();
</script>';
exit;
}
开发者ID:cozylife,项目名称:tht-reworked,代码行数:25,代码来源:paypal.class.php
示例5: save
function save()
{
if (!imp($this->get_value("iiAmount"))) {
$this->set_value("iiAmount", $this->get_value("iiQuantity") * $this->get_value("iiUnitPrice"));
}
$status = parent::save();
$status2 = invoice::update_invoice_dates($this->get_value("invoiceID"));
return $status && $status2;
}
开发者ID:cjbayliss,项目名称:alloc,代码行数:9,代码来源:invoiceItem.inc.php
示例6: save_invoice_timeSheet
function save_invoice_timeSheet($invoiceID, $timeSheetID)
{
global $TPL;
$invoice = new invoice($invoiceID);
if ($invoice->get_value("invoiceStatus") != "finished") {
$timeSheet = new timeSheet();
$timeSheet->set_id($timeSheetID);
$timeSheet->select();
$timeSheet->load_pay_info();
$project = $timeSheet->get_foreign_object("project");
$date = $timeSheet->get_value("dateFrom") or $date = date("Y-m-d");
// customerBilledDollars will not be set if the actual field is blank,
// and thus there won't be a usable total_customerBilledDollars.
if (isset($timeSheet->pay_info["customerBilledDollars"])) {
$amount = $timeSheet->pay_info["total_customerBilledDollars"];
$iiUnitPrice = $timeSheet->pay_info["customerBilledDollars"];
$iiQuantity = $timeSheet->pay_info["total_duration"];
} else {
$amount = $timeSheet->pay_info["total_dollars"];
$iiUnitPrice = $amount;
$iiQuantity = 1;
}
$q = prepare("SELECT * FROM invoiceItem WHERE invoiceID = %d AND timeSheetID = %d AND timeSheetItemID IS NULL\n ", $invoiceID, $timeSheetID);
$db = new db_alloc();
$db->query($q);
$row = $db->row();
$ii = new invoiceItem();
if ($row) {
$ii->set_id($row["invoiceItemID"]);
}
$ii->set_value("invoiceID", $invoiceID);
$ii->set_value("timeSheetID", $timeSheet->get_id());
$ii->set_value("iiMemo", "Time Sheet #" . $timeSheet->get_id() . " for " . person::get_fullname($timeSheet->get_value("personID")) . ", Project: " . $project->get_value("projectName"));
$ii->set_value("iiQuantity", $iiQuantity);
$ii->set_value("iiUnitPrice", $iiUnitPrice);
$ii->set_value("iiAmount", $amount);
$ii->set_value("iiDate", $date);
$ii->set_value("iiTax", config::get_config_item("taxPercent"));
$ii->currency = $timeSheet->get_value("currencyTypeID");
$ii->save();
} else {
alloc_error("Unable to update related Invoice (ID:" . $invoiceID . ").");
}
}
开发者ID:cjbayliss,项目名称:alloc,代码行数:44,代码来源:invoiceEntity.inc.php
示例7: detail
public function detail()
{
//get expenseaccount
$expenseaccountobj = new expenseaccount();
$detail['expense_account_all'] = $expenseaccountobj->get_all();
//get customers with domain_id from session by constructor
$customerobj = new customer();
$detail['customer'] = $customerobj->get();
$detail['customer_all'] = $customerobj->get_all();
//get billers with domain_id from session by constructor
$billerobj = new biller();
$detail['biller_all'] = $billerobj->get_all();
//get invoices
$invoiceobj = new invoice();
$detail['invoice_all'] = $invoiceobj->get_all();
//get products
$productobj = new product();
$detail['product_all'] = $productobj->get_all();
return $detail;
}
开发者ID:dadigo,项目名称:simpleinvoices,代码行数:20,代码来源:expense.php
示例8: newItem
public function newItem($id, $requestData)
{
$invoice = invoice::findOrFail($id);
$tasktimeId = $invoice->tasktime()->first()->fk_task_id;
$clientid = $invoice->clients()->first()->id;
$input = array_replace($requestData->all(), ['fk_task_id' => "{$tasktimeId}"]);
$tasktime = TaskTime::create($input);
$insertedId = $tasktime->id;
$invoice->tasktime()->attach($insertedId);
$invoice->clients()->attach($clientid);
}
开发者ID:Bottelet,项目名称:Flarepoint-crm,代码行数:11,代码来源:InvoiceRepository.php
示例9: show_filter
function show_filter()
{
global $TPL;
global $defaults;
$_FORM = invoice::load_form_data($defaults);
$arr = invoice::load_invoice_filter($_FORM);
is_array($arr) and $TPL = array_merge($TPL, $arr);
$payment_statii = invoice::get_invoice_statii_payment();
foreach ($payment_statii as $payment_status => $label) {
$summary .= "\n" . $nbsp . invoice::get_invoice_statii_payment_image($payment_status) . " " . $label;
$nbsp = " ";
}
$TPL["status_legend"] = $summary;
include_template("templates/invoiceListFilterS.tpl");
}
开发者ID:cjbayliss,项目名称:alloc,代码行数:15,代码来源:invoiceList.php
示例10: detail
public static function detail()
{
//get customers
$detail['expense_account_all'] = expenseaccount::get_all();
//get customers
$detail['customer'] = customer::get();
$detail['customer_all'] = customer::get_all();
//get billers
$detail['biller_all'] = biller::get_all();
//get invoices
$detail['invoice_all'] = invoice::get_all();
//get products
$detail['product_all'] = product::get_all();
return $detail;
}
开发者ID:alachaum,项目名称:simpleinvoices,代码行数:15,代码来源:expense.php
示例11: get_all_parties
function get_all_parties($invoiceID)
{
if ($invoiceID) {
$invoice = new invoice();
$invoice->set_id($invoiceID);
$invoice->select();
$interestedPartyOptions = $invoice->get_all_partieS($invoice->get_value("projectID"), $invoice->get_value("clientID"));
}
if (is_object($this) && $this->get_id()) {
$interestedPartyOptions = interestedParty::get_interested_parties("invoiceRepeat", $this->get_id(), $interestedPartyOptions);
}
return $interestedPartyOptions;
}
开发者ID:cjbayliss,项目名称:alloc,代码行数:13,代码来源:invoiceRepeat.inc.php
示例12: show_invoices
function show_invoices()
{
$current_user =& singleton("current_user");
global $project;
$clientID = $project->get_value("clientID");
$projectID = $project->get_id();
$_FORM["showHeader"] = true;
$_FORM["showInvoiceNumber"] = true;
$_FORM["showInvoiceClient"] = true;
$_FORM["showInvoiceName"] = true;
$_FORM["showInvoiceAmount"] = true;
$_FORM["showInvoiceAmountPaid"] = true;
$_FORM["showInvoiceDate"] = true;
$_FORM["showInvoiceStatus"] = true;
$_FORM["clientID"] = $clientID;
$_FORM["projectID"] = $projectID;
// Restrict non-admin users records
if (!$current_user->have_role("admin")) {
$_FORM["personID"] = $current_user->get_id();
}
$rows = invoice::get_list($_FORM);
echo invoice::get_list_html($rows, $_FORM);
}
开发者ID:cjbayliss,项目名称:alloc,代码行数:23,代码来源:project.php
示例13: define
*/
define("BROWSE","browse");
//if this page has error with auth remove the above line and figure out how to do it right
$SI_INVOICE_TYPE = new SimpleInvoices_Db_Table_InvoiceType();
$domain_id = domain_id::get();
#$sql = "SELECT * FROM ".TB_PREFIX."invoices where domain_id = ".$domain_id;
#global $dbh;
#$sth = dbQuery($sql) or die(htmlsafe(end($dbh->errorInfo())));
//$sql = "SELECT * FROM ".TB_PREFIX."invoices LIMIT $start, $limit";
$invoice = new invoice();
$sth = $invoice->select_all();
$q = strtolower($_GET["q"]);
if (!$q) return;
while ($invoice = getInvoices($sth)) {
$invoiceType = $SI_INVOICE_TYPE->getInvoiceType($invoice['type_id']);
if (strpos(strtolower($invoice['index_id']), $q) !== false) {
$invoice['id'] = htmlsafe($invoice['id']);
$invoice['total'] = htmlsafe(number_format($invoice['total'],2));
$invoice['paid'] = htmlsafe(number_format($invoice['paid'],2));
$invoice['owing'] = htmlsafe(number_format($invoice['owing'],2));
echo "$invoice[id]|<table><tr><td class='details_screen'>$invoice[preference]:</td><td>$invoice[index_id]</td><td class='details_screen'>Total: </td><td>$invoice[total] </td></tr><tr><td class='details_screen'>Biller: </td><td>$invoice[biller] </td><td class='details_screen'>Paid: </td><td>$invoice[paid] </td></tr><tr><td class='details_screen'>Customer: </td><td>$invoice[customer] </td><td class='details_screen'>Owing: </td><td><u>$invoice[owing]</u></td></tr></table>\n";
开发者ID:CalhounGaming,项目名称:simpleinvoices,代码行数:31,代码来源:process_ajax.php
示例14: header
<?php
header("Content-type: text/xml");
//$start = (isset($_POST['start'])) ? $_POST['start'] : "0" ;
$dir = isset($_POST['sortorder']) ? $_POST['sortorder'] : "DESC";
$sort = isset($_POST['sortname']) ? $_POST['sortname'] : "id";
$rp = isset($_POST['rp']) ? $_POST['rp'] : "25";
$having = isset($_GET['having']) ? $_GET['having'] : "";
$page = isset($_POST['page']) ? $_POST['page'] : "1";
//$sql = "SELECT * FROM ".TB_PREFIX."invoices LIMIT $start, $limit";
$invoice = new invoice();
$invoice->sort = $sort;
if ($auth_session->role_name == 'customer') {
$invoice->customer = $auth_session->user_id;
} elseif ($auth_session->role_name == 'biller') {
$invoice->biller = $auth_session->user_id;
}
$invoice->query = isset($_REQUEST['query']) ? $_REQUEST['query'] : null;
$invoice->qtype = isset($_REQUEST['qtype']) ? $_REQUEST['qtype'] : null;
$large_dataset = getDefaultLargeDataset();
if ($large_dataset == $LANG['enabled']) {
$sth = $invoice->select_all('large', $dir, $rp, $page, $having);
$sth_count_rows = $invoice->count();
$invoice_count = $sth_count_rows->fetch(PDO::FETCH_ASSOC);
$invoice_count = $invoice_count['count'];
} else {
$sth = $invoice->select_all('', $dir, $rp, $page, $having);
$sth_count_rows = $invoice->select_all('count', $dir, $rp, $page, $having);
$invoice_count = $sth_count_rows->rowCount();
}
$invoices = $sth->fetchAll(PDO::FETCH_ASSOC);
开发者ID:dadigo,项目名称:simpleinvoices,代码行数:31,代码来源:xml.php
示例15: header
<?php
header("Content-type: text/xml");
//$start = (isset($_POST['start'])) ? $_POST['start'] : "0" ;
$dir = (isset($_POST['sortorder'])) ? $_POST['sortorder'] : "DESC" ;
$sort = (isset($_POST['sortname'])) ? $_POST['sortname'] : "id" ;
$rp = (isset($_POST['rp'])) ? $_POST['rp'] : "25" ;
$having = (isset($_GET['having'])) ? $_GET['having'] : "" ;
$page = (isset($_POST['page'])) ? $_POST['page'] : "1" ;
$baseUrl = Zend_Registry::get('baseUrl');
//$sql = "SELECT * FROM ".TB_PREFIX."invoices LIMIT $start, $limit";
$invoice = new invoice();
$invoice->sort=$sort;
$invoice->query=$_REQUEST['query'];
$invoice->qtype=$_REQUEST['qtype'];
$invoice->sort=$sort;
// if role is customer then select only on customer!!!
if ($auth_session -> role_name == "customer") {
// find 'id' from customer table, based upon the email
$id = $invoice->select_customer_id($auth_session->email);
$invoice->customer = $id;
}
$sth = $invoice->select_all('', $dir, $rp, $page, $having);
$sth_count_rows = $invoice->select_all('count',$dir, $rp, $page, $having);
$invoices = $sth->fetchAll(PDO::FETCH_ASSOC);
开发者ID:CalhounGaming,项目名称:simpleinvoices,代码行数:30,代码来源:xml.php
示例16: invoice_form_delete_process
function invoice_form_delete_process($type, $returnpage_error, $returnpage_success)
{
log_debug("inc_invoices_forms", "Executing invoice_form_delete_process({$type}, {$mode}, {$returnpage_error}, {$returnpage_success})");
$invoice = new invoice();
$invoice->type = $type;
/*
Import POST Data
*/
$invoice->id = @security_form_input_predefined("int", "id_invoice", 1, "");
$data["delete_confirm"] = @security_form_input_predefined("any", "delete_confirm", 1, "You must confirm the deletion");
// we don't use this value (since we can't trust it) but we need to read it
// in here to work around a limitation in the Amberphplib framework
$data["code_invoice"] = @security_form_input_predefined("any", "code_invoice", 1, "");
/*
Error Handling
*/
// make sure the invoice actually exists
if (!$invoice->verify_invoice()) {
log_write("error", "process", "The invoice you have attempted to delete - " . $invoice->id . " - does not exist in this system.");
}
// check if invoice is locked or not
if ($invoice->check_delete_lock()) {
log_write("error", "process", "The invoice can not be deleted because it is locked.");
}
// return to input page in event of an error
if ($_SESSION["error"]["message"]) {
$_SESSION["error"]["form"][$type . "_invoice_delete"] = "failed";
header("Location: ../../index.php?page={$returnpage_error}&id=" . $invoice->id);
exit(0);
}
/*
Delete Invoice
*/
if ($invoice->action_delete()) {
$_SESSION["notification"]["message"] = array("Invoice has been successfully deleted.");
} else {
$_SESSION["error"]["message"][] = "Some problems were experienced while deleting the invoice.";
}
// display updated details
header("Location: ../../index.php?page={$returnpage_success}&id={$id}");
exit(0);
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:42,代码来源:inc_invoices_process.php
示例17: INT
$patch['208']['patch'] = "ALTER TABLE `" . TB_PREFIX . "preferences` ADD `index_group` INT( 11 ) NOT NULL ;";
$patch['208']['date'] = "20090826";
$defaults = getSystemDefaults();
$patch['209']['name'] = "Populate the status, locale, and language fields in preferences table";
$patch['209']['patch'] = "UPDATE `" . TB_PREFIX . "preferences` SET index_group = '" . $defaults['preference'] . "' ;";
$patch['209']['date'] = "20090826";
$patch['210']['name'] = "Create composite primary key for invoice table";
$patch['210']['patch'] = "ALTER TABLE `" . TB_PREFIX . "invoices` DROP PRIMARY KEY, ADD PRIMARY KEY(`domain_id`,`id` );";
$patch['210']['date'] = "20090826";
$patch['211']['name'] = "Reset auto-increment for invoice table";
$patch['211']['patch'] = "ALTER TABLE `" . TB_PREFIX . "invoices` AUTO_INCREMENT = 1;";
$patch['211']['date'] = "20090826";
$patch['212']['name'] = "Copy invoice.id into invoice.index_id";
$patch['212']['patch'] = "update `" . TB_PREFIX . "invoices` set index_id = id;";
$patch['212']['date'] = "20090902";
$invoiceobj = new invoice();
$max_invoice = $invoiceobj->max();
unset($invoiceobj);
$patch['213']['name'] = "Update the index table with max invoice id - if required";
if ($max_invoice > "0") {
$patch['213']['patch'] = "insert into `" . TB_PREFIX . "index` (id, node, sub_node, domain_id) VALUES (" . $max_invoice . ", 'invoice', '" . $defaults['preference'] . "','1');";
} else {
$patch['213']['patch'] = "select 1+1;";
}
$patch['213']['date'] = "20090902";
unset($defaults);
unset($max_invoice);
$patch['214']['name'] = "Add sub_node_2 to si_index table";
$patch['214']['patch'] = "ALTER TABLE `" . TB_PREFIX . "index` ADD `sub_node_2` VARCHAR( 255 ) NULL AFTER `sub_node`";
$patch['214']['date'] = "20090912";
$patch['215']['name'] = "si_invoices - add composite primary key - patch removed";
开发者ID:simpleinvoices2,项目名称:simpleinvoices,代码行数:31,代码来源:sql_patches.php
示例18: user_renew_domain
/**
* User initiate domain renewal
*/
function user_renew_domain($VAR)
{
# Validate user is owner of this domain
$db =& DB();
$rs = $db->Execute(sqlSelect($db, 'service', '*', "id = ::{$VAR['id']}:: AND account_id = " . SESS_ACCOUNT));
if (!SESS_LOGGED or !$rs or $rs->RecordCount() == 0) {
global $C_debug;
$C_debug->alert('Unable to renew domain at this time');
return;
}
include_once PATH_MODULES . 'invoice/invoice.inc.php';
$invoice = new invoice();
$id = $invoice->generatedomaininvoice($rs->fields, $invoice);
if ($id) {
global $VAR;
$VAR['id'] = $id;
define('FORCE_PAGE', "invoice:user_view");
}
}
开发者ID:chiranjeevjain,项目名称:agilebill,代码行数:22,代码来源:service.inc.php
示例19: calc_customer_paid
#amount paid calc - start
$stuff['paid'] = calc_customer_paid($customer['id'], domain_id::get(), true);
#amount paid calc - end
#amount owing calc - start
$stuff['owing'] = $stuff['total'] - $stuff['paid'];
#get custom field labels
$customFieldLabel = getCustomFieldLabels();
$invoices = getCustomerInvoices($customer_id);
//$start = (isset($_POST['start'])) ? $_POST['start'] : "0" ;
$dir = "DESC";
$sort = "id";
$rp = isset($_POST['rp']) ? $_POST['rp'] : "25";
$having = 'money_owed';
$page = isset($_POST['page']) ? $_POST['page'] : "1";
//$sql = "SELECT * FROM ".TB_PREFIX."invoices LIMIT $start, $limit";
$invoice_owing = new invoice();
$invoice_owing->sort = $sort;
$invoice_owing->having_and = "real";
$invoice_owing->query = $_REQUEST['query'];
$invoice_owing->qtype = $_REQUEST['qtype'];
$large_dataset = getDefaultLargeDataset();
if ($large_dataset == $LANG['enabled']) {
$sth = $invoice_owing->select_all('large_count', $dir, $rp, $page, $having);
} else {
$sth = $invoice_owing->select_all('', $dir, $rp, $page, $having);
}
$invoices_owing = $sth->fetchAll(PDO::FETCH_ASSOC);
//$customFieldLabel = getCustomFieldLabels("biller");
$smarty->assign("stuff", $stuff);
$smarty->assign('customer', $customer);
$smarty->assign('invoices', $invoices);
开发者ID:dadigo,项目名称:simpleinvoices,代码行数:31,代码来源:details.php
示例20: checkLogin
* GPL v2 or above
*
* Website:
* http://www.simpleinvoices.or
*/
checkLogin();
#get the invoice id
$invoice_id = $_GET['id'];
$invoice = getInvoice($invoice_id);
$invoice_number_of_taxes = numberOfTaxesForInvoice($invoice_id);
$invoice_type = getInvoiceType($invoice['type_id']);
$customer = getCustomer($invoice['customer_id']);
$biller = getBiller($invoice['biller_id']);
$preference = getPreference($invoice['preference_id']);
$defaults = getSystemDefaults();
$invoiceobj = new invoice();
$invoiceItems = $invoiceobj->getInvoiceItems($invoice_id);
$eway_check = new eway();
$eway_check->invoice = $invoice;
$eway_pre_check = $eway_check->pre_check();
#Invoice Age - number of days - start
if ($invoice['owing'] > 0) {
$invoice_age_days = number_format((strtotime(date('Y-m-d')) - strtotime($invoice['calc_date'])) / (60 * 60 * 24), 0);
$invoice_age = "{$invoice_age_days} {$LANG['days']}";
} else {
$invoice_age = "";
}
$url_for_pdf = "./index.php?module=export&view=pdf&id=" . $invoice['id'];
$invoice['url_for_pdf'] = $url_for_pdf;
$customFieldLabels = getCustomFieldLabels();
for ($i = 1; $i <= 4; $i++) {
开发者ID:dadigo,项目名称:simpleinvoices,代码行数:31,代码来源:quick_view.php
注:本文中的invoice类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论