Method: Quickbooks::Model::Line#discount!

Defined in:
lib/quickbooks/model/line.rb

#discount! {|self.discount_line_detail| ... } ⇒ Object

Yields:

  • (self.discount_line_detail)


66
67
68
69
70
71
# File 'lib/quickbooks/model/line.rb', line 66

def discount!
  self.detail_type = DISCOUNT_LINE_DETAIL
  self.discount_line_detail = DiscountLineDetail.new

  yield self.discount_line_detail if block_given?
end