SELECT sum(B.Quantity) FROM SYS$POSDOCUMENTSOPENED A left join POSDocuments PD ON A.id=PD.ID left join POSDocuments2 B ON A.id=B.Parent_ID where PD.billofdelivery_id is not null and B.StoreCard_ID =:StoreCard_ID and B.Store_ID =:Store_ID and B.storedocumentrow_id is null
Generated by ABRA Software a.s. 27.10.2021 16:34:30