= view('partial/header') ?>
' . $error_message . '';
exit;
}
?>
= view('partial/print_receipt', ['print_after_sale' => $print_after_sale, 'selected_printer' => 'invoice_printer']) ?>
= esc(nl2br($customer_info)) ?>
= esc($config['company']) ?>
= esc(nl2br($company_info)) ?>
| = lang('Sales.item_number') ?> |
= lang('Sales.item_name') ?> |
= lang('Sales.quantity') ?> |
= lang('Sales.price') ?> |
= lang('Sales.discount') ?> |
= lang('Sales.total') ?> |
$item) {
if ($item['print_option'] == PRINT_YES) {
?>
| = esc($item['item_number']) ?> |
= esc($item['name']) ?> |
= to_quantity_decimals($item['quantity']) ?> |
|
= ($item['discount_type'] == FIXED) ? to_currency($item['discount']) : to_decimals($item['discount']) . '%' ?> |
|
|
= esc($item['description']) ?> |
= esc($item['serialnumber']) ?> |
| = ' ' //TODO: Why is PHP needed for an HTML ` `? ?> |
| |
= lang('Sales.sub_total') ?> |
= to_currency($subtotal) ?> |
$tax) { ?>
| |
= (float)$tax['tax_rate'] . '% ' . $tax['tax_group'] ?> |
= to_currency_tax($tax['sale_tax_amount']) ?> |
| |
= lang('Sales.total') ?> |
= to_currency($total) ?> |
$payment) {
$only_sale_check |= $payment['payment_type'] == lang('Sales.check');
$splitpayment = explode(':', $payment['payment_type']); // TODO: $splitpayment does not match naming conventions for the project
$show_giftcard_remainder |= $splitpayment[0] == lang('Sales.giftcard');
?>
| |
= $splitpayment[0] ?> |
= to_currency($payment['payment_amount']) ?> |
= empty($comments) ? '' : lang('Sales.comments') . esc(": $comments") ?>
= view('partial/footer') ?>