app/models/receipt.rb
def account_percentage_amount( acc_percent = nil )
    tot_cost = 0.0              # init result
    if self.patient.is_a_firm?
      acc_percent ||= AppParameterCustomizations.get_receipt_account_percent()
      tot_cost += self.price * acc_percent.to_f / 100.0
    end
    return tot_cost
  end
# Returns the float value of the total account_percent cost computed
# on the price member of this instance value.
#
Returns the float value of the total account_percent cost computed
on the price member of this instance value.
Returns the float value of the total account_percent cost computed on the price member of this instance value .
def account_percentage_amount( acc_percent = nil )
    tot_cost = 0.0              
    if self.patient.is_a_firm?
      acc_percent ||= AppParameterCustomizations.get_receipt_account_percent()
      tot_cost += self.price * acc_percent.to_f / 100.0
    end
    return tot_cost
  end
def account_percentage_amount ( acc_percent = nil ) tot_cost = 0.0 if self . patient . is_a_firm? acc_percent ||= AppParameterCustomizations . get_receipt_account_percent ( ) tot_cost += self . price * acc_percent . to_f / 100.0 end return tot_cost end
Returns the float value of the total account_percent cost computed
on the price member of this instance value.
Returns the float value of the total account_percent cost computed on the price member of this instance value .
# init result
acc_percent