Dettaglio Ordine Cassa @if (selectedTab === 'dettaglio' && booking) {

Stato

{{ getStatusLabel(booking.bkb_status) }}

Data

{{ booking.bkb_date | date:'dd/MM/yyyy' }}@if (booking.bkb_date_to) { → {{ booking.bkb_date_to | date:'dd/MM/yyyy' }} }

@if (booking.bkts_name || booking.bkb_start_time) {

Orario

{{ booking.bkts_name || (booking.bkb_start_time | slice:0:5) + ' - ' + (booking.bkb_end_time | slice:0:5) }}

} @if (booking.bkr_name || hasResourceAliasCluster) {

Risorsa

{{ resourceDisplayName }}

@if (hasResourceAliasCluster && booking.bkr_name) {

{{ booking.bkr_name }}

}
} @if (!isBeach) {

Ospiti

{{ booking.bkb_guests_count }}

} @if (isBeach) { @if (booking.bkb_lettini) {

Lettini

{{ booking.bkb_lettini }}

} @if (booking.bkb_sdraio) {

Sdraio

{{ booking.bkb_sdraio }}

} @if (booking.bkb_sedie) {

Sedie

{{ booking.bkb_sedie }}

} } @if (booking.bkb_notes) {

Note

{{ booking.bkb_notes }}

}
Cambia stato @if (booking.bkb_status === 'PENDING') { Conferma } @if (booking.bkb_status === 'CONFIRMED') { Completa } @if (booking.bkb_status !== 'CANCELLED' && booking.bkb_status !== 'COMPLETED') { Annulla }
@if (booking.bkb_status === 'COMPLETED') {
}
} @if (selectedTab === 'ordine') {
@if (menuCategories.length > 0) { @for (cat of menuCategories; track cat) { @if ((menuItemsByCategory[cat.bkmc_id]?.length ?? 0) > 0) {
@if (!collapsedCategories[cat.bkmc_id]) {
@for (item of menuItemsByCategory[cat.bkmc_id]; track item) {

{{ item.bkmi_name }}

@if (item.bkmi_description) { }

€ {{ item.bkmi_price | number:'1.2-2' }}

{{ item.selectedQuantity || 1 }}
}
}
} } } @if (menuCategories.length === 0) {

Nessuna voce menu disponibile

}
@if (orderedItems.length > 0) {
{{ orderedItems.length }}
}
@if (cartItems.length > 0) {
{{ cartItems.length }}
}
} Carrello {{ cartItems.length }} Chiudi @for (item of cartItems; track item) {

{{ item.bkmi_name }}

{{ item.bkmc_name }}

x{{ item.bkbi_quantity }} € {{ item.bkbi_total_price | number:'1.2-2' }}
} Totale € {{ totaleCarrello | number:'1.2-2' }}
Invia ordine
Storico ordini Chiudi @for (item of orderedItems; track item) {

{{ item.bkmi_name }}

{{ item.bkmc_name }}

x{{ item.bkbi_quantity }} € {{ item.bkbi_total_price | number:'1.2-2' }} {{ getItemStatusLabel(item.bkbi_notes) }}
} Totale ordinato € {{ totaleOrdine | number:'1.2-2' }}
@if (selectedTab === 'cassa') {
@if (prezzoBase > 0 && residuoBooking > 0) {
Prenotazione da pagare
Totale € {{ prezzoBase | number:'1.2-2' }} @if (pagatoBooking > 0) { Già pagato - € {{ pagatoBooking | number:'1.2-2' }} } Residuo € {{ residuoBooking | number:'1.2-2' }}
Paga · € {{ residuoBooking | number:'1.2-2' }}
} @if (prezzoBase > 0 && residuoBooking === 0) { Prenotazione saldata } @if (totalMenuItems > 0) {
Cassa Ordini @if (residuoOrder > 0) { Paga } @if (residuoOrder === 0 && pagatoOrder > 0) { Saldato }
@for (item of unpaidOrderItems; track item.bkbi_id) {

{{ item.bkmi_name }}

@if (item.bkmc_name) {

{{ item.bkmc_name }}

}

x{{ item.bkbi_quantity }}

€ {{ item.bkbi_total_price | number:'1.2-2' }}

} @for (item of paidOrderItems; track item.bkbi_id) { } Totale ordine € {{ totalMenuItems | number:'1.2-2' }} @if (residuoOrder > 0) { Residuo € {{ residuoOrder | number:'1.2-2' }} }
} @if (payments.length > 0) {
Storico pagamenti
} @if (showPaymentHistory) { @for (p of payments; track p) {

{{ getPaymentMethodLabel(p.bkp_method) }} — {{ p.bkp_type === 'BOOKING' ? 'Prenotazione' : 'Ordine' }}

{{ p.bkp_date | date:'dd/MM/yyyy' }}

@if (getPaymentItemsSummary(p.bkp_notes)) {

{{ getPaymentItemsSummary(p.bkp_notes) }}

} @if (getPaymentVisibleNotes(p.bkp_notes)) {

{{ getPaymentVisibleNotes(p.bkp_notes) }}

}
€ {{ p.bkp_amount | number:'1.2-2' }}
}
}
}
{{ paymentForm.bkp_type === 'ORDER' ? 'Paga ordini' : 'Paga prenotazione' }} Chiudi @if (paymentForm.bkp_type === 'ORDER' && unpaidOrderItems.length > 0) {
Voci da pagare
@for (item of unpaidOrderItems; track item.bkbi_id; let i = $index) {

{{ item.bkmi_name }}

{{ paymentItemQty[i] }} € {{ (item.bkbi_unit_price * paymentItemQty[i]) | number:'1.2-2' }}
}
} Importo (€) Note @if (puoFatturare) { Richiedi fattura } @else { La fattura può essere richiesta solo saldando l'intero importo. } @if (puoFatturare && requestInvoice && datiFiscali) { Dati fattura pronti{{ datiFiscali.pIva ? ' (P.IVA ' + datiFiscali.pIva + ')' : (datiFiscali.codFiscale ? ' (CF ' + datiFiscali.codFiscale + ')' : '') }} Modifica }
Procedi
Pagamento Chiudi
Importo da pagare € {{ checkoutAmount | number:'1.2-2' }}

Metodo di pagamento

@for (pt of filteredPaymentTypes; track pt) {
{{ pt.pt_name }}
} @if (canUseNfc) {
NFC
}
@if (configsForSelectedType.length > 1) {

Configurazione

@for (c of configsForSelectedType; track c) {

{{ c.pcc_alias }}

{{ c.pcc_environment }}

}
} @if (view_paypal) {
} @if (!view_paypal && selectedTypeCode) {
{{ selectedTypeCode === 'NFC' ? 'Riscuoti con NFC' : 'Paga' }} · € {{ checkoutAmount | number:'1.2-2' }}
}
@if (nfcStatus === 'waiting') {
} @if (nfcStatus === 'waiting') {
} @if (nfcStatus === 'waiting') {
}
@if (nfcStatus === 'waiting') { } @if (nfcStatus === 'detected' || nfcStatus === 'saving') { } @if (nfcStatus === 'done') { } @if (nfcStatus === 'error' || nfcStatus === 'unsupported') { }

@if (nfcStatus === 'waiting') { Avvicina la carta } @if (nfcStatus === 'detected') { Carta rilevata } @if (nfcStatus === 'saving') { Registrazione… } @if (nfcStatus === 'done') { Riscosso! } @if (nfcStatus === 'error') { Errore } @if (nfcStatus === 'unsupported') { Non supportato }

€ {{ checkoutAmount | number:'1.2-2' }}

{{ nfcMessage }}

@if (nfcStatus === 'waiting') { Annulla } @if (nfcStatus === 'error' || nfcStatus === 'unsupported') { Chiudi }