From 7f757e07c81c64016e0406b432de18942086b952 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 1 Jul 2024 15:25:27 +0700 Subject: [PATCH] use customer Expired Date first then Expired Date from plan --- system/autoload/Package.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/autoload/Package.php b/system/autoload/Package.php index 67c4e3b8..a8acdf1f 100644 --- a/system/autoload/Package.php +++ b/system/autoload/Package.php @@ -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') {