From a6c004e1cbd295680a6729fd82e35b2387398f14 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 13 Mar 2024 16:33:06 +0700 Subject: [PATCH] $day_exp --- system/autoload/Package.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/system/autoload/Package.php b/system/autoload/Package.php index a09691c1..ee075a20 100644 --- a/system/autoload/Package.php +++ b/system/autoload/Package.php @@ -56,10 +56,11 @@ class Package if ($p['validity_unit'] == 'Period') { $day_exp = User::getAttribute("Expired Date", $c['id']); //ORM::for_table('tbl_customers_fields')->where('field_name', 'Expired Date')->where('customer_id', $c['id'])->find_one(); if (!$day_exp) { - $day_exp = date('d', strtotime($c['created_at'])); - if (empty($day_exp) || $day_exp > 28) { - $day_exp = 1; - } + $day_exp = 20; + // $day_exp = date('d', strtotime($c['created_at'])); + // if (empty($day_exp) || $day_exp > 28) { + // $day_exp = 1; + // } $f = ORM::for_table('tbl_customers_fields')->create(); $f->customer_id = $c['id']; $f->field_name = 'Expired Date';