select count(pd2.id) from posdocuments2 pd2 where pd2.store_id = :store_id and pd2.OrderFinished = 'N' and pd2.quantity<>0 and pd2.orderkind=2
Generated by ABRA Software a.s. 27.10.2021 16:34:30