IDS
This commit is contained in:
@@ -517,9 +517,6 @@ Public Class frmNachrichtenVerarbeitung_MDM_divers
|
||||
'------------------ .CSV ------------------
|
||||
'------------------------------------------
|
||||
|
||||
'If Not deleteTable Then
|
||||
' deleteTable = uta.clearimporttable()
|
||||
'End If
|
||||
|
||||
If fi.Extension.ToLower = ".csv" Then
|
||||
|
||||
@@ -546,13 +543,15 @@ Public Class frmNachrichtenVerarbeitung_MDM_divers
|
||||
|
||||
Dim DS As New VERAG_PROG_ALLGEMEIN.cDATENSERVER("MDM", "MDM_DATEN", "IDS", Now.Year, Now.ToString("yyyyMMdd"), frmStartOptions.getFileName(d))
|
||||
|
||||
DS.uploadDataToDATENSERVER(d,,,,,, True)
|
||||
If DS.uploadDataToDATENSERVER(d,,,,,, True) Then
|
||||
If SQL.doSQL("Update [tblIDSInvoicesNew] SET [daId]='" & DS.da_id & "' where [DocumentName] = '" & DS.da_name & "' ", "FMZOLL") Then
|
||||
frmStartOptions.moveFile_DateBack(d, zielpfad & "Invoice_PDF\" & Now.Year & "\" & Now.ToString("yyyyMMdd") & "\")
|
||||
End If
|
||||
End If
|
||||
|
||||
Try
|
||||
Try
|
||||
|
||||
|
||||
|
||||
Catch ex As System.Exception
|
||||
Catch ex As System.Exception
|
||||
End Try
|
||||
|
||||
End If
|
||||
|
||||
@@ -1589,8 +1589,7 @@ Public Class frmStartOptions
|
||||
ids.initImportPfade("IDS")
|
||||
Dim Zielpfad = ids.VERARBEITUNG_PFAD
|
||||
|
||||
|
||||
If betreff.ToString.ToLower.Contains("IDS") Then 'zusätzlicher Check
|
||||
If betreff.ToString.ToLower.Contains("ids") Then 'zusätzlicher Check
|
||||
Dim found = False
|
||||
betreff = betreff.replace("WG: ", "")
|
||||
betreff = betreff.replace("FW: ", "")
|
||||
@@ -1633,7 +1632,7 @@ Public Class frmStartOptions
|
||||
If outputDate IsNot Nothing AndAlso customerNo <> "" AndAlso invoiceNo <> "" Then
|
||||
|
||||
Dim idsInvoice As New cIDSInvoice(outputDate, customerNo, invoiceNo)
|
||||
idsInvoice.SAVE()
|
||||
If Not idsInvoice.hasEntry Then idsInvoice.SAVE()
|
||||
|
||||
|
||||
Dim outlookApp As Object
|
||||
@@ -1646,17 +1645,16 @@ Public Class frmStartOptions
|
||||
|
||||
If mailItem IsNot Nothing Then
|
||||
If idsInvoice.isMail_IDS(mailItem) Then
|
||||
If idsInvoice.getPDF_IDS(mailItem, filename, Zielpfad) Then
|
||||
If idsInvoice.getPDF_IDS(mailItem, filename, Zielpfad & idsInvoice.Invoicenumber & ".pdf") Then
|
||||
idsInvoice.DocumentName = filename
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
End If
|
||||
idsInvoice.Zeitstempel = Now()
|
||||
idsInvoice.SAVE()
|
||||
Catch ex As Exception
|
||||
mailItem = Nothing
|
||||
outlookApp = Nothing
|
||||
|
||||
Finally
|
||||
Try
|
||||
|
||||
Reference in New Issue
Block a user