7 lines
508 B
MySQL
7 lines
508 B
MySQL
|
|
-- target-database: cmvr-project-dev
|
||
|
|
-- Additive migration. Execute only on the explicitly selected environment.
|
||
|
|
-- Existing quotations/costs are not copied into the independent reference price.
|
||
|
|
ALTER TABLE purchase_request ADD COLUMN actual_unit_price DECIMAL(20,6) NULL COMMENT '内部参考实际单价,不参与成本' AFTER final_unit_price;
|
||
|
|
-- actualAmount = ROUND(quantity * actual_unit_price, 2), calculated when read.
|
||
|
|
-- The new display switch defaults OFF when its sys_config key does not exist.
|