diff --git a/src/pages/Facility/services/inventory/SupplyDeliveryTable.tsx b/src/pages/Facility/services/inventory/SupplyDeliveryTable.tsx index e48de511eaa..0eda073f1d3 100644 --- a/src/pages/Facility/services/inventory/SupplyDeliveryTable.tsx +++ b/src/pages/Facility/services/inventory/SupplyDeliveryTable.tsx @@ -1,5 +1,5 @@ import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { formatDate } from "date-fns"; +import { formatDate, parseISO } from "date-fns"; import { EllipsisVertical } from "lucide-react"; import { Link } from "raviger"; import { useEffect, useMemo, useRef } from "react"; @@ -190,6 +190,7 @@ export function SupplyDeliveryTable({ {t("#")} {t("item")} {t("batch")} + {t("expiry")} {t("requested_qty")} {!internal && {t("pack_size")}} {!internal && {t("pack_qty")}} @@ -286,6 +287,16 @@ export function SupplyDeliveryTable({ {delivery.supplied_inventory_item?.product?.batch?.lot_number || "-"} + + {(() => { + const expiry = + delivery.supplied_inventory_item?.product?.expiration_date || + delivery.supplied_item?.expiration_date; + return expiry + ? formatDate(parseISO(expiry), "dd/MM/yyyy") + : "-"; + })()} + {delivery.supply_request ? round(delivery.supply_request.quantity)