Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.79 KB

SaleInvoiceLine.md

File metadata and controls

39 lines (32 loc) · 1.79 KB

DearInventoryRuby::SaleInvoiceLine

Properties

Name Type Description Notes
product_id String Product identifier referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false [optional]
sku String Product SKU referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false [optional]
name String Product Name referenced by this Line
quantity Float Product or service quantity. Minimal value is 1.
price Float Price per unit in Customer currency
discount Float Discount. Value between 0 and 100. For free items discount is 100. Default value is 0 [optional]
tax Float Tax [optional]
total Float Line Total. For validation [optional]
average_cost Float Average product cost [optional]
tax_rule String Line Tax Rule name. [optional]
account String Revenue account [optional]
comment String Comment for this line [optional]

Code Sample

require 'DearInventoryRuby'

instance = DearInventoryRuby::SaleInvoiceLine.new(product_id: nil,
                                 sku: nil,
                                 name: nil,
                                 quantity: nil,
                                 price: nil,
                                 discount: nil,
                                 tax: nil,
                                 total: nil,
                                 average_cost: nil,
                                 tax_rule: nil,
                                 account: nil,
                                 comment: nil)