mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
support setting the time of the initial balance when creating a new account
This commit is contained in:
@@ -10,6 +10,7 @@ export function setAccountModelByAnotherAccount(account, account2) {
|
||||
account.color = account2.color;
|
||||
account.currency = account2.currency;
|
||||
account.balance = account2.balance;
|
||||
account.balanceTime = account2.balanceTime;
|
||||
account.comment = account2.comment;
|
||||
account.visible = !account2.hidden;
|
||||
}
|
||||
|
||||
+2
-1
@@ -255,7 +255,7 @@ export default {
|
||||
getAccount: ({ id }) => {
|
||||
return axios.get('v1/accounts/get.json?id=' + id);
|
||||
},
|
||||
addAccount: ({ category, type, name, icon, color, currency, balance, comment, subAccounts, clientSessionId }) => {
|
||||
addAccount: ({ category, type, name, icon, color, currency, balance, balanceTime, comment, subAccounts, clientSessionId }) => {
|
||||
return axios.post('v1/accounts/add.json', {
|
||||
category,
|
||||
type,
|
||||
@@ -264,6 +264,7 @@ export default {
|
||||
color,
|
||||
currency,
|
||||
balance,
|
||||
balanceTime,
|
||||
comment,
|
||||
subAccounts,
|
||||
clientSessionId
|
||||
|
||||
Reference in New Issue
Block a user