26 lines
949 B
PHP
26 lines
949 B
PHP
<h2>Invoice: <?=$document['Invoice']['title']?> for <?=$html->link($enquiry['Customer']['name'], '/customers/view/'.$enquiry['Customer']['id']);?></h2>
|
|
<h2>Job: <?=$html->link($invoice['Job']['title'], array('controller'=>'jobs', 'action'=>'view', $invoice['Job']['id']));?></h2>
|
|
<?
|
|
|
|
echo $form->create('Document',array('type'=>'post','action'=>'edit', 'default'=>false));
|
|
echo $form->input('Document.id');
|
|
?>
|
|
|
|
<div class="docButtons">
|
|
<button id="generateFirstPage">(re)Generate First Page</button>
|
|
|
|
<button id="editInvoiceDetails">View/Edit Invoice Details</button>
|
|
<?=$html->link('Generate PDF of this Invoice', '/documents/pdf/'.$document['Document']['id']);?>
|
|
</div>
|
|
|
|
<div id="flashMessage" class="message">
|
|
</div>
|
|
|
|
<span id="invoiceID" style="display: none;"><?=$document['Invoice']['id']?></span>
|
|
|
|
<? //debug($this->data);?>
|
|
<? //debug($enquiry);?>
|
|
<?php //debug($document);?>
|
|
<?php //debug($docType);?>
|
|
|
|
<? //debug($invoice); ?>
|