mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 02:04:26 +08:00
support using duplicate checker to prevent duplicate submissions for new transaction record
This commit is contained in:
@@ -736,7 +736,7 @@ export const useAccountsStore = defineStore('accounts', {
|
||||
});
|
||||
});
|
||||
},
|
||||
saveAccount({ account, subAccounts, isEdit }) {
|
||||
saveAccount({ account, subAccounts, isEdit, clientSessionId }) {
|
||||
const self = this;
|
||||
|
||||
const submitSubAccounts = [];
|
||||
@@ -776,6 +776,10 @@ export const useAccountsStore = defineStore('accounts', {
|
||||
subAccounts: account.type === accountConstants.allAccountTypes.SingleAccount ? null : submitSubAccounts,
|
||||
};
|
||||
|
||||
if (clientSessionId) {
|
||||
submitAccount.clientSessionId = clientSessionId;
|
||||
}
|
||||
|
||||
if (isEdit) {
|
||||
submitAccount.id = account.id;
|
||||
submitAccount.hidden = !account.visible;
|
||||
|
||||
Reference in New Issue
Block a user