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.

feat: expand ingot material dimensions with comprehensive weight ranges

fiber[bot]085f98c71851
diff --git a/packages/database/supabase/migrations/20260208020701_add-ingot-material-shape.sql b/packages/database/supabase/migrations/20260208020701_add-ingot-material-shape.sql
index b7c3617a7a..a74b290bd0 100644
--- a/packages/database/supabase/migrations/20260208020701_add-ingot-material-shape.sql
+++ b/packages/database/supabase/migrations/20260208020701_add-ingot-material-shape.sql
@@ -2,21 +2,40 @@
INSERT INTO "materialForm" ("id", "name", "code", "createdBy") VALUES
('ingot', 'Ingot', 'ING', 'system');
--- Add ingot dimensions (weight-based dimensions commonly used for ingots) - Imperial
+-- Add ingot dimensions (weight-based dimensions commonly used for casting ingots) - Imperial
INSERT INTO "materialDimension" ("id", "materialFormId", "name", "isMetric", "companyId") VALUES
- ('ingot-1', 'ingot', '1 lb', false, null),
- ('ingot-2', 'ingot', '2 lb', false, null),
- ('ingot-5', 'ingot', '5 lb', false, null),
- ('ingot-10', 'ingot', '10 lb', false, null),
- ('ingot-25', 'ingot', '25 lb', false, null),
- ('ingot-50', 'ingot', '50 lb', false, null),
- ('ingot-100', 'ingot', '100 lb', false, null),
+ -- Small ingots (precious metals, specialty casting)
+ ('ingot-1oz', 'ingot', '1 oz', false, null),
+ ('ingot-2-5oz', 'ingot', '2.5 oz', false, null),
+ ('ingot-5oz', 'ingot', '5 oz', false, null),
+ ('ingot-10oz', 'ingot', '10 oz', false, null),
+ ('ingot-1lb', 'ingot', '1 lb', false, null),
+ ('ingot-2lb', 'ingot', '2 lb', false, null),
+ ('ingot-5lb', 'ingot', '5 lb', false, null),
+ ('ingot-10lb', 'ingot', '10 lb', false, null),
+ ('ingot-20lb', 'ingot', '20 lb', false, null),
+ ('ingot-25lb', 'ingot', '25 lb', false, null),
+ ('ingot-50lb', 'ingot', '50 lb', false, null),
+ ('ingot-100lb', 'ingot', '100 lb', false, null),
+ ('ingot-250lb', 'ingot', '250 lb', false, null),
+ ('ingot-500lb', 'ingot', '500 lb', false, null),
+ ('ingot-1000lb', 'ingot', '1000 lb', false, null),
- -- Ingot dimensions (weight-based dimensions for ingots) - Metric
+ -- Standard bars/ingots (troy ounces)
+ ('ingot-100oz', 'ingot', '100 oz', false, null),
+ ('ingot-400oz', 'ingot', '400 oz (Good Delivery)', false, null),
+
+ -- Ingot dimensions (weight-based dimensions for casting ingots) - Metric
('ingot-0-5kg', 'ingot', '0.5 kg', true, null),
('ingot-1kg', 'ingot', '1 kg', true, null),
('ingot-2kg', 'ingot', '2 kg', true, null),
('ingot-5kg', 'ingot', '5 kg', true, null),
+ ('ingot-9kg', 'ingot', '9 kg (20 lb equivalent)', true, null),
('ingot-10kg', 'ingot', '10 kg', true, null),
+ ('ingot-12-4kg', 'ingot', '12.4 kg (400 oz Good Delivery)', true, null),
+ ('ingot-20kg', 'ingot', '20 kg', true, null),
('ingot-25kg', 'ingot', '25 kg', true, null),
- ('ingot-50kg', 'ingot', '50 kg', true, null);
+ ('ingot-50kg', 'ingot', '50 kg', true, null),
+ ('ingot-100kg', 'ingot', '100 kg', true, null),
+ ('ingot-250kg', 'ingot', '250 kg', true, null),
+ ('ingot-500kg', 'ingot', '500 kg', true, null);