Qtr::Quote
Inherits JSON::Serializable < YAML::Serializable < Reference < Object
Complete proposal and quotation document model
Constructors
new(title : String, client : String, author : String, contact : ContactConfig, organization : OrgConfig, problem_statement : String, proposal_summary : String, deliverables : Array(Deliverable), phases : Array(Phase), payment_terms : Array(PaymentMilestone), next_steps : Array(String), currency : String = "USD", exchange_rate : Float64 = 19.50, tax_rate : Float64 = 0.16, date : String = Time.local.to_s("%Y-%m-%d"), version : String = "0.1", show_hours : Bool = false, financing_plan : FinancingPlan | Nil = nil)
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
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
author
author=(author : String)
client
client=(client : String)
contact
contact=(contact : ContactConfig)
currency
currency=(currency : String)
date
date=(date : String)
deliverables
deliverables=(deliverables : Array(Deliverable))
exchange_rate
exchange_rate=(exchange_rate : Float64)
financing_plan
financing_plan=(financing_plan : FinancingPlan | Nil)
next_steps
next_steps=(next_steps : Array(String))
organization
organization=(organization : OrgConfig)
payment_terms
payment_terms=(payment_terms : Array(PaymentMilestone))
phases
phases=(phases : Array(Phase))
problem_statement
problem_statement=(problem_statement : String)
proposal_summary
proposal_summary=(proposal_summary : String)
show_hours=(show_hours : Bool)
show_hours?
tax_rate
tax_rate=(tax_rate : Float64)
title
title=(title : String)
version
version=(version : String)