use customer Expired Date first then Expired Date from plan
This commit is contained in:
parent
540270f927
commit
7f757e07c8
@ -67,9 +67,7 @@ class Package
|
||||
if ($p['validity_unit'] == 'Period') {
|
||||
// if customer has attribute Expired Date use it
|
||||
$day_exp = User::getAttribute("Expired Date", $c['id']);
|
||||
if ($day_exp) {
|
||||
$day_exp = 20;
|
||||
}else{
|
||||
if (!$day_exp) {
|
||||
// if customer no attribute Expired Date use plan expired date
|
||||
$day_exp = 20;
|
||||
if ($p['prepaid'] == 'no') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user