Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/pages/Facility/services/inventory/SupplyDeliveryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export function SupplyDeliveryTable({
<TableHead rowSpan={2}>{t("#")}</TableHead>
<TableHead rowSpan={2}>{t("item")}</TableHead>
<TableHead rowSpan={2}>{t("batch")}</TableHead>
{!internal && <TableHead rowSpan={2}>{t("expiry")}</TableHead>}
Comment thread
Jacobjeevan marked this conversation as resolved.
Outdated
<TableHead rowSpan={2}>{t("requested_qty")}</TableHead>
{!internal && <TableHead rowSpan={2}>{t("pack_size")}</TableHead>}
{!internal && <TableHead rowSpan={2}>{t("pack_qty")}</TableHead>}
Expand Down Expand Up @@ -278,9 +279,25 @@ export function SupplyDeliveryTable({
})()}
</TableCell>
<TableCell>
{delivery.supplied_inventory_item?.product?.batch?.lot_number ||
{delivery.supplied_inventory_item?.product?.batch?.lot_number ??
delivery.supplied_item?.batch?.lot_number ??
Comment thread
Jacobjeevan marked this conversation as resolved.
Outdated
"-"}
</TableCell>
{!internal && (
Comment thread
Jacobjeevan marked this conversation as resolved.
Outdated
<TableCell>
{(delivery.supplied_inventory_item?.product?.expiration_date ??
delivery.supplied_item?.expiration_date)
? formatDate(
new Date(
delivery.supplied_inventory_item?.product
?.expiration_date ??
delivery.supplied_item?.expiration_date!,
),
"dd/MM/yyyy",
)
: "-"}
</TableCell>
)}
<TableCell>
{delivery.supply_request
? round(delivery.supply_request.quantity)
Expand Down