Fixed recording of orders and order notes
This commit is contained in:
@@ -19,6 +19,12 @@ class AdslPlan extends Model
|
||||
'validation'=>'required|string:10',
|
||||
'validation_message'=>'Address is a required field.',
|
||||
],
|
||||
'options.notes'=>[
|
||||
'request'=>'options.notes',
|
||||
'key'=>'order_info.notes',
|
||||
'validation'=>'present',
|
||||
'validation_message'=>'Special Instructions here.',
|
||||
],
|
||||
];
|
||||
|
||||
protected $order_model = Service\Adsl::class;
|
||||
|
@@ -14,7 +14,7 @@ class PlanVoip extends Model
|
||||
'options.phonenumber'=>[
|
||||
'request'=>'options.phonenumber',
|
||||
'key'=>'service_number',
|
||||
'validation'=>'required|min:10',
|
||||
'validation'=>'required|size:10',
|
||||
'validation_message'=>'Phone Number is a required field.',
|
||||
],
|
||||
'options.supplier'=>[
|
||||
@@ -29,6 +29,12 @@ class PlanVoip extends Model
|
||||
'validation'=>'required|min:4',
|
||||
'validation_message'=>'Phone Supplier Account Number is a required field.',
|
||||
],
|
||||
'options.notes'=>[
|
||||
'request'=>'options.notes',
|
||||
'key'=>'order_info.notes',
|
||||
'validation'=>'present',
|
||||
'validation_message'=>'Special Instructions here.',
|
||||
],
|
||||
];
|
||||
|
||||
protected $order_model = Service\Voip::class;
|
||||
|
@@ -180,6 +180,7 @@ class Service extends Model
|
||||
{
|
||||
return $this->model ? $this->type->name : NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the date for the next invoice
|
||||
*
|
||||
|
Reference in New Issue
Block a user