close #340 Fixed: Invoice amount does not change on tax change

This commit is contained in:
cuneytsenturk
2018-05-14 10:31:42 +03:00
parent 1dc8ad5404
commit 63d81b8e44
5 changed files with 4 additions and 6 deletions

View File

@ -264,7 +264,6 @@
placement: 'bottom', placement: 'bottom',
title: '{{ trans('bills.discount') }}', title: '{{ trans('bills.discount') }}',
content: function () { content: function () {
html = '<div class="discount box-body">'; html = '<div class="discount box-body">';
html += ' <div class="col-md-6">'; html += ' <div class="col-md-6">';
html += ' <div class="input-group" id="input-discount">'; html += ' <div class="input-group" id="input-discount">';

View File

@ -297,7 +297,6 @@
placement: 'bottom', placement: 'bottom',
title: '{{ trans('bills.discount') }}', title: '{{ trans('bills.discount') }}',
content: function () { content: function () {
html = '<div class="discount box-body">'; html = '<div class="discount box-body">';
html += ' <div class="col-md-6">'; html += ' <div class="col-md-6">';
html += ' <div class="input-group" id="input-discount">'; html += ' <div class="input-group" id="input-discount">';
@ -344,7 +343,6 @@
$('a[rel=popover]').trigger('click'); $('a[rel=popover]').trigger('click');
}); });
$(document).on('change', '#currency_code, #items tbody select', function(){ $(document).on('change', '#currency_code, #items tbody select', function(){
totalItem(); totalItem();
}); });

View File

@ -265,7 +265,6 @@
placement: 'bottom', placement: 'bottom',
title: '{{ trans('invoices.discount') }}', title: '{{ trans('invoices.discount') }}',
content: function () { content: function () {
html = '<div class="discount box-body">'; html = '<div class="discount box-body">';
html += ' <div class="col-md-6">'; html += ' <div class="col-md-6">';
html += ' <div class="input-group" id="input-discount">'; html += ' <div class="input-group" id="input-discount">';
@ -312,6 +311,10 @@
$('a[rel=popover]').trigger('click'); $('a[rel=popover]').trigger('click');
}); });
$(document).on('change', '#currency_code, #items tbody select', function(){
totalItem();
});
$(document).on('keyup', '#items tbody .form-control', function(){ $(document).on('keyup', '#items tbody .form-control', function(){
totalItem(); totalItem();
}); });

View File

@ -296,7 +296,6 @@
placement: 'bottom', placement: 'bottom',
title: '{{ trans('invoices.discount') }}', title: '{{ trans('invoices.discount') }}',
content: function () { content: function () {
html = '<div class="discount box-body">'; html = '<div class="discount box-body">';
html += ' <div class="col-md-6">'; html += ' <div class="col-md-6">';
html += ' <div class="input-group" id="input-discount">'; html += ' <div class="input-group" id="input-discount">';

View File

@ -85,4 +85,3 @@
</div> </div>
<!-- /.box --> <!-- /.box -->
@endsection @endsection