Adding balance to ledger record
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user