I forgot how to do PHP apparently.
This commit is contained in:
parent
224719598e
commit
3af9f1a799
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue