BexioApiClient. Purchase. Expense
(bexio_api_client v2.0.0)
Copy Markdown
Expense in purchase
Summary
Types
@type t() :: %BexioApiClient.Purchase.Expense{ address: BexioApiClient.Purchase.Address.t() | nil, amount: float() | nil, attachment_ids: [String.t()], bank_account_id: integer() | nil, base_currency_amount: float() | nil, base_currency_code: String.t() | nil, booking_account_id: integer() | nil, created_at: DateTime.t() | NaiveDateTime.t() | nil, currency_code: String.t(), document_no: String.t() | nil, exchange_rate: float() | nil, firstname_suffix: String.t() | nil, gross: float() | nil, id: String.t() | nil, invoice_id: String.t() | nil, lastname_company: String.t() | nil, net: float() | nil, paid_on: Date.t(), project_id: String.t() | nil, status: :draft | :done, supplier_id: integer() | nil, tax_calc: float() | nil, tax_id: integer() | nil, tax_man: float() | nil, title: String.t() | nil, transaction_id: String.t() | nil, vendor: String.t() | nil, vendor_ref: String.t() | nil }
Expense in purchase.
Fields:
:status-:draftor:done:vendor- joinedfirstname_suffixandlastname_company, only present in the list response:supplier_id- references a supplier (contact) object,nilwhen not set:net/:gross- net/gross value of the expense, only present in the list response:base_currency_code- base currency code taken from the settings:tax_man- manually set tax amount:tax_calc- calculated tax amount:transaction_id-nilunless the expense is reconciled with a transaction:invoice_id-nilunless the expense is linked to an invoice:project_id- references a project object:address- address of the supplier, must benilwhen:supplier_idis not set