Description Usage Arguments Value
Write sales entries in the journal.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | record_sale(
date = Sys.Date(),
object = "units",
quantity = 100,
price = 10,
discount = 0.05,
vat = 0.2,
dso = 30,
unit_cost = 5,
sales_commission = 0.1,
labor_tax = 0.5,
dco = 15,
situation = NULL,
risk = 0.1,
origin = 40000,
intercompany = FALSE
)
|
date |
Date. date of the sale. |
object |
Character. Name of the product or service sold. |
quantity |
Integer. Volume sold. |
price |
Double. Base price of the product or service. |
discount |
Double. Percentage of price reduction earned if payment within terms. |
vat |
Double. Percentage of price to compute value added taxes. |
dso |
Integer. Day-Sales-Outstading or customer credit. |
unit_cost |
Double. Cost of the product or services sold. |
sales_commission |
Double. Percentage of price paid to sales people as commission (end of month). |
labor_tax |
Double. Percentage of labor taxes applied to the commissions. |
dco |
Integer. Delay before paying commissions. |
situation |
Character. NULL or specify one of the following situation: "default", "sales return", "pay very late" or "pay late" |
risk |
Double. Number between 0 and 1 indicating the risk on the sale, affecting the probability of different situations. |
origin |
Integer. account number for the affected revenue account. |
intercompany |
Logical. Whether the sale is to a division of the same company. |
A tibble of journal entries.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.