conversion ejected for reconcile inputs

This commit is contained in:
Burak Civan 2022-07-27 11:27:57 +03:00
parent 1dfd3b7722
commit c47c5ed96b
3 changed files with 6 additions and 20 deletions

View File

@ -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');

View File

@ -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>

View File

@ -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>