Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- update purchase_order
- set status_id=17,
- active_since=NULL,-- per pulizia di dati, ma non importante per le logiche di annullamento
- active_until=NULL, -- per pulizia di dati, ma non importante per le logiche di annullamento
- deleted=1
- where id in (2516,2517);
- update order_line set deleted=1
- where id in (2516,2517);
- update ald_balance
- set active_until=active_since,
- status=2,
- last_update_date=getdate(),
- deleted=1,
- remaining_quantity=0
- where balance_order_id in (2516,2517);
- --Per fare in modo che la procedura di riconciliazione non consideri
- --le ricariche annullate, impostiamo reconciliation_flg = NULL
- update ald_order_ext
- set reconciliation_flg = NULL
- where id in (2516)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement