@@ -749,7 +749,7 @@ Public Class cFakturierung
If RG_TMP . Sammelrechnung = 0 Then
Return doRechnungsDruck ( New VERAG_PROG_ALLGEMEIN . cRechnungsausgang ( RK_ID ) , RechnungsDatum , vorschau , Rechnugnsdruck , Path , PrinterName , , printStbVdb )
ElseIf RG_TMP . Sammelrechnung = 6 Then
Return cFakturierung . doSAMMELRechnungsDruck_Abschnitt ( RG_TMP . RechnungsNr , - 1 , - 1 , RG_TMP . DruckDatumZeit , " " , AnlageEinzelRg , sammelrechnungsbericht , Rechnugnsdruck , Path , False , , , , , , , , True , True , sammelrechnungKopie , , , onlyAsfinagAttach , True )
Return cFakturierung . doSAMMELRechnungsDruck_Abschnitt ( RG_TMP . RechnungsNr , - 1 , - 1 , RG_TMP . DruckDatumZeit , " " , False , sammelrechnungsbericht , Rechnugnsdruck , Path , False , , , , , , , , True , True , sammelrechnungKopie , , , onlyAsfinagAttach , True )
Else
Return cFakturierung . doSAMMELRechnungsDruck_Abschnitt ( RG_TMP . RechnungsNr , - 1 , - 1 , RG_TMP . DruckDatumZeit , " " , AnlageEinzelRg , sammelrechnungsbericht , Rechnugnsdruck , Path , True )
End If
@@ -3208,45 +3208,45 @@ Public Class cFakturierung
Select Case FIRMA . Firma_ID
Case 21 , 22 , 23 '"UNISPED"
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
Case 26 'VERAG-UNISPED"
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
Case 26 'VERAG-UNISPED"
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
Case 24 'AMBAR"
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
'Änderung Ticket_Nr.: 6983
'desc.AddCreditorFinancialAccount("TR90 0006 2001 6040 0009 0804 66", "TGBATRISXXX",,, "Garanti Bank Türkei – Euro Konto")
desc . AddCreditorFinancialAccount ( " TR67 0006 2000 5440 0009 0513 57 " , " TGBATRISXXX " , , , " Garanti Bank Türkei – Euro Konto " )
Case 24 'AMBAR"
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
'Änderung Ticket_Nr.: 6983
'desc.AddCreditorFinancialAccount("TR90 0006 2001 6040 0009 0804 66", "TGBATRISXXX",,, "Garanti Bank Türkei – Euro Konto")
desc . AddCreditorFinancialAccount ( " TR67 0006 2000 5440 0009 0513 57 " , " TGBATRISXXX " , , , " Garanti Bank Türkei – Euro Konto " )
Case 20 '"IMEX"
If RECHNUNG . RechnungsLandKz = " TR " Then
desc . AddCreditorFinancialAccount ( " TR84 0006 2001 6040 0009 0987 13 " , " " , , , " Garanti Bank " )
Else
desc . AddCreditorFinancialAccount ( " TR840006200160400009098713 " , " " , , , " Garanti Bank " )
Else
If hasVK ( RECHNUNG ) Then
desc . AddCreditorFinancialAccount ( " AT35 4480 0365 7822 0002 " , " VBOEATWWOOE " , , , " Volksbank Oberösterreich AG " )
Else
desc . AddCreditorFinancialAccount ( " AT354480036578220002 " , " VBOEATWWOOE " , , , " Volksbank Oberösterreich AG " )
Else
If hasEUSTZOLL ( RECHNUNG . RechnungsNr ) Then
desc . AddCreditorFinancialAccount ( " AT62 4480 0365 7822 0001 " , " VBOEATWWOOE " , )
Else
desc . AddCreditorFinancialAccount ( " TR84 0006 2001 6040 0009 0987 13 " , " VBOEATWWOOE " , , , " Volksbank Oberösterreich AG " )
End If
desc . AddCreditorFinancialAccount ( " AT624480036578220001 " , " VBOEATWWOOE " , )
Else
desc . AddCreditorFinancialAccount ( " TR840006200160400009098713 " , " VBOEATWWOOE " , , , " Volksbank Oberösterreich AG " )
End If
End If
End If
Case 19
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
Case Else 'VERAG,ATILLA
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
Case Else 'VERAG,ATILLA
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) . Trim ( ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
End Select
End Select
Dim tmpPathZugpferd = VERAG_PROG_ALLGEMEIN . DATENVERVER_OPTIONS . getTMPPath ( " ZUGFeRD_Invoice_ " & RECHNUNG . RechnungsNr , " .xml " , True , False )
@@ -3502,43 +3502,43 @@ Public Class cFakturierung
Select Case FIRMA . Firma_ID
Case 21 , 22 , 23 '"UNISPED"
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
Case 26 'VERAG-UNISPED"
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
Case 24 'AMBAR"
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
'Änderung Ticket_Nr.: 6983
'desc.AddCreditorFinancialAccount("TR90 0006 2001 6040 0009 0804 66", "TGBATRISXXX",,, "Garanti Bank Türkei – Euro Konto")
desc . AddCreditorFinancialAccount ( " TR67 0006 2000 5440 0009 0513 57 " , " TGBATRISXXX " , , , " Garanti Bank Türkei – Euro Konto " )
desc . AddCreditorFinancialAccount ( " TR670006200054400009051357 " , " TGBATRISXXX " , , , " Garanti Bank Türkei – Euro Konto " )
Case 20 '"IMEX"
If RechnungsLandKz = " TR " Then
desc . AddCreditorFinancialAccount ( " TR84 0006 2001 6040 0009 0987 13 " , " " , , , " Garanti Bank " )
desc . AddCreditorFinancialAccount ( " TR840006200160400009098713 " , " " , , , " Garanti Bank " )
Else
If hasVK ( RechnungsNr , ROW ( " Buchungsjahr " ) ) Then
desc . AddCreditorFinancialAccount ( " AT35 4480 0365 7822 0002 " , " VBOEATWWOOE " , , , " Volksbank Oberösterreich AG " )
desc . AddCreditorFinancialAccount ( " AT354480036578220002 " , " VBOEATWWOOE " , , , " Volksbank Oberösterreich AG " )
Else
If hasEUSTZOLL ( RechnungsNr ) Then
desc . AddCreditorFinancialAccount ( " AT62 4480 0365 7822 0001 " , " VBOEATWWOOE " , )
desc . AddCreditorFinancialAccount ( " AT624480036578220001 " , " VBOEATWWOOE " , )
Else
desc . AddCreditorFinancialAccount ( " TR84 0006 2001 6040 0009 0987 13 " , " VBOEATWWOOE " , , , " Volksbank Oberösterreich AG " )
desc . AddCreditorFinancialAccount ( " TR840006200160400009098713 " , " VBOEATWWOOE " , , , " Volksbank Oberösterreich AG " )
End If
End If
End If
Case 19
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
Case Else 'VERAG,ATILLA
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
If FIRMA . Firma_IBAN1 IsNot Nothing AndAlso FIRMA . Firma_BIC1 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung1 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN1 IsNot Nothing , FIRMA . Firma_IBAN1 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC1 IsNot Nothing , FIRMA . Firma_BIC1 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung1 IsNot Nothing , FIRMA . Firma_Bankverbindung1 , " " ) )
If FIRMA . Firma_IBAN2 IsNot Nothing AndAlso FIRMA . Firma_BIC2 IsNot Nothing AndAlso FIRMA . Firma_Bankverbindung2 IsNot Nothing Then desc . AddCreditorFinancialAccount ( IIf ( FIRMA . Firma_IBAN2 IsNot Nothing , FIRMA . Firma_IBAN2 . ToString . Replace ( " IBAN: " , " " ) . Trim ( ) , " " ) , IIf ( FIRMA . Firma_BIC2 IsNot Nothing , FIRMA . Firma_BIC2 . ToString . Replace ( " BIC: " , " " ) , " " ) , , , IIf ( FIRMA . Firma_Bankverbindung2 IsNot Nothing , FIRMA . Firma_Bankverbindung2 , " " ) )
End Select
@@ -4449,7 +4449,7 @@ Public Class cFakturierung
If RechnungsdruckArt <> 7 And Not onlySetRENRforAUTOMAIL Then
If Not RG . checkRechnungsNrIsSet ( ) AndAlso Not vorschau Then
If showError Then MsgBox ( " Rechnungsnummer wurde nicht in Datenbank eingetragen " & vbNewLine & " Vorgang wird abgebrochen" )
If showError Then VERAG_PROG_ALLGEMEIN . cErrorHandler . ERR ( " Rechnungsnummer wurde nicht in Datenbank eingetragen " , " Rechnungsnummer wurde nicht in Datenbank eingetragen - Vorang wird abgebrochen : \cFakturierung.vb:Zeile 4452 " , " \cFakturierung.vb:Zeile 4452 " ) 'MsgBox("Rechnungsnummer wurde nicht in Datenbank eingetragen" & vbNewLine & " Vorgang wird abgebrochen")
Return False
Else
found = True
@@ -4548,7 +4548,7 @@ Public Class cFakturierung
Dim pathZollbeleg = getSpedBuchAnhaenge_Path ( dt . Rows ( 0 ) ( " FilialenNr " ) , dt . Rows ( 0 ) ( " AbfertigungsNr " ) , dt . Rows ( 0 ) ( " SpeditionsbuchUnterNr " ) )
If pathZollbeleg <> " " Then SonstAnlagen . Add ( pathZollbeleg )
Catch ex As Exception
MsgBox ( " ERR ZOLLBELEG-ANHNAG: " & ex . Message & ex . StackTrace )
VERAG_PROG_ALLGEMEIN . cErrorHandler . ERR ( " ERR ZOLLBELEG-ANHNAG: " & ex . Message , ex . StackTrace , System . Reflection . MethodInfo . GetCurrentMethod . Name )
End Try
End If
End If
@@ -4614,7 +4614,7 @@ Public Class cFakturierung
End If
Catch ex As Exception
MsgBox ( " Therefore-Import fehlgeschlagen! " & ex . Message & ex . StackTrace )
VERAG_PROG_ALLGEMEIN . cErrorHandler . ERR ( " Therefore-Import fehlgeschlagen! " & ex . Message , ex . StackTrace , System . Reflection . MethodInfo . GetCurrentMethod . Name )
End Try
'-------------------------------------------------------------------------------
Try
@@ -4634,7 +4634,7 @@ Public Class cFakturierung
End If
End If
Catch ex As Exception
MsgBox ( " RG PDF Speichern fehlgeschlagen! " & ex . Message & ex . StackTrace )
VERAG_PROG_ALLGEMEIN . cErrorHandler . ERR ( " RG PDF Speichern fehlgeschlagen! " & ex . Message , ex . StackTrace , System . Reflection . MethodInfo . GetCurrentMethod . Name )
End Try
'-------------------------------------------------------------------------
@@ -4656,7 +4656,7 @@ Public Class cFakturierung
End Select
End If
Catch ex As Exception
MsgBox ( " Tradeshift Export fehlgeschlagen! " & ex . Message & ex . StackTrace )
VERAG_PROG_ALLGEMEIN . cErrorHandler . ERR ( " Tradeshift Export fehlgeschlagen! " & ex . Message , ex . StackTrace , System . Reflection . MethodInfo . GetCurrentMethod . Name )
End Try
If dt . Rows ( 0 ) ( " Firma_ID " ) = 24 Then
@@ -4679,7 +4679,7 @@ Public Class cFakturierung
End If
End If
Catch ex As Exception
MsgBox ( " API Fehler! " & ex . Message & ex . StackTrace )
VERAG_PROG_ALLGEMEIN . cErrorHandler . ERR ( " API- Fehler " & ex . Message , ex . StackTrace , System . Reflection . MethodInfo . GetCurrentMethod . Name )
End Try
'-------------------------------------------------------------------------------