add sub sales

This commit is contained in:
Ibnu Maksum
2024-02-07 10:11:30 +07:00
parent ac84e4b235
commit 671154d146
7 changed files with 11 additions and 12 deletions

View File

@ -111,9 +111,9 @@ class Message
$textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice);
$textInvoice = str_replace('[[invoice]]', $trx['invoice'], $textInvoice);
$textInvoice = str_replace('[[date]]', Lang::dateAndTimeFormat($trx['recharged_on'], $trx['recharged_time']), $textInvoice);
$gc = explode(" - ", $trx['method']);
$textInvoice = str_replace('[[payment_gateway]]', $gc[0], $textInvoice);
$textInvoice = str_replace('[[payment_channel]]', $gc[1], $textInvoice);
$gc = explode("-", $trx['method']);
$textInvoice = str_replace('[[payment_gateway]]', trim($gc[0]), $textInvoice);
$textInvoice = str_replace('[[payment_channel]]', trim($gc[1]), $textInvoice);
$textInvoice = str_replace('[[type]]', $trx['type'], $textInvoice);
$textInvoice = str_replace('[[plan_name]]', $trx['plan_name'], $textInvoice);
$textInvoice = str_replace('[[plan_price]]', Lang::moneyFormat($trx['price']), $textInvoice);