Added PO view. Bumped version number
This commit is contained in:
parent
56b487c30e
commit
e6150eba07
|
|
@ -42,7 +42,7 @@
|
|||
*/
|
||||
Configure::write('debug', 0);
|
||||
|
||||
Configure::write('version', '0.95');
|
||||
Configure::write('version', '0.98');
|
||||
|
||||
$host = $_SERVER['HTTP_HOST'];
|
||||
|
||||
|
|
|
|||
54
app/views/elements/document_purchase_order_view.ctp
Executable file
54
app/views/elements/document_purchase_order_view.ctp
Executable file
|
|
@ -0,0 +1,54 @@
|
|||
<h2>Purchase Order: <?=$document['PurchaseOrder']['title']?></h2>
|
||||
<h2>Job: <?=$html->link($invoice['Job']['title'], array('controller'=>'jobs', 'action'=>'view', $invoice['Job']['id']));?></h2>
|
||||
|
||||
<div id="flashMessage" class="message">
|
||||
</div>
|
||||
<div class="docButtons">
|
||||
<button id="paymentReceived">Enter Payment Received</button>
|
||||
<button id="pdfDocButton" data-url="/documents/pdf/<?= $document['Document']['id']; ?>">Generate PDF</button>
|
||||
<button id="emailDocButton" data-url="/documents/email_pdf/<?= $document['Document']['id']; ?>">Email PurchaseOrder to customer</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div id="invoiceDetails" class="documentDetails">
|
||||
<fieldset>
|
||||
<? //TO DO: Copy fields from CMC PO PDF. Wack them here
|
||||
// MAKE HTML TABLE ON PDF TEMPLATE IF NECESSARY.
|
||||
// ADD MANY JOBS TO THIS FORM WITH JS/CHECKBOXES/ETC
|
||||
// ?>
|
||||
<? echo $form->create('Document',array('type'=>'post','action'=>'edit', 'default'=>false));
|
||||
echo $form->input('Document.id');
|
||||
echo $form->input('PurchaseOrder.id');
|
||||
echo $form->input('PurchaseOrder.principle_id');
|
||||
echo $form->input('PurchaseOrder.principle_reference');
|
||||
echo $form->input('PurchaseOrder.currency_id');
|
||||
echo $form->input('PurchaseOrder.dispatch_date');
|
||||
echo $form->input('PurchaseOrder.date_arrived'); //ARGH. Really Karl?
|
||||
|
||||
echo $form->input('billing_address_id', array('div' => 'addressradio', 'legend' => 'Select Billing Address', 'options' => $billing_addresses_list, 'type' => 'radio', 'class'=>'billing_address'));
|
||||
echo $form->input('Document.bill_to');
|
||||
|
||||
|
||||
echo $form->input('shipping_address_id', array('div' => 'addressradio','legend' => 'Select Shipping Address', 'options' => $shipping_addresses_list, 'type' => 'radio', 'class' => 'shipping_address'));
|
||||
echo $form->input('Document.ship_to');
|
||||
|
||||
|
||||
|
||||
echo $form->input('PurchaseOrder.ship_via');
|
||||
echo $form->input('PurchaseOrder.fob');
|
||||
echo $form->input('Document.shipping_details', array('id'=>'shippingDetails'));
|
||||
echo $form->end(array('label'=>'Save PurchaseOrder Details', 'id'=>'savePurchaseOrderButton'));
|
||||
?>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
<span id="purchaseOrderID" style="display: none;"><?=$document['PurchaseOrder']['id']?></span>
|
||||
|
||||
<? //debug($this->data);?>
|
||||
<? //debug($enquiry);?>
|
||||
<?php //debug($document);?>
|
||||
<?php //debug($docType);?>
|
||||
|
||||
<? //debug($invoice); ?>
|
||||
Loading…
Reference in a new issue