From 8fa46281e0d4f7d672677f6bbaca7c06d792e50b Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 30 Jul 2025 00:56:55 +0800 Subject: [PATCH] update closing balance in reconciliation statement page / dialog --- src/components/desktop/AmountInputDialog.vue | 102 ++++++++++++++++++ src/desktop-main.ts | 2 + src/locales/de.json | 2 + src/locales/en.json | 2 + src/locales/es.json | 2 + src/locales/it.json | 2 + src/locales/ja.json | 2 + src/locales/pt_BR.json | 2 + src/locales/ru.json | 2 + src/locales/uk.json | 2 + src/locales/vi.json | 2 + src/locales/zh_Hans.json | 2 + src/locales/zh_Hant.json | 2 + .../dialogs/ReconciliationStatementDialog.vue | 74 ++++++++++++- .../transactions/list/dialogs/EditDialog.vue | 12 +++ 15 files changed, 210 insertions(+), 2 deletions(-) create mode 100644 src/components/desktop/AmountInputDialog.vue diff --git a/src/components/desktop/AmountInputDialog.vue b/src/components/desktop/AmountInputDialog.vue new file mode 100644 index 00000000..ad76d04d --- /dev/null +++ b/src/components/desktop/AmountInputDialog.vue @@ -0,0 +1,102 @@ + + + diff --git a/src/desktop-main.ts b/src/desktop-main.ts index d4b80247..b37ba800 100644 --- a/src/desktop-main.ts +++ b/src/desktop-main.ts @@ -79,6 +79,7 @@ import ItemIcon from '@/components/desktop/ItemIcon.vue'; import BtnVerticalGroup from '@/components/desktop/BtnVerticalGroup.vue'; import NumberInput from '@/components/desktop/NumberInput.vue'; import AmountInput from '@/components/desktop/AmountInput.vue'; +import AmountInputDialog from '@/components/desktop/AmountInputDialog.vue'; import LanguageSelect from '@/components/desktop/LanguageSelect.vue'; import LanguageSelectButton from '@/components/desktop/LanguageSelectButton.vue'; import CurrencySelect from '@/components/desktop/CurrencySelect.vue'; @@ -457,6 +458,7 @@ app.component('ItemIcon', ItemIcon); app.component('BtnVerticalGroup', BtnVerticalGroup); app.component('NumberInput', NumberInput); app.component('AmountInput', AmountInput); +app.component('AmountInputDialog', AmountInputDialog); app.component('LanguageSelect', LanguageSelect); app.component('LanguageSelectButton', LanguageSelectButton); app.component('CurrencySelect', CurrencySelect); diff --git a/src/locales/de.json b/src/locales/de.json index 2126f62a..ffe870b3 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "Konto kann nicht gelöscht werden", "Unable to delete this sub-account": "Unable to delete this sub-account", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "Transaktion", "Transactions": "Transaktionen", "Transaction Pictures": "Transaktionsbilder", diff --git a/src/locales/en.json b/src/locales/en.json index 099e18c1..49d184a3 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "Unable to delete this account", "Unable to delete this sub-account": "Unable to delete this sub-account", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "Transaction", "Transactions": "Transactions", "Transaction Pictures": "Transaction Pictures", diff --git a/src/locales/es.json b/src/locales/es.json index 20c525cc..a912863b 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "No se puede eliminar esta cuenta", "Unable to delete this sub-account": "Unable to delete this sub-account", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "Transacción", "Transactions": "Transacciones", "Transaction Pictures": "Imágenes de transacciones", diff --git a/src/locales/it.json b/src/locales/it.json index 6419addc..272d1f13 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "Impossibile eliminare questo account", "Unable to delete this sub-account": "Impossibile eliminare questo sotto-account", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "Transazione", "Transactions": "Transazioni", "Transaction Pictures": "Immagini transazione", diff --git a/src/locales/ja.json b/src/locales/ja.json index f2115c82..34b1f01a 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "この口座を削除できません", "Unable to delete this sub-account": "Unable to delete this sub-account", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "取引", "Transactions": "取引", "Transaction Pictures": "取引の写真", diff --git a/src/locales/pt_BR.json b/src/locales/pt_BR.json index f56794f6..6c56bb6d 100644 --- a/src/locales/pt_BR.json +++ b/src/locales/pt_BR.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "Não foi possível deletar esta conta", "Unable to delete this sub-account": "Não foi possível deletar esta subconta", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "Transação", "Transactions": "Transações", "Transaction Pictures": "Imagens das Transações", diff --git a/src/locales/ru.json b/src/locales/ru.json index 44c648ce..9329eddb 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "Не удалось удалить этот счет", "Unable to delete this sub-account": "Unable to delete this sub-account", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "Транзакция", "Transactions": "Транзакции", "Transaction Pictures": "Изображения транзакций", diff --git a/src/locales/uk.json b/src/locales/uk.json index 3009c442..f3a328d9 100644 --- a/src/locales/uk.json +++ b/src/locales/uk.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "Не вдалося видалити цей рахунок", "Unable to delete this sub-account": "Не вдалося видалити цей субрахунок", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "Транзакція", "Transactions": "Транзакції", "Transaction Pictures": "Зображення транзакцій", diff --git a/src/locales/vi.json b/src/locales/vi.json index 45eeddc1..32cfc08c 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "Không thể xóa tài khoản này", "Unable to delete this sub-account": "Unable to delete this sub-account", "Reconciliation Statement": "Reconciliation Statement", + "Update Closing Balance": "Update Closing Balance", + "Please enter the new closing balance for the account": "Please enter the new closing balance for the account", "Transaction": "Giao dịch", "Transactions": "Giao dịch", "Transaction Pictures": "Ảnh giao dịch", diff --git a/src/locales/zh_Hans.json b/src/locales/zh_Hans.json index 98b568a1..d68e8da1 100644 --- a/src/locales/zh_Hans.json +++ b/src/locales/zh_Hans.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "无法删除该账户", "Unable to delete this sub-account": "无法删除该子账户", "Reconciliation Statement": "对账单", + "Update Closing Balance": "更新期末余额", + "Please enter the new closing balance for the account": "请输入账户的新期末余额", "Transaction": "交易", "Transactions": "交易", "Transaction Pictures": "交易图片", diff --git a/src/locales/zh_Hant.json b/src/locales/zh_Hant.json index 781ce88d..5a34e6f7 100644 --- a/src/locales/zh_Hant.json +++ b/src/locales/zh_Hant.json @@ -1634,6 +1634,8 @@ "Unable to delete this account": "無法刪除此帳戶", "Unable to delete this sub-account": "無法刪除此子帳戶", "Reconciliation Statement": "對帳單", + "Update Closing Balance": "更新期末餘額", + "Please enter the new closing balance for the account": "請輸入帳戶的新期末餘額", "Transaction": "交易", "Transactions": "交易", "Transaction Pictures": "交易圖片", diff --git a/src/views/desktop/accounts/list/dialogs/ReconciliationStatementDialog.vue b/src/views/desktop/accounts/list/dialogs/ReconciliationStatementDialog.vue index d33c8eff..38d69865 100644 --- a/src/views/desktop/accounts/list/dialogs/ReconciliationStatementDialog.vue +++ b/src/views/desktop/accounts/list/dialogs/ReconciliationStatementDialog.vue @@ -12,10 +12,14 @@ - + + @@ -189,6 +193,7 @@ + @@ -197,6 +202,7 @@