BexioApiClient.SalesOrderManagement.PositionDiscount (bexio_api_client v0.7.0)

Discount Position (KbPositionDiscount)

Link to this section Summary

Types

t()

Discount Position

Functions

Create a new record.

Link to this section Types

@type t() :: %BexioApiClient.SalesOrderManagement.PositionDiscount{
  discount_total: Decimal.t(),
  id: integer(),
  percentual?: boolean(),
  text: String.t(),
  value: Decimal.t()
}

Discount Position

fields

Fields:

  • :id - automatic id given by bexio
  • :text - text
  • :value - discount value
  • :discount_total - discount total
  • :percentual? - whether the discount is an amount or a percentage of the total amount

Link to this section Functions

Link to this function

new(attrs \\ %{})

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

Create a new record.