VGLD#64059: Geen fiatteur bekend.

svn path=/Database/trunk/; revision=48829
This commit is contained in:
Maykel Geerdink
2020-11-16 16:15:48 +00:00
parent a2c858fd22
commit b33cd84962

View File

@@ -427,7 +427,8 @@ AS
WHEN lteller = 3
THEN
lkpgverantwkey := lkpgverantwkey3;
llastfiat := lgrens >= fac.getsetting ('mld_opdr_kpg_fin_limit2');
llastfiat := lgrens >= fac.getsetting ('mld_opdr_kpg_fin_limit2') OR
lexcludeiskpgverantw = 1; -- Als de 2de fiatteur de exclude is dan moet de 3de fiatteur toch nog fiatteren.
END CASE;
IF lkpgverantwkey = pexcludekey
@@ -511,7 +512,7 @@ AS
AND st.fac_srtnotificatie_code = 'BESFIT'
AND fac_tracking_refkey = b.bes_bestelling_key)
THEN
prs.getfiatteur(b.prs_kostenplaats_key, -1, binfo.totaal, binfo.ins_discipline_key, COALESCE(bes_bestelling_fiatbedrag, -1))
prs.getfiatteur(b.prs_kostenplaats_key, pexcludekey, binfo.totaal, binfo.ins_discipline_key, COALESCE(bes_bestelling_fiatbedrag, -1))
WHEN bes_bestelling_fiatbedrag >= fac.getsetting('mld_opdr_kpg_fin_limit2')
THEN
COALESCE(prs_kostenplaatsgrp_fiat3_key, -1)