invoice.demo: Demo for invoice generator for orders

Description Usage Arguments Value Examples

Description

The invoice.demo method generates an order number for the transaction when a sale is made. An order number generated has a pattern consists of four parts: A customized first part, followed by the 2-digit represention of the year when the order number is generated, follow by a customized second part, and completed by the (possibly encryted) count of order number issued. *At the beginnig of the following years, the count will be reset to the count_begins_at assigned at the construction of the object, with the 2-digit year modified.

Usage

1
2
## S4 method for signature 'invoice'
invoice.demo(obj, is_sampling, inv)

Arguments

obj

The invoice object.

is_sampling

A boolean value indicating whether the transaction is in fact a sampling for the production or not.

inv_df

A data frame containing a log of the invoice generated.

Value

A list containing a character string representation of the order number if it is indeed a sale and 'N/A' otherwise and an undated log of generated invoices.

Examples

1
## Not run: invoice.demo(vt, FALSE)

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