From d5bbefe824e414089d42ab5287a05fbeddf182a4 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Wed, 23 Nov 2022 15:50:06 +0700 Subject: [PATCH] fix ribuan expense --- edit-mode/function/expenseResource.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/edit-mode/function/expenseResource.js b/edit-mode/function/expenseResource.js index d283cc2..f5f8015 100644 --- a/edit-mode/function/expenseResource.js +++ b/edit-mode/function/expenseResource.js @@ -11,13 +11,13 @@ function resetFormAssignexpense() { var rupiahExpense = document.getElementById('price-req-expense'); - rupiah.addEventListener('keyup', function (e) { - rupiah.value = formatRibuanInput(this.value); + rupiahExpense.addEventListener('keyup', function (e) { + rupiahExpense.value = formatRibuanInput(this.value); }); var qtyExpense = document.getElementById('qty-req-expense'); - qty.addEventListener('keyup', function (e) { - qty.value = formatRibuanInput(this.value); + qtyExpense.addEventListener('keyup', function (e) { + qtyExpense.value = formatRibuanInput(this.value); }); $(document).ready(function () {