mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 23:17:12 +01:00
add booking status to bill
This commit is contained in:
@@ -10,6 +10,7 @@ import { BILL_STATUS, MILAGE_TARIFS } from '../../../db/enums'
|
||||
import { getBookingByUUID, getMilageMax } from '../../../db/index'
|
||||
import { dateFormatFrontend } from '../../../helpers/date'
|
||||
import { getBillTotal } from '../../../helpers/bill'
|
||||
import { getBookingStatus } from '../../../helpers/booking'
|
||||
|
||||
const milageTarifOptions = Object.values(MILAGE_TARIFS).map((tarif) => {
|
||||
return (
|
||||
@@ -184,6 +185,9 @@ export default function BillPage({
|
||||
<div>
|
||||
<strong>Bucher:</strong> {booking.booker.name}
|
||||
</div>
|
||||
<div>
|
||||
<strong>Buchungsstatus:</strong> {getBookingStatus(booking)}
|
||||
</div>
|
||||
<div>
|
||||
<Input
|
||||
label="Anfangskilometer"
|
||||
|
||||
Reference in New Issue
Block a user