record_investment: Write investment entries in the ledger.

Description Usage Arguments Value

View source: R/record_investment.R

Description

Write investment entries in the ledger.

Usage

1
2
3
4
5
6
7
8
9
record_investment(
  date = Sys.Date(),
  object = "asset",
  price = 120000,
  rate = NA,
  duration = 60,
  origin = 15300,
  destination = 92000
)

Arguments

date

Date. date of the sale.

object

Character. Name of the product or service sold.

price

Double. Base price of the product or service.

rate

Double. Interest rate used for the operating lease.

duration

Integer. Number of periods (months).

origin

Character. Account where the asset is "stored".

destination

Character. Account where the asset depreciation is accumulated.

Value

A tibble of journal entries.


NicolasJBM/simulR documentation built on Feb. 15, 2021, 9:38 a.m.