You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Synchronisation of both entities from time to time (regularly, weekly?) -> Slack-Message to the administrator.
Count the Bargeld and set the correct status.
Create job to synchronise/compare the entities.
Code for comparison
selectk.id,
k.username,
ks.stand,
coalesce(z.zu,0) - coalesce(v.von,0) as std_transaktionen,
ks.stand- (coalesce(z.zu,0) - coalesce(v.von,0)) as diff,
-ks.stand- (coalesce(z.zu,0) - coalesce(v.von,0)) as diff2,
v.von,
z.zufrom profil_kioskuser as k
left join kiosk_kontostand ks
onk.id=ks.nutzer_idleft join (
select
vonnutzer_id as id,
sum(betrag) as von
from kiosk_geldtransaktionen
group by vonnutzer_id
) as v
using(id)
left join (
select
zunutzer_id as id,
sum(betrag) as zu
from kiosk_geldtransaktionen
group by zunutzer_id
) as z
using(id)
The text was updated successfully, but these errors were encountered:
Synchronisation of both entities from time to time (regularly, weekly?) -> Slack-Message to the administrator.
Bargeld
and set the correct status.Code for comparison
The text was updated successfully, but these errors were encountered: