Sendungsdetails, gesamtsicherheiten, etc.
This commit is contained in:
@@ -7675,8 +7675,8 @@ Public Class frmSendungsdetailsNEU
|
||||
For Each s As cSendungen In SENDUNG_LIST
|
||||
'nur Betrag EUR
|
||||
If s.tblSnd_Vorpapier = vorpT1 Then
|
||||
If s.tblSnd_WarenwertWaehrung = "EUR" AndAlso s.tblSnd_Warenwert > 0 AndAlso s.FilialenNr = SENDUNG_LIST(CURRENT_INDEX).FilialenNr Then
|
||||
calcWarenwerte += s.tblSnd_Warenwert
|
||||
If s.tblSnd_WarenwertWaehrung = "EUR" AndAlso s.FilialenNr = SENDUNG_LIST(CURRENT_INDEX).FilialenNr Then
|
||||
If Not s.tblSnd_Abfertigungsart_ID = 44 Then calcWarenwerte += s.tblSnd_Warenwert
|
||||
Else
|
||||
MsgBox("Bei Sendung " & s.AbfertigungsNr & " ist der Warenwert nicht in EUR angegeben!")
|
||||
Exit Sub
|
||||
@@ -7686,14 +7686,14 @@ Public Class frmSendungsdetailsNEU
|
||||
|
||||
Next
|
||||
|
||||
If SENDUNG_LIST(CURRENT_INDEX).tblSnd_Warenwert Is Nothing Then
|
||||
SENDUNG_LIST(CURRENT_INDEX).tblSnd_Warenwert = Math.Round(calcWarenwerte, 2)
|
||||
If txtWarenwert.Text = "" OrElse txtWarenwert.Text = "0,00" Then
|
||||
txtWarenwert.Text = Math.Round(calcWarenwerte, 2)
|
||||
SAVE_ME()
|
||||
End If
|
||||
|
||||
|
||||
|
||||
If IsNumeric(SENDUNG_LIST(CURRENT_INDEX).tblSnd_Warenwert) AndAlso Math.Round(calcWarenwerte, 2) <> Math.Round(SENDUNG_LIST(CURRENT_INDEX).tblSnd_Warenwert, 2) Then
|
||||
If IsNumeric(SENDUNG_LIST(CURRENT_INDEX).tblSnd_Warenwert) AndAlso SENDUNG_LIST(CURRENT_INDEX).tblSnd_Warenwert <> 0 AndAlso Math.Round(calcWarenwerte, 2) <> Math.Round(SENDUNG_LIST(CURRENT_INDEX).tblSnd_Warenwert, 2) Then
|
||||
MsgBox("Warenwert für Gestellung stimmt nicht überein!" & vbNewLine & "Berechnerter Warenwert: " & Math.Round(calcWarenwerte, 2) & vbNewLine & "Eingetragener Warenwert: " & Math.Round(SENDUNG_LIST(CURRENT_INDEX).tblSnd_Warenwert, 2), MsgBoxStyle.Critical)
|
||||
|
||||
Else
|
||||
|
||||
Reference in New Issue
Block a user