close #1526 Fixed: Reconciliation form input values are not set

This commit is contained in:
Cüneyt Şentürk 2020-07-23 11:04:25 +03:00
parent 4366506b48
commit 2575c5d0c5
3 changed files with 17 additions and 2 deletions

View File

@ -56,6 +56,10 @@ export default {
mounted() {
this.checkNotify();
if (aka_currency) {
this.currency = aka_currency;
}
},
methods: {
@ -308,5 +312,15 @@ export default {
// 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);
}
}
}

View File

@ -91,9 +91,9 @@ const app = new Vue({
}
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 {
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) {

View File

@ -34,6 +34,7 @@
<script type="text/javascript"><!--
var url = '{{ url("/") }}';
var app_url = '{{ config("app.url") }}';
var aka_currency = {!! !empty($currency) ? $currency : 'false' !!};
//--></script>
@stack('js')