app/models/receipt.rb
def net_price
    if self.patient.is_a_firm?
      self.price
    else
      self.price + get_additional_cost_totals()[:negative]
    end
  end
# Returns the float value of the net price for this Appointment instance.
#
# From the starting price, (checking get_additional_cost_totals()) only the :negative items to be divested are taken out
# of the sum resulting in the total net amount.
#
Returns the float value of the net price for this Appointment instance.
From the starting price, (checking get_additional_cost_totals()) only the :negative items to be divested are taken out
of the sum resulting in the total net amount.
Returns the float value of the net price for this Appointment instance . From the starting price ( checking get_additional_cost_totals () ) only the : negative items to be divested are taken out of the sum resulting in the total net amount .
def net_price
    if self.patient.is_a_firm?
      self.price
    else
      self.price + get_additional_cost_totals()[:negative]
    end
  end
def net_price if self . patient . is_a_firm? self . price else self . price + get_additional_cost_totals ( ) [ :negative ] end end
Returns the float value of the net price for this Appointment instance.
Returns the float value of the net price for this Appointment instance .