@@ 1150-1156 (lines=7) @@ | ||
1147 | $subject = str_replace("#INVOICE_NUMBER#", $amount, $subject); |
|
1148 | break; |
|
1149 | case 'email_add_did'; |
|
1150 | if(isset($accountinfo['did_maxchannels']) && $accountinfo['did_maxchannels']!= ""){ |
|
1151 | $accountinfo['did_maxchannels'] = $accountinfo['did_maxchannels']; |
|
1152 | } else if($accountinfo['did_maxchannels'] == "0"){ |
|
1153 | $accountinfo['did_maxchannels'] = "Unlimited"; |
|
1154 | } else{ |
|
1155 | $accountinfo['did_maxchannels'] = "Unlimited"; |
|
1156 | } |
|
1157 | $message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message); |
|
1158 | $message = str_replace('#DIDNUMBER#', $accountinfo['did_number'] , $message); |
|
1159 | $message = str_replace('#COUNTRYNAME#',$accountinfo['did_country_id'], $message); |
|
@@ 2140-2148 (lines=9) @@ | ||
2137 | /*************************** Invoice Note Code END ***************************************************/ |
|
2138 | $invoice_notes = $this->CI->db_model->getSelect('*', 'invoices', array('id'=>$invoicedata['id'])); |
|
2139 | $invoice_notes=$invoice_notes->result_array(); |
|
2140 | if(isset($invoice_notes[0]['notes'])){ |
|
2141 | $invoice_notes=$invoice_notes[0]['notes']; |
|
2142 | } else{ |
|
2143 | if($invoice_notes[0]['invoice_note'] == '0' ){ |
|
2144 | $invoice_notes='THIS IS A 30 DAY ACCOUNT, SO PLEASE MAKE PAYMENT WITHIN THESE TERMS'; |
|
2145 | } else{ |
|
2146 | $invoice_notes=$invoice_notes[0]['invoice_note']; |
|
2147 | } |
|
2148 | } |
|
2149 | /*************************** Invoice Note Code END ***************************************************/ |
|
2150 | ||
2151 | if (file_exists(getcwd()."/upload/".$invoice_config[0]['accountid']."_".$invoice_config[0]['logo'])) { |