mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
prompt the user for confirmation before updating the last reconciled time to the current time
This commit is contained in:
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Konto kann nicht hinzugefügt werden",
|
||||
"Unable to save account": "Konto kann nicht gespeichert werden",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Versteckte Konten anzeigen",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Unable to add account",
|
||||
"Unable to save account": "Unable to save account",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Show Hidden Accounts",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "No se puede agregar la cuenta",
|
||||
"Unable to save account": "No se puede guardar la cuenta",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Mostrar Cuentas Ocultas",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Impossible d'ajouter le compte",
|
||||
"Unable to save account": "Impossible d'enregistrer le compte",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Afficher les comptes masqués",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Impossibile aggiungere l'account",
|
||||
"Unable to save account": "Impossibile salvare l'account",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Mostra account nascosti",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "口座を追加できません",
|
||||
"Unable to save account": "口座を保存できません",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "非表示口座を表示します",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "ಖಾತೆ ಸೇರಿಸಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ",
|
||||
"Unable to save account": "ಖಾತೆ ಉಳಿಸಲು ಸಾಧ್ಯವಾಗಿಲ್ಲ",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "ಮರೆಮಾಡಿದ ಖಾತೆಗಳನ್ನು ತೋರಿಸಿ",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "계좌를 추가할 수 없습니다.",
|
||||
"Unable to save account": "계좌를 저장할 수 없습니다.",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "숨겨진 계좌 표시",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Kan rekening niet toevoegen",
|
||||
"Unable to save account": "Kan rekening niet opslaan",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Verborgen rekeningen tonen",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Não foi possível adicionar conta",
|
||||
"Unable to save account": "Não foi possível salvar conta",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Mostrar Contas Ocultas",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Не удалось добавить счет",
|
||||
"Unable to save account": "Не удалось сохранить счет",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Показать скрытые счета",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Računa ni mogoče dodati",
|
||||
"Unable to save account": "Računa ni mogoče shraniti",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Prikaži skrite račune",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "கணக்கு சேர்க்க முடியவில்லை",
|
||||
"Unable to save account": "கணக்கு சேமிக்க முடியவில்லை",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "மறைந்த கணக்குகளை காட்டு",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "ไม่สามารถเพิ่มบัญชีได้",
|
||||
"Unable to save account": "ไม่สามารถบันทึกบัญชีได้",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "แสดงบัญชีที่ซ่อนอยู่",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Hesap eklenemedi",
|
||||
"Unable to save account": "Hesap kaydedilemedi",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Gizli Hesapları Göster",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Не вдалося додати рахунок",
|
||||
"Unable to save account": "Не вдалося зберегти рахунок",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Показати приховані рахунки",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "Không thể thêm tài khoản",
|
||||
"Unable to save account": "Không thể lưu tài khoản",
|
||||
"Mark as Reconciled": "Mark as Reconciled",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "Are you sure you want to update the last reconciled time of this account to the current time?",
|
||||
"Last reconciled time have been updated": "Last reconciled time have been updated",
|
||||
"Unable to update last reconciled time": "Unable to update last reconciled time",
|
||||
"Show Hidden Accounts": "Hiển thị tài khoản ẩn",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "无法添加账户",
|
||||
"Unable to save account": "无法保存账户",
|
||||
"Mark as Reconciled": "标记为已对账",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "您确定要将该账户的最后对账时间更新为当前时间吗?",
|
||||
"Last reconciled time have been updated": "最后对账时间已更新",
|
||||
"Unable to update last reconciled time": "无法更新最后对账时间",
|
||||
"Show Hidden Accounts": "显示隐藏的账户",
|
||||
|
||||
@@ -1946,6 +1946,7 @@
|
||||
"Unable to add account": "無法新增帳戶",
|
||||
"Unable to save account": "無法儲存帳戶",
|
||||
"Mark as Reconciled": "標記為已對帳",
|
||||
"Are you sure you want to update the last reconciled time of this account to the current time?": "您確定要將此帳戶的最後對帳時間更新為目前時間吗?",
|
||||
"Last reconciled time have been updated": "最後對帳時間已更新",
|
||||
"Unable to update last reconciled time": "無法更新最後對帳時間",
|
||||
"Show Hidden Accounts": "顯示隱藏的帳戶",
|
||||
|
||||
@@ -568,22 +568,24 @@ function showReconciliationStatementCustomDateRangeDialog(account: Account, date
|
||||
}
|
||||
|
||||
function updateLastReconciledTime(account: Account): void {
|
||||
loading.value = true;
|
||||
confirmDialog.value?.open('Are you sure you want to update the last reconciled time of this account to the current time?').then(() => {
|
||||
loading.value = true;
|
||||
|
||||
accountsStore.updateAccountLastReconciledTime(account.id, getCurrentUnixTime()).then(() => {
|
||||
loading.value = false;
|
||||
snackbar.value?.showMessage('Last reconciled time have been updated');
|
||||
accountsStore.updateAccountLastReconciledTime(account.id, getCurrentUnixTime()).then(() => {
|
||||
loading.value = false;
|
||||
snackbar.value?.showMessage('Last reconciled time have been updated');
|
||||
|
||||
if (accountsStore.accountListStateInvalid && !loading.value) {
|
||||
reload(false);
|
||||
}
|
||||
if (accountsStore.accountListStateInvalid && !loading.value) {
|
||||
reload(false);
|
||||
}
|
||||
|
||||
}).catch(error => {
|
||||
loading.value = false;
|
||||
}).catch(error => {
|
||||
loading.value = false;
|
||||
|
||||
if (error) {
|
||||
snackbar.value?.showError(error);
|
||||
}
|
||||
if (error) {
|
||||
snackbar.value?.showError(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@ const props = defineProps<{
|
||||
}>();
|
||||
|
||||
const { tt, getCurrentLanguageTextDirection } = useI18n();
|
||||
const { showAlert, showToast, routeBackOnError } = useI18nUIComponents();
|
||||
const { showAlert, showConfirm, showToast, routeBackOnError } = useI18nUIComponents();
|
||||
|
||||
const {
|
||||
loading,
|
||||
@@ -381,28 +381,30 @@ function updateLastReconciledTime(account: Account | null): void {
|
||||
return;
|
||||
}
|
||||
|
||||
updatingLastReconciledTime.value = true;
|
||||
showLoading(() => updatingLastReconciledTime.value);
|
||||
showConfirm('Are you sure you want to update the last reconciled time of this account to the current time?', () => {
|
||||
updatingLastReconciledTime.value = true;
|
||||
showLoading(() => updatingLastReconciledTime.value);
|
||||
|
||||
accountsStore.updateAccountLastReconciledTime(account.id, getCurrentUnixTime()).then(() => {
|
||||
updatingLastReconciledTime.value = false;
|
||||
hideLoading();
|
||||
showToast('Last reconciled time have been updated');
|
||||
accountsStore.updateAccountLastReconciledTime(account.id, getCurrentUnixTime()).then(() => {
|
||||
updatingLastReconciledTime.value = false;
|
||||
hideLoading();
|
||||
showToast('Last reconciled time have been updated');
|
||||
|
||||
if (accountsStore.accountListStateInvalid && !loading.value) {
|
||||
reload();
|
||||
}
|
||||
}).catch(error => {
|
||||
updatingLastReconciledTime.value = false;
|
||||
hideLoading();
|
||||
if (accountsStore.accountListStateInvalid && !loading.value) {
|
||||
reload();
|
||||
}
|
||||
}).catch(error => {
|
||||
updatingLastReconciledTime.value = false;
|
||||
hideLoading();
|
||||
|
||||
if (!error.processed) {
|
||||
showToast(error.message || error);
|
||||
}
|
||||
if (!error.processed) {
|
||||
showToast(error.message || error);
|
||||
}
|
||||
});
|
||||
|
||||
showAccountMoreActionSheet.value = false;
|
||||
accountForMoreActionSheet.value = null;
|
||||
});
|
||||
|
||||
showAccountMoreActionSheet.value = false;
|
||||
accountForMoreActionSheet.value = null;
|
||||
}
|
||||
|
||||
function moveAllTransactions(account: Account | null): void {
|
||||
|
||||
Reference in New Issue
Block a user