Bring back invoice note
This commit is contained in:
parent
091275f380
commit
3fe9111824
@ -62,6 +62,7 @@ class Package
|
|||||||
$textInvoice = str_replace('[[plan_price]]', $_c['currency_code'] . " " . number_format($p['price'], 2, $_c['dec_point'], $_c['thousands_sep']), $textInvoice);
|
$textInvoice = str_replace('[[plan_price]]', $_c['currency_code'] . " " . number_format($p['price'], 2, $_c['dec_point'], $_c['thousands_sep']), $textInvoice);
|
||||||
$textInvoice = str_replace('[[user_name]]', $c['username'], $textInvoice);
|
$textInvoice = str_replace('[[user_name]]', $c['username'], $textInvoice);
|
||||||
$textInvoice = str_replace('[[user_password]]', $c['password'], $textInvoice);
|
$textInvoice = str_replace('[[user_password]]', $c['password'], $textInvoice);
|
||||||
|
$textInvoice = str_replace('[[footer]]', $_c['note'], $textInvoice);
|
||||||
|
|
||||||
if ($_c['user_notification_payment'] == 'sms') {
|
if ($_c['user_notification_payment'] == 'sms') {
|
||||||
Message::sendSMS($c['phonenumber'], $textInvoice);
|
Message::sendSMS($c['phonenumber'], $textInvoice);
|
||||||
@ -255,6 +256,7 @@ class Package
|
|||||||
$textInvoice = str_replace('[[user_name]]', $in['username'], $textInvoice);
|
$textInvoice = str_replace('[[user_name]]', $in['username'], $textInvoice);
|
||||||
$textInvoice = str_replace('[[user_password]]', $c['password'], $textInvoice);
|
$textInvoice = str_replace('[[user_password]]', $c['password'], $textInvoice);
|
||||||
$textInvoice = str_replace('[[expired_date]]', date($_c['date_format'], strtotime($in['expiration'])) . " " . $in['time'], $textInvoice);
|
$textInvoice = str_replace('[[expired_date]]', date($_c['date_format'], strtotime($in['expiration'])) . " " . $in['time'], $textInvoice);
|
||||||
|
$textInvoice = str_replace('[[footer]]', $_c['note'], $textInvoice);
|
||||||
|
|
||||||
if ($_c['user_notification_payment'] == 'sms') {
|
if ($_c['user_notification_payment'] == 'sms') {
|
||||||
Message::sendSMS($c['phonenumber'], $textInvoice);
|
Message::sendSMS($c['phonenumber'], $textInvoice);
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
"reminder_7_day": "Hello *[[name]]*, \r\nyour internet package *[[package]]* will be expired in 7 days.",
|
"reminder_7_day": "Hello *[[name]]*, \r\nyour internet package *[[package]]* will be expired in 7 days.",
|
||||||
"reminder_3_day": "Hello *[[name]]*, \r\nyour internet package *[[package]]* will be expired in 3 days.",
|
"reminder_3_day": "Hello *[[name]]*, \r\nyour internet package *[[package]]* will be expired in 3 days.",
|
||||||
"reminder_1_day": "Hello *[[name]]*,\r\n your internet package *[[package]]* will be expired tomorrow.",
|
"reminder_1_day": "Hello *[[name]]*,\r\n your internet package *[[package]]* will be expired tomorrow.",
|
||||||
"invoice_paid": "*[[company_name]]*\r\n[[address]]\r\n[[phone]]\r\n\r\n\r\nINVOICE: *[[invoice]]*\r\nDate : [[date]]\r\n[[payment_gateway]] [[payment_channel]]\r\n\r\n\r\nType : *[[type]]*\r\nPackage : *[[plan_name]]*\r\nPrice : *[[plan_price]]*\r\n\r\nUsername : *[[user_name]]*\r\nPassword : ***********\r\n\r\nExpired : *[[expired_date]]*\r\n\r\n\r\nThank you...",
|
"invoice_paid": "*[[company_name]]*\r\n[[address]]\r\n[[phone]]\r\n\r\n\r\nINVOICE: *[[invoice]]*\r\nDate : [[date]]\r\n[[payment_gateway]] [[payment_channel]]\r\n\r\n\r\nType : *[[type]]*\r\nPackage : *[[plan_name]]*\r\nPrice : *[[plan_price]]*\r\n\r\nUsername : *[[user_name]]*\r\nPassword : ***********\r\n\r\nExpired : *[[expired_date]]*\r\n\r\n====================\r\n[[footer]]",
|
||||||
"invoice_balance": "*[[company_name]]*\r\n[[address]]\r\n[[phone]]\r\n\r\n\r\nINVOICE: *[[invoice]]*\r\nDate : [[date]]\r\n[[payment_gateway]] [[payment_channel]]\r\n\r\n\r\nType : *[[type]]*\r\nPackage : *[[plan_name]]*\r\nPrice : *[[plan_price]]*\r\n\r\nThank you..."
|
"invoice_balance": "*[[company_name]]*\r\n[[address]]\r\n[[phone]]\r\n\r\n\r\nINVOICE: *[[invoice]]*\r\nDate : [[date]]\r\n[[payment_gateway]] [[payment_channel]]\r\n\r\n\r\nType : *[[type]]*\r\nPackage : *[[plan_name]]*\r\nPrice : *[[plan_price]]*\r\n\r\n====================\r\n[[footer]]"
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,8 @@
|
|||||||
<b>[[plan_price]]</b> Internet Package Prices.<br>
|
<b>[[plan_price]]</b> Internet Package Prices.<br>
|
||||||
<b>[[user_name]]</b> Username internet.<br>
|
<b>[[user_name]]</b> Username internet.<br>
|
||||||
<b>[[user_password]]</b> User password.<br>
|
<b>[[user_password]]</b> User password.<br>
|
||||||
<b>[[expired_date]]</b> Expired datetime.
|
<b>[[expired_date]]</b> Expired datetime.<br>
|
||||||
|
<b>[[footer]]</b> Invoice Footer.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -107,7 +108,8 @@
|
|||||||
<b>[[plan_price]]</b> Internet Package Prices.<br>
|
<b>[[plan_price]]</b> Internet Package Prices.<br>
|
||||||
<b>[[user_name]]</b> Username internet.<br>
|
<b>[[user_name]]</b> Username internet.<br>
|
||||||
<b>[[user_password]]</b> User password.<br>
|
<b>[[user_password]]</b> User password.<br>
|
||||||
<b>[[trx_date]]</b> Transaction datetime.
|
<b>[[trx_date]]</b> Transaction datetime.<br>
|
||||||
|
<b>[[footer]]</b> Invoice Footer.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -247,6 +247,24 @@
|
|||||||
add dst-host=tawk.to<br>
|
add dst-host=tawk.to<br>
|
||||||
add dst-host=*.tawk.to</p>
|
add dst-host=*.tawk.to</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="panel-heading">
|
||||||
|
<div class="btn-group pull-right">
|
||||||
|
<button class="btn btn-primary btn-xs" title="save" type="submit"><span
|
||||||
|
class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span></button>
|
||||||
|
</div>
|
||||||
|
{Lang::T('Invoice')}
|
||||||
|
</div>
|
||||||
|
<div class="panel-heading"></div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">{Lang::T('Invoice Footer')}</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<textarea class="form-control" id="note" name="note"
|
||||||
|
rows="3">{Lang::htmlspecialchars($_c['note'])}</textarea>
|
||||||
|
<span class="help-block">{$_L['You_can_use_html_tag']}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
@ -43,7 +43,8 @@
|
|||||||
{$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($d['expiration']))}
|
{$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($d['expiration']))}
|
||||||
{$d['time']}</b><br>
|
{$d['time']}</b><br>
|
||||||
{/if}
|
{/if}
|
||||||
============================================
|
============================================<br>
|
||||||
|
<center>{$_c['note']}</center>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -28,7 +28,8 @@
|
|||||||
{$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($in['expiration']))}
|
{$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($in['expiration']))}
|
||||||
{$in['time']}</b><br>
|
{$in['time']}</b><br>
|
||||||
{/if}
|
{/if}
|
||||||
=====================================================
|
=====================================================<br>
|
||||||
|
<center>{$_c['note']}</center>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<form class="form-horizontal" method="post" action="{$_url}prepaid/print" target="_blank">
|
<form class="form-horizontal" method="post" action="{$_url}prepaid/print" target="_blank">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user