Class InvoiceLine

Represents a line item on an invoice.

Hierarchy

Implements

Constructors

Properties

_timestamp: number
created_at: Date = ...
deleted_at: any = null
discount_amount: number = 0

The amount of discount applied to the line item.

discount_calc_type: CalcType = CalcType.Flat

Line discount calculation type

discount_percent: number = 0

The percentage of discount applied to the line item.

duplicated_from_uid: string = ''

The line item that this line item is duplicated from.

id_in_server: number
invoice_uid: string = ''

Invoice Line unique id

is_duplicate: boolean = false

Whether the line item is a duplicate.

is_take_out: boolean = false

Whether the line item is for take-out. If so, the service charge is not counted.

item: Item = ...

The item being sold on the line item.

item_uid: string = ''

Item unique id

modifiers: any[] = []

Any modifiers applied to the line item.

point: number = 0

The point value of the item.

point_subtotal: number = 0

The subtotal for the line item in points.

price: number = 0

The unit price of the item.

quantity: number = 0

The quantity of the item being sold on the line item.

remark: string = ''

Any additional remarks for the line item.

sent: number = 0

Whether it is sent to server

subtotal: number = 0

The subtotal for the line item.

subtotal_before_discount: number = 0

The subtotal for the line item before any discounts were applied.

uid: string
unit_of_measure: UomType = UomType.quantity

The unit of measurement for the item.

up_size: boolean = false

Whether the item size is up-sized.

updated_at: Date = ...

Generated using TypeDoc