function to_quantity_decimals($number) { return to_decimals($number, 'quantity_decimals'); }
} ?> <td> <?php if ($item['is_serialized'] == 1) { echo to_quantity_decimals($item['quantity']); echo form_hidden('quantity', $item['quantity']); } else { echo form_input(array('name' => 'quantity', 'class' => 'form-control input-sm', 'value' => to_quantity_decimals($item['quantity']), 'tabindex' => ++$tabindex)); } ?> </td> <td><?php echo form_input(array('name' => 'discount', 'class' => 'form-control input-sm', 'value' => to_decimals($item['discount'], 0), 'tabindex' => ++$tabindex)); ?> </td> <td><?php echo to_currency($item['price'] * $item['quantity'] - $item['price'] * $item['quantity'] * $item['discount'] / 100); ?> </td> <td><a href="javascript:document.getElementById('<?php echo 'cart_' . $line; ?> ').submit();" title=<?php echo $this->lang->line('sales_update'); ?> ><span class="glyphicon glyphicon-refresh"></span></a></td> </tr> <tr>