This commit is contained in:
2026-05-27 11:40:04 +02:00
parent e67616baec
commit c231dc1dd9
2 changed files with 11 additions and 2 deletions

View File

@@ -606,7 +606,6 @@ Public Class usrCntlFaktAbrechnung
Else Else
whereFirma = " AND FIRMENGRUPPE IN ('VERAG','ATILLA','FRONTOFFICE') " : pnlDocs.Visible = True whereFirma = " AND FIRMENGRUPPE IN ('VERAG','ATILLA','FRONTOFFICE') " : pnlDocs.Visible = True
End If End If
Case "IMEX" : whereFirma = " AND FIRMENGRUPPE IN ('IMEX') " : pnlDocs.Visible = True Case "IMEX" : whereFirma = " AND FIRMENGRUPPE IN ('IMEX') " : pnlDocs.Visible = True
'Case "VERAG" : whereFirma = " AND Firma_ID<>20 " : pnlDocs.Visible = True 'Case "VERAG" : whereFirma = " AND Firma_ID<>20 " : pnlDocs.Visible = True
'Case "IMEX" : whereFirma = " AND Firma_ID=20 " 'Case "IMEX" : whereFirma = " AND Firma_ID=20 "

View File

@@ -475,12 +475,22 @@ Public Class cTelotecAPI
End Function End Function
Function SafeParseDecimal(value As String) As Decimal Function SafeParseDecimal(value As String) As Decimal
If String.IsNullOrWhiteSpace(value) Then
Return 0D
End If
Dim result As Decimal Dim result As Decimal
If Decimal.TryParse(value, result) Then
If Decimal.TryParse(value,
NumberStyles.Any,
CultureInfo.InvariantCulture,
result) Then
Return result Return result
Else Else
Return 0D Return 0D
End If End If
End Function End Function
Function SafeParseInt(value As String) As Integer Function SafeParseInt(value As String) As Integer