Adding balance to ledger record

This commit is contained in:
2025-02-17 19:07:04 +01:00
parent cd325154da
commit a81c4fbd7d
3 changed files with 17 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ def prepare_dict(session, entry, iteration):
result["payee_id"] = None
result["splits"] = []
result["transaction_date"] = entry["start_date"] + timedelta(days=(iteration / 2))
result["amount"] = ["10", "100", "1000"][random.Random().randint(0,2)]
result["amount"] = [10, 100, 1000][random.Random().randint(0,2)] * [1, -1][random.Random().randint(0,1)]
result["id"] = 0
return result