My Big problem now. Object reference not set to an instance of an object

Any time I try to end the work period I get this error

[General Info]

Application: SambaPOS
Version: 5.1.62
Region: en
Machine: DESKTOP-48BLKI5
User: HP
Date: 11/21/2023
Time: 12:47 AM

User Explanation:

HP said “”

[Exception Info 1]

Top-level Exception
Type: System.Data.SqlClient.SqlException
Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Source: .Net SqlClient Data Provider

The connection to SQL server has been lost. Check your network settings, check the computer running SQL server is online and on the same network as SambaPOS. You have not given much context here however I assume that you had SambaPOS working already on your network.

This is unlikely related to ending work period, however as I would guess this is being done at the end of the day, possibly someone has turned off the computer where SQL server is installed. All terminals must have access to the computer running SQL server to function, this is by design and not any issue with SambaPOS.