Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. update purchase_order
  2. set status_id=17,
  3. active_since=NULL,-- per pulizia di dati, ma non importante per le logiche di annullamento
  4. active_until=NULL, -- per pulizia di dati, ma non importante per le logiche di annullamento
  5. deleted=1
  6. where id in (2516,2517);
  7.  
  8. update order_line set deleted=1
  9. where id in (2516,2517);
  10.  
  11. update ald_balance
  12. set active_until=active_since,
  13. status=2,
  14. last_update_date=getdate(),
  15. deleted=1,
  16. remaining_quantity=0
  17. where balance_order_id in (2516,2517);
  18.  
  19.  
  20.  
  21. --Per fare in modo che la procedura di riconciliazione non consideri
  22. --le ricariche annullate, impostiamo reconciliation_flg = NULL
  23.  
  24. update ald_order_ext
  25. set reconciliation_flg = NULL
  26. where id in (2516)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement