BexioApiClient.SalesOrderManagement.PositionDiscount (bexio_api_client v2.0.0)

Copy Markdown

Discount Position (KbPositionDiscount)

Summary

Types

t()

Discount Position

Functions

Create a new record.

Types

t()

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

Discount Position

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

Functions

new(attrs \\ %{})

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

Create a new record.