SELECT SUM(DL_DRB.quantity) AS max_quantity FROM storedocuments2 DL2, docrowbatches DL_DRB WHERE (DL2.id = :BILLOFDELIVERYROW_ID) AND (DL2.id = DL_DRB.parent_id) AND (DL_DRB.storebatch_id = :STOREBATCH_ID)
Generated by ABRA Software a.s. 27.10.2021 16:34:08