Index: APPS/VKP/Intrastat/impl/MaandStatistiek.cls.xml =================================================================== diff -u --- APPS/VKP/Intrastat/impl/MaandStatistiek.cls.xml (revision 0) +++ APPS/VKP/Intrastat/impl/MaandStatistiek.cls.xml (revision 59110) @@ -0,0 +1,105 @@ + + + + +Data verwerking - Order, Fakturen, Historiek, ProductRef + +BL.EC.Common,Prod.Product,BL.Derde.Kennis +1 +%RegisteredObject + + +%String + + + +%Date + + + + +node in ..Cache is listbuild met volgende elemente +GN8Code, Omschrijving, Gewicht, Aantal, Waarde(omzet) +waarbij aantal optioneel is +%List +1 + + + + +S bl=##class(APPS.VKP.Intrastat.impl.MaandStatistiek).%New(2671) d bl.OphalenData(),bl.Export2File() +KLNr:%String,Maand:%Date="" +%Status + + + + +0 + + ;Key + Set StatRec=^INTRAST(2,StatNr) + Set SortKey=$P(StatRec,"\",1)_" "_$P(StatRec,"\",3) + Set:'$D(..Cache(SortKey)) ..Cache(SortKey)=$LB($P(StatRec,"\",1),$P(StatRec,"\",2)) + + Set Gewicht=$$$PRGet($$$Gewicht)*Aantal/1000 + Set lb=..Cache(SortKey) + Set $LI(lb,3)=$LG(lb,3)+Gewicht + Set:$P(StatRec,"\",3) $LI(lb,4)=$LG(lb,4)+Aantal ; Aanvullende eenheid + Set $LI(lb,5)=$LG(lb,5)+Waarde + Set ..Cache(SortKey)=lb + } +]]> + + + + + + + + + + + +lbData:%List + + + + + + Index: APPS/VKP/Intrastat/impl/ZendNaarKlant.cls.xml =================================================================== diff -u --- APPS/VKP/Intrastat/impl/ZendNaarKlant.cls.xml (revision 0) +++ APPS/VKP/Intrastat/impl/ZendNaarKlant.cls.xml (revision 59110) @@ -0,0 +1,81 @@ + + + + +Data verwerking - Order, Fakturen, Historiek, ProductRef + +BL.EC.Common,Prod.Product,BL.Derde.Kennis +1 +%RegisteredObject + + +%Date + + + +APPS.VKP.Intrastat.impl.MaandStatistiek + + + + +node in ..Cache is listbuild met volgende elemente +GN8Code, Omschrijving, Gewicht, Aantal, Waarde(omzet) +waarbij aantal optioneel is +%List +1 + + + + +d ##class(APPS.VKP.Intrastat.impl.ZendNaarKlant).%New().ZendAll() +Maand:%Date="" +%Status + + + + + + + + +KLNr:%String,EmailAdres:%String + + + + +KLNr:%String +%String + + + + + +