Cambios BDH
This commit is contained in:
@@ -2225,6 +2225,7 @@ Namespace Modelos
|
|||||||
Select Case ConceptoContable
|
Select Case ConceptoContable
|
||||||
Case 1 'Cliente
|
Case 1 'Cliente
|
||||||
If Not ObjFactura.TipoDocto.Contiene("Egs", "Rem", "RNC") Then
|
If Not ObjFactura.TipoDocto.Contiene("Egs", "Rem", "RNC") Then
|
||||||
|
If ObjFactura.CveMoneda > 1 Then ConceptoContable = 291
|
||||||
importeMovimiento = (ObjFactura.Total - TotalOtrosConceptos) * ValorMultiplicador
|
importeMovimiento = (ObjFactura.Total - TotalOtrosConceptos) * ValorMultiplicador
|
||||||
importeMX = importeMovimiento * tipoCambio * Multiplicador
|
importeMX = importeMovimiento * tipoCambio * Multiplicador
|
||||||
FechaMovimiento = ObjFactura.FechaPago
|
FechaMovimiento = ObjFactura.FechaPago
|
||||||
@@ -3801,13 +3802,19 @@ Namespace Modelos
|
|||||||
If factura.TipoDocto = "Rem" AndAlso factura.ServicioDomicilio Then
|
If factura.TipoDocto = "Rem" AndAlso factura.ServicioDomicilio Then
|
||||||
Dim CveMovimientoSalida As Integer = GenerarMovimientoAlmacenServicioDomicilio(ObjInventario, factura, DtInventario, factura.CveAlmacenServicioDomicilio, 8, factura.CveMoneda, factura.CveVenta, "Modelos/SD1")
|
Dim CveMovimientoSalida As Integer = GenerarMovimientoAlmacenServicioDomicilio(ObjInventario, factura, DtInventario, factura.CveAlmacenServicioDomicilio, 8, factura.CveMoneda, factura.CveVenta, "Modelos/SD1")
|
||||||
If CveMovimientoSalida > 0 Then
|
If CveMovimientoSalida > 0 Then
|
||||||
|
|
||||||
If Not (GenerarMovimientoAlmacenServicioDomicilio(ObjInventario, factura, DtInventario, factura.CveAlmacenTraspasoDestino, 9, factura.CveMoneda, factura.CveVenta, "Modelos/SD1", CveMovimientoRelacionado:=CveMovimientoSalida) > 0) Then
|
If Not (GenerarMovimientoAlmacenServicioDomicilio(ObjInventario, factura, DtInventario, factura.CveAlmacenTraspasoDestino, 9, factura.CveMoneda, factura.CveVenta, "Modelos/SD1", CveMovimientoRelacionado:=CveMovimientoSalida) > 0) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If Not OcurrioError Then
|
||||||
|
If Not ObjInventario.ActualizarEsDevolucionVenta(factura.CveVenta, 2) Then
|
||||||
|
OcurrioError = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -4080,6 +4087,19 @@ Namespace Modelos
|
|||||||
If CveMovimientoInventario <= 0 Then
|
If CveMovimientoInventario <= 0 Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
ErrorList.Add("Ocurrió un error al agregar los Movimientos de salida al Inventario.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al agregar los Movimientos de salida al Inventario.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
|
Else
|
||||||
|
If CveMovimientoRelacionado > 0 Then
|
||||||
|
If ObjInventario.GetMovimientosDetalle(CveMovimientoRelacionado, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
|
For Each Dr As DataRow In ObjInventario.DtResultados.Rows
|
||||||
|
If Not ObjInventario.AddMovimientoDetalle(CveMovimientoInventario, Dr("Cantidad").ToString().ToDouble, Dr("CveUM").ToString().ToEntero(), Dr("CvePS").ToString().ToEntero(), Dr("PU").ToString().ToDecimal, CveAF:=Dr("CveAF").ToString().ToEntero(), Serie:=Dr("Serie").ToString(), CveMovimientoDetalleEntrada:=Dr("CveMovimientoDetalle").ToString().ToEntero(), CveVentaDetalle:=Dr("CveVentaDetalle").ToString().ToEntero(), FechaCaducidad:=If(CBool(Dr("AplicaCaducidad")), Dr("FechaCaducidad").ToString().ToDate, MinFecha), Lote:=If(CBool(Dr("AplicaLote")), Dr("Lote").ToString(), "-1"), CveSeccionAlmacen:=-3) Then
|
||||||
|
OcurrioError = True
|
||||||
|
ErrorList.Add("Ocurrió un Error al guardar los movimientos de entrada")
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
Dim Mensaje As String = ""
|
Dim Mensaje As String = ""
|
||||||
Dim i As Integer = 0
|
Dim i As Integer = 0
|
||||||
@@ -4140,6 +4160,7 @@ Namespace Modelos
|
|||||||
|
|
||||||
i = i + 1
|
i = i + 1
|
||||||
Next
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
'REGISTRO LA PREPOLIZA DE COSTO VS ALMACEN
|
'REGISTRO LA PREPOLIZA DE COSTO VS ALMACEN
|
||||||
If MovimientoPrePoliza AndAlso Not OcurrioError Then
|
If MovimientoPrePoliza AndAlso Not OcurrioError Then
|
||||||
|
|||||||
@@ -2935,9 +2935,11 @@ Public Class Timbrado
|
|||||||
|
|
||||||
comprobante.SubTotal = ObjCFDITimbre.Comprobante.Subtotal
|
comprobante.SubTotal = ObjCFDITimbre.Comprobante.Subtotal
|
||||||
If ObjCFDITimbre.Comprobante.TipoComprobante <> "P" Then
|
If ObjCFDITimbre.Comprobante.TipoComprobante <> "P" Then
|
||||||
|
If ObjCFDITimbre.Comprobante.Descuentos > 0 Then
|
||||||
comprobante.DescuentoSpecified = True
|
comprobante.DescuentoSpecified = True
|
||||||
comprobante.Descuento = ObjCFDITimbre.Comprobante.Descuentos
|
comprobante.Descuento = ObjCFDITimbre.Comprobante.Descuentos
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
comprobante.Moneda = ObjCFDITimbre.Comprobante.Moneda
|
comprobante.Moneda = ObjCFDITimbre.Comprobante.Moneda
|
||||||
comprobante.TipoCambio = ObjCFDITimbre.Comprobante.TipoCambio.ToDecimal
|
comprobante.TipoCambio = ObjCFDITimbre.Comprobante.TipoCambio.ToDecimal
|
||||||
comprobante.TipoCambioSpecified = If(ObjCFDITimbre.Comprobante.Moneda <> "XXX", True, False)
|
comprobante.TipoCambioSpecified = If(ObjCFDITimbre.Comprobante.Moneda <> "XXX", True, False)
|
||||||
@@ -3876,23 +3878,21 @@ Public Class Timbrado
|
|||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
|
If String.IsNullOrEmpty(resultadoTimbre.Detalle) Then
|
||||||
Dim Resultados = Newtonsoft.Json.Linq.JArray.Parse(resultadoTimbre.Detalle)
|
Dim Resultados = Newtonsoft.Json.Linq.JArray.Parse(resultadoTimbre.Detalle)
|
||||||
|
|
||||||
If Resultados.Count > 0 Then
|
If Resultados.Count > 0 Then
|
||||||
|
|
||||||
If resultadoTimbre.Descripcion.Contains("RFC del receptor no existe") Then
|
If resultadoTimbre.Descripcion.Contains("RFC del receptor no existe") Then
|
||||||
|
|
||||||
Retorno = $"El RFC { Resultados(0)("Value").ToString() } no existe en las bases de datos publicadas por el SAT, corrobore este dato con su cliente"
|
Retorno = $"El RFC { Resultados(0)("Value").ToString() } no existe en las bases de datos publicadas por el SAT, corrobore este dato con su cliente"
|
||||||
MensajeErrorCFDI = $"El RFC { Resultados(0)("Value").ToString() } no existe en las bases de datos publicadas por el SAT, corrobore este dato con su cliente"
|
MensajeErrorCFDI = $"El RFC { Resultados(0)("Value").ToString() } no existe en las bases de datos publicadas por el SAT, corrobore este dato con su cliente"
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
Retorno = Resultados(0)("Value").ToString()
|
Retorno = Resultados(0)("Value").ToString()
|
||||||
MensajeErrorCFDI = Resultados(0)("Value").ToString()
|
MensajeErrorCFDI = Resultados(0)("Value").ToString()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
Else
|
||||||
|
Retorno = resultadoTimbre.Detalle
|
||||||
|
MensajeErrorCFDI = resultadoTimbre.Detalle
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
Retorno = resultadoTimbre.Detalle
|
Retorno = resultadoTimbre.Detalle
|
||||||
MensajeErrorCFDI = resultadoTimbre.Detalle
|
MensajeErrorCFDI = resultadoTimbre.Detalle
|
||||||
|
|||||||
@@ -63,6 +63,8 @@ Public Class Usuario
|
|||||||
Public Property isLoginseted As Boolean = False
|
Public Property isLoginseted As Boolean = False
|
||||||
|
|
||||||
Public Property SesionBloqueada As Boolean = False
|
Public Property SesionBloqueada As Boolean = False
|
||||||
|
Public Property ErrorDesbloqueo As Boolean = False
|
||||||
|
Public Property MsgErrorDesbloqueo As String = ""
|
||||||
|
|
||||||
Public ReadOnly Property FechaActualCliente As DateTime
|
Public ReadOnly Property FechaActualCliente As DateTime
|
||||||
Get
|
Get
|
||||||
|
|||||||
@@ -4575,6 +4575,7 @@ Partial Class PopUpVerFactura
|
|||||||
|
|
||||||
Dim ModeloAuto As String = RowAjuste("ModeloAuto").ToString
|
Dim ModeloAuto As String = RowAjuste("ModeloAuto").ToString
|
||||||
Dim MarcaAuto As String = RowAjuste("MarcaAuto").ToString
|
Dim MarcaAuto As String = RowAjuste("MarcaAuto").ToString
|
||||||
|
Dim CodigoTD As String = RowAjuste("CodigoTD").ToString
|
||||||
|
|
||||||
Dim MarcaPS As String = ""
|
Dim MarcaPS As String = ""
|
||||||
Dim CveMarca As Integer = -1
|
Dim CveMarca As Integer = -1
|
||||||
@@ -4687,6 +4688,7 @@ Partial Class PopUpVerFactura
|
|||||||
|
|
||||||
params.Add(New ReportParameter("Anio", Año))
|
params.Add(New ReportParameter("Anio", Año))
|
||||||
params.Add(New ReportParameter("Comprobante", Comprobante))
|
params.Add(New ReportParameter("Comprobante", Comprobante))
|
||||||
|
params.Add(New ReportParameter("CodigoTD", CodigoTD))
|
||||||
|
|
||||||
If Imagen.Exists Then
|
If Imagen.Exists Then
|
||||||
params.Add(New ReportParameter("LogoPath", logouri))
|
params.Add(New ReportParameter("LogoPath", logouri))
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
TipoPlantilla = 0
|
TipoPlantilla = -1
|
||||||
If IfNull(Request("Tipo"), "").ToString = "Ing" Then
|
If IfNull(Request("Tipo"), "").ToString = "Ing" Then
|
||||||
TipoPlantilla = 1
|
TipoPlantilla = 1
|
||||||
LblEncabezado.Text = "Otros Ingresos"
|
LblEncabezado.Text = "Otros Ingresos"
|
||||||
|
|||||||
@@ -902,7 +902,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox2</rd:DefaultName>
|
<rd:DefaultName>Textbox2</rd:DefaultName>
|
||||||
<Top>1.78486in</Top>
|
<Top>1.98486in</Top>
|
||||||
<Left>0.38625in</Left>
|
<Left>0.38625in</Left>
|
||||||
<Height>0.17014in</Height>
|
<Height>0.17014in</Height>
|
||||||
<Width>3.4167in</Width>
|
<Width>3.4167in</Width>
|
||||||
@@ -941,7 +941,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>1.955in</Top>
|
<Top>2.155in</Top>
|
||||||
<Left>0.38622in</Left>
|
<Left>0.38622in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>1.00005in</Width>
|
<Width>1.00005in</Width>
|
||||||
@@ -989,7 +989,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>1.955in</Top>
|
<Top>2.155in</Top>
|
||||||
<Left>2.56338in</Left>
|
<Left>2.56338in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>1.23952in</Width>
|
<Width>1.23952in</Width>
|
||||||
@@ -1037,7 +1037,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>1.955in</Top>
|
<Top>2.155in</Top>
|
||||||
<Left>1.37238in</Left>
|
<Left>1.37238in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>1.19096in</Width>
|
<Width>1.19096in</Width>
|
||||||
@@ -1074,7 +1074,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.28139in</Top>
|
<Top>2.48139in</Top>
|
||||||
<Left>0.38623in</Left>
|
<Left>0.38623in</Left>
|
||||||
<Height>0.19445in</Height>
|
<Height>0.19445in</Height>
|
||||||
<Width>1.00004in</Width>
|
<Width>1.00004in</Width>
|
||||||
@@ -1113,7 +1113,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.28139in</Top>
|
<Top>2.48139in</Top>
|
||||||
<Left>2.56332in</Left>
|
<Left>2.56332in</Left>
|
||||||
<Height>0.19445in</Height>
|
<Height>0.19445in</Height>
|
||||||
<Width>1.23961in</Width>
|
<Width>1.23961in</Width>
|
||||||
@@ -1152,7 +1152,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.28139in</Top>
|
<Top>2.48139in</Top>
|
||||||
<Left>1.38627in</Left>
|
<Left>1.38627in</Left>
|
||||||
<Height>0.18056in</Height>
|
<Height>0.18056in</Height>
|
||||||
<Width>1.17707in</Width>
|
<Width>1.17707in</Width>
|
||||||
@@ -1186,7 +1186,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.46611in</Top>
|
<Top>2.66611in</Top>
|
||||||
<Left>0.38623in</Left>
|
<Left>0.38623in</Left>
|
||||||
<Height>0.16667in</Height>
|
<Height>0.16667in</Height>
|
||||||
<Width>1.39934in</Width>
|
<Width>1.39934in</Width>
|
||||||
@@ -1226,7 +1226,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.46611in</Top>
|
<Top>2.66611in</Top>
|
||||||
<Left>2.76123in</Left>
|
<Left>2.76123in</Left>
|
||||||
<Height>0.16667in</Height>
|
<Height>0.16667in</Height>
|
||||||
<Width>1.04174in</Width>
|
<Width>1.04174in</Width>
|
||||||
@@ -1270,7 +1270,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.46611in</Top>
|
<Top>2.66611in</Top>
|
||||||
<Left>1.78557in</Left>
|
<Left>1.78557in</Left>
|
||||||
<Height>0.16667in</Height>
|
<Height>0.16667in</Height>
|
||||||
<Width>0.97566in</Width>
|
<Width>0.97566in</Width>
|
||||||
@@ -1310,7 +1310,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox2</rd:DefaultName>
|
<rd:DefaultName>Textbox2</rd:DefaultName>
|
||||||
<Top>2.63278in</Top>
|
<Top>2.83278in</Top>
|
||||||
<Left>0.38627in</Left>
|
<Left>0.38627in</Left>
|
||||||
<Height>0.17014in</Height>
|
<Height>0.17014in</Height>
|
||||||
<Width>3.41668in</Width>
|
<Width>3.41668in</Width>
|
||||||
@@ -1345,7 +1345,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox2</rd:DefaultName>
|
<rd:DefaultName>Textbox2</rd:DefaultName>
|
||||||
<Top>2.80292in</Top>
|
<Top>3.00292in</Top>
|
||||||
<Left>0.38627in</Left>
|
<Left>0.38627in</Left>
|
||||||
<Height>0.17014in</Height>
|
<Height>0.17014in</Height>
|
||||||
<Width>3.41668in</Width>
|
<Width>3.41668in</Width>
|
||||||
@@ -1384,7 +1384,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.97306in</Top>
|
<Top>3.17306in</Top>
|
||||||
<Left>0.38623in</Left>
|
<Left>0.38623in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>1.00004in</Width>
|
<Width>1.00004in</Width>
|
||||||
@@ -1432,7 +1432,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.97306in</Top>
|
<Top>3.17306in</Top>
|
||||||
<Left>2.56334in</Left>
|
<Left>2.56334in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>1.23959in</Width>
|
<Width>1.23959in</Width>
|
||||||
@@ -1480,7 +1480,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.97306in</Top>
|
<Top>3.17306in</Top>
|
||||||
<Left>1.37238in</Left>
|
<Left>1.37238in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>1.19096in</Width>
|
<Width>1.19096in</Width>
|
||||||
@@ -1520,7 +1520,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox2</rd:DefaultName>
|
<rd:DefaultName>Textbox2</rd:DefaultName>
|
||||||
<Top>3.12445in</Top>
|
<Top>3.32445in</Top>
|
||||||
<Left>0.3862in</Left>
|
<Left>0.3862in</Left>
|
||||||
<Height>0.17014in</Height>
|
<Height>0.17014in</Height>
|
||||||
<Width>3.4167in</Width>
|
<Width>3.4167in</Width>
|
||||||
@@ -1559,7 +1559,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>3.29598in</Top>
|
<Top>3.49598in</Top>
|
||||||
<Left>0.3862in</Left>
|
<Left>0.3862in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>3.41668in</Width>
|
<Width>3.41668in</Width>
|
||||||
@@ -1606,7 +1606,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>3.45987in</Top>
|
<Top>3.65987in</Top>
|
||||||
<Left>0.38618in</Left>
|
<Left>0.38618in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>3.41668in</Width>
|
<Width>3.41668in</Width>
|
||||||
@@ -1653,7 +1653,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>3.62376in</Top>
|
<Top>3.82376in</Top>
|
||||||
<Left>0.38616in</Left>
|
<Left>0.38616in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>2.17718in</Width>
|
<Width>2.17718in</Width>
|
||||||
@@ -1701,7 +1701,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>3.62376in</Top>
|
<Top>3.82376in</Top>
|
||||||
<Left>2.56338in</Left>
|
<Left>2.56338in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>1.23948in</Width>
|
<Width>1.23948in</Width>
|
||||||
@@ -1742,7 +1742,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox43</rd:DefaultName>
|
<rd:DefaultName>Textbox43</rd:DefaultName>
|
||||||
<Top>3.78765in</Top>
|
<Top>3.98765in</Top>
|
||||||
<Left>0.38627in</Left>
|
<Left>0.38627in</Left>
|
||||||
<Height>1.11934in</Height>
|
<Height>1.11934in</Height>
|
||||||
<Width>3.4167in</Width>
|
<Width>3.4167in</Width>
|
||||||
@@ -1784,7 +1784,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox45</rd:DefaultName>
|
<rd:DefaultName>Textbox45</rd:DefaultName>
|
||||||
<Top>3.84321in</Top>
|
<Top>4.04321in</Top>
|
||||||
<Left>0.79462in</Left>
|
<Left>0.79462in</Left>
|
||||||
<Height>0.38542in</Height>
|
<Height>0.38542in</Height>
|
||||||
<Width>2.70151in</Width>
|
<Width>2.70151in</Width>
|
||||||
@@ -1800,7 +1800,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
<Line Name="Line1">
|
<Line Name="Line1">
|
||||||
<Top>4.64324in</Top>
|
<Top>4.84324in</Top>
|
||||||
<Left>0.65712in</Left>
|
<Left>0.65712in</Left>
|
||||||
<Height>0in</Height>
|
<Height>0in</Height>
|
||||||
<Width>1.26042in</Width>
|
<Width>1.26042in</Width>
|
||||||
@@ -1812,7 +1812,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Line>
|
</Line>
|
||||||
<Line Name="Line2">
|
<Line Name="Line2">
|
||||||
<Top>4.64324in</Top>
|
<Top>4.84324in</Top>
|
||||||
<Left>2.24046in</Left>
|
<Left>2.24046in</Left>
|
||||||
<Height>0in</Height>
|
<Height>0in</Height>
|
||||||
<Width>1.25567in</Width>
|
<Width>1.25567in</Width>
|
||||||
@@ -1840,7 +1840,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox46</rd:DefaultName>
|
<rd:DefaultName>Textbox46</rd:DefaultName>
|
||||||
<Top>4.65851in</Top>
|
<Top>4.85851in</Top>
|
||||||
<Left>1.11409in</Left>
|
<Left>1.11409in</Left>
|
||||||
<Height>0.16667in</Height>
|
<Height>0.16667in</Height>
|
||||||
<Width>0.34028in</Width>
|
<Width>0.34028in</Width>
|
||||||
@@ -1872,7 +1872,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox46</rd:DefaultName>
|
<rd:DefaultName>Textbox46</rd:DefaultName>
|
||||||
<Top>4.67102in</Top>
|
<Top>4.87102in</Top>
|
||||||
<Left>2.34254in</Left>
|
<Left>2.34254in</Left>
|
||||||
<Height>0.16667in</Height>
|
<Height>0.16667in</Height>
|
||||||
<Width>1.03692in</Width>
|
<Width>1.03692in</Width>
|
||||||
@@ -1907,7 +1907,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox46</rd:DefaultName>
|
<rd:DefaultName>Textbox46</rd:DefaultName>
|
||||||
<Top>4.47171in</Top>
|
<Top>4.67171in</Top>
|
||||||
<Left>0.65712in</Left>
|
<Left>0.65712in</Left>
|
||||||
<Height>0.15625in</Height>
|
<Height>0.15625in</Height>
|
||||||
<Width>1.26042in</Width>
|
<Width>1.26042in</Width>
|
||||||
@@ -1944,7 +1944,7 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>2.12028in</Top>
|
<Top>2.32028in</Top>
|
||||||
<Left>0.38616in</Left>
|
<Left>0.38616in</Left>
|
||||||
<Height>0.16389in</Height>
|
<Height>0.16389in</Height>
|
||||||
<Width>3.4167in</Width>
|
<Width>3.4167in</Width>
|
||||||
@@ -1975,8 +1975,52 @@
|
|||||||
<PaddingBottom>2pt</PaddingBottom>
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
|
<Textbox Name="Textbox44">
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Código Defecto:</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>7pt</FontSize>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Parameters!CodigoTD.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>7pt</FontSize>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style />
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
|
<Top>1.81541in</Top>
|
||||||
|
<Left>0.38629in</Left>
|
||||||
|
<Height>0.16389in</Height>
|
||||||
|
<Width>3.41657in</Width>
|
||||||
|
<ZIndex>48</ZIndex>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Style>None</Style>
|
||||||
|
</Border>
|
||||||
|
<LeftBorder>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</LeftBorder>
|
||||||
|
<RightBorder>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</RightBorder>
|
||||||
|
<VerticalAlign>Middle</VerticalAlign>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
</ReportItems>
|
</ReportItems>
|
||||||
<Height>5.0181in</Height>
|
<Height>5.21602in</Height>
|
||||||
<Style />
|
<Style />
|
||||||
</Body>
|
</Body>
|
||||||
<Width>4.09251in</Width>
|
<Width>4.09251in</Width>
|
||||||
@@ -2203,6 +2247,12 @@
|
|||||||
<AllowBlank>true</AllowBlank>
|
<AllowBlank>true</AllowBlank>
|
||||||
<Prompt>ReportParameter1</Prompt>
|
<Prompt>ReportParameter1</Prompt>
|
||||||
</ReportParameter>
|
</ReportParameter>
|
||||||
|
<ReportParameter Name="CodigoTD">
|
||||||
|
<DataType>String</DataType>
|
||||||
|
<Nullable>true</Nullable>
|
||||||
|
<AllowBlank>true</AllowBlank>
|
||||||
|
<Prompt>ReportParameter1</Prompt>
|
||||||
|
</ReportParameter>
|
||||||
</ReportParameters>
|
</ReportParameters>
|
||||||
<Language>Es-MX</Language>
|
<Language>Es-MX</Language>
|
||||||
<rd:ReportUnitType>Inch</rd:ReportUnitType>
|
<rd:ReportUnitType>Inch</rd:ReportUnitType>
|
||||||
|
|||||||
@@ -337,25 +337,39 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="DivAjuste" runat="server" visible="false" class="col-md-6">
|
<div id="DivAjuste" runat="server" visible="false" class="col-md-6">
|
||||||
<div id="DivAjusteFormulario" runat="server" class="portlet light xspadding bordered">
|
<asp:UpdatePanel ID="UpAjuste" runat="server" class="portlet light xspadding bordered" UpdateMode="Conditional">
|
||||||
<asp:UpdatePanel ID="UpAjuste" runat="server" class="portlet-body form" UpdateMode="Conditional">
|
<Triggers>
|
||||||
|
<asp:PostBackTrigger ControlID="BtnPDFHistorial" />
|
||||||
|
</Triggers>
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
<span class="caption-subject bold uppercase">Ajuste</span>
|
<span class="caption-subject bold uppercase">Ajuste</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<asp:LinkButton ID="BtnPDFHistorial" OnClick="BtnPDFHistorial_Click" runat="server" data-toggle="tooltip" Title="PDF"><i class="fa fa-file-pdf-o" style="font-size:15px; font-weight:bold; color:dimgray;"></i></asp:LinkButton>
|
||||||
|
<a href="javascript;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body form">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlMarcaPSAjuste" CssClass="form-control input-sm select2me" runat="server" DataTextField="Marca" DataValueField="CveMarca" Width="100%" OnSelectedIndexChanged="DdlMarcaPSAjuste_SelectedIndexChanged" AutoPostBack="true">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione la Marca (Todas)" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<label for="<%= DdlMarcaPSAjuste.ClientID.ToString()%>">Marca:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<ADS:Dropdownlost ID="DdlPSAjuste" CssStyle="width: 100%;" CssClass=" form-control input-sm ddlps" data-metodo="getps" IncluyeTodos="false" CssClassDdl="select2me form-control" runat="server" causesvalidation="true" DataTextField="pscodigo" DataValueField="cveps" Onselectedindexchange="ddlpsajuste_selectedindexchange"></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DdlPSAjuste" CssStyle="width: 100%;" CssClass=" form-control input-sm ddlps" data-metodo="getps" IncluyeTodos="false" CssClassDdl="select2me form-control" runat="server" causesvalidation="true" DataTextField="pscodigo" DataValueField="cveps" Onselectedindexchange="ddlpsajuste_selectedindexchange"></ADS:Dropdownlost>
|
||||||
<asp:HiddenField ID="HdnPSAjusteMarca" ClientIDMode="Static" runat="server" Value="-1" />
|
<asp:HiddenField ID="HdnPSAjusteMarca" ClientIDMode="Static" runat="server" Value="-1" />
|
||||||
<asp:HiddenField ID="HdnPSAjusteClasificacion" ClientIDMode="Static" runat="server" Value="-1" />
|
<asp:HiddenField ID="HdnPSAjusteClasificacion" ClientIDMode="Static" runat="server" Value="-1" />
|
||||||
<label for="<%= DdlPSAjuste.ClientID.ToString()%>">producto/servicio a recibir:</label>
|
<label for="<%= DdlPSAjuste.ClientID.ToString()%>">Producto/Servicio a Recibir:</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
@@ -470,7 +484,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList ID="DdlTipoDefecto" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="TipoDefecto" DataValueField="CveTipoDefecto" Width="100%" AutoPostBack="true">
|
<asp:DropDownList ID="DdlTipoDefecto" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="TipoDefecto" DataValueField="CveTipoDefecto" Width="100%" AutoPostBack="true" OnSelectedIndexChanged="DdlTipoDefecto_SelectedIndexChanged">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:RequiredFieldValidator ID="RFVTipoDefecto" runat="server" ControlToValidate="DdlTipoDefecto" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Defecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAjuste"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVTipoDefecto" runat="server" ControlToValidate="DdlTipoDefecto" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Defecto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAjuste"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCETipoDefecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoDefecto"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCETipoDefecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoDefecto"></ajax:ValidatorCalloutExtender>
|
||||||
@@ -523,7 +537,6 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<%--INVENTARIO INICIAL--%>
|
<%--INVENTARIO INICIAL--%>
|
||||||
|
|||||||
@@ -392,6 +392,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
CargaTamaños()
|
CargaTamaños()
|
||||||
|
CargaMarcasFiltro()
|
||||||
'DdlProducto2.setEsWebService(True)
|
'DdlProducto2.setEsWebService(True)
|
||||||
'DdlProducto2.Attributes.Add("data-metodo", "getpsusados")
|
'DdlProducto2.Attributes.Add("data-metodo", "getpsusados")
|
||||||
End Sub
|
End Sub
|
||||||
@@ -3102,6 +3103,164 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
InicializaClientes(ChkClientesTodos.Checked)
|
InicializaClientes(ChkClientesTodos.Checked)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub DdlTipoDefecto_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DdlTipoDefecto.SelectedIndexChanged
|
||||||
|
If DdlTipoDefecto.SelectedValue.ToEntero = 17 Then
|
||||||
|
DivCodigoTD.Visible = True
|
||||||
|
DdlTipoDefecto.Width = New Unit(140%)
|
||||||
|
Else
|
||||||
|
DivCodigoTD.Visible = False
|
||||||
|
DdlTipoDefecto.Width = New Unit(200%)
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
Protected Sub DdlMarcaPSAjuste_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
|
CargaPSAjuste(-1, DdlPSAjuste, CveMarca:=DdlMarcaPSAjuste.SelectedValue.ToEntero())
|
||||||
|
UpAjuste.Update()
|
||||||
|
End Sub
|
||||||
|
Private Sub CargaPSAjuste(CveClasificacion As Integer, Objeto As ADServerControl.Dropdownlost, Optional AplicaAlmacen As Boolean = True, Optional CveMarca As Integer = -1)
|
||||||
|
Objeto.setEsWebService(UsuarioActual.Empresa.Funcionalidad(141).ToString = "1")
|
||||||
|
If Not UsuarioActual.Empresa.Funcionalidad(141).ToString = "1" Then
|
||||||
|
Objeto.ddl.Items.Clear()
|
||||||
|
Objeto.ddl.DataSource = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CveClasificacion:=CveClasificacion, Estatus:=1, AplicaParaVenta:=1)
|
||||||
|
Objeto.ddl.DataBind()
|
||||||
|
Objeto.ddl.Items.Insert(0, New ListItem("*** Actualizar listado de Productos o Servicios ***", "-2"))
|
||||||
|
Objeto.ddl.Items.Insert(0, New ListItem("Seleccione el Producto", "-1"))
|
||||||
|
Else
|
||||||
|
Dim CveSubProyecto = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveSubProyecto", $"CveAlmacen={DdlAlmacen.SelectedValue}")
|
||||||
|
|
||||||
|
Objeto.Attributes.Add("data-cvesubproyecto", CveSubProyecto)
|
||||||
|
'Objeto.ddlWS.Attributes.Add("data-cveclasificacion", CveClasificacion.ToString)
|
||||||
|
Objeto.ddlWS.Attributes.Add("data-cveclasificacion", "-1")
|
||||||
|
Objeto.ddlWS.Attributes.Add("data-aplicaparaventa", "1")
|
||||||
|
|
||||||
|
If AplicaAlmacen Then
|
||||||
|
Objeto.ddlWS.Attributes.Add("data-pagina", "ventas/ventas")
|
||||||
|
Else
|
||||||
|
Objeto.ddlWS.Attributes.Add("data-pagina", "-1")
|
||||||
|
End If
|
||||||
|
Objeto.ddlWS.Attributes.Add("data-aplicaparaventa", "1")
|
||||||
|
Objeto.ddlWS.Attributes.Add("data-cvemarca", CveMarca.ToString)
|
||||||
|
Objeto.ddlWS.Attributes.Add("data-Estatus", "1")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Protected Sub BtnPDFHistorial_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
Dim ObjPS As New ClsProductosServicios
|
||||||
|
Dim MarcaPS As String = ""
|
||||||
|
If ObjPS.GetPS(DdlPSAjuste.SelectedValue.ToEntero, -1, UsuarioActual.CveEmpresa) Then
|
||||||
|
MarcaPS = ObjPS.DtResultados.FiltroPrimeroValor("Marca", String.Format("CvePS = {0}", DdlPSAjuste.SelectedValue.ToEntero))
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
|
Dim logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)
|
||||||
|
Dim DtDatos As New DataTable
|
||||||
|
|
||||||
|
Dim params As New List(Of ReportParameter)
|
||||||
|
|
||||||
|
|
||||||
|
'Informacion Distribuidor
|
||||||
|
If (DdlClientes.SelectedValue.ToEntero > 0) Then
|
||||||
|
|
||||||
|
Dim DatosClienteSeleccionado As DataRow = GlobalDTCliente(UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveCliente = {0}", DdlClientes.SelectedValue))
|
||||||
|
Dim CiudadEstado As String = ""
|
||||||
|
Dim Telefono As String = ""
|
||||||
|
Dim Nombre As String = ""
|
||||||
|
|
||||||
|
If DatosClienteSeleccionado IsNot Nothing Then
|
||||||
|
CiudadEstado = String.Format("{0}, {1}", DatosClienteSeleccionado("Ciudad"), DatosClienteSeleccionado("Estado"))
|
||||||
|
Telefono = DatosClienteSeleccionado("Telefono").ToString
|
||||||
|
Nombre = DatosClienteSeleccionado("Nombre").ToString
|
||||||
|
End If
|
||||||
|
|
||||||
|
params.Add(New ReportParameter("NombreDistribuidor", Nombre))
|
||||||
|
params.Add(New ReportParameter("CiudadEstado", CiudadEstado))
|
||||||
|
params.Add(New ReportParameter("TelCliente", Telefono))
|
||||||
|
|
||||||
|
End If
|
||||||
|
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||||
|
params.Add(New ReportParameter("Consec", TxtConsecutivoAjuste.Text.Trim))
|
||||||
|
params.Add(New ReportParameter("FolioAcuse", If(DdlFolioGarantia.SelectedValue.ToEntero = -1, "", DdlFolioGarantia.SelectedItem.Text)))
|
||||||
|
|
||||||
|
'Informacion de Garantia o ajuste
|
||||||
|
params.Add(New ReportParameter("FechaInst", TxtFechaAjuste.Text.Trim))
|
||||||
|
params.Add(New ReportParameter("Fecha", Now.ToShortDateString))
|
||||||
|
params.Add(New ReportParameter("Defecto", If(DdlTipoDefecto.SelectedValue.ToEntero = -1, "", DdlTipoDefecto.SelectedItem.Text)))
|
||||||
|
params.Add(New ReportParameter("MesesUso", TxtMesesUso.Text.Trim))
|
||||||
|
params.Add(New ReportParameter("PorcentajeAjuste", TxtPorcentajeAjuste.Text.Trim))
|
||||||
|
|
||||||
|
'Informacion Acumulador
|
||||||
|
params.Add(New ReportParameter("CodEnsamble", TxtCodEnsamble.Text.Trim))
|
||||||
|
params.Add(New ReportParameter("CodLinea", TxtCodLinea.Text.Trim))
|
||||||
|
params.Add(New ReportParameter("CodInspeccion", TxtCodInspeccion.Text.Trim))
|
||||||
|
params.Add(New ReportParameter("Tipo", DdlBCIAjuste.SelectedItem.Text))
|
||||||
|
params.Add(New ReportParameter("Marca", MarcaPS))
|
||||||
|
params.Add(New ReportParameter("Etiqueta", TxtEtiqueta.Text))
|
||||||
|
|
||||||
|
'Informacion Vehiculo
|
||||||
|
params.Add(New ReportParameter("MarcaAuto", ""))
|
||||||
|
params.Add(New ReportParameter("TipoAuto", ""))
|
||||||
|
|
||||||
|
'Informacion Consumidor
|
||||||
|
'Informacion Distribuidor
|
||||||
|
'If (CveCliente > 0) Then
|
||||||
|
|
||||||
|
' Dim DatosClienteSeleccionado As DataRow = GlobalDTCliente(UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveCliente = {0}", DdlDistribuidor.SelectedValue.ToEntero))
|
||||||
|
' Dim Nombre As String = ""
|
||||||
|
' Dim Ciudad As String = ""
|
||||||
|
' Dim Estado As String = ""
|
||||||
|
' Dim Direccion As String = ""
|
||||||
|
' Dim Telefono As String = ""
|
||||||
|
|
||||||
|
' If DatosClienteSeleccionado IsNot Nothing Then
|
||||||
|
' Nombre = DatosClienteSeleccionado("Nombre").ToString
|
||||||
|
' Ciudad = DatosClienteSeleccionado("Ciudad").ToString
|
||||||
|
' Estado = DatosClienteSeleccionado("Estado").ToString
|
||||||
|
' Direccion = DatosClienteSeleccionado("Direccion").ToString
|
||||||
|
' Telefono = DatosClienteSeleccionado("Telefono").ToString
|
||||||
|
' End If
|
||||||
|
|
||||||
|
' params.Add(New ReportParameter("NombreCliente", Nombre))
|
||||||
|
' params.Add(New ReportParameter("Direccion", Direccion))
|
||||||
|
' params.Add(New ReportParameter("CiudadEstadoConsumidor", String.Format("{0}, {1}", Ciudad, Estado)))
|
||||||
|
' params.Add(New ReportParameter("TelConsumidor", Telefono))
|
||||||
|
'End If
|
||||||
|
|
||||||
|
|
||||||
|
params.Add(New ReportParameter("NombreCliente", ""))
|
||||||
|
params.Add(New ReportParameter("Direccion", ""))
|
||||||
|
params.Add(New ReportParameter("CiudadEstadoConsumidor", ""))
|
||||||
|
params.Add(New ReportParameter("TelConsumidor", ""))
|
||||||
|
|
||||||
|
If Imagen.Exists Then
|
||||||
|
params.Add(New ReportParameter("LogoPath", logouri))
|
||||||
|
Else
|
||||||
|
params.Add(New ReportParameter("LogoPath", ""))
|
||||||
|
End If
|
||||||
|
|
||||||
|
params.Add(New ReportParameter("Anio", ""))
|
||||||
|
params.Add(New ReportParameter("Comprobante", TxtPoliza.Text))
|
||||||
|
params.Add(New ReportParameter("CodigoTD", TxtCodigoTD.Text))
|
||||||
|
|
||||||
|
ImprimirPDF("Empresas/Grales/Formatos/Ajuste.rdlc", DtDatos, params, "Reporte de Ajuste", "PDF")
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CargaMarcasFiltro()
|
||||||
|
|
||||||
|
Using ObjMarcas As New ClsProductosServicios
|
||||||
|
If ObjMarcas.GetMarcas(UsuarioActual.CveEmpresa) Then
|
||||||
|
DdlMarcaPSAjuste.DataSource = ObjMarcas.DtResultados
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
DdlMarcaPSAjuste.DataBind()
|
||||||
|
|
||||||
|
DdlMarcaPSAjuste.Items.Insert(0, New ListItem("Todas", "-1"))
|
||||||
|
|
||||||
|
UpAjuste.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
Partial Class MFolioGarantiaMensaje
|
Partial Class MFolioGarantiaMensaje
|
||||||
Public Property CvePS As Integer
|
Public Property CvePS As Integer
|
||||||
Public Property CveClasificacionPS As Integer
|
Public Property CveClasificacionPS As Integer
|
||||||
|
|||||||
@@ -837,11 +837,11 @@
|
|||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr align="right">
|
<tr align="right">
|
||||||
<td><b>Total:</b></td>
|
<td><b style="font-size:18px">Total:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:TextBox ID="TxtTotal" runat="server" ClientIDMode="Static" BorderStyle="None" Style="text-align: right; font-weight: bold" Text="0.00" Width="78px" ReadOnly="true"></asp:TextBox>
|
<asp:TextBox ID="TxtTotal" runat="server" ClientIDMode="Static" BorderStyle="None" Style="text-align: right; font-weight: bold; font-size:18px" Text="0.00" Width="78px" ReadOnly="true"></asp:TextBox>
|
||||||
<asp:HiddenField ID="HdnVentaSaldo" runat="server" ClientIDMode="Static" Value="0" />
|
<asp:HiddenField ID="HdnVentaSaldo" runat="server" ClientIDMode="Static" Value="0" />
|
||||||
<asp:HiddenField ID="HdnTotalVenta" runat="server" ClientIDMode="Static" Value="0" />
|
<asp:HiddenField ID="HdnTotalVenta" runat="server" ClientIDMode="Static" Value="0" />
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -2878,6 +2878,7 @@
|
|||||||
<a href="javascript;" class="collapse" data-original-title="" title=""></a>
|
<a href="javascript;" class="collapse" data-original-title="" title=""></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="portlet-body">
|
||||||
<div class="row" style="display: none;">
|
<div class="row" style="display: none;">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
@@ -2899,7 +2900,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList ID="DdlMarcaPSAjuste" CssClass="form-control input-sm select2me" runat="server" DataTextField="Marca" DataValueField="CveMarca" Width="100%" OnSelectedIndexChanged="DdlMarcaPS_SelectedIndexChanged" AutoPostBack="true">
|
<asp:DropDownList ID="DdlMarcaPSAjuste" CssClass="form-control input-sm select2me" runat="server" DataTextField="Marca" DataValueField="CveMarca" Width="100%" OnSelectedIndexChanged="DdlMarcaPSAjuste_SelectedIndexChanged" AutoPostBack="true">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione la Marca (Todas)" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione la Marca (Todas)" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<label for="<%= DdlMarcaPSAjuste.ClientID.ToString()%>">Marca:</label>
|
<label for="<%= DdlMarcaPSAjuste.ClientID.ToString()%>">Marca:</label>
|
||||||
@@ -3089,6 +3090,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1008,14 +1008,27 @@ Partial Class PV
|
|||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
'VERIFICAR SI LA SESION SE ENCUENTRA BLOQUEADA
|
||||||
If UsuarioActual.Empresa.Funcionalidad(599) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(599) = "1" Then
|
||||||
Dim DrUsuario As DataRow = GlobalDTUsuarios(CveUsuario:=UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa).Rows(0)
|
Dim DrUsuario As DataRow = GlobalDTUsuarios(CveUsuario:=UsuarioActual.CveUsuario, CveEmpresa:=UsuarioActual.CveEmpresa).Rows(0)
|
||||||
|
|
||||||
If DrUsuario("CodigoAcceso").ToString() <> "" Then
|
If DrUsuario("CodigoAcceso").ToString() <> "" Then
|
||||||
If UsuarioActual.SesionBloqueada Then
|
If UsuarioActual.SesionBloqueada Then
|
||||||
DivBloqueo.Visible = False
|
DivBloqueo.Visible = False
|
||||||
TxtCodigoAcceso.Focus()
|
Dim strScript As New StringBuilder
|
||||||
RegistraScript("window.onload = function MuestraBloqueo() { document.getElementById(""C_BtnShowBloqueo"").click(); setTimeout(function(){ $('#C_TxtCodigoAcceso').focus(); }, 1000); }")
|
strScript.Append("window.onload = function MuestraBloqueo() { document.getElementById(""C_BtnShowBloqueo"").click(); setTimeout(function(){ $('#C_TxtCodigoAcceso').focus(); ")
|
||||||
|
'If UsuarioActual.ErrorDesbloqueo Then
|
||||||
|
'strScript.AppendFormat("alert('{0}');", UsuarioActual.MsgErrorDesbloqueo)
|
||||||
|
'End If
|
||||||
|
strScript.Append("}, 500); }")
|
||||||
|
RegistraScript(strScript.ToString())
|
||||||
|
|
||||||
|
UsuarioActual.SesionBloqueada = True
|
||||||
|
'UsuarioActual.ErrorDesbloqueo = False
|
||||||
|
'UsuarioActual.MsgErrorDesbloqueo = ""
|
||||||
|
|
||||||
|
BtnEmitirImprimir.Visible = False
|
||||||
|
Exit Sub
|
||||||
Else
|
Else
|
||||||
DivBloqueo.Visible = True
|
DivBloqueo.Visible = True
|
||||||
End If
|
End If
|
||||||
@@ -7328,14 +7341,24 @@ Partial Class PV
|
|||||||
If (CveCliente > 0) Then
|
If (CveCliente > 0) Then
|
||||||
|
|
||||||
Dim DatosClienteSeleccionado As DataRow = GlobalDTCliente(UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveCliente = {0}", DdlDistribuidor.SelectedValue.ToEntero))
|
Dim DatosClienteSeleccionado As DataRow = GlobalDTCliente(UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveCliente = {0}", DdlDistribuidor.SelectedValue.ToEntero))
|
||||||
Dim Ciudad As String = DatosClienteSeleccionado.Item("Ciudad").ToString
|
Dim Nombre As String = ""
|
||||||
Dim Estado As String = DatosClienteSeleccionado.Item("Estado").ToString
|
Dim Ciudad As String = ""
|
||||||
|
Dim Estado As String = ""
|
||||||
|
Dim Direccion As String = ""
|
||||||
|
Dim Telefono As String = ""
|
||||||
|
|
||||||
params.Add(New ReportParameter("NombreCliente", LtlCliente.Text))
|
If DatosClienteSeleccionado IsNot Nothing Then
|
||||||
params.Add(New ReportParameter("Direccion", LblDireccion.Text))
|
Nombre = DatosClienteSeleccionado("Nombre").ToString
|
||||||
params.Add(New ReportParameter("CiudadEstadoConsumidor", String.Format("{0}, {1}", Ciudad.Trim, Estado)))
|
Ciudad = DatosClienteSeleccionado("Ciudad").ToString
|
||||||
params.Add(New ReportParameter("TelConsumidor", DatosClienteSeleccionado.Item("Telefono").ToString))
|
Estado = DatosClienteSeleccionado("Estado").ToString
|
||||||
|
Direccion = DatosClienteSeleccionado("Direccion").ToString
|
||||||
|
Telefono = DatosClienteSeleccionado("Telefono").ToString
|
||||||
|
End If
|
||||||
|
|
||||||
|
params.Add(New ReportParameter("NombreCliente", Nombre))
|
||||||
|
params.Add(New ReportParameter("Direccion", Direccion))
|
||||||
|
params.Add(New ReportParameter("CiudadEstadoConsumidor", String.Format("{0}, {1}", Ciudad, Estado)))
|
||||||
|
params.Add(New ReportParameter("TelConsumidor", Telefono))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Imagen.Exists Then
|
If Imagen.Exists Then
|
||||||
@@ -7346,7 +7369,7 @@ Partial Class PV
|
|||||||
|
|
||||||
params.Add(New ReportParameter("Anio", TxtAnioVehiculo.Text))
|
params.Add(New ReportParameter("Anio", TxtAnioVehiculo.Text))
|
||||||
params.Add(New ReportParameter("Comprobante", TxtComprobante.Text))
|
params.Add(New ReportParameter("Comprobante", TxtComprobante.Text))
|
||||||
|
params.Add(New ReportParameter("CodigoTD", TxtCodigoTD.Text))
|
||||||
|
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/Ajuste.rdlc", DtDatos, params, "Reporte de Ajuste", "PDF")
|
ImprimirPDF("Empresas/Grales/Formatos/Ajuste.rdlc", DtDatos, params, "Reporte de Ajuste", "PDF")
|
||||||
|
|
||||||
@@ -7421,11 +7444,20 @@ Partial Class PV
|
|||||||
End Sub
|
End Sub
|
||||||
Protected Sub DdlMarcaPSAjuste_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlMarcaPSAjuste_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
CargaPS(DdlClasificacion.SelectedValue.ToEntero(), DdlPSAjuste, CveMarca:=DdlMarcaPSAjuste.SelectedValue.ToEntero())
|
CargaPS(DdlClasificacion.SelectedValue.ToEntero(), DdlPSAjuste, CveMarca:=DdlMarcaPSAjuste.SelectedValue.ToEntero())
|
||||||
|
UpModalVenta.Update()
|
||||||
UpAjuste.Update()
|
UpAjuste.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub BtnCambiar_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnCambiar_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
'UsuarioActual.ErrorDesbloqueo = False
|
||||||
|
'UsuarioActual.MsgErrorDesbloqueo = ""
|
||||||
|
|
||||||
If String.IsNullOrEmpty(TxtCodigoAcceso.Text.Trim) Then
|
If String.IsNullOrEmpty(TxtCodigoAcceso.Text.Trim) Then
|
||||||
Alert("Es necesario un código de acceso", TipoMensaje.MsgAdvertencia)
|
UsuarioActual.SesionBloqueada = True
|
||||||
|
'UsuarioActual.ErrorDesbloqueo = True
|
||||||
|
'UsuarioActual.MsgErrorDesbloqueo = "Es necesario un código de acceso"
|
||||||
|
|
||||||
|
Response.Redirect($"~/Ventas/PV.aspx")
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -7494,7 +7526,11 @@ Partial Class PV
|
|||||||
|
|
||||||
Response.Redirect($"~/Ventas/PV.aspx")
|
Response.Redirect($"~/Ventas/PV.aspx")
|
||||||
Else
|
Else
|
||||||
Alert("No existe el código de acceso", TipoMensaje.MsgAdvertencia)
|
UsuarioActual.SesionBloqueada = True
|
||||||
|
'UsuarioActual.ErrorDesbloqueo = True
|
||||||
|
'UsuarioActual.MsgErrorDesbloqueo = "El código de acceso no es correcto"
|
||||||
|
|
||||||
|
Response.Redirect($"~/Ventas/PV.aspx")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2738,7 +2738,7 @@ Partial Class Ventas
|
|||||||
divProyectoPyME.Visible = DdlProyecto.Visible
|
divProyectoPyME.Visible = DdlProyecto.Visible
|
||||||
|
|
||||||
'MOSTRAR LA OPCION DE AGREGAR PS EN BDH
|
'MOSTRAR LA OPCION DE AGREGAR PS EN BDH
|
||||||
If UsuarioActual.CveEmpresa = 140 AndAlso CveVenta <= 0 Then
|
If UsuarioActual.Empresa.Funcionalidad(531) = "1" AndAlso CveVenta <= 0 Then
|
||||||
ImgOtrosConceptos.Visible = False
|
ImgOtrosConceptos.Visible = False
|
||||||
TrFormaEntrega.Visible = False
|
TrFormaEntrega.Visible = False
|
||||||
TabDetalleVentas.Visible = False
|
TabDetalleVentas.Visible = False
|
||||||
@@ -2855,6 +2855,19 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
LtlTareaNueva.Text = String.Format("<a class=""caption-subject bold font-green"" onclick=""OpenModalNewTareaUserControl(1,-1,{{CveVenta:{0}}});""> <i class=""fa fa-plus""></i> Tarea</a>", CveVenta)
|
LtlTareaNueva.Text = String.Format("<a class=""caption-subject bold font-green"" onclick=""OpenModalNewTareaUserControl(1,-1,{{CveVenta:{0}}});""> <i class=""fa fa-plus""></i> Tarea</a>", CveVenta)
|
||||||
|
|
||||||
|
'SI ESTA CARGANDO UNA REFACTURACION. VALIDAR QUE LA FACTURA ANTERIOR ESTE CANCELADA
|
||||||
|
If Me.ObjFacturaNC IsNot Nothing Then
|
||||||
|
|
||||||
|
If Me.CveDevolucion > 0 AndAlso Me.NuevaFactura = 1 Then
|
||||||
|
Dim TipoEstatus As Integer = GlobalDTEstatusFactura().FiltroPrimeroValor("TipoEstatus", $"CveEstatusFactura = {Me.ObjFacturaNC.CveEstatusFactura}").ToEntero()
|
||||||
|
If TipoEstatus <> 5 Then
|
||||||
|
Alert($"El documento de tipo '{Me.ObjFacturaNC.TipodeComprobante}' a refacturar no ha sido cancelado. Favor de verificar el documento", TipoMensaje.MsgAdvertencia)
|
||||||
|
BtnEmitirImprimir.Visible = False
|
||||||
|
UpFacturar.Update()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
''EN REALIDAD SE OCUPAN ESTAS COSAS DENTRO DEL POSTABCK ???
|
''EN REALIDAD SE OCUPAN ESTAS COSAS DENTRO DEL POSTABCK ???
|
||||||
@@ -2893,7 +2906,8 @@ Partial Class Ventas
|
|||||||
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(558) = "1" Then
|
||||||
BtnModalAddPS.Enabled = False
|
BtnModalAddPS.Enabled = False
|
||||||
End If
|
End If
|
||||||
MostrarOpcioensPaqueteria()
|
MostrarOpcionesPaqueteria()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub BloqueaClasificaciones()
|
Private Sub BloqueaClasificaciones()
|
||||||
If UsuarioActual.Empresa.Funcionalidad(558) = "1" AndAlso DdlTipoComprobante.SelectedValue = "Cot" Then
|
If UsuarioActual.Empresa.Funcionalidad(558) = "1" AndAlso DdlTipoComprobante.SelectedValue = "Cot" Then
|
||||||
@@ -6436,6 +6450,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
DdlNCFactura.SelectedValueExist(pCveVenta)
|
DdlNCFactura.SelectedValueExist(pCveVenta)
|
||||||
DdlNCFactura.Enabled = False
|
DdlNCFactura.Enabled = False
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
@@ -15771,15 +15786,21 @@ Partial Class Ventas
|
|||||||
If LblCliente.Text <> "Cliente" And Not EstatusCliente Then
|
If LblCliente.Text <> "Cliente" And Not EstatusCliente Then
|
||||||
Alert("El Cliente seleccionado no esta activo", TipoMensaje.MsgAdvertencia)
|
Alert("El Cliente seleccionado no esta activo", TipoMensaje.MsgAdvertencia)
|
||||||
End If
|
End If
|
||||||
|
If Not CveEmpresaCRM > 0 Then
|
||||||
BtnEmitirImprimir.Visible = EstatusCliente
|
BtnEmitirImprimir.Visible = EstatusCliente
|
||||||
TrVistaPrevia.Visible = EstatusCliente
|
TrVistaPrevia.Visible = EstatusCliente
|
||||||
|
Else
|
||||||
|
BtnEmitirImprimir.Visible = True
|
||||||
|
TrVistaPrevia.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DdlTipoComprobante.SelectedValue = "Ing" Then
|
If DdlTipoComprobante.SelectedValue = "Ing" Then
|
||||||
ImgAntiPend.Visible = True
|
ImgAntiPend.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
MostrarOpcioensPaqueteria()
|
MostrarOpcionesPaqueteria()
|
||||||
|
|
||||||
TrAtencionA.Visible = True
|
TrAtencionA.Visible = True
|
||||||
tdVigencia.Visible = DdlTipoComprobante.SelectedValue.Contiene("Cot")
|
tdVigencia.Visible = DdlTipoComprobante.SelectedValue.Contiene("Cot")
|
||||||
@@ -15975,9 +15996,22 @@ Partial Class Ventas
|
|||||||
TxtFolio.Text = DT.Rows(0)("FActual").ToString()
|
TxtFolio.Text = DT.Rows(0)("FActual").ToString()
|
||||||
|
|
||||||
If Not FacturarDocumentoNuevo Then
|
If Not FacturarDocumentoNuevo Then
|
||||||
|
If Not CveEmpresaCRM > 0 Then
|
||||||
BtnCrearApartirDe.Enabled = EstatusCliente
|
BtnCrearApartirDe.Enabled = EstatusCliente
|
||||||
BtnEmitirImprimir.Visible = EstatusCliente
|
BtnEmitirImprimir.Visible = EstatusCliente
|
||||||
TrVistaPrevia.Visible = EstatusCliente
|
TrVistaPrevia.Visible = EstatusCliente
|
||||||
|
Else
|
||||||
|
If TipoDoctoConsulta.Contiene("Ing", "Egs", "Ant", "Dev") Then
|
||||||
|
BtnCrearApartirDe.Enabled = EstatusCliente
|
||||||
|
BtnEmitirImprimir.Visible = EstatusCliente
|
||||||
|
TrVistaPrevia.Visible = EstatusCliente
|
||||||
|
Else
|
||||||
|
BtnCrearApartirDe.Enabled = True
|
||||||
|
BtnEmitirImprimir.Visible = True
|
||||||
|
TrVistaPrevia.Visible = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UpFacturar.Update()
|
UpFacturar.Update()
|
||||||
@@ -18033,6 +18067,7 @@ Partial Class Ventas
|
|||||||
Dim DtMovimientosDetalles As DataTable
|
Dim DtMovimientosDetalles As DataTable
|
||||||
DtRemConceptosSurtidos = Nothing
|
DtRemConceptosSurtidos = Nothing
|
||||||
|
|
||||||
|
Dim TieneMovimientosServicioDomicilio As Boolean = False
|
||||||
Dim TieneMovimientosSinCosto As Boolean = False
|
Dim TieneMovimientosSinCosto As Boolean = False
|
||||||
Dim TieneMovimientosContrato As Boolean = False
|
Dim TieneMovimientosContrato As Boolean = False
|
||||||
|
|
||||||
@@ -18070,6 +18105,8 @@ Partial Class Ventas
|
|||||||
If DtMovimientos.Rows.Count > 0 Then
|
If DtMovimientos.Rows.Count > 0 Then
|
||||||
Dim GeneroMovimientoAlmacen As Boolean = False
|
Dim GeneroMovimientoAlmacen As Boolean = False
|
||||||
|
|
||||||
|
TieneMovimientosServicioDomicilio = DtMovimientosDetalles.COUNT("CveTipoAlmacen", "CveTipoAlmacen=29") > 0
|
||||||
|
|
||||||
TieneMovimientosSinCosto = DtMovimientosDetalles.COUNT("CveTipoAlmacen", "CveTipoAlmacen=26") > 0
|
TieneMovimientosSinCosto = DtMovimientosDetalles.COUNT("CveTipoAlmacen", "CveTipoAlmacen=26") > 0
|
||||||
|
|
||||||
TieneMovimientosContrato = DtMovimientosDetalles.COUNT("CveTipoAlmacen", "CveTipoAlmacen IN (11)") > 0
|
TieneMovimientosContrato = DtMovimientosDetalles.COUNT("CveTipoAlmacen", "CveTipoAlmacen IN (11)") > 0
|
||||||
@@ -18093,7 +18130,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If RemisionesLista.Count > 0 Then
|
If RemisionesLista.Count > 0 Then
|
||||||
AplicaMovimientoDetalleEntrada = True
|
AplicaMovimientoDetalleEntrada = True
|
||||||
If TieneMovimientosSinCosto Then
|
If TieneMovimientosSinCosto OrElse TieneMovimientosServicioDomicilio Then
|
||||||
MovDetalle = DtMovimientosDetalles.FiltraParametros($"CveMovimiento = {dr("CveMovimiento")}")
|
MovDetalle = DtMovimientosDetalles.FiltraParametros($"CveMovimiento = {dr("CveMovimiento")}")
|
||||||
Else
|
Else
|
||||||
If TieneMovimientosContrato Then
|
If TieneMovimientosContrato Then
|
||||||
@@ -19267,6 +19304,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
sb.Append("<b>No encontrado</b> <br/>")
|
sb.Append("<b>No encontrado</b> <br/>")
|
||||||
|
script = "BtnRefacturacionConfirmarAceptacion();"
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
sb.Append("¿Desea realizar la refacturación?<br/>")
|
sb.Append("¿Desea realizar la refacturación?<br/>")
|
||||||
@@ -21758,6 +21796,9 @@ Partial Class Ventas
|
|||||||
Alert($"Los servicios de cancelación del SAT presentan lentitud en la respuesta [{ SegundosRespuesta } s].", TipoMensaje.ToastAdventencia, "")
|
Alert($"Los servicios de cancelación del SAT presentan lentitud en la respuesta [{ SegundosRespuesta } s].", TipoMensaje.ToastAdventencia, "")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If resp.HuboError Then
|
||||||
|
Alert(resp.Mensaje, resp.TipoMensaje, JSBtnAceptar:="BtnRefrescarPagina();")
|
||||||
|
Else
|
||||||
If resp.CveEstatus = 5 AndAlso Not EsRefacturacion Then
|
If resp.CveEstatus = 5 AndAlso Not EsRefacturacion Then
|
||||||
Alert(resp.Mensaje, resp.TipoMensaje, JSBtnAceptar:="BtnEnviarMailCancelacion();", TextoConfirmacion:=" Si ", TextoCancelacion:=" <a onclick='Recargar()'>No</> ")
|
Alert(resp.Mensaje, resp.TipoMensaje, JSBtnAceptar:="BtnEnviarMailCancelacion();", TextoConfirmacion:=" Si ", TextoCancelacion:=" <a onclick='Recargar()'>No</> ")
|
||||||
Else
|
Else
|
||||||
@@ -21773,6 +21814,9 @@ Partial Class Ventas
|
|||||||
Alert(resp.Mensaje, resp.TipoMensaje, JSBtnAceptar:="BtnRefrescarPagina();")
|
Alert(resp.Mensaje, resp.TipoMensaje, JSBtnAceptar:="BtnRefrescarPagina();")
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Alert("Ocurrió un error al generar la cancelación", TipoMensaje.MsgError)
|
Alert("Ocurrió un error al generar la cancelación", TipoMensaje.MsgError)
|
||||||
End If
|
End If
|
||||||
@@ -29285,7 +29329,7 @@ Partial Class Ventas
|
|||||||
CargaEventoBitacora()
|
CargaEventoBitacora()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub MostrarOpcioensPaqueteria()
|
Private Sub MostrarOpcionesPaqueteria()
|
||||||
Dim mostrarOpcionesPaq As Boolean = DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "Ped") And UsuarioActual.Empresa.Funcionalidad(280) = "1"
|
Dim mostrarOpcionesPaq As Boolean = DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem", "Ped") And UsuarioActual.Empresa.Funcionalidad(280) = "1"
|
||||||
trPaqueteriaOpciones.Visible = mostrarOpcionesPaq
|
trPaqueteriaOpciones.Visible = mostrarOpcionesPaq
|
||||||
trPaqueteriOpcionesLabel.Visible = mostrarOpcionesPaq
|
trPaqueteriOpcionesLabel.Visible = mostrarOpcionesPaq
|
||||||
|
|||||||
Reference in New Issue
Block a user