diff --git a/App_Code/Modelos.vb b/App_Code/Modelos.vb
index 701782670..6f00aa0c8 100644
--- a/App_Code/Modelos.vb
+++ b/App_Code/Modelos.vb
@@ -843,51 +843,51 @@ Namespace Modelos
End If
'SI ES REFACTURACION
- Dim ObjNC As List(Of Object) = Nothing
- If ErrorList.Count = 0 Then
- If NuevaFactura = 1 AndAlso FacturaDevolucion IsNot Nothing Then
+ 'Dim ObjNC As List(Of Object) = Nothing
+ 'If ErrorList.Count = 0 Then
+ ' If NuevaFactura = 1 AndAlso FacturaDevolucion IsNot Nothing Then
- ObjNC = GeneraNC(ObjVentas, ObjConta, ObjInventario, ObjContr, FacturaDevolucion, ObjBancos, ObjEventos)
+ ' ObjNC = GeneraNC(ObjVentas, ObjConta, ObjInventario, ObjContr, FacturaDevolucion, ObjBancos, ObjEventos)
- If ObjNC Is Nothing Then
- ErrorList.Add("No se pudo Cancelar la Factura")
- End If
+ ' If ObjNC Is Nothing Then
+ ' ErrorList.Add("No se pudo Cancelar la Factura")
+ ' End If
- 'Esquema viejo, evitamos que aparezca por surtir
- If ErrorList.Count = 0 Then
- If Not ObjInventario.ActualizarEsDevolucionVenta(CveVenta, 2) Then
- ErrorList.Add("No se pudo Cancelar el movimiento de almacen de la Factura")
- End If
- End If
+ ' 'Esquema viejo, evitamos que aparezca por surtir
+ ' If ErrorList.Count = 0 Then
+ ' If Not ObjInventario.ActualizarEsDevolucionVenta(CveVenta, 2) Then
+ ' ErrorList.Add("No se pudo Cancelar el movimiento de almacen de la Factura")
+ ' End If
+ ' End If
- End If
- End If
+ ' End If
+ 'End If
'SI ES amortizacion 3.3
- Dim Obj2 As New List(Of Object)
+ 'Dim Obj2 As New List(Of Object)
- If ErrorList.Count = 0 Then
- ' cambiar la condicion para saber si hay seleccionado
- If TieneAnticipo AndAlso Me.CveTipoAmortizacionAnticipo = 2 Then
+ 'If ErrorList.Count = 0 Then
+ ' ' cambiar la condicion para saber si hay seleccionado
+ ' If TieneAnticipo AndAlso Me.CveTipoAmortizacionAnticipo = 2 Then
- If TieneAnticipo Then
- Try
- 'DESCOMENTAR
- If RegistrarNCAmortizacion(ObjVentas, ObjConta, ObjInventario, ObjContr, FacturaDevolucion, ObjBancos, Nothing, Nothing) Then
- Obj2.Add(FacturaDevolucion)
- End If
- Catch ex As Exception
- ErrorList.Add("No se pudo generarse la nota de crédito de amortización")
- End Try
+ ' If TieneAnticipo Then
+ ' Try
+ ' 'DESCOMENTAR
+ ' If RegistrarNCAmortizacion(ObjVentas, ObjConta, ObjInventario, ObjContr, FacturaDevolucion, ObjBancos, Nothing, Nothing) Then
+ ' Obj2.Add(FacturaDevolucion)
+ ' End If
+ ' Catch ex As Exception
+ ' ErrorList.Add("No se pudo generarse la nota de crédito de amortización")
+ ' End Try
- End If
+ ' End If
- If Obj2 Is Nothing AndAlso Obj2.Count = 0 Then
- ErrorList.Add("No se pudo generarse la nota de crédito de amortización")
- End If
- End If
- End If
+ ' If Obj2 Is Nothing AndAlso Obj2.Count = 0 Then
+ ' ErrorList.Add("No se pudo generarse la nota de crédito de amortización")
+ ' End If
+ ' End If
+ 'End If
'MARCA PARA NO SURTIR VENTA DE COTNRATO DE CONSIGNACION DE VENTA | [IPP] : PARCHE
If ErrorList.Count = 0 Then
@@ -1059,15 +1059,15 @@ Namespace Modelos
SeTimbro = ObjTimbrado.TimbrarFactura(UsuarioActual, Me, CvePACEspecial:=CvePAC)
'NOTA DE CREDITO - REFACTURADA - CASO ESPECIAL, TIMBRADO E IMPRESION
- If Not IsNothing(Obj2) AndAlso Obj2.Count > 0 Then
- Dim ofa As Modelos.Factura = CType(Obj2(0), Modelos.Factura)
- 'asigna el foliofiscal del ingreso que se acaba de timbrar, cuando es amortización de anticipo con NC
- If TieneAnticipo AndAlso CveTipoAmortizacionAnticipo = 2 Then
- ofa.Timbre.CFDIRelacionados.UUID.Clear()
- ofa.Timbre.CFDIRelacionados.UUID.Add(ObjTimbrado.UUID)
- End If
- ObjTimbrado.TimbrarFactura(UsuarioActual, ofa)
- End If
+ 'If Not IsNothing(Obj2) AndAlso Obj2.Count > 0 Then
+ ' Dim ofa As Modelos.Factura = CType(Obj2(0), Modelos.Factura)
+ ' 'asigna el foliofiscal del ingreso que se acaba de timbrar, cuando es amortización de anticipo con NC
+ ' If TieneAnticipo AndAlso CveTipoAmortizacionAnticipo = 2 Then
+ ' ofa.Timbre.CFDIRelacionados.UUID.Clear()
+ ' ofa.Timbre.CFDIRelacionados.UUID.Add(ObjTimbrado.UUID)
+ ' End If
+ ' ObjTimbrado.TimbrarFactura(UsuarioActual, ofa)
+ 'End If
If SeTimbro AndAlso Me.TipoDocto.Contiene("Ing") Then
EstatusSMS = EnviarSMSTimbrado(ObjEventos)
@@ -1080,12 +1080,12 @@ Namespace Modelos
End If
'NOTA DE CREDITO DE REFACTURACION
- If RefacturacionGeneroNC Then
- If Not IsNothing(ObjNC) AndAlso ObjNC.Count > 0 Then
- Dim ofa As Modelos.Factura = CType(ObjNC(0), Modelos.Factura)
- SeTimbroNC = ObjTimbrado.TimbrarFactura(UsuarioActual, ofa)
- End If
- End If
+ 'If RefacturacionGeneroNC Then
+ ' If Not IsNothing(ObjNC) AndAlso ObjNC.Count > 0 Then
+ ' Dim ofa As Modelos.Factura = CType(ObjNC(0), Modelos.Factura)
+ ' SeTimbroNC = ObjTimbrado.TimbrarFactura(UsuarioActual, ofa)
+ ' End If
+ 'End If
End If
End If
End If
@@ -1162,9 +1162,9 @@ Namespace Modelos
End If
'ERROR DE NO TIMBRADO NC
- If Not IsNothing(ObjNC) AndAlso ObjNC.Count > 0 AndAlso Not SeTimbroNC Then
- MensajeAlert.AppendFormat("
La NC #{0} no se pudo timbrar. Por favor intentelo de nuevo a traves del boton Emitir.", CType(ObjNC(0), Modelos.Factura).SerieFolio)
- End If
+ 'If Not IsNothing(ObjNC) AndAlso ObjNC.Count > 0 AndAlso Not SeTimbroNC Then
+ ' MensajeAlert.AppendFormat("
La NC #{0} no se pudo timbrar. Por favor intentelo de nuevo a traves del boton Emitir.", CType(ObjNC(0), Modelos.Factura).SerieFolio)
+ 'End If
'NOTIFICACION DE SMS
Select Case EstatusSMS
@@ -1198,9 +1198,9 @@ Namespace Modelos
MensajeAlert.AppendFormat("
Movimiento de Almacén
", Me.Inv_CveMovimiento)
End If
- If TieneAnticipo AndAlso CveTipoAmortizacionAnticipo = 2 Then
- MensajeAlert.AppendFormat("
Se generó una Nota de crédito Folio: {0} amortizando el anticipo
", FacturaDevolucion.Folio)
- End If
+ 'If TieneAnticipo AndAlso CveTipoAmortizacionAnticipo = 2 Then
+ ' MensajeAlert.AppendFormat("
Se generó una Nota de crédito Folio: {0} amortizando el anticipo
", FacturaDevolucion.Folio)
+ 'End If
If SeTimbro AndAlso CveFacturacionAcarreo > 0 Then
MensajeAlert.AppendFormat("