single_item-class: Single Item in an order

Description Slots Examples

Description

single_item is an S4 class to represent an item in an order from a business owner's perspective.

Slots

category

A character string describing the category of the item.

descrp

A character string describing the item.

model

A character string representing the model of the item.

quant

A numeric value representing the quantity of the item in the order.

price

A numeric value representing the unit price of the item.

discount

A character string representing the discount in percentage with the '%' symbol on the item.

amount

A numeric value representing the amount due for the item at the given unit price, quantity, and discount.

sample

A character string describing whether the item is a sample for a customer or not with values 'Yes' and 'No'.

category

A character string describing whether the item is a sampling item for the production or not with values 'Yes' and 'No'.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

an_item <- new('single_item', category = 'some category', descrp = 'some description', 

model = 'some model', quant = 1, price = 10, discount = '10%', amount = 9, sample = 'No', 

sampling = 'No')


## End(Not run)

Samantha-Lui/EZRecords documentation built on May 5, 2019, 4:46 p.m.