only admin can recharge Rp. 0

This commit is contained in:
iBNu Maksum 2025-03-10 13:53:02 +07:00
parent 597c051948
commit 4731a506bc
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
3 changed files with 11 additions and 5 deletions

View File

@ -1119,5 +1119,6 @@
"Day": "Day",
"Delete_this_widget_": "Delete this widget?",
"Remove_this_widget_": "Remove this widget?",
"PPPoE_Remote_IP": "PPPoE Remote IP"
"PPPoE_Remote_IP": "PPPoE Remote IP",
"Continue_the_Recharge_process": "Continue the Recharge process"
}

View File

@ -66,8 +66,10 @@
<option value="balance" {if $using eq 'balance'}selected{/if}>
{Lang::T('Customer Balance')}</option>
{/if}
<option value="zero" {if $using eq 'zero'}selected{/if}>{$_c['currency_code']} 0
</option>
{if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
<option value="zero" {if $using eq 'zero'}selected{/if}>{$_c['currency_code']} 0
</option>
{/if}
</select>
</span>
</li>

View File

@ -56,7 +56,9 @@
{if $_c['enable_balance'] eq 'yes'}
<option value="balance">{Lang::T('Customer Balance')}</option>
{/if}
<option value="zero">{$_c['currency_code']} 0</option>
{if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
<option value="zero">{$_c['currency_code']} 0</option>
{/if}
</select>
</div>
<p class="help-block col-md-4">{Lang::T('Postpaid Recharge for the first time use')}
@ -64,7 +66,8 @@
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" onclick="return ask(this, '{Lang::T('Continue the Recharge process')}?')"
<button class="btn btn-success"
onclick="return ask(this, '{Lang::T('Continue the Recharge process')}?')"
type="submit">{Lang::T('Recharge')}</button>
{Lang::T('Or')} <a href="{Text::url('')}customers/list">{Lang::T('Cancel')}</a>
</div>