close #1526 Fixed: Reconciliation form input values are not set
This commit is contained in:
parent
4366506b48
commit
2575c5d0c5
14
resources/assets/js/mixins/global.js
vendored
14
resources/assets/js/mixins/global.js
vendored
@ -56,6 +56,10 @@ export default {
|
|||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.checkNotify();
|
this.checkNotify();
|
||||||
|
|
||||||
|
if (aka_currency) {
|
||||||
|
this.currency = aka_currency;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@ -308,5 +312,15 @@ export default {
|
|||||||
// always executed
|
// always executed
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clickTab(id) {
|
||||||
|
let event = new document.window.KeyboardEvent('keydown', { keyCode: 9 }); // Tab key
|
||||||
|
|
||||||
|
document.window.dispatchEvent(event);
|
||||||
|
|
||||||
|
let e = $.Event('keyup');
|
||||||
|
e.keyCode= 9; // tab
|
||||||
|
$('#' + id).trigger(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,9 +91,9 @@ const app = new Vue({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cleared_amount > 0) {
|
if (cleared_amount > 0) {
|
||||||
difference = parseFloat(this.form.closing_balance) - parseFloat(cleared_amount);
|
difference = (parseFloat(this.form.closing_balance) - parseFloat(cleared_amount)).toFixed(this.currency.precision);
|
||||||
} else {
|
} else {
|
||||||
difference = parseFloat(this.form.closing_balance) + parseFloat(cleared_amount);
|
difference = (parseFloat(this.form.closing_balance) + parseFloat(cleared_amount)).toFixed(this.currency.precision);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (difference != 0) {
|
if (difference != 0) {
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
<script type="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
var url = '{{ url("/") }}';
|
var url = '{{ url("/") }}';
|
||||||
var app_url = '{{ config("app.url") }}';
|
var app_url = '{{ config("app.url") }}';
|
||||||
|
var aka_currency = {!! !empty($currency) ? $currency : 'false' !!};
|
||||||
//--></script>
|
//--></script>
|
||||||
|
|
||||||
@stack('js')
|
@stack('js')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user