Replace numeric status codes with descriptive words in billing system
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
c9bd2fe4fd
commit
978afc4819
4 changed files with 28 additions and 28 deletions
|
|
@ -297,12 +297,12 @@ function exec_ogp_module()
|
|||
|
||||
if($order['finish_date'] == 0){
|
||||
$finish_date = strtotime('+'.$order['qty'].' day');
|
||||
$status = 1;
|
||||
$status = 'paid';
|
||||
}
|
||||
else{
|
||||
//this is a renewel, start from end of previous order
|
||||
$finish_date = strtotime('+'.$order['qty'].' day',$order['finish_date']);
|
||||
$status = 1;
|
||||
$status = 'paid';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -311,13 +311,13 @@ function exec_ogp_module()
|
|||
// this is a new order
|
||||
if($order['finish_date'] == 0){
|
||||
$finish_date = strtotime('+'.$order['qty'].' month');
|
||||
$status = 1;
|
||||
$status = 'paid';
|
||||
|
||||
}
|
||||
else{
|
||||
//this is a renewel, start from end of previous order
|
||||
$finish_date = strtotime('+'.$order['qty'].' month',$order['finish_date']);
|
||||
$status = 1;
|
||||
$status = 'paid';
|
||||
}
|
||||
}
|
||||
elseif ($order['invoice_duration'] == "year")
|
||||
|
|
@ -325,12 +325,12 @@ function exec_ogp_module()
|
|||
// this is a new order
|
||||
if($order['finish_date'] == 0){
|
||||
$finish_date = strtotime('+'.$order['qty'].' year');
|
||||
$status = 1;
|
||||
$status = 'paid';
|
||||
}
|
||||
else{
|
||||
//this is a renewel, start from end of previous order
|
||||
$finish_date = strtotime('+'.$order['qty'].' year',$order['finish_date']);
|
||||
$status = 1;
|
||||
$status = 'paid';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue