core-jgi/migration/iD10/postgresql/202212021150_IDEMPIERE-5503...

9 lines
278 B
SQL

SELECT register_migration_script('202212021150_IDEMPIERE-5503.sql') FROM dual;
UPDATE M_CostDetail SET Amt = Amt * -1 WHERE Qty < 0 AND Amt > 0 AND M_InOutLine_ID IS NOT NULL
;
UPDATE M_CostDetail SET Amt = Amt * -1 WHERE Qty > 0 AND Amt < 0 AND M_InOutLine_ID IS NOT NULL
;