modify balance modification transaction

This commit is contained in:
MaysWind
2025-08-10 17:00:08 +08:00
parent 55bf8b9e30
commit f3d240442b
6 changed files with 25 additions and 7 deletions
+7 -1
View File
@@ -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,