dont save Expired Date if exists

This commit is contained in:
Ibnu Maksum 2024-07-01 15:24:33 +07:00
parent 4ff45e8de7
commit 540270f927
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -69,11 +69,6 @@ class Package
$day_exp = User::getAttribute("Expired Date", $c['id']); $day_exp = User::getAttribute("Expired Date", $c['id']);
if ($day_exp) { if ($day_exp) {
$day_exp = 20; $day_exp = 20;
$f = ORM::for_table('tbl_customers_fields')->create();
$f->customer_id = $c['id'];
$f->field_name = 'Expired Date';
$f->field_value = $day_exp;
$f->save();
}else{ }else{
// if customer no attribute Expired Date use plan expired date // if customer no attribute Expired Date use plan expired date
$day_exp = 20; $day_exp = 20;