-- validación de que si tiene aplica para venta, requiere código SAT

-- si FNC382, debe de tener cuando menos un precio establecido
This commit is contained in:
2025-01-28 19:53:24 -07:00
parent 83ce68daa0
commit 4e262d53d7

View File

@@ -1451,6 +1451,27 @@ Partial Class ProductosyServicios
Exit Sub
End If
If ChkAplicaParaVenta.Checked AndAlso DdlSATPS.SelectedValue.Contiene("46920", "0", "-1", "") Then
Alert("El Producto Servicio SAT no es válido, por favor especificarlo.", TipoMensaje.MsgAdvertencia)
Exit Sub
End If
If UsuarioActual.Empresa.Funcionalidad(382) = "1" Then
Dim tcontador As Integer = 0
For Each GvRow As GridViewRow In GvPLMultiple.Rows
Dim CvePrecioLista As Integer = GvRow.DataKey("CvePrecioLista").ToEntero()
Dim Precio As Decimal = GvRow.FCTextBox("TxtPrecio").Text.ToDecimal()
If Precio <> 0 Then
tcontador += 1
End If
Next
If tcontador = 0 Then
Alert("Debe de especificar cuando menos un precio en el listado.", TipoMensaje.MsgAdvertencia)
Exit Sub
End If
End If
Dim CveClasificacion2 As Integer = DdlClasificacion2.SelectedValue.ToEntero
If (TxtCodigo.Text = TxtCodigoBarras.Text AndAlso TxtCodigo.Text <> "") Then