Fix broadband plan change update
This commit is contained in:
@@ -35,6 +35,7 @@ use App\Traits\SiteID;
|
||||
* + 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
|
||||
* + category_name : The type of service this is, eg: Broadband, Telephone (in human friendly)
|
||||
* + isChargedOverride : Has the price been overridden?
|
||||
* + contract_term : The term that this service must be active
|
||||
* + contract_end : The date that the contract ends for this service
|
||||
* + name : Service short name with service address
|
||||
@@ -1216,6 +1217,11 @@ class Service extends Model implements IDs
|
||||
AND ! in_array($this->order_status,array_merge(self::INACTIVE_STATUS,['INACTIVE']));
|
||||
}
|
||||
|
||||
public function isChargeOverriden(): bool
|
||||
{
|
||||
return (! is_null($this->price)) || (! is_null($this->price_override));
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a collection of invoice_item objects that will be billed for the next invoice
|
||||
*
|
||||
|
Reference in New Issue
Block a user