app/models/visma/edi_transaction.rb
def deviating_rounding_amount
      self.EventLog.lines.last[/avvik: \d\.\d\d/][/\d.\d\d/].to_f
    rescue
      0
    end
# Fetch the invoice's deviating rounding amount from the event log
Fetch the invoice's deviating rounding amount from the event log
Fetch the invoice ' s deviating rounding amount from the event log
def deviating_rounding_amount
      self.EventLog.lines.last[/avvik: \d\.\d\d/][/\d.\d\d/].to_f
    rescue
      0
    end
def deviating_rounding_amount self . EventLog . lines . last [ / avvik:  \d \. \d \d / ] [ / \d . \d \d / ] . to_f rescue 0 end
Fetch the invoice's deviating rounding amount from the event log
Fetch the invoice ' s deviating rounding amount from the event log