Select First 1 ID from PriceListValidities where Parent_ID = :PriceListID and ValidFromDate$DATE <= :ValidFromDate order by ValidFromDate$DATE DESC NULLS LAST
Generated by ABRA Software a.s. 27.10.2021 16:34:10