Merge 2024.3 DB49b patches

svn path=/Database/trunk/; revision=66927
This commit is contained in:
2024-11-06 14:47:51 +00:00
parent 8d88c4aae8
commit b5b435d6ce
4 changed files with 27 additions and 18 deletions

View File

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