That is not a Sambapos question. That’s a SQL server question. Maybe google it? What are you deleting and why? Maybe we can suggest better alternative.
Typically you should never delete rows. You most definitely don’t want to mess with row Id that could cause complete corruption of the database.
If you share what your trying to do we might be able to give better guidance.
If your wanting to ‘cancel’ paid tickets from testing transactions you could use the reopen closed ticket and cancel payment actions from the more ticket actions module.
Or just refund them…
At least then your cash figures will be accurate.
BTW in the future you should consider turning on Training Mode when running test transactions so it wont affect your live database. Here is how to turn on training mode in version 5.
Your best option is to leave the test transactions there and in future use training mode or a separate database for testing. To correct accounting you should make a correction account and move funds to there and start over fresh with next work period.
Training mode basically creates a copy of your database and connects to it instead of your live database… when you exit training mode it deletes the copy database and connects back to your live one.
Just quick note, DO NOT FORGET that training mode is duplicate database and any changes you make in database recorded settings (pretty much all exc ‘Local Settings’) will be cleared along with any sales data etc.
I just wanted to illiterate that the program settings will also be lost encase @tvboe didnt realise and configured lots of settings while in training mode
I understand but this is wrong. Local Settings will still be there, Program Settings would not. Local Settings are not stored in Database hence the term Local, Program Settings are.
No I haven’t I usually typed it out Sorry maybe I am old school but I typically try not to abbreviate when discussing things except for very well known acronyms. Maybe its the way I was taught.
I use some things like LOL and a few old school stuff but for most part I dont use it much.