Zero Block
Click "Block Editor" to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.
Tilda Publishing
create your own block from scratch
Zero Block
Click "Block Editor" to enter the edit mode. Use layers, shapes and customize adaptability. Everything is in your hands.
Tilda Publishing
create your own block from scratch
Відновлення касової зміни з бази даних SyrvePOS
У БД фронта при закритій касі створюється тип даних такий як Resto.CashServer.Data.CafeSessions
<r eid="9fb33f3d-b5ca-4b70-93aa-d9fee8a9093d"><cafeSessionsWithStatus cls="CloneSafeSynchronizedDictionary" /><cafeSessionsWithCashier cls="CloneSafeSynchronizedDictionary" /><lastVerificationHasBeen>false</lastVerificationHasBeen><syncRevision>2</syncRevision><lastChangedTerminalId>52283a32-788e-7d40-017f-94e74bbb2136</lastChangedTerminalId><id>9fb33f3d-b5ca-4b70-93aa-d9fee8a9093d</id></r>
Після відкриття зміни у нас створюється ще один тип даних такий як Resto.CashServer.Data.CafeSession:
<r eid="9bd5fb86-c91c-4f70-89b1-527b47ab1229"><cashierSessions cls="CloneSafeSynchronizedDictionary"><k cls="Resto.CashServer.Data.User">cdf0e11c-fe6e-444e-b5f0-5eeed94a0699</k><v cls="Resto.CashServer.Data.CashierSession, Resto.CashServer"><startedDate>2022-12-29T16:19:05.069+02:00</startedDate></v></cashierSessions><closeSessionEventId>5b6fbb8b-53a1-4b0c-98f8-c38899ec05af</closeSessionEventId><sessionFullReportId>f63f0397-5374-4458-916e-efdf9d135d37</sessionFullReportId><firstCloseDate>2022-12-29T16:19:32.489+02:00</firstCloseDate><openedCashier cls="Resto.CashServer.Data.User">cdf0e11c-fe6e-444e-b5f0-5eeed94a0699</openedCashier><responsibleUsers cls="CloneSafeSynchronizedList" /><recalculations cls="CloneSafeSynchronizedList" /><doFullRecalc>false</doFullRecalc><syncRevision>41</syncRevision><lastChangedTerminalId>52283a32-788e-7d40-017f-94e74bbb2136</lastChangedTerminalId><id>9bd5fb86-c91c-4f70-89b1-527b47ab1229</id><cashRegister cls="Resto.CashServer.Data.CashRegister">8173b12d-6fc7-4a39-a6ae-96ad14c5c88d</cashRegister><number>3</number><openDate>2022-12-29T16:19:05.069+02:00</openDate><startCash>0</startCash><responsibleManager cls="Resto.CashServer.Data.User">cdf0e11c-fe6e-444e-b5f0-5eeed94a0699</responsibleManager></r>
У разі того як відбулась втрата даних після лікування скриптом можна відновити КЗ, а саме цим:
insert into FrontEntities (Id, Type, Xml) Values ('xxx', 'Resto.CashServer.Data.CafeSession', 'yyy')
xxx - id Resto.CashServer.Data.CafeSession
yyy - xml Resto.CashServer.Data.CafeSession

Таким чином ми відновлюємо касову зміну, без втрати даних по ній. Тобто готівка і т.д залишається. Окрім звісно замовлень.