@if (table$ | async; as table) {
{{ table.tableNames.join(', ') }}
@if ((table.order?.items?.length ?? 0) > 0) {
@if ((table.order?.outstandingAmount ?? 0) > 0) {
{{ t('Outstanding Balance') }}
} @if ((table.order?.outstandingAmount ?? 0) === 0 && (table.order?.items?.length ?? 0) > 0) {
{{ t('Paid') }}
} @if (isFeatureEnabled(FeatureKey.Kitchen, settings?.features)) { @if (tableCookingState === OrderItemState.pending) { } @if (![OrderItemState.served, OrderItemState.done].includes($any(tableCookingState))) { } @if (tableCookingState === OrderItemState.served) { } }
}
@if (selectedViewType === 'Order') {
@if (table.order?.items?.length === 0) {
{{ t('empty_cart_notice') }}
}
@if (table.order?.items ?? [] | kadiGroupBy: 'course'; as courseGroups) { @for (course of courseGroups | keyvalue; track course) { @if (courses.length > 0) {
{{ course.key !== 'null' ? 'Course ' + course.key : 'No Course' }}
@if (isFeatureEnabled(FeatureKey.Kitchen, settings?.features)) { }
} @for (item of course.value; track item) {
{{ item.name }}
@if (isFeatureEnabled(FeatureKey.Kitchen, settings?.features)) {
{{ item.state | kadiItemState }}
}
{{ item.unitPrice | currency: table.order?.currencyCode }}
x{{ item.quantity }}
@if (!item.paid && selectedBillType === 'Split') {
{{ item.unitPrice * item.quantity | currency }}
}
@if (item.paid || selectedBillType === 'PayAll') {
{{ item.unitPrice * item.quantity | currency }}
} @if (!item.paid && selectedBillType === 'Split') {
{{ selectedQuantity(item.id) }}
}
@if (isFeatureEnabled(FeatureKey.Kitchen, settings?.features)) {
@if (item.state === OrderItemState.pending) { } @if (![OrderItemState.served, OrderItemState.done].includes($any(item.state))) { } @if (item.state === OrderItemState.served) { }
@if (!item.course && item.state === OrderItemState.pending) {
@for (course of courses; track course) { } @if (courses.length < 3) { }
}
}
} } }
{{ t('Sum') }}
{{ table.order?.baseAmount | currency: table.order?.currencyCode }}
MwSt {{ table.order?.taxPercentage }}%
{{ table.order?.taxAmount | currency: table.order?.currencyCode }}
{{ t('Total') }}
{{ table.order?.totalAmount | currency: table.order?.currencyCode }}
} @else { }
@if (selectedViewType === 'Order') {
@if (selectedBillType === 'PayAll') { } @if (selectedBillType === 'Split') { }
} @else {
}
}