BexioApiClient.Accounting.ManualEntryLine (bexio_api_client v2.0.0)

Copy Markdown

Bexio Manual Entry Line Module.

A single booking line within a BexioApiClient.Accounting.ManualEntry.

Summary

Types

t()

Bexio Manual Entry Line

Functions

Create a new manual entry line (part of BexioApiClient.Accounting.ManualEntry.new/1). The id and the user ids are ignored when creating.

Types

t()

@type t() :: %BexioApiClient.Accounting.ManualEntryLine{
  amount: Decimal.t(),
  base_currency_amount: Decimal.t() | nil,
  base_currency_id: integer() | nil,
  created_by_user_id: integer() | nil,
  credit_account_id: integer(),
  currency_factor: float() | nil,
  currency_id: integer(),
  date: Date.t(),
  debit_account_id: integer(),
  description: String.t() | nil,
  edited_by_user_id: integer() | nil,
  id: integer() | nil,
  tax_account_id: integer() | nil,
  tax_id: integer() | nil
}

Bexio Manual Entry Line

Fields:

  • :id - automatic id given by bexio (nil for a not yet created line)
  • :date - the booking date
  • :debit_account_id - the id of the debit account
  • :credit_account_id - the id of the credit account
  • :tax_id - the id of the tax, references a tax object
  • :tax_account_id - the id of the tax account
  • :description - the description of the booking line
  • :amount - the booked amount
  • :currency_id - the id of the currency, references a currency object
  • :base_currency_id - the id of the base currency
  • :currency_factor - the currency factor
  • :base_currency_amount - the amount in the base currency
  • :created_by_user_id - the id of the user who created the line
  • :edited_by_user_id - the id of the user who last edited the line

Functions

new(attrs \\ %{})

@spec new(map()) :: t()

Create a new manual entry line (part of BexioApiClient.Accounting.ManualEntry.new/1). The id and the user ids are ignored when creating.