cmc-sales/app/views/elements/document_orderack_view.ctp
2013-03-23 16:25:52 +11:00

47 lines
1.8 KiB
PHP
Executable file

<h2>Order Acknowledgement: <?=$html->link($job['Job']['title'], array('controller'=>'jobs', 'action'=>'view', $job['Job']['id']));?> for <?=$html->link($enquiry['Customer']['name'], '/customers/view/'.$enquiry['Customer']['id']);?></h2>
<div id="flashMessage" class="message">
</div>
<div class="docButtons">
<?=$html->link('Generate PDF of this Order Acknowledgement', '/documents/pdf/'.$document['Document']['id']);?>
<?=$html->link('Email PDF to Customer', '/documents/email_pdf/'.$document['Document']['id']);?>
</div>
<div class="docOperations" style="display: none;">
<h3>Create an Invoice from this OA</h3>
<?=$html->link('Create an Invoice based on this OA', '/documents/convert_to_invoice/'.$document['Document']['id'], array('class'=>'actionLink'));?>
</div>
<div id="invoiceDetails" class="documentDetails">
<fieldset>
<? echo $form->create('Document',array('type'=>'post','action'=>'edit', 'default'=>false));
echo $form->input('Document.id');
echo $form->input('OrderAcknowledgement.id');
echo $form->input('OrderAcknowledgement.currency_id');
echo $form->input('OrderAcknowledgement.issue_date');
echo $form->input('Document.bill_to');
echo $form->input('Document.ship_to');
echo $form->input('OrderAcknowledgement.ship_via');
echo $form->input('OrderAcknowledgement.fob');
echo $form->input('OrderAcknowledgement.estimated_delivery');
echo $form->input('Document.shipping_details', array('id'=>'shippingDetails'));
echo $form->end(array('label'=>'Save OA Details', 'id'=>'saveOAButton'));
?>
</fieldset>
</div>
<span id="orderAckID" style="display: none;"><?=$document['OrderAcknowledgement']['id']?></span>
<? //debug($this->data);?>
<? //debug($enquiry);?>
<?php // debug($job);?>
<?php //debug($docType);?>
<? //debug($invoice); ?>
<?php // debug($job);?>