This commit is contained in:
2021-06-24 23:05:48 +02:00
parent e625acc609
commit f2f992547d
134 changed files with 72921 additions and 2011 deletions

View File

@@ -362,6 +362,7 @@ Public Class cRechnungsausgang
Public Function SAVE_POSITIONEN(RK_ID) As Boolean
If DELETE_POSITIONEN() Then ' zuerst Einträge löschen...
ORDER_POSITIONEN() ' ... dann ordnen ...
For Each p In POSITIONEN
If Not p.INSERT(RK_ID) Then Return False ' ... dann insert
Next
@@ -509,6 +510,22 @@ Public Class cRechnungsausgang
End Try
End Sub
Public Sub ORDER_POSITIONEN()
Try
' Dim POSITIONEN_Tmp As New List(Of cRechnungsausgangPositionen)
Try
POSITIONEN = POSITIONEN.OrderByDescending(Function(x) x.Preis).ToList()
Catch ex As Exception
'Preis null??
End Try
POSITIONEN = POSITIONEN.OrderBy(Function(x) x.LeistungsNr).ToList()
Catch ex As Exception
MsgBox("Fehler In der Funktion '" & System.Reflection.MethodInfo.GetCurrentMethod.Name & "'" & vbNewLine & vbNewLine & ex.Message & vbNewLine & vbNewLine & ex.StackTrace)
End Try
End Sub
End Class
@@ -614,4 +631,7 @@ Public Class cRechnungsausgangPositionen
End Try
Return ""
End Function
End Class