conversion ejected for reconcile inputs
This commit is contained in:
parent
1dfd3b7722
commit
c47c5ed96b
@ -48,26 +48,12 @@ const app = new Vue({
|
|||||||
if (this.form._method == 'PATCH') {
|
if (this.form._method == 'PATCH') {
|
||||||
this.onCalculate();
|
this.onCalculate();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.currencyConversion();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods:{
|
methods:{
|
||||||
setDueMinDate(date) {
|
setDueMinDate(date) {
|
||||||
this.min_due_date = date;
|
this.min_due_date = date;
|
||||||
},
|
},
|
||||||
|
|
||||||
currencyConversion() {
|
|
||||||
setTimeout(() => {
|
|
||||||
if (document.querySelectorAll('.js-conversion-input')) {
|
|
||||||
let currency_input = document.querySelectorAll('.js-conversion-input');
|
|
||||||
|
|
||||||
for (let input of currency_input) {
|
|
||||||
input.setAttribute('size', input.value.length);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, 250)
|
|
||||||
},
|
|
||||||
|
|
||||||
onReconcilition() {
|
onReconcilition() {
|
||||||
let form = document.getElementById('form-create-reconciliation');
|
let form = document.getElementById('form-create-reconciliation');
|
||||||
|
@ -195,7 +195,7 @@
|
|||||||
v-model="totals.closing_balance"
|
v-model="totals.closing_balance"
|
||||||
:currency="$currency"
|
:currency="$currency"
|
||||||
dynamicCurrency="currency"
|
dynamicCurrency="currency"
|
||||||
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm js-conversion-input"
|
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm"
|
||||||
form-group-class="text-right disabled-money"
|
form-group-class="text-right disabled-money"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
@ -215,7 +215,7 @@
|
|||||||
v-model="totals.cleared_amount"
|
v-model="totals.cleared_amount"
|
||||||
:currency="$currency"
|
:currency="$currency"
|
||||||
dynamicCurrency="currency"
|
dynamicCurrency="currency"
|
||||||
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm js-conversion-input"
|
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm"
|
||||||
form-group-class="text-right disabled-money"
|
form-group-class="text-right disabled-money"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
@ -238,7 +238,7 @@
|
|||||||
v-model="totals.difference"
|
v-model="totals.difference"
|
||||||
:currency="$currency"
|
:currency="$currency"
|
||||||
dynamicCurrency="currency"
|
dynamicCurrency="currency"
|
||||||
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm js-conversion-input"
|
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm"
|
||||||
form-group-class="text-right disabled-money"
|
form-group-class="text-right disabled-money"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -130,7 +130,7 @@
|
|||||||
v-model="totals.closing_balance"
|
v-model="totals.closing_balance"
|
||||||
:currency="$currency"
|
:currency="$currency"
|
||||||
dynamicCurrency="currency"
|
dynamicCurrency="currency"
|
||||||
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm js-conversion-input"
|
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm"
|
||||||
form-group-class="text-right disabled-money"
|
form-group-class="text-right disabled-money"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
@ -150,7 +150,7 @@
|
|||||||
v-model="totals.cleared_amount"
|
v-model="totals.cleared_amount"
|
||||||
:currency="$currency"
|
:currency="$currency"
|
||||||
dynamicCurrency="currency"
|
dynamicCurrency="currency"
|
||||||
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm js-conversion-input"
|
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm"
|
||||||
form-group-class="text-right disabled-money"
|
form-group-class="text-right disabled-money"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
@ -173,7 +173,7 @@
|
|||||||
v-model="totals.difference"
|
v-model="totals.difference"
|
||||||
:currency="$currency"
|
:currency="$currency"
|
||||||
dynamicCurrency="currency"
|
dynamicCurrency="currency"
|
||||||
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm js-conversion-input"
|
money-class="text-right disabled-money banking-price-text w-auto position-absolute right-4 ltr:pr-0 rtl:pl-0 text-sm"
|
||||||
form-group-class="text-right disabled-money"
|
form-group-class="text-right disabled-money"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user