Deprecate price_overriden

This commit is contained in:
Deon George
2023-05-09 10:09:00 +09:00
parent a32e8e9d05
commit fe4bc3acef
6 changed files with 24 additions and 25 deletions

View File

@@ -442,9 +442,7 @@ class ServiceController extends Controller
$o->suspend_billing = ($request->suspend_billing == 'on');
$o->external_billing = ($request->external_billing == 'on');
// @todo Cant have both price and price_override - show an exception. (price_override shows a discount, whereas price shows the price)
$o->price = $request->price ?: NULL;
$o->price_override = $request->price_override ?: NULL;
// Also update our service start_at date.
// @todo We may want to make start_at/stop_at dynamic values calculated by the type records