Add production execution workflow
This commit is contained in:
@@ -488,6 +488,14 @@ const initDB = async () => {
|
||||
ADD COLUMN IF NOT EXISTS completed_date DATE;
|
||||
`).catch(() => {});
|
||||
|
||||
await pool.query(`
|
||||
ALTER TABLE production_orders
|
||||
ADD COLUMN IF NOT EXISTS actual_cut_quantity NUMERIC(14, 4),
|
||||
ADD COLUMN IF NOT EXISTS rejected_quantity NUMERIC(14, 4) NOT NULL DEFAULT 0,
|
||||
ADD COLUMN IF NOT EXISTS finished_quantity NUMERIC(14, 4),
|
||||
ADD COLUMN IF NOT EXISTS quality_notes TEXT;
|
||||
`).catch(() => {});
|
||||
|
||||
await pool.query(`
|
||||
CREATE TABLE IF NOT EXISTS production_order_import_runs (
|
||||
id SERIAL PRIMARY KEY,
|
||||
|
||||
Reference in New Issue
Block a user