app/models/visma/customer.rb
def current_invoice_address
      return invoice_address if chain.blank?
      return chain.invoice_address if self.TypeOfChain == 1
      invoice_address
    end
# The current invoice address.
# Based on wether the Chain or the Customer is getting the bill
The current invoice address.
Based on wether the Chain or the Customer is getting the bill
The current invoice address . Based on wether the Chain or the Customer is getting the bill
def current_invoice_address
      return invoice_address if chain.blank?
      return chain.invoice_address if self.TypeOfChain == 1
      invoice_address
    end
def current_invoice_address return invoice_address if chain . blank? return chain . invoice_address if self . TypeOfChain == 1 invoice_address end
The current invoice address.
The current invoice address .