fix logic Expired Date

This commit is contained in:
Ibnu Maksum 2024-06-25 14:05:22 +07:00
parent c85f680fea
commit 2401c7ae99
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -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'];