mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-28 05:54:42 +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 ($p['validity_unit'] == 'Period') {
|
||||||
// if customer has attribute Expired Date use it
|
// if customer has attribute Expired Date use it
|
||||||
$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;
|
|
||||||
}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;
|
||||||
if ($p['prepaid'] == 'no') {
|
if ($p['prepaid'] == 'no') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue