Enabled changing broadband services and adjusting invoices
This commit is contained in:
@@ -31,6 +31,7 @@ use App\Traits\SiteID;
|
||||
* + billing_charge : Charge for this service each invoice period // @todo change to "charge"
|
||||
* + billing_interval : The period that this service is billed for by default
|
||||
* + billing_interval_string : The period that this service is billed for by default as a name
|
||||
* + billed_to : When this service has been billed to // @todo rename all references to invoice_to
|
||||
* + category : The type of service this is, eg: broadband, phone
|
||||
* + contract_term : The term that this service must be active
|
||||
* + contract_end : The date that the contract ends for this service
|
||||
@@ -100,6 +101,7 @@ class Service extends Model implements IDs
|
||||
* to see if it can proceed further if not, it'll wait here for user/admin intervention
|
||||
*
|
||||
* @var array
|
||||
* @todo This needs an overhaul, its not implemented correctly.
|
||||
*/
|
||||
private const ACTION_PROGRESS = [
|
||||
// Order Submitted @todo redo
|
||||
@@ -256,6 +258,14 @@ class Service extends Model implements IDs
|
||||
'enter_method'=>'action_request_enter_redirect',
|
||||
'title'=>'Change Service',
|
||||
],
|
||||
|
||||
'CHANGE-PENDING' => [
|
||||
'next'=>[
|
||||
'ACTIVE'=>['wholesaler'],
|
||||
],
|
||||
'enter_method'=>'action_request_enter_redirect',
|
||||
'title'=>'Activate Change',
|
||||
],
|
||||
];
|
||||
|
||||
/* INTERFACES */
|
||||
@@ -1221,8 +1231,8 @@ class Service extends Model implements IDs
|
||||
$o->quantity = $oo->quantity;
|
||||
$o->item_type = $oo->type;
|
||||
$o->price_base = $oo->amount;
|
||||
$o->start_at = $oo->date_charge;
|
||||
$o->stop_at = $oo->date_charge;
|
||||
$o->start_at = $oo->start_at;
|
||||
$o->stop_at = $oo->stop_at;
|
||||
$o->module_id = 30; // @todo This shouldnt be hard coded
|
||||
$o->module_ref = $oo->id;
|
||||
$o->site_id = 1; // @todo
|
||||
|
Reference in New Issue
Block a user