Description Usage Arguments Value Examples
Create an invoice object
1 2 3 4 5 6 7 8 9 10 | invoice(month = NULL, year = lubridate::year(lubridate::today()),
since = if (is.null(month)) { d <- lubridate::today() - months(1)
lubridate::day(d) <- 1 d } else
lubridate::ymd(sprintf("%s-%s-01", year, month)), until = since +
months(1) - lubridate::days(1),
client = getOption("invoicer_default_client", "without client"),
date = until + lubridate::days(1),
address = getOption("invoicer_default_address", ""), expenses = 0,
template_key = getOption("invoicer_template_key",
stop("template key must be specified")), inv_num = 1)
|
month |
specify month for a one-month invoice |
year |
invoice year |
since |
if month is not specified, beginning of invoice period |
until |
end of invoice period |
client |
client name |
date |
invoice date, defaults to the day after until |
address |
client address |
expenses |
amount of expenses for current month |
template_key |
the google drive key for the template to use. must be in your google drive |
inv_number |
invoice number/code |
an invoice object, a tibble with the following attributes:
fields the various invoice-specific values, such as date and address
tmpl google drive document key of the template
url url of the google sheet generated
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.