Skip to content

Commit

Permalink
Add exchange_rate to operation
Browse files Browse the repository at this point in the history
  • Loading branch information
vnovitskyi committed Nov 9, 2023
1 parent 90787c3 commit 1f7b6b9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/cfonb/operation_detail/mmo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def self.apply(operation, line)
sign = operation.amount <=> 0 # the detail amount is unsigned

operation.original_amount = sign * BigDecimal(line.detail[4..17]) / (10**scale)

operation.exchange_rate = BigDecimal(line.detail[-4..-1]) / 1000
end

Expand Down

0 comments on commit 1f7b6b9

Please sign in to comment.