= view('partial/header') ?> ' . esc($error) . ''; } if (!empty($warning)) { echo '
| = lang('Common.delete') ?> | = lang('Sales.item_number') ?> | = lang(ucfirst($controller_name) . '.item_name') ?> | = lang(ucfirst($controller_name) . '.cost') ?> | = lang(ucfirst($controller_name) . '.quantity') ?> | = lang(ucfirst($controller_name) . '.ship_pack') ?> | = lang(ucfirst($controller_name) . '.discount') ?> | = lang(ucfirst($controller_name) . '.total') ?> | = lang(ucfirst($controller_name) . '.update') ?> | ||
|---|---|---|---|---|---|---|---|---|---|---|
|
= lang('Sales.no_items_in_cart') ?>
|
||||||||||
| = anchor("$controller_name/deleteItem/$line", '') ?> | = esc($item['item_number']) ?> |
= esc($item['name'] . ' ' . implode(' ', [$item['attribute_values'], $item['attribute_dtvalues']])) ?> = '[' . to_quantity_decimals($item['in_stock']) . ' in ' . $item['stock_name'] . ']' ?> = form_hidden('location', (string)$item['item_location']) ?> |
= form_input([ 'name' => 'price', 'class' => 'form-control input-sm', 'value' => to_currency_no_money($item['price']), 'onClick' => 'this.select();' ]) ?> | = $item['price'] ?> = form_hidden('price', to_currency_no_money($item['price'])) ?> | = form_input(['name' => 'quantity', 'class' => 'form-control input-sm', 'value' => to_quantity_decimals($item['quantity']), 'onClick' => 'this.select();']) ?> | = form_dropdown( 'receiving_quantity', $item['receiving_quantity_choices'], $item['receiving_quantity'], ['class' => 'form-control input-sm'] ) ?> |
= form_input(['name' => 'discount', 'class' => 'form-control input-sm', 'value' => $item['discount_type'] ? to_currency_no_money($item['discount']) : to_decimals($item['discount']), 'onClick' => 'this.select();']) ?>
= form_checkbox([
'id' => 'discount_toggle',
'name' => 'discount_toggle',
'value' => 1,
'data-toggle' => "toggle",
'data-size' => 'small',
'data-onstyle' => 'success',
'data-on' => '' . $config['currency_symbol'] . '',
'data-off' => '%',
'data-line' => $line,
'checked' => $item['discount_type'] == 1
]) ?>
|
= $item['discount'] ?> | = form_hidden('discount', (string)$item['discount']) ?>= to_currency(($item['discount_type'] == PERCENT) ? $item['price'] * $item['quantity'] * $item['receiving_quantity'] - $item['price'] * $item['quantity'] * $item['receiving_quantity'] * $item['discount'] / 100 : $item['price'] * $item['quantity'] * $item['receiving_quantity'] - $item['discount']) ?> | ').submit();" title== lang(ucfirst($controller_name) . '.update') ?>> |
| = lang('Sales.description_abbrv') . ':' ?> | 'description', 'class' => 'form-control input-sm', 'value' => $item['description'] ]); } else { if ($item['description'] != '') { // TODO: !==? echo $item['description']; echo form_hidden('description', $item['description']); } else { echo '' . lang('Sales.no_description') . ''; echo form_hidden('description', ''); } } ?> | |||||||||
| = lang(ucfirst($controller_name) . '.supplier') ?> | = esc($supplier) ?> |
|---|---|
| = lang(ucfirst($controller_name) . '.supplier_email') ?> | = esc($supplier_email) ?> |
| = lang(ucfirst($controller_name) . '.supplier_address') ?> | = esc($supplier_address) ?> |
| = lang(ucfirst($controller_name) . '.supplier_location') ?> | = esc($supplier_location) ?> |
| = lang('Sales.total') ?> | = to_currency($total) ?> |
|---|
| = lang(ucfirst($controller_name) . '.print_after_sale') ?> | = form_checkbox([ 'name' => 'recv_print_after_sale', 'id' => 'recv_print_after_sale', 'class' => 'checkbox', 'value' => 1, 'checked' => $print_after_sale == 1 ]) ?> |
| = lang(ucfirst($controller_name) . '.reference') ?> | = form_input([ 'name' => 'recv_reference', 'id' => 'recv_reference', 'class' => 'form-control input-sm', 'value' => $reference, 'size' => 5 ]) ?> |
| = lang('Sales.payment') ?> | = form_dropdown( 'payment_type', $payment_options, [], [ 'id' => 'payment_types', 'class' => 'selectpicker show-menu-arrow', 'data-style' => 'btn-default btn-sm', 'data-width' => 'auto' ] ) ?> |
| = lang('Sales.amount_tendered') ?> | = form_input([ 'name' => 'amount_tendered', 'value' => '', 'class' => 'form-control input-sm', 'size' => '5' ]) ?> |