add_daybook_entry: Add daybook entries

Description Usage Arguments Examples

View source: R/daybook.R

Description

This function is mainly used as a standalone when adding invoices from a creditor to you administration.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
add_daybook_entry(
  date,
  daybook,
  account,
  entity,
  comment,
  invoice_file,
  invoice_num,
  direction,
  currency,
  amount,
  ...,
  VAT_class
)

Arguments

date

Date of transaction.

daybook

A character string for the daybook type (sales, purchases, bank, memorial).

account

A numeric value for ledger account number.

entity

Describe the transaction (i.e., the company).

comment

Describe in more detail the transaction.

invoice_file

The path to the invoice file.

invoice_num

The invoice number as given on the invoice as a numeric value.

direction

The direction of the transaction, usually "credit", when using the function as a stand-alone.

currency

A character string for the currency of the transaction.

amount

A numeric value for the amount of the transaction.

...

A numeric value or vector of numeric values for the absolute value(s) of VAT included in the invoice.

VAT_class

A variable for the VAT class of the transaction. Supply a character vector with the same number of element as VAT object supplied to the ellipses (...).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
add_daybook_entry(
 Sys.Date(),
 "sales",
 1050,
 "Super-store",
 "A bunch of things",
 "invoice.txt",
 1,
 "credit",
 "$",
 1000,
 210,
 "high-VAT"
)

## End(Not run)

MartinSchobben/bookkeeper documentation built on Dec. 17, 2021, 3:17 a.m.