product_transac-class: Product Transaction

Description Slots Examples

Description

product_transac is an S4 class to represent a transaction record of an order in a business transaction log.

Slots

date

A Date object describing the date of the transaction.

transac

A character string describing the nature of the transaction with values 'credit' and 'debit'.

catgory

A character string representing whether the order is a 'purchase' or a 'sale'.

descrp

An all_items object representing all items in the order.

supplier_customer

A character string representing the supplier/customer of the transaction.

order_no

A character string representing the order number of the transaction.

value

A numeric value representing the value of the items in the order.

shipment

A numeric value representing the handling and shipment cost for the order.

total

A numeric value representing the total amount in the transaction.

time_stamp

A POSIXt object describing the time when the transaction record is created.

Examples

1
2
3
4
5
6
## Not run: a_transaction <- new('product_transac', date = Sys.Date(), transac = 'credit',

category = 'sale', descrp = shopping_cart, supplier_customer = 'Amazon', order_no = 'A12345',

value = 100, tax = 9.75, shipment = 12.99, total = 122.74, time_stamp = Sys.time())
## End(Not run)

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