Index: Flow/Offerte/LijnProductGA/tmpDev.mac.rou =================================================================== diff -u -r1155 -r2155 --- Flow/Offerte/LijnProductGA/tmpDev.mac.rou (.../tmpDev.mac.rou) (revision 1155) +++ Flow/Offerte/LijnProductGA/tmpDev.mac.rou (.../tmpDev.mac.rou) (revision 2155) @@ -10,7 +10,7 @@ KLANTPRxKPRIJS(KLNrPrs,GenPRNr,KPrijsVH) New PrijsRec $$$InitOldLocals - Set PrijsRec=$$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,,$J(KPrijsVH,0,2)) + Set PrijsRec=$$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,$G(%NoSa),$J(KPrijsVH,0,2)) Quit PrijsRec @@ -219,5 +219,4 @@ TTraceW(msg) d TTrace(.msg) ;w msg,! - Quit - \ No newline at end of file + Quit \ No newline at end of file Index: WV HALUXKaderdeur.prj.xml =================================================================== diff -u --- WV HALUXKaderdeur.prj.xml (revision 0) +++ WV HALUXKaderdeur.prj.xml (revision 2155) @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: BL/PR/GA/TB/tmpDev2.mac.rou =================================================================== diff -u -r1782 -r2155 --- BL/PR/GA/TB/tmpDev2.mac.rou (.../tmpDev2.mac.rou) (revision 1782) +++ BL/PR/GA/TB/tmpDev2.mac.rou (.../tmpDev2.mac.rou) (revision 2155) @@ -364,7 +364,7 @@ . // Else : gewone user --> standaard prijsberekening (zowel AKPrijs als VKPrijs bijhouden) . Set KPrijsVH=$G(Prod.Cumuls("KPrijs")) . Set KLNrPrs=$S(sDomVERW'="VHEPN":sDomKLNr, (WS.KLNummer?1.N)&&(WS.KLNummer>0):WS.KLNummer, 1:4645) - . Set AKPrs=$P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,,$J(KPrijsVH,0,2)),"\",1) + . Set AKPrs=$P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,$G(%NoSa),$J(KPrijsVH,0,2)),"\",1) . Set VKPrs=$$bfwCalcVKPrijsKlant(KPrijsVH,AKPrs) Else Do . Set VKPrs="ERROR" @@ -396,7 +396,7 @@ ;d WL^vhDBG("Show Cumuls") ;d WL^vhDBG($$ArrayToText^vhLib("Cumuls(""KPrijs"")",Prod,"Cumuls")) Set PrijsCP=$G(Prod.Cumuls("KPrijs",2,1,5))+$G(Prod.Cumuls("KPrijs",2,1,6)) ; CP links + CP rechts - Set AKPrsCP=$P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,,$J(PrijsCP,0,2)),"\",1) + Set AKPrsCP=$P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,$G(%NoSa),$J(PrijsCP,0,2)),"\",1) Set VKPrijsCP=$$bfwCalcVKPrijsKlant(PrijsCP,AKPrsCP) If VKPrijsCP>0 { d WL^vhDBG("KPrijs CP : "_VKPrijsCP_" (is berekend via Cumuls)") @@ -424,14 +424,14 @@ Quit:(sDomVERW="VHEPN") AKPrs // BENELUX handels zonder korting, i.e. zonder klantinfo (dus Anonymous) - Quit:(sDomVERW="DUPO" ) $P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,,$J(KPrijsVH,0,2)),"\",$$$PcLijstPrs) - Quit:(sDomVERW="HFLE" ) $P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,,$J(KPrijsVH,0,2)),"\",$$$PcLijstPrs) - Quit:(sDomVERW="HELMY") $P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,,$J(KPrijsVH,0,2)),"\",$$$PcLijstPrs) + Quit:(sDomVERW="DUPO" ) $P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,$G(%NoSa),$J(KPrijsVH,0,2)),"\",$$$PcLijstPrs) + Quit:(sDomVERW="HFLE" ) $P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,$G(%NoSa),$J(KPrijsVH,0,2)),"\",$$$PcLijstPrs) + Quit:(sDomVERW="HELMY") $P($$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,$G(%NoSa),$J(KPrijsVH,0,2)),"\",$$$PcLijstPrs) // BENELUX handels met korting, i.e. met klantinfo New HandelVKPrijs,KPrijsData,HandelVKPrijs If (sDomVERW="MBHO")||(sDomVERW="HFLB" ) { - Set KPrijsData=$$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,,$J(KPrijsVH,0,2)) + Set KPrijsData=$$KLANTPR^KPRIJS(KLNrPrs,GenPRNr,$G(%NoSa),$J(KPrijsVH,0,2)) Set HandelVKPrijs=$J($$$HandelLijstPrijs(KPrijsData)*KLReductie,0,2) // Als de "HandelVKPrijs met KLKorting" kleiner dan de HandelAKPrijs, dan wordt de KLKorting volledig ongedaan gemaakt. If HandelVKPrijs<$$$HandelAankoopPrijs(KPrijsData) { Set HandelVKPrijs=$$$HandelLijstPrijs(KPrijsData) }