add tax column jquery issue solved.
This commit is contained in:
@ -159,5 +159,22 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
|
||||||
|
$('#tax_id').select2({
|
||||||
|
placeholder: {
|
||||||
|
id: '-1', // the value of the option
|
||||||
|
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
|
||||||
|
},
|
||||||
|
escapeMarkup: function (markup) {
|
||||||
|
return markup;
|
||||||
|
},
|
||||||
|
language: {
|
||||||
|
noResults: function () {
|
||||||
|
return '<span id="tax-add-new"><i class="fa fa-plus-circle"></i> {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}</span>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
@ -157,5 +157,22 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
|
||||||
|
$('#tax_id').select2({
|
||||||
|
placeholder: {
|
||||||
|
id: '-1', // the value of the option
|
||||||
|
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
|
||||||
|
},
|
||||||
|
escapeMarkup: function (markup) {
|
||||||
|
return markup;
|
||||||
|
},
|
||||||
|
language: {
|
||||||
|
noResults: function () {
|
||||||
|
return '<span id="tax-add-new"><i class="fa fa-plus-circle"></i> {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}</span>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
@ -505,6 +505,23 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
|
||||||
|
$('.tax-select2').select2({
|
||||||
|
placeholder: {
|
||||||
|
id: '-1', // the value of the option
|
||||||
|
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
|
||||||
|
},
|
||||||
|
escapeMarkup: function (markup) {
|
||||||
|
return markup;
|
||||||
|
},
|
||||||
|
language: {
|
||||||
|
noResults: function () {
|
||||||
|
return '<span id="tax-add-new"><i class="fa fa-plus-circle"></i> {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}</span>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function totalItem() {
|
function totalItem() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{ url("common/items/totalItem") }}',
|
url: '{{ url("common/items/totalItem") }}',
|
||||||
|
@ -482,6 +482,23 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
|
||||||
|
$('.tax-select2').select2({
|
||||||
|
placeholder: {
|
||||||
|
id: '-1', // the value of the option
|
||||||
|
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
|
||||||
|
},
|
||||||
|
escapeMarkup: function (markup) {
|
||||||
|
return markup;
|
||||||
|
},
|
||||||
|
language: {
|
||||||
|
noResults: function () {
|
||||||
|
return '<span id="tax-add-new"><i class="fa fa-plus-circle"></i> {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}</span>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function totalItem() {
|
function totalItem() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{ url("common/items/totalItem") }}',
|
url: '{{ url("common/items/totalItem") }}',
|
||||||
|
@ -506,6 +506,23 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
|
||||||
|
$('.tax-select2').select2({
|
||||||
|
placeholder: {
|
||||||
|
id: '-1', // the value of the option
|
||||||
|
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
|
||||||
|
},
|
||||||
|
escapeMarkup: function (markup) {
|
||||||
|
return markup;
|
||||||
|
},
|
||||||
|
language: {
|
||||||
|
noResults: function () {
|
||||||
|
return '<span id="tax-add-new"><i class="fa fa-plus-circle"></i> {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}</span>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function totalItem() {
|
function totalItem() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{ url("common/items/totalItem") }}',
|
url: '{{ url("common/items/totalItem") }}',
|
||||||
|
@ -482,6 +482,23 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('hidden.bs.modal', '#modal-create-tax', function () {
|
||||||
|
$('.tax-select2').select2({
|
||||||
|
placeholder: {
|
||||||
|
id: '-1', // the value of the option
|
||||||
|
text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}"
|
||||||
|
},
|
||||||
|
escapeMarkup: function (markup) {
|
||||||
|
return markup;
|
||||||
|
},
|
||||||
|
language: {
|
||||||
|
noResults: function () {
|
||||||
|
return '<span id="tax-add-new"><i class="fa fa-plus-circle"></i> {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}</span>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function totalItem() {
|
function totalItem() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{ url("common/items/totalItem") }}',
|
url: '{{ url("common/items/totalItem") }}',
|
||||||
|
Reference in New Issue
Block a user