372 lines
16 KiB
PHP
372 lines
16 KiB
PHP
<div class="shipments view">
|
|
<h2><?php __('Shipment');?></h2>
|
|
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $shipment['Shipment']['id']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Box Count'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $shipment['Shipment']['box_count']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Freight Forwarder'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $html->link($shipment['FreightForwarder']['name'], array('controller' => 'freight_forwarders', 'action' => 'view', $shipment['FreightForwarder']['id'])); ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $shipment['Shipment']['created']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Date Arrived'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $shipment['Shipment']['date_arrived']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Date Dispatched'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $shipment['Shipment']['date_dispatched']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Airway Bill'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $shipment['Shipment']['airway_bill']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Comments'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $shipment['Shipment']['comments']; ?>
|
|
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('Edit Shipment', true), array('action' => 'edit', $shipment['Shipment']['id'])); ?> </li>
|
|
<li><?php echo $html->link(__('Delete Shipment', true), array('action' => 'delete', $shipment['Shipment']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $shipment['Shipment']['id'])); ?> </li>
|
|
<li><?php echo $html->link(__('List Shipments', true), array('action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Shipment', true), array('action' => 'add')); ?> </li>
|
|
<li><?php echo $html->link(__('List Freight Forwarders', true), array('controller' => 'freight_forwarders', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Freight Forwarder', true), array('controller' => 'freight_forwarders', 'action' => 'add')); ?> </li>
|
|
<li><?php echo $html->link(__('List Boxes', true), array('controller' => 'boxes', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Box', true), array('controller' => 'boxes', 'action' => 'add')); ?> </li>
|
|
<li><?php echo $html->link(__('List Shipment Invoices', true), array('controller' => 'shipment_invoices', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Shipment Invoice', true), array('controller' => 'shipment_invoices', 'action' => 'add')); ?> </li>
|
|
<li><?php echo $html->link(__('List Jobs', true), array('controller' => 'jobs', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Job', true), array('controller' => 'jobs', '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 Purchase Orders', true), array('controller' => 'purchase_orders', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Purchase Order', true), array('controller' => 'purchase_orders', 'action' => 'add')); ?> </li>
|
|
</ul>
|
|
</div>
|
|
<div class="related">
|
|
<h3><?php __('Related Boxes');?></h3>
|
|
<?php if (!empty($shipment['Box'])):?>
|
|
<table cellpadding = "0" cellspacing = "0">
|
|
<tr>
|
|
<th><?php __('Id'); ?></th>
|
|
<th><?php __('Shipment Id'); ?></th>
|
|
<th><?php __('Length'); ?></th>
|
|
<th><?php __('Width'); ?></th>
|
|
<th><?php __('Height'); ?></th>
|
|
<th><?php __('Weight'); ?></th>
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($shipment['Box'] as $box):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td><?php echo $box['id'];?></td>
|
|
<td><?php echo $box['shipment_id'];?></td>
|
|
<td><?php echo $box['length'];?></td>
|
|
<td><?php echo $box['width'];?></td>
|
|
<td><?php echo $box['height'];?></td>
|
|
<td><?php echo $box['weight'];?></td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('controller' => 'boxes', 'action' => 'view', $box['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('controller' => 'boxes', 'action' => 'edit', $box['id'])); ?>
|
|
<?php echo $html->link(__('Delete', true), array('controller' => 'boxes', 'action' => 'delete', $box['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $box['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('New Box', true), array('controller' => 'boxes', 'action' => 'add'));?> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="related">
|
|
<h3><?php __('Related Shipment Invoices');?></h3>
|
|
<?php if (!empty($shipment['ShipmentInvoice'])):?>
|
|
<table cellpadding = "0" cellspacing = "0">
|
|
<tr>
|
|
<th><?php __('Id'); ?></th>
|
|
<th><?php __('Shipment Id'); ?></th>
|
|
<th><?php __('Principle Id'); ?></th>
|
|
<th><?php __('Currency Id'); ?></th>
|
|
<th><?php __('Invoice Number'); ?></th>
|
|
<th><?php __('Invoice Amount'); ?></th>
|
|
<th><?php __('Deferred Gst'); ?></th>
|
|
<th><?php __('Approved'); ?></th>
|
|
<th><?php __('Invoice Type'); ?></th>
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($shipment['ShipmentInvoice'] as $shipmentInvoice):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td><?php echo $shipmentInvoice['id'];?></td>
|
|
<td><?php echo $shipmentInvoice['shipment_id'];?></td>
|
|
<td><?php echo $shipmentInvoice['principle_id'];?></td>
|
|
<td><?php echo $shipmentInvoice['currency_id'];?></td>
|
|
<td><?php echo $shipmentInvoice['invoice_number'];?></td>
|
|
<td><?php echo $shipmentInvoice['invoice_amount'];?></td>
|
|
<td><?php echo $shipmentInvoice['deferred_gst'];?></td>
|
|
<td><?php echo $shipmentInvoice['approved'];?></td>
|
|
<td><?php echo $shipmentInvoice['invoice_type'];?></td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('controller' => 'shipment_invoices', 'action' => 'view', $shipmentInvoice['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('controller' => 'shipment_invoices', 'action' => 'edit', $shipmentInvoice['id'])); ?>
|
|
<?php echo $html->link(__('Delete', true), array('controller' => 'shipment_invoices', 'action' => 'delete', $shipmentInvoice['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $shipmentInvoice['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('New Shipment Invoice', true), array('controller' => 'shipment_invoices', 'action' => 'add'));?> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="related">
|
|
<h3><?php __('Related Jobs');?></h3>
|
|
<?php if (!empty($shipment['Job'])):?>
|
|
<table cellpadding = "0" cellspacing = "0">
|
|
<tr>
|
|
<th><?php __('Id'); ?></th>
|
|
<th><?php __('Created'); ?></th>
|
|
<th><?php __('Title'); ?></th>
|
|
<th><?php __('State Id'); ?></th>
|
|
<th><?php __('Customer Id'); ?></th>
|
|
<th><?php __('Enquiry Id'); ?></th>
|
|
<th><?php __('Contact Id'); ?></th>
|
|
<th><?php __('Comments'); ?></th>
|
|
<th><?php __('Date Order Received'); ?></th>
|
|
<th><?php __('Date Scheduled Ex Works'); ?></th>
|
|
<th><?php __('Date Order Sent To Customer'); ?></th>
|
|
<th><?php __('Customer Order Number'); ?></th>
|
|
<th><?php __('All Sent'); ?></th>
|
|
<th><?php __('All Paid'); ?></th>
|
|
<th><?php __('Job Status'); ?></th>
|
|
<th><?php __('Domestic Freight Paid By'); ?></th>
|
|
<th><?php __('Sale Category'); ?></th>
|
|
<th><?php __('Job Type'); ?></th>
|
|
<th><?php __('Shipment Category'); ?></th>
|
|
<th><?php __('Company Gross Sales Aud'); ?></th>
|
|
<th><?php __('Net Sales Aud'); ?></th>
|
|
<th><?php __('Gross Profit Aud'); ?></th>
|
|
<th><?php __('Ato Exchange Rate'); ?></th>
|
|
<th><?php __('Gst'); ?></th>
|
|
<th><?php __('Currency Id'); ?></th>
|
|
<th><?php __('Gst Amount'); ?></th>
|
|
<th><?php __('Gross Commisions'); ?></th>
|
|
<th><?php __('Invoiced Amount Inc Gst'); ?></th>
|
|
<th><?php __('Net Export Sales Aud'); ?></th>
|
|
<th><?php __('Gross Profit Exports Aud'); ?></th>
|
|
<th><?php __('Gp Percent'); ?></th>
|
|
<th><?php __('Gross Australian Sales Foreign Currency'); ?></th>
|
|
<th><?php __('Net Australian Sales Foreign Currency'); ?></th>
|
|
<th><?php __('Gross Profit Value Australian Sales Foreign Currency'); ?></th>
|
|
<th><?php __('Gross Export Sales Foreign Currency'); ?></th>
|
|
<th><?php __('Net Export Sales Foreign Currency'); ?></th>
|
|
<th><?php __('Gross Profit Value After Discount Exports Foreign Currency'); ?></th>
|
|
<th><?php __('Gross Commissions'); ?></th>
|
|
<th><?php __('Net Commissions'); ?></th>
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($shipment['Job'] as $job):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td><?php echo $job['id'];?></td>
|
|
<td><?php echo $job['created'];?></td>
|
|
<td><?php echo $job['title'];?></td>
|
|
<td><?php echo $job['state_id'];?></td>
|
|
<td><?php echo $job['customer_id'];?></td>
|
|
<td><?php echo $job['enquiry_id'];?></td>
|
|
<td><?php echo $job['contact_id'];?></td>
|
|
<td><?php echo $job['comments'];?></td>
|
|
<td><?php echo $job['date_order_received'];?></td>
|
|
<td><?php echo $job['date_scheduled_ex_works'];?></td>
|
|
<td><?php echo $job['date_order_sent_to_customer'];?></td>
|
|
<td><?php echo $job['customer_order_number'];?></td>
|
|
<td><?php echo $job['all_sent'];?></td>
|
|
<td><?php echo $job['all_paid'];?></td>
|
|
<td><?php echo $job['job_status'];?></td>
|
|
<td><?php echo $job['domestic_freight_paid_by'];?></td>
|
|
<td><?php echo $job['sale_category'];?></td>
|
|
<td><?php echo $job['job_type'];?></td>
|
|
<td><?php echo $job['shipment_category'];?></td>
|
|
<td><?php echo $job['company_gross_sales_aud'];?></td>
|
|
<td><?php echo $job['net_sales_aud'];?></td>
|
|
<td><?php echo $job['gross_profit_aud'];?></td>
|
|
<td><?php echo $job['ato_exchange_rate'];?></td>
|
|
<td><?php echo $job['gst'];?></td>
|
|
<td><?php echo $job['currency_id'];?></td>
|
|
<td><?php echo $job['gst_amount'];?></td>
|
|
<td><?php echo $job['gross_commisions'];?></td>
|
|
<td><?php echo $job['invoiced_amount_inc_gst'];?></td>
|
|
<td><?php echo $job['net_export_sales_aud'];?></td>
|
|
<td><?php echo $job['gross_profit_exports_aud'];?></td>
|
|
<td><?php echo $job['gp_percent'];?></td>
|
|
<td><?php echo $job['gross_australian_sales_foreign_currency'];?></td>
|
|
<td><?php echo $job['net_australian_sales_foreign_currency'];?></td>
|
|
<td><?php echo $job['gross_profit_value_australian_sales_foreign_currency'];?></td>
|
|
<td><?php echo $job['gross_export_sales_foreign_currency'];?></td>
|
|
<td><?php echo $job['net_export_sales_foreign_currency'];?></td>
|
|
<td><?php echo $job['gross_profit_value_after_discount_exports_foreign_currency'];?></td>
|
|
<td><?php echo $job['gross_commissions'];?></td>
|
|
<td><?php echo $job['net_commissions'];?></td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('controller' => 'jobs', 'action' => 'view', $job['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('controller' => 'jobs', 'action' => 'edit', $job['id'])); ?>
|
|
<?php echo $html->link(__('Delete', true), array('controller' => 'jobs', 'action' => 'delete', $job['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $job['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('New Job', true), array('controller' => 'jobs', 'action' => 'add'));?> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="related">
|
|
<h3><?php __('Related Principles');?></h3>
|
|
<?php if (!empty($shipment['Principle'])):?>
|
|
<table cellpadding = "0" cellspacing = "0">
|
|
<tr>
|
|
<th><?php __('Id'); ?></th>
|
|
<th><?php __('Name'); ?></th>
|
|
<th><?php __('Code'); ?></th>
|
|
<th><?php __('Address'); ?></th>
|
|
<th><?php __('City'); ?></th>
|
|
<th><?php __('State'); ?></th>
|
|
<th><?php __('Postcode'); ?></th>
|
|
<th><?php __('Country Id'); ?></th>
|
|
<th><?php __('Currency Id'); ?></th>
|
|
<th><?php __('Short Name'); ?></th>
|
|
<th><?php __('Url'); ?></th>
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($shipment['Principle'] as $principle):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td><?php echo $principle['id'];?></td>
|
|
<td><?php echo $principle['name'];?></td>
|
|
<td><?php echo $principle['code'];?></td>
|
|
<td><?php echo $principle['address'];?></td>
|
|
<td><?php echo $principle['city'];?></td>
|
|
<td><?php echo $principle['state'];?></td>
|
|
<td><?php echo $principle['postcode'];?></td>
|
|
<td><?php echo $principle['country_id'];?></td>
|
|
<td><?php echo $principle['currency_id'];?></td>
|
|
<td><?php echo $principle['short_name'];?></td>
|
|
<td><?php echo $principle['url'];?></td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('controller' => 'principles', 'action' => 'view', $principle['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('controller' => 'principles', 'action' => 'edit', $principle['id'])); ?>
|
|
<?php echo $html->link(__('Delete', true), array('controller' => 'principles', 'action' => 'delete', $principle['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $principle['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('New Principle', true), array('controller' => 'principles', 'action' => 'add'));?> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="related">
|
|
<h3><?php __('Related Purchase Orders');?></h3>
|
|
<?php if (!empty($shipment['PurchaseOrder'])):?>
|
|
<table cellpadding = "0" cellspacing = "0">
|
|
<tr>
|
|
<th><?php __('Id'); ?></th>
|
|
<th><?php __('Issue Date'); ?></th>
|
|
<th><?php __('Dispatch Date'); ?></th>
|
|
<th><?php __('Date Arrived'); ?></th>
|
|
<th><?php __('Title'); ?></th>
|
|
<th><?php __('Principle Id'); ?></th>
|
|
<th><?php __('Principle Reference'); ?></th>
|
|
<th><?php __('Document Id'); ?></th>
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($shipment['PurchaseOrder'] as $purchaseOrder):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td><?php echo $purchaseOrder['id'];?></td>
|
|
<td><?php echo $purchaseOrder['issue_date'];?></td>
|
|
<td><?php echo $purchaseOrder['dispatch_date'];?></td>
|
|
<td><?php echo $purchaseOrder['date_arrived'];?></td>
|
|
<td><?php echo $purchaseOrder['title'];?></td>
|
|
<td><?php echo $purchaseOrder['principle_id'];?></td>
|
|
<td><?php echo $purchaseOrder['principle_reference'];?></td>
|
|
<td><?php echo $purchaseOrder['document_id'];?></td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('controller' => 'purchase_orders', 'action' => 'view', $purchaseOrder['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('controller' => 'purchase_orders', 'action' => 'edit', $purchaseOrder['id'])); ?>
|
|
<?php echo $html->link(__('Delete', true), array('controller' => 'purchase_orders', 'action' => 'delete', $purchaseOrder['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $purchaseOrder['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('New Purchase Order', true), array('controller' => 'purchase_orders', 'action' => 'add'));?> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|