ustva_Erstattung

This commit is contained in:
2025-02-17 10:49:24 +01:00
parent 28cf68eebb
commit 56aa1bdc37
4 changed files with 96 additions and 71 deletions

View File

@@ -582,4 +582,16 @@ Public Class cUStVErstattungPositionen
Return SQL.doSQL(sqlstr, "FMZOLL")
End Function
Public Function getMaxPosNr() As Integer
Try
Dim maxPosNr = -1
Return SQL.getValueTxtBySql("SELECT isnull(max([UStVEr_ID]),0)+1 FROM [tblUStVErstattung] where UStVAn_ID='" & UStVAn_ID & "'", "FMZOLL",,, "1")
Catch ex As Exception
MsgBox("Fehler in der Funktion '" & System.Reflection.MethodInfo.GetCurrentMethod.Name & "'" & vbNewLine & vbNewLine & ex.Message & vbNewLine & vbNewLine & ex.StackTrace)
End Try
Return -1
End Function
End Class