I forgot how to do PHP apparently.

This commit is contained in:
Karl Cordes 2016-05-01 13:20:44 +10:00
parent 224719598e
commit 3af9f1a799

View file

@ -673,18 +673,18 @@ class DocumentsController extends AppController {
switch($docType) {
case 'quote':
$subject .= " Quotation"
$subject .= " Quotation";
break;
case 'invoice':
$subject .= " Invoice"
$this->set('invoice', $this->Document->Invoice->find('first', array('conditions'=>array('Invoice.id'=>$document['Invoice']['id']))));
break;
case 'purchaseOrder':
$subject .= " Purchase Order"
$subject .= " Purchase Order";
$this->set('job', $this->Document->PurchaseOrder->Job->find('first', array('conditions'=>array('Job.id'=>$document['OrderAcknowledgement']['job_id']))));
break;
case 'orderAck':
$subject .= " Order Acknowledgement"
$subject .= " Order Acknowledgement";
$this->set('job', $this->Document->OrderAcknowledgement->Job->find('first', array('conditions'=>array('Job.id'=>$document['OrderAcknowledgement']['job_id']))));
if ($document['OrderAcknowledgement']['signature_required']) {
$template = 'OrderAck_email_signature_required';