Index: APPS/BD/OrderStat/impl/Extract2IntakeEnGeleverd.cls.xml =================================================================== diff -u -r44378 -r47555 --- APPS/BD/OrderStat/impl/Extract2IntakeEnGeleverd.cls.xml (.../Extract2IntakeEnGeleverd.cls.xml) (revision 44378) +++ APPS/BD/OrderStat/impl/Extract2IntakeEnGeleverd.cls.xml (.../Extract2IntakeEnGeleverd.cls.xml) (revision 47555) @@ -132,8 +132,8 @@ Set ..TotDatum=+$G(Tot) Set:..VanDatum=0 ..VanDatum=$$CALCDATE^vhLib.DataTypes($H,"BJ",-1,"FD") Set:..TotDatum=0 ..TotDatum=$$CALCDATE^vhLib.DataTypes($H,"BJ",-1,"LD") - Set ..VanDatum=$$CALCDATE^vhLib.DataTypes($H,"M",-15,"FD") - Set ..TotDatum=$$CALCDATE^vhLib.DataTypes($H,"M",-1,"LD") + Set ..VanDatum=..TotDatum-30 ;$$CALCDATE^vhLib.DataTypes($H,"M",-24,"FD") + ;Set ..TotDatum=$$CALCDATE^vhLib.DataTypes($H,"M",-1,"LD") Set ..AfstandBepaler=##class(APPS.BD.CarbonFootprint.impl.AfstandBepaler).%New() Quit $$$OK @@ -142,15 +142,16 @@ - D ##class(APPS.BD.OrderStat.impl.Extract2IntakeEnGeleverd).%New().BouwEnFile() + D ##class(APPS.BD.OrderStat.impl.Extract2IntakeEnGeleverd).%New().BouwEnFile("I") +WelkBestand:%String="IL" @@ -407,13 +408,14 @@ Set ..OrderTijd=$P($P(OrderIntakeRec,"#",2),",",2) Set EDIRef=$P(Rec,"\",21) + Set EDIOorsprong=$P(Rec,"\",28) If (EDIRef'?4.9N)&&(..KLNr=$$$KlantKeller)&&($P(Rec,"\",5)["EDI") ; Keller { Set EDIRef=$P($P(Rec,"\",5),"EDI",2) Set EDIRef=$P($P(EDIRef,"."),"/") Set EDIRef=$$TRIMN^vhRtn1(EDIRef) } - Set ..IntakeType=$S(EDIRef'="":"EDI",1:"") + Set ..IntakeType=$S(EDIOorsprong'="":EDIOorsprong,EDIRef'="":"EDI",1:"") ]]> @@ -468,13 +470,15 @@ } Set ..OrderTijd=$P($P(OrderIntakeRec,"#",2),",",2) Set EDIRef=$P(Rec,"\",40) + Set EDIOorsprong=$P(Rec,"\",53) + If (EDIRef'?4.9N)&&(..KLNr=$$$KlantKeller)&&($P(Rec,"\",5)["EDI") { Set EDIRef=$P($P(Rec,"\",3),"EDI",2) Set EDIRef=$P($P(EDIRef,"."),"/") Set EDIRef=$$TRIMN^vhRtn1(EDIRef) } - Set ..IntakeType=$S(EDIRef'="":"EDI",1:"") + Set ..IntakeType=$S(EDIOorsprong'="":EDIOorsprong,EDIRef'="":"EDI",1:"") ]]> Index: APPS/BD/OrderStat/impl/OrderIntake.cls.xml =================================================================== diff -u -r40616 -r47555 --- APPS/BD/OrderStat/impl/OrderIntake.cls.xml (.../OrderIntake.cls.xml) (revision 40616) +++ APPS/BD/OrderStat/impl/OrderIntake.cls.xml (.../OrderIntake.cls.xml) (revision 47555) @@ -33,6 +33,7 @@ %String + @@ -47,6 +48,14 @@ %Integer + +%Date + + + +%Date + + %Integer @@ -59,22 +68,36 @@ %Float + +%String + + + +%String + + + +%String + + %SQLQuery -Initialen as OrderVW, Klant->Divisie as Divisie,Klant->Subdivisie as SubDivisie,Klant->Sektor as Sektor,Klant->LandCode as Land +KortTekst as Korttekst,*,InternePersoon->Initialen as OrderVW, Klant->Naam as Klantnaam,Klant->Divisie as Divisie,Klant->Subdivisie as SubDivisie,Klant->Sektor as Sektor,Klant->LandCode as Land from APPS_BD_OrderStat_impl.OrderIntake t - join (select orderdatum,ordnr,1/sum(Aantallijnen) from APPS_BD_OrderStat_impl.OrderIntake group by ORDNr) g on g.OrderDatum=t.OrderDatum and g.ORDNr=t.ORDNr]]> + join (select OrderDatum, ORDNr, Replace(to_char(1/sum(Aantallijnen),'9.999999'),'.',',') as LijnPerOrder from APPS_BD_OrderStat_impl.OrderIntake group by OrderDatum,ORDNr) g on (g.OrderDatum=t.OrderDatum and g.ORDNr=t.ORDNr)]]> 1 +0 @@ -86,7 +109,7 @@ 1 -FromType:%String,KLNr:%Integer,ORDNr:%Integer,OrderDatum:%Date,OrderTijd:%Time,IntakeType:%String,OrderVerwerker:%String,PRNr:%Integer,Qty:%Integer,OmzetVerkoop:%Float,OmzetAankoop:%Float +FromType:%String,KLNr:%Integer,ORDNr:%Integer,OrderDatum:%Date,OrderTijd:%Time,IntakeType:%String,OrderVerwerker:%String,PRNr:%Integer,Qty:%Integer,BevestigdeLeverDatum:%Date,VerwachteLeverDatum:%Date,OmzetVerkoop:%Float,OmzetAankoop:%Float %Library.CacheStorage -^||APPS.BD.OrderIntakeD +^APPS.BD.OrderIntakeD OrderIntakeDefaultData -^||APPS.BD.OrderIntakeD -^||APPS.BD.OrderIntakeI -^||APPS.BD.OrderIntakeS +^APPS.BD.OrderIntakeD +^APPS.BD.OrderIntakeI +^APPS.BD.OrderIntakeS %%CLASSNAME @@ -169,6 +200,21 @@ OmzetAankoop + +GenType + + +ProductGroep + + +SubGenType + + +BevestigdeLeverDatum + + +VerwachteLeverDatum +