/public breaks invoice number check #2207
This commit is contained in:
parent
ea2d58e30f
commit
b172f645a8
1 changed files with 1 additions and 1 deletions
|
|
@ -1137,7 +1137,7 @@ ko.bindingHandlers.productTypeahead = {
|
|||
};
|
||||
|
||||
function checkInvoiceNumber() {
|
||||
var url = '{{ url('check_invoice_number') }}/{{ $invoice->id ? $invoice->public_id : '' }}?invoice_number=' + encodeURIComponent($('#invoice_number').val());
|
||||
var url = '{{ url('check_invoice_number') }}{{ $invoice->id ? '/' . $invoice->public_id : '' }}?invoice_number=' + encodeURIComponent($('#invoice_number').val());
|
||||
$.get(url, function(data) {
|
||||
var isValid = data == '{{ RESULT_SUCCESS }}' ? true : false;
|
||||
if (isValid) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue