diff --git a/src/pages/ProductionOrders.tsx b/src/pages/ProductionOrders.tsx
index 9af79ac..a979a87 100644
--- a/src/pages/ProductionOrders.tsx
+++ b/src/pages/ProductionOrders.tsx
@@ -196,7 +196,6 @@ const ProductionOrders = () => {
const finishedCount = summary.counts.finished || 0;
const totalQuantity = summary.orders.reduce((total, order) => total + order.quantity, 0);
const selectedOrder = summary.orders.find(order => order.id === selectedOrderId) || null;
- const statusEditorOrder = summary.orders.find(order => order.id === statusEditorOrderId) || null;
const handleManualRefresh = () => {
void loadProductionOrders({ force: true });
@@ -282,11 +281,13 @@ const ProductionOrders = () => {
Quantidade
{formatQuantity(order.quantity)} {order.unit}
-
Status
+
Status
Emissão
{formatDate(order.issueDate)}
Previsão
{formatDate(order.expectedDate)}
+ {statusEditorOrderId === order.id && Alterar status
{editableStatusOptions.map(option => { const style = getStatusStyle(option.value, option.label); const isCurrent = order.status === option.value; const Icon = option.value === 'finished' ? CheckCircle2 : option.value === 'canceled' ? XCircle : option.value === 'in_progress' ? PlayCircle : Clock3; return ; })}
}
+
Produto e marcadores
@@ -517,11 +518,16 @@ const ProductionOrders = () => {
@@ -583,16 +589,6 @@ const ProductionOrders = () => {
)}
-
- {statusEditorOrder && (
-
-
- )}
);
};
|