class

Qtr::Financials

Inherits JSON::Serializable < YAML::Serializable < Reference < Object

Full financial calculations engine

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(phases : Array(Phase), config : Config, currency : String = "USD", exchange_rate : Float64 = 19.50, tax_rate : Float64 = 0.16, financing_months : Int32 | Nil = nil, financing_surcharge : Float64 | Nil = nil)
new(pull : JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Instance methods

converted_subtotal
converted_subtotal=(converted_subtotal : Float64 | Nil)
converted_tax
converted_tax=(converted_tax : Float64 | Nil)
converted_total
converted_total=(converted_total : Float64 | Nil)
financing_plan
financing_plan=(financing_plan : FinancingPlan | Nil)
payment_milestones
payment_milestones=(payment_milestones : Array(PaymentMilestone))
phase_breakdowns
phase_breakdowns=(phase_breakdowns : Array(PhaseBreakdown))
subtotal
subtotal=(subtotal : Float64)
tax
tax=(tax : Float64)
total
total=(total : Float64)
total_hours
total_hours=(total_hours : Float64)