Skip to content

Commit dcb12b9

Browse files
committed
Fix always positive account.balance_in_cents
1 parent da853b0 commit dcb12b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

box/business_processes/import_bank_statement.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def self.update_meta_data(raw_bank_statement, account)
6969
return unless balance # vmk do not have a closing balance and thus cannot update it
7070

7171
if account.balance_date.blank? || account.balance_date <= balance.date
72-
account.set_balance(balance.date, balance.amount_in_cents)
72+
account.set_balance(balance.date, balance.amount_in_cents * balance.sign)
7373
end
7474
end
7575

0 commit comments

Comments
 (0)