Correcion codigo mal comentado en compras
This commit is contained in:
@@ -19444,7 +19444,7 @@ Partial Class Compras_Compras
|
|||||||
Case 237
|
Case 237
|
||||||
Select Case FleteImportacionOpcion
|
Select Case FleteImportacionOpcion
|
||||||
Case 1
|
Case 1
|
||||||
If Not ObjInventario.AddFletescompras(CveFlete, CveCompra) Then
|
If Not ObjInventario.AddFletesCompras(CveFlete, CveCompra) Then
|
||||||
ErrorTrans = True
|
ErrorTrans = True
|
||||||
End If
|
End If
|
||||||
'''actualiza la compra para que no se surta en almacen. sino por el flete o importación
|
'''actualiza la compra para que no se surta en almacen. sino por el flete o importación
|
||||||
@@ -20252,24 +20252,24 @@ Partial Class Compras_Compras
|
|||||||
' CvePSGRuposAux.AppendFormat("{0},", CvePSIndividual)
|
' CvePSGRuposAux.AppendFormat("{0},", CvePSIndividual)
|
||||||
' Next
|
' Next
|
||||||
|
|
||||||
Dim CvePSGRupos As String = Left(CvePSGRuposAux.ToString, CvePSGRuposAux.Length - 1)
|
'Dim CvePSGRupos As String = Left(CvePSGRuposAux.ToString, CvePSGRuposAux.Length - 1)
|
||||||
|
|
||||||
Dim PSSat As DataTable = GlobalDTPS(UsuarioActual.CveEmpresa).FiltraParametros(String.Format("CvePS IN ({0})", CvePSGRuposAux))
|
'Dim PSSat As DataTable = GlobalDTPS(UsuarioActual.CveEmpresa).FiltraParametros(String.Format("CvePS IN ({0})", CvePSGRuposAux))
|
||||||
|
|
||||||
Dim ProductosCodigoSATNoPermitidos As New StringBuilder("")
|
'Dim ProductosCodigoSATNoPermitidos As New StringBuilder("")
|
||||||
For Each PS As GridViewRow In GvPS.Rows
|
'For Each PS As GridViewRow In GvPS.Rows
|
||||||
Dim PSIndividual As String = PS.DataKey("PS")
|
'Dim PSIndividual As String = PS.DataKey("PS")
|
||||||
Dim ClavePSSAT As String = PSSat.FiltroPrimeroValor("CveSATPS", String.Format("PS = '{0}'", PSIndividual))
|
'Dim ClavePSSAT As String = PSSat.FiltroPrimeroValor("CveSATPS", String.Format("PS = '{0}'", PSIndividual))
|
||||||
If ClavePSSAT = "46920" Then
|
'If ClavePSSAT = "46920" Then
|
||||||
ProductosCodigoSATNoPermitidos.AppendFormat("{0}</br>", PSIndividual)
|
' ProductosCodigoSATNoPermitidos.AppendFormat("{0}</br>", PSIndividual)
|
||||||
End If
|
' End If
|
||||||
Next
|
'Next
|
||||||
|
|
||||||
If ProductosCodigoSATNoPermitidos.ToString.Length > 0 Then
|
'If ProductosCodigoSATNoPermitidos.ToString.Length > 0 Then
|
||||||
Dim mensajeAdvertencia As String = String.Format("No se permite vinculación de productos con código SAT '01010101', revise los productos:</br></br>{0}", ProductosCodigoSATNoPermitidos.ToString)
|
'Dim mensajeAdvertencia As String = String.Format("No se permite vinculación de productos con código SAT '01010101', revise los productos:</br></br>{0}", ProductosCodigoSATNoPermitidos.ToString)
|
||||||
Alert(mensajeAdvertencia, TipoMensaje.MsgAdvertencia)
|
' Alert(mensajeAdvertencia, TipoMensaje.MsgAdvertencia)
|
||||||
Return False
|
' Return False
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
' Return True
|
' Return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user