Index: AXimpl/Admin/STAT/Invoice/Processor.cls.xml
===================================================================
diff -u -r49682 -r49687
--- AXimpl/Admin/STAT/Invoice/Processor.cls.xml (.../Processor.cls.xml) (revision 49682)
+++ AXimpl/Admin/STAT/Invoice/Processor.cls.xml (.../Processor.cls.xml) (revision 49687)
@@ -53,52 +53,25 @@
Zie ...InfoRec()-methods
While ..InvoiceLineIterator.HasNext() {
- // VOLGORDE ITERATOR IS = KlantNr oplopend en per KlantNr ProductId oplopend !!!
#dim Line As AXimpl.Admin.STAT.Invoice.Line = ..InvoiceLineIterator.Next()
#dim KlantNr As %Integer = +Line.InvoiceAccount
#dim ProductId As %Integer = ..GetAdminProductId(Line)
- If $$$Not(Line.Currency = "EUR") {
- Do ..LogCurrencyError(Line, KlantNr, ProductId)
- }
#dim ProductBestaatNiet As %Boolean = (ProductId = 0)
- #dim Maand As %String = $Piece(..InvoiceDate,"-",1)_"."_$Piece(..InvoiceDate,"-",2)_" "
If $$$Not(..IsNietMeeTeNemenKlant(KlantNr)) {
- // KILLS (op LastInfo-kills na => In ...InfoRec()-methods)
- If $$$Not(KlantNr = VorigeKlantNr) {
- Do ..KillSubscript("KlantMaandRec", KlantNr,, Maand)
- If $$$Not(ProductBestaatNiet) {
- Do ..KillSubscript("KlantProductMaandRec", KlantNr, ProductId, Maand)
- }
- }
- If ($$$Not(ProductId = VorigProductId) && $$$Not(ProductBestaatNiet)) {
- Do ..KillSubscript("KlantProductMaandRec", KlantNr, ProductId, Maand)
- If $$$Not($Data(mdProductId(ProductId))) {
- Do ..KillSubscript("ProductMaandRec",, ProductId, Maand)
- Set mdProductId(ProductId)=""
- If $$$Not($Data(mdKlantNr(KlantNr))) {
- Do ..KillSubscript("ProductKlantMaandRec", KlantNr, ProductId, Maand)
- Set mdKlantNr(KlantNr)=""
- }
- }
- }
- // SETTERS
Do ..ProcessKlantLastInfoRec(Line, KlantNr)
If $$$Not(ProductBestaatNiet) {
Do ..ProcessKlantProductLastInfoRec(Line, KlantNr, ProductId) // Ook ProductKlantLastInfoRec
Do ..ProcessKlantProductMaandRec(Line, KlantNr, ProductId, Maand) // Ook ProductMaandRec EN ProductKlantMaandRec
Do ..ProcessProductLastInfoRec(Line, ProductId)
}
Do ..SetLastProcessedRecord(Line.RecId)
- Set VorigeKlantNr = KlantNr
- Set VorigProductId = ProductId
}
+ If $$$Not(Line.Currency = "EUR") {
+ Do ..LogCurrencyError(Line, KlantNr, ProductId)
+ }
}
]]>
@@ -107,22 +80,30 @@
Variatie:%String,KlantNr:%Integer=0,ProductId:%Integer=0,Maand:%String=""
1