Problem with Ticket

There is a few things you can try. These are listed from least-destructive/invasive to most destructive/invasive. Try them in this order and Stop when you find which works.


1) Re-settle the Ticket:

Ensure your Re-open Settled Ticket button executes both Actions for Re-open and Cancel Payments. If not, change the Rule so that it contains both actions, re-open the Ticket, and Settle the Ticket (don’t try to close it).


2) Delete the Ticket Transaction(s):

Find the Transaction Document for the Ticket (#226) in Manage > Accounts > Transactions, and open/edit it. Delete the Transactions within the Document one by one starting from the bottom/last transaction, while clicking the Save button after each deletion. If you can successfully delete the Transactions, then pull up the Ticket and try to Settle it again.


3) Correct the Ticket manually in the Database:

:warning: be sure to make a DB backup before you attempt this!

Using SSMS, find the Ticket in the [Tickets] table in the DB, and correct the missing information (i.e. the Ticket Type).

Find the Ticket:

select * from [Tickets]  where [TicketNumber]=226 -- set Ticket Number here

Update the Ticket Type:

UPDATE [Tickets] SET
[TicketTypeId]=(select [Id] from [TicketTypes]
   where [Name]='Ticket') -- set name of Ticket Type here
WHERE [Id]=(select [Id] from [Tickets]
   where [TicketNumber]=226) -- set Ticket Number here

4) Send a DB backup to someone so they can correct it

:exclamation: This will cause loss of any changes or Transactions that are performed on your local DB while you wait for the corrected DB to be returned.

Backup your DB, compress it to ZIP and send it as an attachment in a PM to a user of your choice for correction. Then restore the corrected DB when it is returned to you.