English Boards > Support

Erasing Old Work Period

(1/1)

Saurav:
How can I erase the work periods for older times.

lemmings:
I was just working on a SQL script to do the same.

Although not sure how it will work yet so let me do some tests and I will let you know.

You using SQL Express or SQL Compact.

What I have been doing up to now is taking a database backup and the clearing all transactional data from database effectively starting with no work periods again and using the backup with another SQL Instance if I need to refer to it (for accounts purposes) - I copied various data to an Excel spreadsheet as well.

Marco:
I would be interested in this SQL script as we'll.

As our till is operated by a number of volunteers, I asked them to just give every training/test session the work period description 'test'.

This I then exclude from reports.

However it would be nice if I could 'clean' them from the database. Esp. When we are starting to work with recipes and inventory.

Cheers
Marco

JohnS:
For training you should really use SambaPOS training mode (search it).

Using SQL to remove selected data is a dangerous move. Not so much in V2, but V3 has interlocked tables. And inventory is worse. When I wrote the bulk import script it took days to get it right, and I also looked at a "reset" script to reset inventory back to imported levels, and this was not possible at that time. Not all processing of inventory is done at End of Work Period.

Please be very careful as you could destroy data and not realise.

lemmings:
Yes I agree if its just for training purposes, use the training mode scripts, thats what I also do for new staff/trainees.

Im referring to V2 as I have not even looked at V3 databases yet !!



Navigation

[0] Message Index

Go to full version