mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 10:15:03 +02:00
use customer Expired Date first then Expired Date from plan
This commit is contained in:
parent
540270f927
commit
7f757e07c8
1 changed files with 1 additions and 3 deletions
|
@ -67,9 +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) {
|
||||
$day_exp = 20;
|
||||
}else{
|
||||
if (!$day_exp) {
|
||||
// if customer no attribute Expired Date use plan expired date
|
||||
$day_exp = 20;
|
||||
if ($p['prepaid'] == 'no') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue