2009-01-12 21:13:18 -08:00
|
|
|
<div class="quoteProducts index">
|
|
|
|
|
<h2><?php __('QuoteProducts');?></h2>
|
|
|
|
|
<p>
|
|
|
|
|
<?php
|
|
|
|
|
echo $paginator->counter(array(
|
|
|
|
|
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
|
|
|
|
|
));
|
|
|
|
|
?></p>
|
|
|
|
|
<table cellpadding="0" cellspacing="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<th><?php echo $paginator->sort('id');?></th>
|
2009-08-13 19:09:47 -07:00
|
|
|
<th><?php echo $paginator->sort('item_number');?></th>
|
2009-01-12 21:13:18 -08:00
|
|
|
<th><?php echo $paginator->sort('option');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('quantity');?></th>
|
2009-08-13 19:09:47 -07:00
|
|
|
<th><?php echo $paginator->sort('cost_price');?></th>
|
2009-01-12 21:13:18 -08:00
|
|
|
<th><?php echo $paginator->sort('currency_id');?></th>
|
2009-08-13 19:09:47 -07:00
|
|
|
<th><?php echo $paginator->sort('our_discount');?></th>
|
2009-01-12 21:13:18 -08:00
|
|
|
<th><?php echo $paginator->sort('packing');?></th>
|
2009-08-13 19:09:47 -07:00
|
|
|
<th><?php echo $paginator->sort('shipping_weight');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('shipping_cost');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('exchange_rate');?></th>
|
2009-01-12 21:13:18 -08:00
|
|
|
<th><?php echo $paginator->sort('duty');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('finance');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('misc');?></th>
|
2009-08-13 19:09:47 -07:00
|
|
|
<th><?php echo $paginator->sort('gross_sell_price');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('target_gp');?></th>
|
2009-01-12 21:13:18 -08:00
|
|
|
<th><?php echo $paginator->sort('title');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('description');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('quote_id');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('product_id');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('discount');?></th>
|
|
|
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
$i = 0;
|
|
|
|
|
foreach ($quoteProducts as $quoteProduct):
|
|
|
|
|
$class = null;
|
|
|
|
|
if ($i++ % 2 == 0) {
|
|
|
|
|
$class = ' class="altrow"';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<tr<?php echo $class;?>>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['id']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $quoteProduct['QuoteProduct']['item_number']; ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['option']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['quantity']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $quoteProduct['QuoteProduct']['cost_price']; ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $html->link($quoteProduct['Currency']['name'], array('controller' => 'currencies', 'action' => 'view', $quoteProduct['Currency']['id'])); ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $quoteProduct['QuoteProduct']['our_discount']; ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['packing']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $quoteProduct['QuoteProduct']['shipping_weight']; ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $quoteProduct['QuoteProduct']['shipping_cost']; ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $quoteProduct['QuoteProduct']['exchange_rate']; ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['duty']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['finance']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['misc']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $quoteProduct['QuoteProduct']['gross_sell_price']; ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $quoteProduct['QuoteProduct']['target_gp']; ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['title']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['description']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $html->link($quoteProduct['Quote']['id'], array('controller' => 'quotes', 'action' => 'view', $quoteProduct['Quote']['id'])); ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $html->link($quoteProduct['Product']['title'], array('controller' => 'products', 'action' => 'view', $quoteProduct['Product']['id'])); ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quoteProduct['QuoteProduct']['discount']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="actions">
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $html->link(__('View', true), array('action' => 'view', $quoteProduct['QuoteProduct']['id'])); ?>
|
|
|
|
|
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $quoteProduct['QuoteProduct']['id'])); ?>
|
|
|
|
|
<?php echo $html->link(__('Delete', true), array('action' => 'delete', $quoteProduct['QuoteProduct']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quoteProduct['QuoteProduct']['id'])); ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="paging">
|
|
|
|
|
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
|
|
|
|
|
| <?php echo $paginator->numbers();?>
|
2009-08-13 19:09:47 -07:00
|
|
|
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
2009-08-13 19:09:47 -07:00
|
|
|
<li><?php echo $html->link(__('New QuoteProduct', true), array('action' => 'add')); ?></li>
|
|
|
|
|
<li><?php echo $html->link(__('List Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Quotes', true), array('controller' => 'quotes', 'action' => 'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Quote', true), array('controller' => 'quotes', 'action' => 'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Products', true), array('controller' => 'products', 'action' => 'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Product', true), array('controller' => 'products', 'action' => 'add')); ?> </li>
|
2009-01-12 21:13:18 -08:00
|
|
|
</ul>
|
|
|
|
|
</div>
|