Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

Allow editing delivery date on purchase orders regardless of status (#665)

Brad Barbin3612d19f6b96
diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderProperties.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderProperties.tsx
index 856b64e5d7..de58ff8d72 100644
--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderProperties.tsx
+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderProperties.tsx
@@ -388,7 +388,7 @@ const PurchaseOrderProperties = () => {
name="deliveryDate"
label={t`Delivery Date`}
inline
- isDisabled={isDisabled}
+ isDisabled={!canUpdate}
onChange={(date) => {
onUpdate("deliveryDate", date);
}}