mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
verify whether user can delete transaction with specified time when deleting transaction
This commit is contained in:
+3
-1
@@ -288,8 +288,10 @@ export default {
|
||||
});
|
||||
},
|
||||
deleteTransaction: ({ id }) => {
|
||||
const utcOffset = utils.getTimezoneOffsetMinutes();
|
||||
return axios.post('v1/transactions/delete.json', {
|
||||
id
|
||||
id,
|
||||
utcOffset
|
||||
});
|
||||
},
|
||||
getAllTransactionCategories: () => {
|
||||
|
||||
@@ -548,6 +548,7 @@ export default {
|
||||
'cannot delete transaction in hidden account': 'You cannot delete transaction in an hidden account',
|
||||
'cannot add transaction with this transaction time': 'You cannot add transaction with this transaction time',
|
||||
'cannot modify transaction with this transaction time': 'You cannot modify this transaction with this transaction time',
|
||||
'cannot delete transaction with this transaction time': 'You cannot delete this transaction with this transaction time',
|
||||
'transaction category id is invalid': 'Transaction category ID is invalid',
|
||||
'transaction category not found': 'Transaction category is not found',
|
||||
'transaction category type is invalid': 'Transaction category type is invalid',
|
||||
|
||||
@@ -548,6 +548,7 @@ export default {
|
||||
'cannot delete transaction in hidden account': '您不能删除隐藏账户中的交易',
|
||||
'cannot add transaction with this transaction time': '您不能添加该交易时间的交易',
|
||||
'cannot modify transaction with this transaction time': '您不能修改该交易时间的交易',
|
||||
'cannot delete transaction with this transaction time': '您不能删除该交易时间的交易',
|
||||
'transaction category id is invalid': '交易分类ID无效',
|
||||
'transaction category not found': '交易分类不存在',
|
||||
'transaction category type is invalid': '交易分类类型无效',
|
||||
|
||||
Reference in New Issue
Block a user