Fix invoices not being generated when price is null, service update rendering updates
This commit is contained in:
@@ -421,6 +421,12 @@ class ServiceController extends Controller
|
||||
if ($request->post('recur_schedule'))
|
||||
$o->recur_schedule = $request->recur_schedule;
|
||||
|
||||
$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
|
||||
if ($request->post('start_at'))
|
||||
|
Reference in New Issue
Block a user