PCHD#66214: Import facturen importeert niet op laatste/actuele contract.

svn path=/Database/trunk/; revision=50773
This commit is contained in:
Maykel Geerdink
2021-04-13 10:13:39 +00:00
parent b37bcd35fa
commit d4c6b3598f

View File

@@ -14542,7 +14542,7 @@ AS
WHERE cnt_contract_verwijder IS NULL
AND cnt_contract_status = 0
AND cnt_contract_nummer_intern = c_contract_nr
ORDER BY cnt_contract_versie DESC)
ORDER BY cnt_contract_key DESC)
WHERE ROWNUM = 1;
ELSE
SELECT cnt_contract_key