MDM, Mailsender
This commit is contained in:
@@ -58,7 +58,7 @@ Module Mail
|
||||
' PARAM = "NCTSLIST_TOBB"
|
||||
' PARAM = "NCTSLIST_TOBB"
|
||||
'------------------------------------------------------------------------------------
|
||||
'PARAM = "UID_OPS_SYSKA_ABGLEICH"
|
||||
PARAM = "UID_OPS_SYSKA_ABGLEICH"
|
||||
|
||||
If PARAM = "" Then
|
||||
System.Console.WriteLine("OPTION nicht erkannt!")
|
||||
@@ -2660,7 +2660,7 @@ Module Mail
|
||||
For Each i In firmenlist
|
||||
Dim top = 100
|
||||
Dim sql As New SQL
|
||||
Dim sqlstrKunden = " select * from ( SELECT [KundenNr] as KundenNr,[Name 1], (isnull(Adressen.UstIdKz,'') + isnull(Adressen.UstIdNr,'')) as UIDNrKunden, isnull(c_ustidnr,'') as UIDNrKundenDeb, [i_firm_refid] as MandantFIBU, FiBuSchnittstelleNr as MandantAVISO FROM [VERAG].[dbo].[Kunden]
|
||||
Dim sqlstrKunden = " select * from ( SELECT [KundenNr] as KundenNr,[Name 1], Adressen.LandKz, (isnull(Adressen.UstIdKz,'') + isnull(Adressen.UstIdNr,'')) as UIDNrKunden, isnull(c_ustidnr,'') as UIDNrKundenDeb, [i_firm_refid] as MandantFIBU, FiBuSchnittstelleNr as MandantAVISO FROM [VERAG].[dbo].[Kunden]
|
||||
inner join Adressen on Adressen.AdressenNr = Kunden.KundenNr
|
||||
inner join Buchhaltung.[FIBU2].[dbo].[fibu_konto] on Kunden.KundenNrZentrale = i_konto
|
||||
where isnull(KundenNrZentrale,0) <> 0 and Auswahl = 'A' And isnull(FiBuSchnittstelleNr,0) = " & i.Value & " ANd [i_firm_refid] = " & i.Value & " ) as temp where UIDNrKunden <> UIDNrKundenDeb"
|
||||
|
||||
Reference in New Issue
Block a user