Example #1
0
    if (!uri_assoc('invoice_item_id', 4) or uri_assoc('invoice_item_id', 4) != $invoice_item->invoice_item_id) {
        ?>
		<tr id="<?php 
        echo $invoice_item->invoice_item_id;
        ?>
" class="hoverall">
			<td class="first"><?php 
        echo $invoice_item->item_name;
        ?>
</td>
			<td><?php 
        echo character_limiter($invoice_item->item_description, 40);
        ?>
</td>
			<td class="col_amount"><?php 
        echo format_qty($invoice_item->item_qty);
        ?>
</td>
			<td class="col_amount"><?php 
        echo display_currency($invoice_item->item_price);
        ?>
</td>
			<td><?php 
        if ($invoice_item->is_taxable) {
            echo icon('check');
        }
        ?>
</td>
			<td class="last">
				<a href="<?php 
        echo site_url('invoices/items/form/invoice_id/' . uri_assoc('invoice_id') . '/invoice_item_id/' . $invoice_item->invoice_item_id);
Example #2
0
echo $this->lang->line('item_date');
?>
: </label></dt>
					<dd><input class="datepicker" type="text" name="item_date" id="item_date" value="<?php 
echo $this->mdl_items->form_value('item_date');
?>
" /></dd>
				</dl>

				<dl>
					<dt><label>* <?php 
echo $this->lang->line('quantity');
?>
: </label></dt>
					<dd><input type="text" name="item_qty" id="item_qty" value="<?php 
echo format_qty($this->mdl_items->form_value('item_qty'));
?>
" /></dd>
				</dl>

				<dl>
					<dt><label>* <?php 
echo $this->lang->line('item_name');
?>
: </label></dt>
					<dd><input type="text" name="item_name" id="item_name" value="<?php 
echo $this->mdl_items->form_value('item_name');
?>
" /></dd>
				</dl>
function invoice_item_qty($item)
{
    global $CI;
    return format_qty($item->item_qty);
}