Description Usage Arguments Value Examples
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.
1 2 | ## S4 method for signature 'invoice'
invoice(obj, is_sampling)
|
obj |
The invoice object. |
is_sampling |
A boolean value indicating whether the transaction is in fact a sampling for the production or not. |
A character string representation of the order number if it is indeed a sale and 'N/A' otherwise.
1 | ## Not run: invoice(vt, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.