Removed dupe email_pdf function
This commit is contained in:
parent
1ef6cad142
commit
2105f9ee44
|
|
@ -811,28 +811,6 @@ ENDINSTRUCTIONS;
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* Email the PDF(document + attachments) for this Document to a Recipient (Customer or Principle).
|
||||
*
|
||||
*
|
||||
* @param <int> $id - Document ID
|
||||
*/
|
||||
function email_pdf($id) {
|
||||
|
||||
//Setup the SMTP Options
|
||||
$this->Email->smtpOptions = Configure::read('smtp_settings');
|
||||
$this->Email->delivery = 'smtp';
|
||||
|
||||
$document = $this->Document->read(null,$id);
|
||||
|
||||
if(empty($document['Document']['pdf_filename'])) {
|
||||
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function pdf($id = null) {
|
||||
//Configure::write('debug',0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue