YKPN#41337 Implementatie mld_typeopdr_fvs (FiatteringVrijStelling

svn path=/Website/trunk/; revision=34927
This commit is contained in:
Jos Groot Lipman
2017-08-14 09:28:57 +00:00
parent d870b5e809
commit 1963f0ab9f
2 changed files with 3 additions and 0 deletions

View File

@@ -2049,6 +2049,7 @@ mld = {setmeldingstatus:
+ " , mto.mld_typeopdr_afhandeling"
+ " , mto.mld_typeopdr_kosten_verplicht"
+ " , mto.mld_typeopdr_sequential"
+ " , mto.mld_typeopdr_fvs"
+ " , o.prs_perslid_key mld_opdr_contact_key" // key van de interne contactpersoon
+ " , (SELECT p.prs_perslid_naam_full FROM prs_v_perslid_fullnames_all p WHERE p.prs_perslid_key = o.prs_perslid_key) mld_opdr_contact_naam"
+ " , o.prs_contactpersoon_key"
@@ -2184,6 +2185,7 @@ mld = {setmeldingstatus:
typeopdr_afhandeling: oRs("mld_typeopdr_afhandeling").Value, // Afhandeling verplicht bij afmelden opdracht van dit opdrachttype (0=Nee/1=Ja)
typeopdr_kosten_verplicht: oRs("mld_typeopdr_kosten_verplicht").Value || 0, // Opdracht kosten verplicht (bitwise) bij (0 = niet verplicht, 1 = save + 2 = afmelden, 4 = afronden).
typeopdr_sequential: oRs("mld_typeopdr_sequential").Value, // 0,1,2 of 3
typeopdr_fvs: oRs("mld_typeopdr_fvs").Value,
contactpers_key: oRs("mld_opdr_contact_key").Value || -1,
contactpers_naam: oRs("mld_opdr_contact_naam").Value,
contactpersuitv_key: oRs("prs_contactpersoon_key").Value,

View File

@@ -876,6 +876,7 @@ oRs.Close();
// <!-- VRIJWILLIG VERZOEK FIATTERING -->
if (S("mld_use_order_approval") == 1 &&
mld_opdr.typeopdr_fvs <= 0 &&
(S("mld_ord_show_kostenplaats") == 1 || (S("mld_ord_show_kostenplaats") == 0 && defkp_key > 0) || (S("mld_ord_show_kostenplaats") == 2 && mld_opdr.kp_key > 0)))
{ // Niet als je geen kostenplaats in kunt vullen en als de melding ook geen kostenplaats heeft.
if (opdr_key < 0)