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.

fix: set default to set quantity in inventory adjustment modal

Brad Barbind1382616bb5c
diff --git a/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx b/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
index 37252f9361..b21589f66d 100644
--- a/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
+++ b/apps/erp/app/modules/inventory/ui/Inventory/InventoryShelves.tsx
@@ -78,8 +78,6 @@ const InventoryShelves = ({
const [selectedShelfId, setSelectedShelfId] = useState<string | null>(null);
const openAdjustmentModal = (shelfId?: string) => {
- console.log(shelfId);
- console.log(`setting selected shelf id to ${shelfId}`);
setSelectedShelfId(shelfId || null);
adjustmentModal.onOpen();
};
@@ -182,7 +180,7 @@ const InventoryShelves = ({
quantity: quantity,
locationId: pickMethod.locationId,
shelfId: selectedShelfId || undefined,
- adjustmentType: isSerial ? "Positive Adjmt." : "Set Quantity",
+ adjustmentType: "Set Quantity",
trackedEntityId: nanoid(),
}}
onSubmit={adjustmentModal.onClose}