173 lines
6.6 KiB
Plaintext
173 lines
6.6 KiB
Plaintext
|
|
<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>
|
||
|
|
<th><?php echo $paginator->sort('itemnumber');?></th>
|
||
|
|
<th><?php echo $paginator->sort('option');?></th>
|
||
|
|
<th><?php echo $paginator->sort('quantity');?></th>
|
||
|
|
<th><?php echo $paginator->sort('costprice');?></th>
|
||
|
|
<th><?php echo $paginator->sort('currency_id');?></th>
|
||
|
|
<th><?php echo $paginator->sort('ourdiscount');?></th>
|
||
|
|
<th><?php echo $paginator->sort('packing');?></th>
|
||
|
|
<th><?php echo $paginator->sort('shippingweight');?></th>
|
||
|
|
<th><?php echo $paginator->sort('shippingcost');?></th>
|
||
|
|
<th><?php echo $paginator->sort('exchangerate');?></th>
|
||
|
|
<th><?php echo $paginator->sort('duty');?></th>
|
||
|
|
<th><?php echo $paginator->sort('finance');?></th>
|
||
|
|
<th><?php echo $paginator->sort('misc');?></th>
|
||
|
|
<th><?php echo $paginator->sort('grosssellprice');?></th>
|
||
|
|
<th><?php echo $paginator->sort('grossgpdollars');?></th>
|
||
|
|
<th><?php echo $paginator->sort('grossgppercentage');?></th>
|
||
|
|
<th><?php echo $paginator->sort('netgpdollars');?></th>
|
||
|
|
<th><?php echo $paginator->sort('netgppercent');?></th>
|
||
|
|
<th><?php echo $paginator->sort('targetgp');?></th>
|
||
|
|
<th><?php echo $paginator->sort('title');?></th>
|
||
|
|
<th><?php echo $paginator->sort('description');?></th>
|
||
|
|
<th><?php echo $paginator->sort('total_landed_cost');?></th>
|
||
|
|
<th><?php echo $paginator->sort('fob_countryof_export');?></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><?php echo $paginator->sort('discountamount');?></th>
|
||
|
|
<th><?php echo $paginator->sort('grosssellpriceeach');?></th>
|
||
|
|
<th><?php echo $paginator->sort('netsellpriceeach');?></th>
|
||
|
|
<th><?php echo $paginator->sort('netsellprice');?></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>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['itemnumber']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['option']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['quantity']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['costprice']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $html->link($quoteProduct['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $quoteProduct['Currency']['id'])); ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['ourdiscount']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['packing']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['shippingweight']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['shippingcost']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['exchangerate']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['duty']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['finance']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['misc']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['grosssellprice']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['grossgpdollars']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['grossgppercentage']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['netgpdollars']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['netgppercent']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['targetgp']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['title']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['description']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['total_landed_cost']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['fob_countryof_export']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $html->link($quoteProduct['Quote']['id'], array('controller'=> 'quotes', 'action'=>'view', $quoteProduct['Quote']['id'])); ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $html->link($quoteProduct['Product']['title'], array('controller'=> 'products', 'action'=>'view', $quoteProduct['Product']['id'])); ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['discount']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['discountamount']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['grosssellpriceeach']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['netsellpriceeach']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $quoteProduct['QuoteProduct']['netsellprice']; ?>
|
||
|
|
</td>
|
||
|
|
<td class="actions">
|
||
|
|
<?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'])); ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<div class="paging">
|
||
|
|
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
|
||
|
|
| <?php echo $paginator->numbers();?>
|
||
|
|
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
|
||
|
|
</div>
|
||
|
|
<div class="actions">
|
||
|
|
<ul>
|
||
|
|
<li><?php echo $html->link(__('New QuoteProduct', true), array('action'=>'add')); ?></li>
|
||
|
|
<li><?php echo $html->link(__('List Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('New Principle', true), array('controller'=> 'principles', '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>
|
||
|
|
</ul>
|
||
|
|
</div>
|