mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 18:24:32 +02:00
dont save Expired Date if exists
This commit is contained in:
parent
4ff45e8de7
commit
540270f927
1 changed files with 0 additions and 5 deletions
|
@ -69,11 +69,6 @@ class Package
|
|||
$day_exp = User::getAttribute("Expired Date", $c['id']);
|
||||
if ($day_exp) {
|
||||
$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{
|
||||
// if customer no attribute Expired Date use plan expired date
|
||||
$day_exp = 20;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue