fakt fixeTaxe, mdm, etc.
This commit is contained in:
@@ -1758,7 +1758,7 @@ Public Class usrCntlFaktAbrechnung
|
||||
End If
|
||||
RECHNUNG.LOAD_ANHAENGE()
|
||||
|
||||
If RECHNUNG IsNot Nothing AndAlso RECHNUNG.ANHAENGE IsNot Nothing And Not VERAG_PROG_ALLGEMEIN.cAllgemein.TESTSYSTEM Then
|
||||
If RECHNUNG IsNot Nothing AndAlso RECHNUNG.ANHAENGE IsNot Nothing Then
|
||||
'-----------------------------
|
||||
'ANHÄNGE OHNE AVISO-BEZUG LADEN:
|
||||
'-----------------------------
|
||||
@@ -1861,11 +1861,16 @@ Public Class usrCntlFaktAbrechnung
|
||||
Next
|
||||
|
||||
End If
|
||||
|
||||
If RECHNUNG.DruckDatumZeit Is Nothing OrElse Not RECHNUNG.ANHAENGE.Exists(Function(c) c.Bezeichnung = DS.da_name) Then
|
||||
If RECHNUNG.ANHAENGE.Count > 0 Then
|
||||
If RECHNUNG.DruckDatumZeit Is Nothing OrElse Not RECHNUNG.ANHAENGE.Exists(Function(c) c.Bezeichnung = DS.da_name) Then
|
||||
.Rows.Add(-1, "POS-LIST", DS.da_name, DS.da_id, -1)
|
||||
End If
|
||||
Else
|
||||
.Rows.Add(-1, "POS-LIST", DS.da_name, DS.da_id, -1)
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message & ex.StackTrace)
|
||||
End Try
|
||||
@@ -1875,33 +1880,37 @@ Public Class usrCntlFaktAbrechnung
|
||||
If dt IsNot Nothing Then
|
||||
For Each r In dt.Rows
|
||||
|
||||
If Not RECHNUNG.ANHAENGE.Exists(Function(c) c.dsId = r("UStVPo_daId")) Then 'wenn der Anhang schon existiert!
|
||||
If Not IsDBNull(r("UStVPo_daId")) Then
|
||||
|
||||
Dim DAID As String = ""
|
||||
DAID = func.getPDF(r("UStVPo_SchnittstellenNr"), r("UStVPo_ReNr"), r("UStVPo_ReDat"), r("UStVPo_daId"), False, True, USTV.UStVAn_LandKz, USTV, New cFakturierung, True)
|
||||
If RECHNUNG.ANHAENGE IsNot Nothing AndAlso Not RECHNUNG.ANHAENGE.Exists(Function(c) c.dsId = r("UStVPo_daId")) Then 'wenn der Anhang schon existiert!
|
||||
|
||||
Dim nameLief As String = ""
|
||||
Dim DAID As String = ""
|
||||
DAID = func.getPDF(r("UStVPo_SchnittstellenNr"), r("UStVPo_ReNr"), r("UStVPo_ReDat"), r("UStVPo_daId"), False, True, USTV.UStVAn_LandKz, USTV, New cFakturierung, True)
|
||||
|
||||
Select Case r("UStVPo_SchnittstellenNr")
|
||||
Case 1 : nameLief = "VERAG-" 'Verag360
|
||||
Case 2, 8, 12 : nameLief = "IDS-"
|
||||
Case 3 : nameLief = "IT-"
|
||||
Case 4, 9 : nameLief = "MSE-"
|
||||
Case 5, 10 : nameLief = "UTA-"
|
||||
Case 6, 11 : nameLief = "PLOSE-"
|
||||
Case 7 : nameLief = "RMC-"
|
||||
End Select
|
||||
Dim nameLief As String = ""
|
||||
|
||||
nameLief &= "RE"
|
||||
Select Case r("UStVPo_SchnittstellenNr")
|
||||
Case 1 : nameLief = "VERAG-" 'Verag360
|
||||
Case 2, 8, 12 : nameLief = "IDS-"
|
||||
Case 3 : nameLief = "IT-"
|
||||
Case 4, 9 : nameLief = "MSE-"
|
||||
Case 5, 10 : nameLief = "UTA-"
|
||||
Case 6, 11 : nameLief = "PLOSE-"
|
||||
Case 7 : nameLief = "RMC-"
|
||||
End Select
|
||||
|
||||
nameLief &= "RE"
|
||||
|
||||
If DAID <> "" AndAlso IsNumeric(DAID) Then
|
||||
Dim daidno As Integer = CInt(DAID)
|
||||
Dim ds As New cDATENSERVER(daidno)
|
||||
.Rows.Add(-1, nameLief, ds.da_name, ds.da_id, -1)
|
||||
End If
|
||||
|
||||
If DAID <> "" AndAlso IsNumeric(DAID) Then
|
||||
Dim daidno As Integer = CInt(DAID)
|
||||
Dim ds As New cDATENSERVER(daidno)
|
||||
.Rows.Add(-1, nameLief, ds.da_name, ds.da_id, -1)
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
Next
|
||||
End If
|
||||
End If
|
||||
@@ -3053,17 +3062,17 @@ Public Class usrCntlFaktAbrechnung
|
||||
If fixeTaxe <= 0 Then Exit Sub
|
||||
|
||||
'Sucht, ob Fixetaxe schon vorhanden ist,...
|
||||
Dim FixeTaxePOS = RECHNUNG.POSITIONEN.Find(Function(x) x.LeistungsNr = 440 And x.BerechnungsartNr = 9)
|
||||
Dim FixeTaxePOS = RECHNUNG.POSITIONEN.Find(Function(x) x.LeistungsNr = 440 And x.LeistungsBez = "Fixe Taxe" And x.BerechnungsartNr = 9)
|
||||
'... sonst wird eine neue Pos eingefügt...
|
||||
If FixeTaxePOS IsNot Nothing Then
|
||||
' FixeTaxePOS = New VERAG_PROG_ALLGEMEIN.cRechnungsausgangPositionen
|
||||
If FixeTaxePOS Is Nothing Then
|
||||
FixeTaxePOS = New VERAG_PROG_ALLGEMEIN.cRechnungsausgangPositionen
|
||||
FixeTaxePOS.LeistungsNr = 440
|
||||
FixeTaxePOS.LeistungsBez = "P.P./Fixe Taxe"
|
||||
FixeTaxePOS.LeistungsBez = "Fixe Taxe"
|
||||
FixeTaxePOS.BerechnungsartNr = 9
|
||||
' RECHNUNG.POSITIONEN.Add(FixeTaxePOS)
|
||||
RECHNUNG.POSITIONEN.Add(FixeTaxePOS)
|
||||
'...und der Wert gesetzt.
|
||||
FixeTaxePOS.Anzahl = 1
|
||||
FixeTaxePOS.Preis = getVorzeichen(RECHNUNG) * FixeTaxe
|
||||
FixeTaxePOS.Preis = getVorzeichen(RECHNUNG) * fixeTaxe
|
||||
|
||||
initSteuerbetraege(RECHNUNG, FixeTaxePOS)
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user