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) { switch($docType) {
case 'quote': case 'quote':
$subject .= " Quotation" $subject .= " Quotation";
break; break;
case 'invoice': case 'invoice':
$subject .= " Invoice" $subject .= " Invoice"
$this->set('invoice', $this->Document->Invoice->find('first', array('conditions'=>array('Invoice.id'=>$document['Invoice']['id'])))); $this->set('invoice', $this->Document->Invoice->find('first', array('conditions'=>array('Invoice.id'=>$document['Invoice']['id']))));
break; break;
case 'purchaseOrder': 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'])))); $this->set('job', $this->Document->PurchaseOrder->Job->find('first', array('conditions'=>array('Job.id'=>$document['OrderAcknowledgement']['job_id']))));
break; break;
case 'orderAck': 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'])))); $this->set('job', $this->Document->OrderAcknowledgement->Job->find('first', array('conditions'=>array('Job.id'=>$document['OrderAcknowledgement']['job_id']))));
if ($document['OrderAcknowledgement']['signature_required']) { if ($document['OrderAcknowledgement']['signature_required']) {
$template = 'OrderAck_email_signature_required'; $template = 'OrderAck_email_signature_required';