78 lines
3.3 KiB
PHP
Executable file
78 lines
3.3 KiB
PHP
Executable file
<div class="costings form">
|
|
|
|
|
|
|
|
<?php echo $form->create('Costing');?>
|
|
<fieldset>
|
|
<legend><?php __('Add Costing');?></legend>
|
|
<?php
|
|
echo $form->input('product_id');
|
|
echo $form->input('quote_product_id');
|
|
echo $form->input('order_product_id');
|
|
echo $form->input('invoice_product_id');
|
|
echo $form->input('purchase_currency_id');
|
|
echo $form->input('sale_currency_id');
|
|
echo $form->input('quantity');
|
|
echo $form->input('unit_cost_price');
|
|
echo $form->input('exchange_rate');
|
|
echo $form->input('our_discount_percent');
|
|
echo $form->input('packing');
|
|
|
|
echo '<div class="input text">';
|
|
echo $form->label('fob_country_of_export', 'F.O.B Country of Export');
|
|
echo $form->text('fob_country_of_export', array('readonly'=>'readonly', 'id'=>'fob_country_of_export'));
|
|
echo '</div>';
|
|
|
|
echo '<div class="input text">';
|
|
echo $form->label('convert_to_aud', 'Convert to A$');
|
|
echo $form->text('convert_to_aud', array('readonly'=>'readonly', 'id'=>'convert_to_aud'));
|
|
echo '</div>';
|
|
|
|
|
|
echo $form->input('shipping_weight');
|
|
echo $form->input('shipping_cost');
|
|
echo $form->input('duty_percent');
|
|
echo $form->input('customs');
|
|
echo $form->input('finance_percent', array('after'=>'<p id="financeamount"> </p>'));
|
|
echo $form->input('misc_costs');
|
|
echo $form->input('gross_sell_price');
|
|
echo $form->input('sale_discount_percent');
|
|
echo $form->input('net_sell_price');
|
|
|
|
echo '<div class="input text">';
|
|
echo $form->label('total_landed_cost', 'Total Landed Cost');
|
|
echo $form->text('total_landed_cost', array('readonly'=>'readonly', 'id'=>'total_landed_cost'));
|
|
echo '</div>';
|
|
echo $form->input('sellprice_each', array('label' => 'Sell Price Each', 'id'=>'sellprice_each'));
|
|
echo '<div class="input text">';
|
|
echo $form->label('gross_profit_dollars', 'Gross Profit $');
|
|
echo $form->text('gross_profit_dollars', array('readonly'=>'readonly', 'id'=>'gross_profit_dollars'));
|
|
echo '</div>';
|
|
echo '<div class="input text">';
|
|
echo $form->label('gross_profit_percent', 'Gross Profit %');
|
|
echo $form->text('gross_profit_prercent', array('readonly'=>'readonly', 'id'=>'gross_profit_percent'));
|
|
echo '</div>';
|
|
|
|
|
|
//echo $ajax->observeForm('CostingAddForm', array('frequency' => 0.5, 'complete'=>'buildup()'));
|
|
|
|
|
|
?>
|
|
</fieldset>
|
|
<?php echo $form->end('Submit');?>
|
|
|
|
<?php echo $javascript->link('quotenik/add_costing', true); ?>
|
|
|
|
</div>
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('List Costings', true), array('action' => 'index'));?></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>
|
|
<li><?php echo $html->link(__('List Quote Products', true), array('controller' => 'quote_products', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Quote Product', true), array('controller' => 'quote_products', 'action' => 'add')); ?> </li>
|
|
<li><?php echo $html->link(__('List Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Purchase Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?> </li>
|
|
</ul>
|
|
</div>
|