invoice: Invoice generator for orders

Description Usage Arguments Value Examples

Description

The invoice 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(obj, is_sampling)

Arguments

obj

The invoice object.

is_sampling

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

Value

A character string representation of the order number if it is indeed a sale and 'N/A' otherwise.

Examples

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

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