Removed some debugging from view report. Added in shipments models etc for shipment register.
This commit is contained in:
parent
4b904673a2
commit
ecd06c4f9d
66
controllers/boxes_controller.php
Normal file
66
controllers/boxes_controller.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
class BoxesController extends AppController {
|
||||
|
||||
var $name = 'Boxes';
|
||||
var $helpers = array('Html', 'Form');
|
||||
|
||||
function index() {
|
||||
$this->Box->recursive = 0;
|
||||
$this->set('boxes', $this->paginate());
|
||||
}
|
||||
|
||||
function view($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid Box.', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
$this->set('box', $this->Box->read(null, $id));
|
||||
}
|
||||
|
||||
function add() {
|
||||
if (!empty($this->data)) {
|
||||
$this->Box->create();
|
||||
if ($this->Box->save($this->data)) {
|
||||
$this->Session->setFlash(__('The Box has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The Box could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
$shipments = $this->Box->Shipment->find('list');
|
||||
$this->set(compact('shipments'));
|
||||
}
|
||||
|
||||
function edit($id = null) {
|
||||
if (!$id && empty($this->data)) {
|
||||
$this->Session->setFlash(__('Invalid Box', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if (!empty($this->data)) {
|
||||
if ($this->Box->save($this->data)) {
|
||||
$this->Session->setFlash(__('The Box has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The Box could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
if (empty($this->data)) {
|
||||
$this->data = $this->Box->read(null, $id);
|
||||
}
|
||||
$shipments = $this->Box->Shipment->find('list');
|
||||
$this->set(compact('shipments'));
|
||||
}
|
||||
|
||||
function delete($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid id for Box', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if ($this->Box->del($id)) {
|
||||
$this->Session->setFlash(__('Box deleted', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
62
controllers/freight_forwarders_controller.php
Normal file
62
controllers/freight_forwarders_controller.php
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
class FreightForwardersController extends AppController {
|
||||
|
||||
var $name = 'FreightForwarders';
|
||||
var $helpers = array('Html', 'Form');
|
||||
|
||||
function index() {
|
||||
$this->FreightForwarder->recursive = 0;
|
||||
$this->set('freightForwarders', $this->paginate());
|
||||
}
|
||||
|
||||
function view($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid FreightForwarder.', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
$this->set('freightForwarder', $this->FreightForwarder->read(null, $id));
|
||||
}
|
||||
|
||||
function add() {
|
||||
if (!empty($this->data)) {
|
||||
$this->FreightForwarder->create();
|
||||
if ($this->FreightForwarder->save($this->data)) {
|
||||
$this->Session->setFlash(__('The FreightForwarder has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The FreightForwarder could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function edit($id = null) {
|
||||
if (!$id && empty($this->data)) {
|
||||
$this->Session->setFlash(__('Invalid FreightForwarder', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if (!empty($this->data)) {
|
||||
if ($this->FreightForwarder->save($this->data)) {
|
||||
$this->Session->setFlash(__('The FreightForwarder has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The FreightForwarder could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
if (empty($this->data)) {
|
||||
$this->data = $this->FreightForwarder->read(null, $id);
|
||||
}
|
||||
}
|
||||
|
||||
function delete($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid id for FreightForwarder', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if ($this->FreightForwarder->del($id)) {
|
||||
$this->Session->setFlash(__('FreightForwarder deleted', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
66
controllers/freight_services_controller.php
Normal file
66
controllers/freight_services_controller.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
class FreightServicesController extends AppController {
|
||||
|
||||
var $name = 'FreightServices';
|
||||
var $helpers = array('Html', 'Form');
|
||||
|
||||
function index() {
|
||||
$this->FreightService->recursive = 0;
|
||||
$this->set('freightServices', $this->paginate());
|
||||
}
|
||||
|
||||
function view($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid FreightService.', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
$this->set('freightService', $this->FreightService->read(null, $id));
|
||||
}
|
||||
|
||||
function add() {
|
||||
if (!empty($this->data)) {
|
||||
$this->FreightService->create();
|
||||
if ($this->FreightService->save($this->data)) {
|
||||
$this->Session->setFlash(__('The FreightService has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The FreightService could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
$freightForwarders = $this->FreightService->FreightForwarder->find('list');
|
||||
$this->set(compact('freightForwarders'));
|
||||
}
|
||||
|
||||
function edit($id = null) {
|
||||
if (!$id && empty($this->data)) {
|
||||
$this->Session->setFlash(__('Invalid FreightService', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if (!empty($this->data)) {
|
||||
if ($this->FreightService->save($this->data)) {
|
||||
$this->Session->setFlash(__('The FreightService has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The FreightService could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
if (empty($this->data)) {
|
||||
$this->data = $this->FreightService->read(null, $id);
|
||||
}
|
||||
$freightForwarders = $this->FreightService->FreightForwarder->find('list');
|
||||
$this->set(compact('freightForwarders'));
|
||||
}
|
||||
|
||||
function delete($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid id for FreightService', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if ($this->FreightService->del($id)) {
|
||||
$this->Session->setFlash(__('FreightService deleted', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
71
controllers/shipment_invoices_controller.php
Normal file
71
controllers/shipment_invoices_controller.php
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
<?php
|
||||
class ShipmentInvoicesController extends AppController {
|
||||
|
||||
var $name = 'ShipmentInvoices';
|
||||
var $helpers = array('Html', 'Form');
|
||||
|
||||
function index() {
|
||||
$this->ShipmentInvoice->recursive = 0;
|
||||
$this->set('shipmentInvoices', $this->paginate());
|
||||
}
|
||||
|
||||
function view($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid ShipmentInvoice.', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
$this->set('shipmentInvoice', $this->ShipmentInvoice->read(null, $id));
|
||||
}
|
||||
|
||||
function add() {
|
||||
if (!empty($this->data)) {
|
||||
$this->ShipmentInvoice->create();
|
||||
if ($this->ShipmentInvoice->save($this->data)) {
|
||||
$this->Session->setFlash(__('The ShipmentInvoice has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The ShipmentInvoice could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
$shipments = $this->ShipmentInvoice->Shipment->find('list');
|
||||
$freight_forwarders = $this->ShipmentInvoice->FreightForwarder->find('list');
|
||||
$principles = $this->ShipmentInvoice->Principle->find('list');
|
||||
$currencies = $this->ShipmentInvoice->Currency->find('list');
|
||||
$this->set(compact('shipments', 'principles', 'currencies', 'freight_forwarders'));
|
||||
}
|
||||
|
||||
function edit($id = null) {
|
||||
if (!$id && empty($this->data)) {
|
||||
$this->Session->setFlash(__('Invalid ShipmentInvoice', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if (!empty($this->data)) {
|
||||
if ($this->ShipmentInvoice->save($this->data)) {
|
||||
$this->Session->setFlash(__('The ShipmentInvoice has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The ShipmentInvoice could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
if (empty($this->data)) {
|
||||
$this->data = $this->ShipmentInvoice->read(null, $id);
|
||||
}
|
||||
$shipments = $this->ShipmentInvoice->Shipment->find('list');
|
||||
$principles = $this->ShipmentInvoice->Principle->find('list');
|
||||
$currencies = $this->ShipmentInvoice->Currency->find('list');
|
||||
$this->set(compact('shipments','principles','currencies'));
|
||||
}
|
||||
|
||||
function delete($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid id for ShipmentInvoice', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if ($this->ShipmentInvoice->del($id)) {
|
||||
$this->Session->setFlash(__('ShipmentInvoice deleted', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
73
controllers/shipments_controller.php
Normal file
73
controllers/shipments_controller.php
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
class ShipmentsController extends AppController {
|
||||
|
||||
var $name = 'Shipments';
|
||||
var $helpers = array('Html', 'Form');
|
||||
|
||||
|
||||
var $paginate = array(
|
||||
|
||||
'contain' => false,
|
||||
'limit' => 100,
|
||||
'order'=>array('Shipment.id' => 'desc'),
|
||||
'recursive' => 1
|
||||
|
||||
);
|
||||
|
||||
function index() {
|
||||
$this->Shipment->recursive = 0;
|
||||
$this->set('shipments', $this->paginate());
|
||||
}
|
||||
|
||||
function view($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid Shipment.', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
$this->set('shipment', $this->Shipment->read(null, $id));
|
||||
}
|
||||
|
||||
function add() {
|
||||
if (!empty($this->data)) {
|
||||
$this->Shipment->create();
|
||||
if ($this->Shipment->save($this->data)) {
|
||||
$this->Session->setFlash(__('The Shipment has been saved', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
} else {
|
||||
$this->Session->setFlash(__('The Shipment could not be saved. Please, try again.', true));
|
||||
}
|
||||
}
|
||||
$jobs = $this->Shipment->Job->find('list');
|
||||
$principles = $this->Shipment->Principle->find('list');
|
||||
$purchaseOrders = $this->Shipment->PurchaseOrder->find('list');
|
||||
$freightForwarders = $this->Shipment->FreightForwarder->find('list');
|
||||
$this->set(compact('jobs', 'principles', 'purchaseOrders', 'freightForwarders'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function add_edit($action = 'add') {
|
||||
|
||||
$principles = $this->Shipment->Principle->find('list');
|
||||
$freightForwarders = $this->Shipment->FreightForwarder->find('list');
|
||||
$this->set('principles', 'freightForwarders');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function delete($id = null) {
|
||||
if (!$id) {
|
||||
$this->Session->setFlash(__('Invalid id for Shipment', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
if ($this->Shipment->del($id)) {
|
||||
$this->Session->setFlash(__('Shipment deleted', true));
|
||||
$this->redirect(array('action'=>'index'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
19
models/box.php
Normal file
19
models/box.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
class Box extends AppModel {
|
||||
|
||||
var $name = 'Box';
|
||||
var $validate = array(
|
||||
'shipment_id' => array('numeric')
|
||||
);
|
||||
|
||||
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||||
var $belongsTo = array(
|
||||
'Shipment' => array(
|
||||
'className' => 'Shipment',
|
||||
'foreignKey' => 'shipment_id',
|
||||
'counterCache' => true
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
?>
|
||||
31
models/freight_forwarder.php
Normal file
31
models/freight_forwarder.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
class FreightForwarder extends AppModel {
|
||||
|
||||
var $name = 'FreightForwarder';
|
||||
var $validate = array(
|
||||
'name' => array('notempty')
|
||||
);
|
||||
|
||||
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||||
var $hasMany = array(
|
||||
'Shipment' => array(
|
||||
'className' => 'Shipment',
|
||||
'foreignKey' => 'freight_forwarder_id',
|
||||
'dependent' => false,
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'limit' => '',
|
||||
'offset' => '',
|
||||
'exclusive' => '',
|
||||
'finderQuery' => '',
|
||||
'counterQuery' => ''
|
||||
),
|
||||
'FreightService' => array(
|
||||
'className' => 'FreightService',
|
||||
'foreignKey' => 'freight_forwarder_id'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
?>
|
||||
27
models/freight_service.php
Normal file
27
models/freight_service.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
class FreightService extends AppModel {
|
||||
|
||||
var $name = 'FreightService';
|
||||
var $validate = array(
|
||||
'name' => array('notempty')
|
||||
);
|
||||
|
||||
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||||
var $belongsTo = array(
|
||||
'FreightForwarder' => array(
|
||||
'className' => 'FreightForwarder',
|
||||
'foreignKey' => 'freight_forwarder_id',
|
||||
'dependent' => false,
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'limit' => '',
|
||||
'offset' => '',
|
||||
'exclusive' => '',
|
||||
'finderQuery' => '',
|
||||
'counterQuery' => ''
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
?>
|
||||
105
models/shipment.php
Normal file
105
models/shipment.php
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
<?php
|
||||
class Shipment extends AppModel {
|
||||
|
||||
var $name = 'Shipment';
|
||||
var $validate = array(
|
||||
'freight_forwarder_id' => array('numeric'),
|
||||
'airway_bill' => array('notempty')
|
||||
);
|
||||
|
||||
var $recursive = 1;
|
||||
|
||||
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||||
var $belongsTo = array(
|
||||
'FreightForwarder' => array(
|
||||
'className' => 'FreightForwarder',
|
||||
'foreignKey' => 'freight_forwarder_id',
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => ''
|
||||
),
|
||||
'FreightService' => array(
|
||||
'className' => 'FreightService',
|
||||
'foreignKey' => 'freight_service_id'
|
||||
)
|
||||
);
|
||||
|
||||
var $hasMany = array(
|
||||
'Box' => array(
|
||||
'className' => 'Box',
|
||||
'foreignKey' => 'shipment_id',
|
||||
'dependent' => false,
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'limit' => '',
|
||||
'offset' => '',
|
||||
'exclusive' => '',
|
||||
'finderQuery' => '',
|
||||
'counterQuery' => ''
|
||||
),
|
||||
'ShipmentInvoice' => array(
|
||||
'className' => 'ShipmentInvoice',
|
||||
'foreignKey' => 'shipment_id',
|
||||
'dependent' => false,
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'limit' => '',
|
||||
'offset' => '',
|
||||
'exclusive' => '',
|
||||
'finderQuery' => '',
|
||||
'counterQuery' => ''
|
||||
)
|
||||
);
|
||||
|
||||
var $hasAndBelongsToMany = array(
|
||||
'Job' => array(
|
||||
'className' => 'Job',
|
||||
'joinTable' => 'shipments_jobs',
|
||||
'foreignKey' => 'shipment_id',
|
||||
'associationForeignKey' => 'job_id',
|
||||
'unique' => true,
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'limit' => '',
|
||||
'offset' => '',
|
||||
'finderQuery' => '',
|
||||
'deleteQuery' => '',
|
||||
'insertQuery' => ''
|
||||
),
|
||||
'Principle' => array(
|
||||
'className' => 'Principle',
|
||||
'joinTable' => 'shipments_principles',
|
||||
'foreignKey' => 'shipment_id',
|
||||
'associationForeignKey' => 'principle_id',
|
||||
'unique' => true,
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'limit' => '',
|
||||
'offset' => '',
|
||||
'finderQuery' => '',
|
||||
'deleteQuery' => '',
|
||||
'insertQuery' => ''
|
||||
),
|
||||
'PurchaseOrder' => array(
|
||||
'className' => 'PurchaseOrder',
|
||||
'joinTable' => 'shipments_purchase_orders',
|
||||
'foreignKey' => 'shipment_id',
|
||||
'associationForeignKey' => 'purchase_order_id',
|
||||
'unique' => true,
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'limit' => '',
|
||||
'offset' => '',
|
||||
'finderQuery' => '',
|
||||
'deleteQuery' => '',
|
||||
'insertQuery' => ''
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
?>
|
||||
45
models/shipment_invoice.php
Normal file
45
models/shipment_invoice.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
class ShipmentInvoice extends AppModel {
|
||||
|
||||
var $name = 'ShipmentInvoice';
|
||||
var $validate = array(
|
||||
'shipment_id' => array('numeric'),
|
||||
'principle_id' => array('numeric'),
|
||||
'currency_id' => array('numeric'),
|
||||
'invoice_number' => array('notempty'),
|
||||
'approved' => array('numeric')
|
||||
);
|
||||
|
||||
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||||
var $belongsTo = array(
|
||||
'Shipment' => array(
|
||||
'className' => 'Shipment',
|
||||
'foreignKey' => 'shipment_id',
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => '',
|
||||
'counterCache'=>true
|
||||
),
|
||||
'Principle' => array(
|
||||
'className' => 'Principle',
|
||||
'foreignKey' => 'principle_id',
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => ''
|
||||
),
|
||||
|
||||
'FreightForwarder' => array(
|
||||
'className' => 'FreightForwarder',
|
||||
'foreignKey' => 'freight_forwarder_id'
|
||||
),
|
||||
'Currency' => array(
|
||||
'className' => 'Currency',
|
||||
'foreignKey' => 'currency_id',
|
||||
'conditions' => '',
|
||||
'fields' => '',
|
||||
'order' => ''
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
@ -11,5 +11,9 @@
|
|||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('List FreightForwarders', true), array('action' => 'index'));?></li>
|
||||
<li><?php echo $html->link(__('List Shipments', true), array('controller' => 'shipments', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $html->link(__('List Freight Services', true), array('controller' => 'freight_services', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Freight Service', true), array('controller' => 'freight_services', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -13,5 +13,9 @@
|
|||
<ul>
|
||||
<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('FreightForwarder.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('FreightForwarder.id'))); ?></li>
|
||||
<li><?php echo $html->link(__('List FreightForwarders', true), array('action' => 'index'));?></li>
|
||||
<li><?php echo $html->link(__('List Shipments', true), array('controller' => 'shipments', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $html->link(__('List Freight Services', true), array('controller' => 'freight_services', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Freight Service', true), array('controller' => 'freight_services', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ foreach ($freightForwarders as $freightForwarder):
|
|||
<td class="actions">
|
||||
<?php echo $html->link(__('View', true), array('action' => 'view', $freightForwarder['FreightForwarder']['id'])); ?>
|
||||
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $freightForwarder['FreightForwarder']['id'])); ?>
|
||||
<?php //echo $html->link(__('Delete', true), array('action' => 'delete', $freightForwarder['FreightForwarder']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightForwarder['FreightForwarder']['id'])); ?>
|
||||
<?php echo $html->link(__('Delete', true), array('action' => 'delete', $freightForwarder['FreightForwarder']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightForwarder['FreightForwarder']['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
|
@ -44,5 +44,9 @@ foreach ($freightForwarders as $freightForwarder):
|
|||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('New FreightForwarder', true), array('action' => 'add')); ?></li>
|
||||
<li><?php echo $html->link(__('List Shipments', true), array('controller' => 'shipments', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $html->link(__('List Freight Services', true), array('controller' => 'freight_services', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Freight Service', true), array('controller' => 'freight_services', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
<div class="freightForwarders view">
|
||||
<h2><?php __('FreightForwarder');?></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 $freightForwarder['FreightForwarder']['id']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $freightForwarder['FreightForwarder']['name']; ?>
|
||||
|
|
@ -11,5 +16,106 @@
|
|||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('Edit FreightForwarder', true), array('action' => 'edit', $freightForwarder['FreightForwarder']['id'])); ?> </li>
|
||||
<li><?php echo $html->link(__('Delete FreightForwarder', true), array('action' => 'delete', $freightForwarder['FreightForwarder']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightForwarder['FreightForwarder']['id'])); ?> </li>
|
||||
<li><?php echo $html->link(__('List FreightForwarders', true), array('action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New FreightForwarder', true), array('action' => 'add')); ?> </li>
|
||||
<li><?php echo $html->link(__('List Shipments', true), array('controller' => 'shipments', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $html->link(__('List Freight Services', true), array('controller' => 'freight_services', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Freight Service', true), array('controller' => 'freight_services', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3><?php __('Related Shipments');?></h3>
|
||||
<?php if (!empty($freightForwarder['Shipment'])):?>
|
||||
<table cellpadding = "0" cellspacing = "0">
|
||||
<tr>
|
||||
<th><?php __('Id'); ?></th>
|
||||
<th><?php __('Box Count'); ?></th>
|
||||
<th><?php __('Shipment Invoice Count'); ?></th>
|
||||
<th><?php __('Freight Forwarder Id'); ?></th>
|
||||
<th><?php __('Address Id'); ?></th>
|
||||
<th><?php __('Customer Id'); ?></th>
|
||||
<th><?php __('Type'); ?></th>
|
||||
<th><?php __('Created'); ?></th>
|
||||
<th><?php __('Date Arrived'); ?></th>
|
||||
<th><?php __('Date Dispatched'); ?></th>
|
||||
<th><?php __('Airway Bill'); ?></th>
|
||||
<th><?php __('Comments'); ?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($freightForwarder['Shipment'] as $shipment):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $shipment['id'];?></td>
|
||||
<td><?php echo $shipment['box_count'];?></td>
|
||||
<td><?php echo $shipment['shipment_invoice_count'];?></td>
|
||||
<td><?php echo $shipment['freight_forwarder_id'];?></td>
|
||||
<td><?php echo $shipment['address_id'];?></td>
|
||||
<td><?php echo $shipment['customer_id'];?></td>
|
||||
<td><?php echo $shipment['type'];?></td>
|
||||
<td><?php echo $shipment['created'];?></td>
|
||||
<td><?php echo $shipment['date_arrived'];?></td>
|
||||
<td><?php echo $shipment['date_dispatched'];?></td>
|
||||
<td><?php echo $shipment['airway_bill'];?></td>
|
||||
<td><?php echo $shipment['comments'];?></td>
|
||||
<td class="actions">
|
||||
<?php echo $html->link(__('View', true), array('controller' => 'shipments', 'action' => 'view', $shipment['id'])); ?>
|
||||
<?php echo $html->link(__('Edit', true), array('controller' => 'shipments', 'action' => 'edit', $shipment['id'])); ?>
|
||||
<?php echo $html->link(__('Delete', true), array('controller' => 'shipments', 'action' => 'delete', $shipment['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $shipment['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', 'action' => 'add'));?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3><?php __('Related Freight Services');?></h3>
|
||||
<?php if (!empty($freightForwarder['FreightService'])):?>
|
||||
<table cellpadding = "0" cellspacing = "0">
|
||||
<tr>
|
||||
<th><?php __('Id'); ?></th>
|
||||
<th><?php __('Freight Forwarder Id'); ?></th>
|
||||
<th><?php __('Name'); ?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($freightForwarder['FreightService'] as $freightService):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $freightService['id'];?></td>
|
||||
<td><?php echo $freightService['freight_forwarder_id'];?></td>
|
||||
<td><?php echo $freightService['name'];?></td>
|
||||
<td class="actions">
|
||||
<?php echo $html->link(__('View', true), array('controller' => 'freight_services', 'action' => 'view', $freightService['id'])); ?>
|
||||
<?php echo $html->link(__('Edit', true), array('controller' => 'freight_services', 'action' => 'edit', $freightService['id'])); ?>
|
||||
<?php echo $html->link(__('Delete', true), array('controller' => 'freight_services', 'action' => 'delete', $freightService['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightService['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('New Freight Service', true), array('controller' => 'freight_services', 'action' => 'add'));?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
18
views/freight_services/add.ctp
Normal file
18
views/freight_services/add.ctp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<div class="freightServices form">
|
||||
<?php echo $form->create('FreightService');?>
|
||||
<fieldset>
|
||||
<legend><?php __('Add FreightService');?></legend>
|
||||
<?php
|
||||
echo $form->input('freight_forwarder_id');
|
||||
echo $form->input('name');
|
||||
?>
|
||||
</fieldset>
|
||||
<?php echo $form->end('Submit');?>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('List FreightServices', true), array('action' => 'index'));?></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>
|
||||
</ul>
|
||||
</div>
|
||||
20
views/freight_services/edit.ctp
Normal file
20
views/freight_services/edit.ctp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<div class="freightServices form">
|
||||
<?php echo $form->create('FreightService');?>
|
||||
<fieldset>
|
||||
<legend><?php __('Edit FreightService');?></legend>
|
||||
<?php
|
||||
echo $form->input('id');
|
||||
echo $form->input('freight_forwarder_id');
|
||||
echo $form->input('name');
|
||||
?>
|
||||
</fieldset>
|
||||
<?php echo $form->end('Submit');?>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('FreightService.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('FreightService.id'))); ?></li>
|
||||
<li><?php echo $html->link(__('List FreightServices', true), array('action' => 'index'));?></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>
|
||||
</ul>
|
||||
</div>
|
||||
54
views/freight_services/index.ctp
Normal file
54
views/freight_services/index.ctp
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<div class="freightServices index">
|
||||
<h2><?php __('FreightServices');?></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('freight_forwarder_id');?></th>
|
||||
<th><?php echo $paginator->sort('name');?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($freightServices as $freightService):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td>
|
||||
<?php echo $freightService['FreightService']['id']; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $html->link($freightService['FreightForwarder']['name'], array('controller' => 'freight_forwarders', 'action' => 'view', $freightService['FreightForwarder']['id'])); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $freightService['FreightService']['name']; ?>
|
||||
</td>
|
||||
<td class="actions">
|
||||
<?php echo $html->link(__('View', true), array('action' => 'view', $freightService['FreightService']['id'])); ?>
|
||||
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $freightService['FreightService']['id'])); ?>
|
||||
<?php echo $html->link(__('Delete', true), array('action' => 'delete', $freightService['FreightService']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightService['FreightService']['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 FreightService', 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>
|
||||
</ul>
|
||||
</div>
|
||||
30
views/freight_services/view.ctp
Normal file
30
views/freight_services/view.ctp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<div class="freightServices view">
|
||||
<h2><?php __('FreightService');?></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 $freightService['FreightService']['id']; ?>
|
||||
|
||||
</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($freightService['FreightForwarder']['name'], array('controller' => 'freight_forwarders', 'action' => 'view', $freightService['FreightForwarder']['id'])); ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $freightService['FreightService']['name']; ?>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $html->link(__('Edit FreightService', true), array('action' => 'edit', $freightService['FreightService']['id'])); ?> </li>
|
||||
<li><?php echo $html->link(__('Delete FreightService', true), array('action' => 'delete', $freightService['FreightService']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightService['FreightService']['id'])); ?> </li>
|
||||
<li><?php echo $html->link(__('List FreightServices', true), array('action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New FreightService', 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>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
@ -210,5 +210,5 @@
|
|||
|
||||
|
||||
<?
|
||||
print_r($jobs);
|
||||
//print_r($jobs);
|
||||
?>
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
echo $form->input('shipment_id');
|
||||
echo $form->input('principle_id');
|
||||
echo $form->input('currency_id');
|
||||
echo $form->input('freight_forwarder_id');
|
||||
echo $form->input('invoice_number');
|
||||
echo $form->input('invoice_amount');
|
||||
echo $form->input('deferred_gst');
|
||||
|
|
@ -22,6 +23,8 @@
|
|||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', '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 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 Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
echo $form->input('shipment_id');
|
||||
echo $form->input('principle_id');
|
||||
echo $form->input('currency_id');
|
||||
echo $form->input('freight_forwarder_id');
|
||||
echo $form->input('invoice_number');
|
||||
echo $form->input('invoice_amount');
|
||||
echo $form->input('deferred_gst');
|
||||
|
|
@ -24,6 +25,8 @@
|
|||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', '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 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 Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ echo $paginator->counter(array(
|
|||
<th><?php echo $paginator->sort('shipment_id');?></th>
|
||||
<th><?php echo $paginator->sort('principle_id');?></th>
|
||||
<th><?php echo $paginator->sort('currency_id');?></th>
|
||||
<th><?php echo $paginator->sort('freight_forwarder_id');?></th>
|
||||
<th><?php echo $paginator->sort('invoice_number');?></th>
|
||||
<th><?php echo $paginator->sort('invoice_amount');?></th>
|
||||
<th><?php echo $paginator->sort('deferred_gst');?></th>
|
||||
|
|
@ -40,6 +41,9 @@ foreach ($shipmentInvoices as $shipmentInvoice):
|
|||
<td>
|
||||
<?php echo $html->link($shipmentInvoice['Currency']['name'], array('controller' => 'currencies', 'action' => 'view', $shipmentInvoice['Currency']['id'])); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $html->link($shipmentInvoice['FreightForwarder']['name'], array('controller' => 'freight_forwarders', 'action' => 'view', $shipmentInvoice['FreightForwarder']['id'])); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $shipmentInvoice['ShipmentInvoice']['invoice_number']; ?>
|
||||
</td>
|
||||
|
|
@ -76,6 +80,8 @@ foreach ($shipmentInvoices as $shipmentInvoice):
|
|||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', '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 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 Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,11 @@
|
|||
<?php echo $html->link($shipmentInvoice['Currency']['name'], array('controller' => 'currencies', 'action' => 'view', $shipmentInvoice['Currency']['id'])); ?>
|
||||
|
||||
</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($shipmentInvoice['FreightForwarder']['name'], array('controller' => 'freight_forwarders', 'action' => 'view', $shipmentInvoice['FreightForwarder']['id'])); ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Invoice Number'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $shipmentInvoice['ShipmentInvoice']['invoice_number']; ?>
|
||||
|
|
@ -58,6 +63,8 @@
|
|||
<li><?php echo $html->link(__('New Shipment', true), array('controller' => 'shipments', '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 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 Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $html->link(__('New Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -104,7 +104,19 @@
|
|||
|
||||
|
||||
<div id="dialog-form" title="New Shipment">
|
||||
<h1>OH BABY</h1>
|
||||
<?php echo $form->create('Shipment');?>
|
||||
<?php
|
||||
echo $form->input('box_count');
|
||||
echo $form->input('freight_forwarder_id');
|
||||
echo $form->input('date_arrived');
|
||||
echo $form->input('date_dispatched');
|
||||
echo $form->input('airway_bill');
|
||||
echo $form->input('comments');
|
||||
echo $form->input('Job');
|
||||
echo $form->input('Principle');
|
||||
echo $form->input('PurchaseOrder');
|
||||
?>
|
||||
<?php echo $form->end('Submit');?>
|
||||
</div>
|
||||
|
||||
<?php debug($shipments); ?>
|
||||
Loading…
Reference in a new issue