Minor fixes to get charging working

This commit is contained in:
Deon George 2022-02-02 16:01:12 +11:00
parent db0ded44e0
commit e9ada2468e
2 changed files with 13 additions and 8 deletions

View File

@ -52,8 +52,6 @@ class Service extends Model implements IDs
'billing_price',
'name_short',
'next_invoice',
'product_category',
'product_name',
'service_id',
'service_id_url',
'status',

View File

@ -89,10 +89,10 @@
<span class="invalid-feedback" role="alert">
@error('account_id')
{{ $message }}
{{ $message }}
@else
Account is required.
@enderror
@enderror
</span>
</div>
<span class="input-helper">Account to add charge to.</span>
@ -114,10 +114,10 @@
</select>
<span class="invalid-feedback" role="alert">
@error('sweep_type')
{{ $message }}
{{ $message }}
@else
Sweep Type is required.
@enderror
@enderror
</span>
</div>
<span class="input-helper">When to add the charge to an invoice.</span>
@ -171,13 +171,16 @@
<span class="invalid-feedback" role="alert">
@error('service_id')
{{ $message }}
{{ $message }}
@else
Service is required.
@enderror
@enderror
</span>
</div>
{{--
<!-- @todo -->
<span class="input-helper"><sup>**</sup>Service inactive.</span>
--}}
</div>
</div>
@ -332,6 +335,10 @@
$('#service_id').select2();
$('#sweep_type').select2();
$('#type').select2();
if ($('#quantity').val() && $('#amount').val()) {
total();
}