Merge master

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-08 11:18:22 -05:00
16 changed files with 131 additions and 32 deletions

View File

@@ -73,10 +73,10 @@ export default function CourtesyCarsList({ loading, courtesycars, refetch }) {
render: (text, record) => {
const { nextservicedate, nextservicekm, mileage } = record;
const mileageOver = nextservicekm <= mileage;
const mileageOver = nextservicekm ? nextservicekm <= mileage : false;
const dueForService =
nextservicedate && dayjs(nextservicedate).isBefore(dayjs());
nextservicedate && dayjs(nextservicedate).end('day').isSameOrBefore(dayjs());
return (
<Space>