UPDATEAD_ViewColumnSETColumnSQL='CASE o.issotrx WHEN ''Y'' THEN l.qtyordered-l.qtydelivered ELSE l.qtyordered - sum(COALESCE(m.qty, 0)) - COALESCE(( SELECT sum(iol.movementqty) AS sum FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id WHERE l.c_orderline_id = iol.c_orderline_id AND io.processed = ''N''), 0) END',Updated=TO_TIMESTAMP('2023-03-09 18:47:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100WHEREAD_ViewColumn_UU='33132bfe-bb61-4475-b646-7ad03d0fd8a4'