syska bugfix

This commit is contained in:
2025-09-04 17:10:19 +02:00
parent 9769c6fac1
commit df2fb58518

View File

@@ -1488,7 +1488,7 @@ Public Class cSyska_Interface
For Each r_OP In dt_OP.Rows
Try
If KdNr > 1 Then OP_ID_CNT = SQL.getValueTxtBySql("SELECT isnull(MAX(OP_ID),0)+1 FROM [Offene Posten] AND Firma_ID = '" & Firma_ID & "'", "FMZOLL") 'Wenn ein Kunde geändert wird, wird die höchste ID ermittelt --> höchste ID des OPS der FIRMA!!!!
If KdNr > 1 Then OP_ID_CNT = SQL.getValueTxtBySql("SELECT isnull(MAX(OP_ID),0)+1 FROM [Offene Posten] WHERE Firma_ID = '" & Firma_ID & "'", "FMZOLL") 'Wenn ein Kunde geändert wird, wird die höchste ID ermittelt --> höchste ID des OPS der FIRMA!!!!
Dim OP As New VERAG_PROG_ALLGEMEIN.cOffene_Posten()