Fixed path to signature required email template. Improved the dodgy subject line perhaps
This commit is contained in:
parent
44179469d8
commit
334cc4c431
|
|
@ -673,14 +673,18 @@ class DocumentsController extends AppController {
|
|||
|
||||
switch($docType) {
|
||||
case 'quote':
|
||||
$this->Email->subject += " Quotation"
|
||||
break;
|
||||
case 'invoice':
|
||||
$this->Email->subject += " Invoice"
|
||||
$this->set('invoice', $this->Document->Invoice->find('first', array('conditions'=>array('Invoice.id'=>$document['Invoice']['id']))));
|
||||
break;
|
||||
case 'purchaseOrder':
|
||||
$this->Email->subject += " Purchase Order"
|
||||
$this->set('job', $this->Document->PurchaseOrder->Job->find('first', array('conditions'=>array('Job.id'=>$document['OrderAcknowledgement']['job_id']))));
|
||||
break;
|
||||
case 'orderAck':
|
||||
$this->Email->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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue