Advertisement
aadddrr

UPDATE_INDOCOM_640

Jul 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UPDATE sl_so_balance_invoice Z
  2.         SET flg_invoice_temp = 'N', invoice_id = -99
  3.     FROM sl_do_item B
  4.     WHERE B.do_item_id = Z.ref_item_id
  5.         AND Z.flg_invoice_temp NOT IN ('N', 'V')
  6.         AND B.ref_id in (
  7.             select so_item_id from sl_so_item where so_id = 12297
  8.         )
  9.         AND Z.flg_invoice NOT IN ('Y', 'V')  
  10.         AND do_receipt_item_id = -99
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement