diff --git a/src/components/DeliveryOrdersList.jsx b/src/components/DeliveryOrdersList.jsx index c56f071..40069bc 100644 --- a/src/components/DeliveryOrdersList.jsx +++ b/src/components/DeliveryOrdersList.jsx @@ -52,6 +52,13 @@ const DeliveryOrdersList = ({ return (minutes / 60).toFixed(2) + " час."; }; + const formatPrice = (price) => { + if (!price) { + return "не указана"; + } + return `${Math.round(price)} ₽`; + }; + const calculateRoutes = async () => { const ordersToCalculate = deliveryOrders.filter( (order) => !order.estimated_route_time_in_minutes @@ -161,6 +168,7 @@ const DeliveryOrdersList = ({ Прогнозируемое время этапа:{" "} {formatTimeInHours(order.estimated_route_time_in_minutes)}
+Стоимость: {formatPrice(order.price)}
{calculatingRoutes.includes(order.id) && (