SELECT B.shop_id, max(shop.Name) as Name FROM sys$posdocumentsoffstore A LEFT join POSDocuments B ON A.document_id=B.ID LEFT join POSDocuments2 C ON A.document_id=C.Parent_ID join posshops shop on shop.id=b.shop_id where C.Store_ID =:Store_ID group by B.shop_id
Generated by ABRA Software a.s. 27.10.2021 16:34:30