add booking status to bill

This commit is contained in:
Thomas Ruoff
2020-10-10 01:01:46 +02:00
parent e029547fe1
commit a5b47a7311
3 changed files with 20 additions and 15 deletions

View File

@@ -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"