I am trying to clear the sales but not inventory from a clients request. For some reason removing all the delete functions for inventory is not working. Is there any way to accomplish this
Script Im Running:
DELETE FROM [TicketEntities]
GO
DELETE FROM [Tickets]
GO
DELETE FROM [AccountTransactionDocuments]
GO
DELETE FROM [AccountTransactions]
GO
DELETE FROM [AccountTransactionValues]
GO
DELETE FROM [Calculations]
GO
DELETE FROM [CostItems]
GO
DELETE FROM [Orders]
GO
DELETE FROM [PaidItems]
GO
DELETE FROM [PeriodicConsumptionItems]
GO
DELETE FROM [PeriodicConsumptions]
GO
DELETE FROM [ProductTimerValues]
GO
DELETE FROM [Payments]
GO
DELETE FROM [WorkPeriods]
GO
UPDATE [Numerators] SET Number = 0
GO
UPDATE [EntityStateValues] SET EntityStates = â[{âSâ:âAvailableâ,âSNâ:âStatusâ}]â Where EntityStates like â%Status%â
GO
Content Removed From Original Script:
DELETE FROM [InventoryTransactionDocuments]
GO
DELETE FROM [InventoryTransactions]
GO
DELETE FROM [WarehouseConsumptions]
GO
Lol oh really? I thought it was as simple as not clearing inventory to keep that data. This is a basic setup but what kind of issues do you think we might have if you donât mind me asking? I wonât do it if you think itâs going to cause issues with core functionalities in samba like work period and item reports or Pos transactions or freezing.
Clearing transactions implemented to clear test data that probably created before going production. By assuming database state stays as generated by SambaPOS we donât handle cases that relates with partly cleared data. That may or may not cause an issue but having no issue does not mean a future update wonât break this.
Okay Iâll explain that to them. They just wanna know basic inventory quantity for bottled drinks. Theyâre not using cost features or anything like that.
Also Iâm going to leave them at .62 release. I donât plan on updating them unless I have to for bug fixes. Theyâre very happy with our current setup. Order grouping/combo is working great for them by the way. They use it A lot!