-- cambio en mensajes de código SAT
This commit is contained in:
@@ -813,10 +813,15 @@ Public Class Timbrado
|
||||
'validación especial.
|
||||
If Ventas.TipoDocto.Contiene("Ing", "Dev") Then
|
||||
|
||||
Dim CodigoIncorrecto As Integer = (From c In Ventas.Timbre.Conceptos Where (c.ClaveProdServ = "84111506" Or c.ClaveProdServ = "01010101")
|
||||
Select c.ClaveProdServ).Count()
|
||||
If CodigoIncorrecto > 0 Then
|
||||
MensajeErrorCFDI = "SAT - Hay un concepto con Codigo no permitido."
|
||||
Dim CodigoIncorrecto = (From c In Ventas.Timbre.Conceptos Where (c.ClaveProdServ = "84111506" Or c.ClaveProdServ = "01010101")
|
||||
Select c.ClaveProdServ, c.Descripcion)
|
||||
Dim Str As New StringBuilder
|
||||
Str.Append("Los siguentes productos tienen especificado un código no permitido por el SAT: <br/>")
|
||||
For Each dr In CodigoIncorrecto
|
||||
Str.AppendFormat(" - {0} <br/>", dr.Descripcion)
|
||||
Next
|
||||
If CodigoIncorrecto.Count > 0 Then
|
||||
MensajeErrorCFDI = Str.ToString
|
||||
Return False
|
||||
End If
|
||||
|
||||
|
||||
Reference in New Issue
Block a user