From 1f7b6b96bf817add3aeb8085c714a5440dccad63 Mon Sep 17 00:00:00 2001 From: Viktor Date: Thu, 9 Nov 2023 12:07:11 +0200 Subject: [PATCH] Add `exchange_rate` to operation --- lib/cfonb/operation_detail/mmo.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/cfonb/operation_detail/mmo.rb b/lib/cfonb/operation_detail/mmo.rb index 5f6db82..07412bc 100644 --- a/lib/cfonb/operation_detail/mmo.rb +++ b/lib/cfonb/operation_detail/mmo.rb @@ -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