SELECT ID FROM POSReceipts2 WHERE Parent_ID=
(select ID
from POSRECEIPTS
where
Stoped='N' AND
VirtualPOS_ID = :VirtualPOS_ID AND
ordnumber =
(select max(ordnumber)
from POSRECEIPTS
where
Stoped='N' AND
VirtualPOS_ID = :VirtualPOS_ID))Generated by ABRA Software a.s. 27.10.2021 16:34:30