Skip to content

Commit b888b92

Browse files
committed
convert str to float for taking negative
1 parent 45c2867 commit b888b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strategies/sw_balance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ def create_transactions(self, exp: Expense, myshare: ExpenseUser, data: list[str
2525
balance_txn['destination_name'] = paid_txn['destination_name']
2626
balance_txn['type'] = "withdrawal"
2727
balance_txn['description'] = f"Balance transfer for: {paid_txn['description']}"
28-
balance_txn = self._apply_transaction_amount(balance_txn, exp, -balance)
28+
balance_txn = self._apply_transaction_amount(balance_txn, exp, -float(balance))
2929

3030
return [paid_txn, balance_txn]

0 commit comments

Comments
 (0)