Index: AXimpl/Admin/STAT/Invoice/Processor.cls.xml
===================================================================
diff -u -r49539 -r49541
--- AXimpl/Admin/STAT/Invoice/Processor.cls.xml (.../Processor.cls.xml) (revision 49539)
+++ AXimpl/Admin/STAT/Invoice/Processor.cls.xml (.../Processor.cls.xml) (revision 49541)
@@ -77,6 +77,7 @@
}
// SETTERS
Do ..ProcessKlantLastInfoRec(Line, KlantNr)
+ Do ..ProcessProductLastInfoRec(Line, ProductId)
Do ..ProcessKlantMaandRec(Line, KlantNr, Maand)
If $$$Not(ProductBestaatNiet) {
Do ..ProcessKlantProductLastInfoRec(Line, KlantNr, ProductId)
@@ -96,14 +97,16 @@
Variatie:%String,KlantNr:%Integer=0,ProductId:%Integer=0,Maand:%String=""
1
= DatumKlantLastInfoRec
If EditNodigKlantLastInfoRec {
- Do ..KillSubscript("KlantLastInfo", KlantNr)
+ Do ..KillSubscript("KlantLastInfoRec", KlantNr)
Set KlantLastInfoRec = $Get(^KSTKL(KlantNr,0,0),"")
Set $Piece(KlantLastInfoRec,"\",1) = ConvertedInvoiceDateLine
Set ^KSTKL(KlantNr,0,0) = KlantLastInfoRec
@@ -136,6 +139,30 @@
]]>
+
+Line:AXimpl.Admin.STAT.Invoice.Line,ProductId:%Integer
+1
+= DatumProductLastInfoRec
+ If EditNodigProductLastInfoRec {
+ Do ..KillSubscript("ProductLastInfoRec",, ProductId)
+ Set ProductLastInfoRec = $Get(^KSTPR(ProductId,0,0),"")
+ Set $Piece(ProductLastInfoRec,"\",1) = ConvertedInvoiceDateLine
+ Set ^KSTPR(ProductId,0,0) = ProductLastInfoRec
+ }
+ }
+]]>
+
+
Line:AXimpl.Admin.STAT.Invoice.Line,KlantNr:%Integer,Maand:%String
1
@@ -168,7 +195,7 @@
#dim DatumLine As %Date = ##class(TECH.DateTime).TextToDate(ConvertedInvoiceDateLine)
#dim EditNodigKlantProductLastInfoRec As %Boolean = DatumLine >= DatumKlantProductLastInfoRec
If EditNodigKlantProductLastInfoRec {
- Do ..KillSubscript("KlantProductLastInfo", KlantNr, ProductId)
+ Do ..KillSubscript("KlantProductLastInfoRec", KlantNr, ProductId)
Set KlantProductLastInfoRec = $Get(^KSTKL(KlantNr,ProductId,0),"")
Set $Piece(KlantProductLastInfoRec,"\",1) = ConvertedInvoiceDateLine
Set $Piece(KlantProductLastInfoRec,"\",2) = Line.LineAmount
@@ -208,40 +235,6 @@
]]>
-
-Line:AXimpl.Admin.STAT.Invoice.Line,KlantNr:%String
-1
-
-
-
Line:AXimpl.Admin.STAT.Invoice.Line
1