Move base_cost/base_charge product::class methods into __get(), and base_charge(), no functional changes
This commit is contained in:
@@ -343,7 +343,7 @@ class ServiceController extends Controller
|
||||
$co->type = $iio->item_type;
|
||||
$co->start_at = $start_at;
|
||||
$co->stop_at = $iio->stop_at;
|
||||
$co->amount = Arr::get($request->broadband,'price') ?: $po->base_charge;
|
||||
$co->amount = Arr::get($request->broadband,'price') ?: $po->base_charge();
|
||||
$co->taxable = TRUE; // @todo this should be determined
|
||||
$co->quantity = $start_at->diffInDays($iio->stop_at)/$iio->start_at->diffInDays($iio->stop_at);
|
||||
$charges->push($co);
|
||||
|
Reference in New Issue
Block a user