close #727 Fixed: Invoice/Bill new tax added get not selected

This commit is contained in:
cuneytsenturk
2019-01-15 15:58:28 +03:00
parent 7b65cedb41
commit 82e5a48d7d
6 changed files with 17 additions and 5 deletions

View File

@ -65,6 +65,12 @@
$("#tax_id").append('<option value="' + data.id + '" selected="selected">' + data.name + '</option>');
$('#tax_id').trigger('change');
$("#tax_id").select2('refresh');
@if ($tax_selector)
$("{{ $tax_selector }}").append('<option value="' + data.id + '" selected="selected">' + data.name + '</option>');
$('{{ $tax_selector }}').trigger('change');
$("{{ $tax_selector }}").select2('refresh');
@endif
},
error: function(error, textStatus, errorThrown) {
$('#span-loading').remove();