mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
modify balance modification transaction
This commit is contained in:
@@ -246,9 +246,15 @@ export class Transaction implements TransactionInfoResponse {
|
||||
}
|
||||
|
||||
public toModifyRequest(actualTime?: number): TransactionModifyRequest {
|
||||
let categoryId = this.getCategoryId();
|
||||
|
||||
if (this.type === TransactionType.ModifyBalance) {
|
||||
categoryId = '0';
|
||||
}
|
||||
|
||||
return {
|
||||
id: this.id,
|
||||
categoryId: this.getCategoryId(),
|
||||
categoryId: categoryId,
|
||||
time: actualTime ? actualTime : this.time,
|
||||
utcOffset: this.utcOffset,
|
||||
sourceAccountId: this.sourceAccountId,
|
||||
|
||||
Reference in New Issue
Block a user