VLKC#84483 Geen factuurmatching als het Contractbedrag leeg is gelaten (itt 0)

svn path=/Database/trunk/; revision=66058
This commit is contained in:
2024-08-28 15:08:40 +00:00
parent a5dbabbb88
commit de6d5d5dbd

View File

@@ -544,7 +544,10 @@ AS
DBMS_OUTPUT.put_line ('Totaal gefactureerd periode: ' || totaaltermijngefactureerd);
END IF;
IF totaalgefactureerd <=
IF contractkosten IS NULL
THEN
retval := 0;
ELSIF totaalgefactureerd <=
contractkosten + fac.safe_to_number (fac.getsetting ('cnt_factuur_totaalmarge'))
AND fin.tolerantiematch (discipline,
ftype,