
UPDATE pms_offer_positions
SET fk_unit_id = 2
WHERE fk_unit_id IS NULL
AND quantity IS NOT NULL
AND quantity > 0
AND is_deleted = 0;

UPDATE pms_order_positions
SET fk_unit_id = 2
WHERE fk_unit_id IS NULL
AND quantity IS NOT NULL
AND quantity > 0
AND is_deleted = 0;
