| | Settlement Utilizing Settlement in OTM / G-Log - including invoicing and billing. |  | 
February 15th, 2007, 17:53
| | Junior Member | | Join Date: Dec 2006 Location: Orlando, Florida, US
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | [SOLVED] How do you delete a Voucher? I have some orders that have been created in the wrong domain and we need to remove them. The problem is that the buy shipment has an invoice and a voucher that has been allocated. How do you remove such a voucher in OTM?
Thanks,
Runi | 
March 1st, 2007, 15:14
| | Junior Member | | Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Deleting a Voucher To delete a voucher, you need to UNAPPROVE INVOICE from the invoice action menu. If this doesn't work for you, then you may need to manually delete the entries from the allocation tables, which we've had to do in the past, on occasion. | 
March 1st, 2007, 16:11
| | Junior Member | | Join Date: Dec 2006 Location: Orlando, Florida, US
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Hi Yun,
Unapproving an invoice creates another voucher and I am trying to get rid of the voucher and the invoice so that I can delete the buy shipment and the order release.
Which allocation tables do you manually delete the voucher in?
Thanks,
Runi | 
March 1st, 2007, 18:33
| | Junior Member | | Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Runi,
I'm sorry...when I looked back at my notes and re-read your posting, our issues was elsewhere. We had problems deleting order releases due to the allocation tables, not vouchers.
Yun | 
March 1st, 2007, 21:07
| | Junior Member | | Join Date: Dec 2006 Location: Orlando, Florida, US
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0 | | | Figured it out.
See delete statmens below that should be executed in SQL as the user glogowner, you need to know the order release gid, the shipment gid and the voucher gid.
DELETE FROM ALLOCATION_ORDER_RELEASE_D
WHERE ORDER_RELEASE_GID in ('RHL.27-13048','RHL/MBUSA.38-439118');
DELETE FROM ALLOCATION_D
WHERE
ORDER_RELEASE_GID in ('RHL.27-13048','RHL/MBUSA.38-439118');
DELETE FROM ALLOCATION
WHERE
ORDER_RELEASE_GID in ('RHL.27-13048','RHL/MBUSA.38-439118');
DELETE FROM VOUCHER_STATUS
WHERE
VOUCHER_GID in ('RHL.20051207-0093');
DELETE FROM VOUCHER_REFNUM
WHERE
VOUCHER_GID in ('RHL.20051207-0093');
DELETE FROM VOUCHER_INVOICE_LINEITEM_JOIN
WHERE
VOUCHER_GID in ('RHL.20051207-0093');
DELETE FROM ALLOCATION_BASE
WHERE
SHIPMENT_GID ='RHL.03800';
DELETE FROM VOUCHER
WHERE
VOUCHER_GID in ('RHL.20051207-0093');
Commit; |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Deleting 'send voucher interface' option from screenset | Tuuk79 | Branding, Screen Sets, XSL/CSS and Translations | 4 | February 12th, 2008 13:33 | | Question about voucher | baji | Integration and Data Mapping | 2 | January 22nd, 2008 14:37 | | Add or Delete Shipment Stops | otmrookie | Planning | 4 | December 15th, 2007 19:51 | | Delete functionality | nikesh mohanlal | Branding, Screen Sets, XSL/CSS and Translations | 0 | October 23rd, 2007 16:52 | | [SOLVED] How to Change the Tab Label and Delete the tab in contacts | sn1405 | Branding, Screen Sets, XSL/CSS and Translations | 2 | June 22nd, 2007 09:52 | |