class Quickbooks::Model::Line

def discount!

def discount!
  self.detail_type = DISCOUNT_LINE_DETAIL
  self.discount_line_detail = DiscountLineDetail.new
  yield self.discount_line_detail if block_given?
end