Fix: Auto-clear money transfers between categories
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
4e255c2740
commit
777eceafb7
1 changed files with 2 additions and 2 deletions
|
@ -341,7 +341,7 @@ func (c *Client) TransferMoney(from, to uuid.UUID, amount float64, description s
|
||||||
Amount: -amount,
|
Amount: -amount,
|
||||||
Account: uuid.NullUUID{},
|
Account: uuid.NullUUID{},
|
||||||
Category: uuid.NullUUID{UUID: from, Valid: true},
|
Category: uuid.NullUUID{UUID: from, Valid: true},
|
||||||
Cleared: false,
|
Cleared: true,
|
||||||
PairKey: uuid.NullUUID{UUID: pairKey, Valid: true},
|
PairKey: uuid.NullUUID{UUID: pairKey, Valid: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -351,7 +351,7 @@ func (c *Client) TransferMoney(from, to uuid.UUID, amount float64, description s
|
||||||
Amount: amount,
|
Amount: amount,
|
||||||
Account: uuid.NullUUID{},
|
Account: uuid.NullUUID{},
|
||||||
Category: uuid.NullUUID{UUID: to, Valid: true},
|
Category: uuid.NullUUID{UUID: to, Valid: true},
|
||||||
Cleared: false,
|
Cleared: true,
|
||||||
PairKey: uuid.NullUUID{UUID: pairKey, Valid: true},
|
PairKey: uuid.NullUUID{UUID: pairKey, Valid: true},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue