forked from kevinowino869/mitrobill
Merge branch 'Development' of https://github.com/hotspotbilling/phpnuxbill into Development
This commit is contained in:
@ -308,7 +308,7 @@ class Message
|
||||
|
||||
public static function sendInvoice($cust, $trx)
|
||||
{
|
||||
global $config;
|
||||
global $config, $db_pass;
|
||||
$textInvoice = Lang::getNotifText('invoice_paid');
|
||||
$textInvoice = str_replace('[[company_name]]', $config['CompanyName'], $textInvoice);
|
||||
$textInvoice = str_replace('[[address]]', $config['address'], $textInvoice);
|
||||
@ -333,6 +333,10 @@ class Message
|
||||
$textInvoice = str_replace('[[password]]', $cust['password'], $textInvoice);
|
||||
$textInvoice = str_replace('[[expired_date]]', Lang::dateAndTimeFormat($trx['expiration'], $trx['time']), $textInvoice);
|
||||
$textInvoice = str_replace('[[footer]]', $config['note'], $textInvoice);
|
||||
|
||||
$inv_url = "?_route=voucher/invoice/$trx[id]/" . md5($trx['id'] . $db_pass);
|
||||
$textInvoice = str_replace('[[invoice_link]]', $inv_url, $textInvoice);
|
||||
|
||||
// Calculate bills and additional costs
|
||||
list($bills, $add_cost) = User::getBills($cust['id']);
|
||||
|
||||
|
Reference in New Issue
Block a user