|
|
|
element('isEmptyDate', array('date'=>$shipment['Shipment']['date_arrived']));
?>
|
element('isEmptyDate', array('date'=>$shipment['Shipment']['date_dispatched']));
?>
|
|
if(!empty($principle['short_name'])) {
echo $html->link($principle['short_name'], array('controller'=>'principles','action'=>'view',$principle['id']));
}
else {
echo $html->link($principle['name'], array('controller'=>'principles','action'=>'view',$principle['id']));
}
?>
|
=$html->link($po['title'], array('controller'=>'purchase_orders', 'action'=>'view', $po['id']));?>
|
=$html->link($job['title'], array('controller'=>'jobs', 'action'=>'view', $job['id']));?>
|
|
=$box['length']?>x=$box['width']?>x=$box['height']?>
$weightString .= $box['weight'].' kg ';
$totalWeight += $box['weight']; ?>
|
$boxCount = $shipment['Shipment']['box_count'];
if($boxCount > 1) {
echo $weightString;
echo ' ';
}?>
if($boxCount != 0): ?>
=$totalWeight;?> kg |
endif;?>
link($shipment['FreightForwarder']['name'], array('controller' => 'freight_forwarders', 'action' => 'view', $shipment['FreightForwarder']['id'])); ?>
|
|
=$shipment['Shipment']['shipment_invoice_count'];?>
|
foreach($shipment['ShipmentInvoice'] as $si) {
if(!empty($si['principle_id'])) {
echo $principles[$si['principle_id']];
}
else if(!empty($si['freight_forwarder_id'])) {
echo $freightForwarders[$si['freight_forwarder_id']];
}
else if($si['invoice_type'] == 2) {
echo "CUSTOMS";
}
else {
echo "";
}
echo " ";
}
?>
|
foreach($shipment['ShipmentInvoice'] as $si) {
echo $currencies[$si['currency_id']]." ".$si['invoice_amount']." ";
}?>
|
foreach($shipment['ShipmentInvoice'] as $si) {
if($si['deferred_gst'] == 1) {
echo $currencies[$si['currency_id']]." ".$si['deferred_gst_amount']." ";
}
}
?>
|
foreach($shipment['ShipmentInvoice'] as $si) {
echo $this->element('booleanTick', array('bool'=>$si['approved'])); }
?>
|
foreach($shipment['ShipmentInvoice'] as $si) {
echo $this->element('booleanTick', array('bool'=>$si['paid']));
}?>
|
foreach($shipment['ShipmentInvoice'] as $si) {
echo $this->element('isEmptyDate', array('date'=>$si['date_paid']));
}
?>
|
|
|