Optimising product category and category names
This commit is contained in:
@@ -105,12 +105,13 @@ class Broadband extends Type implements ServiceUsage
|
||||
* Return the suppliers offering that this service is providing
|
||||
*
|
||||
* @return SupplierType
|
||||
* @todo This column provided_adsl_plan_id should either be deprecated or renamed.
|
||||
*/
|
||||
public function supplied(): SupplierType
|
||||
{
|
||||
return $this->provided_adsl_plan_id
|
||||
? SupplierBroadband::findOrFail($this->provided_adsl_plan_id)
|
||||
: $this->service->product->type->supplied;
|
||||
: $this->service->offering->supplied;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user