Removed 'Apply Credit' when editing existing credit

This commit is contained in:
Hillel Coren 2016-12-06 11:53:37 +02:00
parent f62f18ea78
commit 018960105b

View File

@ -90,6 +90,9 @@
@if ($payment)
$('#payment_date').datepicker('update', '{{ $payment->payment_date }}')
@if ($payment->payment_type_id != PAYMENT_TYPE_CREDIT)
$("#payment_type_id option[value='{{ PAYMENT_TYPE_CREDIT }}']").remove();
@endif
@else
$('#payment_date').datepicker('update', new Date());
populateInvoiceComboboxes({{ $clientPublicId }}, {{ $invoicePublicId }});