From 2401c7ae993074371fdf6fff159bf8731bcd1a5d Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Tue, 25 Jun 2024 14:05:22 +0700 Subject: [PATCH] fix logic Expired Date --- system/autoload/Package.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/autoload/Package.php b/system/autoload/Package.php index 2948f8c..9d9b83b 100644 --- a/system/autoload/Package.php +++ b/system/autoload/Package.php @@ -67,7 +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) { + if ($day_exp) { $day_exp = 20; $f = ORM::for_table('tbl_customers_fields')->create(); $f->customer_id = $c['id'];