Documento relacionado en nota de devolucion,calculo de meses en pv
This commit is contained in:
@@ -1082,6 +1082,12 @@ Partial Class PopUpVerFactura
|
|||||||
If dtVentas(0)("TipoDocto").ToString.Contiene("Egs", "Dev", "Ant") Then
|
If dtVentas(0)("TipoDocto").ToString.Contiene("Egs", "Dev", "Ant") Then
|
||||||
If ObjVentas.GetVentasAntNC(-1, CveVenta) Then
|
If ObjVentas.GetVentasAntNC(-1, CveVenta) Then
|
||||||
Vta.DtDocumentosRelacionados = ObjVentas.DtResultados.FiltraParametros("FolioFiscal IS NOT NULL")
|
Vta.DtDocumentosRelacionados = ObjVentas.DtResultados.FiltraParametros("FolioFiscal IS NOT NULL")
|
||||||
|
If Vta.DtDocumentosRelacionados.Rows.Count > 0 Then
|
||||||
|
If Vta.TipoDocto.Contiene("Dev") Then
|
||||||
|
Vta.Timbre.CFDIRelacionados.TipoRelacion = "03"
|
||||||
|
Vta.Timbre.CFDIRelacionados.TipoRelacionTexto = "Devolución aplicada a Ingreso"
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -1108,11 +1114,11 @@ Partial Class PopUpVerFactura
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " - OP = 'Alm' - REPORTE ENTRADAS ALMACEN "
|
#Region " - OP = 'Alm' - REPORTE ENTRADAS ALMACEN "
|
||||||
|
|
||||||
Private Sub CargaMovimientosAlmacen(CveMovimiento As Integer)
|
Private Sub CargaMovimientosAlmacen(CveMovimiento As Integer)
|
||||||
Dim ObjInventarios As New ClsInventarios
|
Dim ObjInventarios As New ClsInventarios
|
||||||
|
|
||||||
@@ -2270,19 +2276,19 @@ Partial Class PopUpVerFactura
|
|||||||
If (UsuarioActual.CveEmpresa = 72) Then
|
If (UsuarioActual.CveEmpresa = 72) Then
|
||||||
params.Add(New ReportParameter("DomicilioFiscal", DomicilioFiscalCompu))
|
params.Add(New ReportParameter("DomicilioFiscal", DomicilioFiscalCompu))
|
||||||
End If
|
End If
|
||||||
ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/SalidasGarantia.rdlc", DtMovimientos, params, String.Format("SalidaGarantia{0}", Folio.ToString), RDSName:="DsInventarios")
|
ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/SalidasGarantia.rdlc", DtMovimientos, params, String.Format("SalidaGarantia{0}", Folio.ToString), RDSName:="DsInventarios")
|
||||||
'Else
|
'Else
|
||||||
' params.Add(New ReportParameter("Folio", Folio))
|
' params.Add(New ReportParameter("Folio", Folio))
|
||||||
' params.Add(New ReportParameter("Fecha", Fecha))
|
' params.Add(New ReportParameter("Fecha", Fecha))
|
||||||
' params.Add(New ReportParameter("Almacen", Almacen))
|
' params.Add(New ReportParameter("Almacen", Almacen))
|
||||||
' params.Add(New ReportParameter("SubProyecto", SubProyecto))
|
' params.Add(New ReportParameter("SubProyecto", SubProyecto))
|
||||||
' params.Add(New ReportParameter("Observaciones", Observaciones))
|
' params.Add(New ReportParameter("Observaciones", Observaciones))
|
||||||
' params.Add(New ReportParameter("NombreEntrego", String.Format("ENTREGÓ{0}{1}", vbCrLf, Capturo)))
|
' params.Add(New ReportParameter("NombreEntrego", String.Format("ENTREGÓ{0}{1}", vbCrLf, Capturo)))
|
||||||
' params.Add(New ReportParameter("NombreRecibio", String.Format("RECIBIÓ{0}{1}", vbCrLf, Recibio)))
|
' params.Add(New ReportParameter("NombreRecibio", String.Format("RECIBIÓ{0}{1}", vbCrLf, Recibio)))
|
||||||
' ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/Salidas.rdlc", DtMovimientos, params, String.Format("Salida de Almacen - {0}", Folio.ToString), RDSName:="DsInventarios")
|
' ImprimirPDF(UsuarioActual.Empresa.Ruta & "Formatos/Salidas.rdlc", DtMovimientos, params, String.Format("Salida de Almacen - {0}", Folio.ToString), RDSName:="DsInventarios")
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
|
|
||||||
Case 18 'D E V O L U C I O N D E L C L I E N T E
|
Case 18 'D E V O L U C I O N D E L C L I E N T E
|
||||||
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/DevolucionCliente.rdlc", UsuarioActual.Empresa.Ruta))
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/DevolucionCliente.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta))
|
||||||
@@ -2860,11 +2866,11 @@ Partial Class PopUpVerFactura
|
|||||||
If CveConcepto = 2 Then
|
If CveConcepto = 2 Then
|
||||||
ElseIf CveConcepto = 3 Then
|
ElseIf CveConcepto = 3 Then
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "OP = 'OC' - IMPRIME PDF OC"
|
#Region "OP = 'OC' - IMPRIME PDF OC"
|
||||||
Private Sub ImprimePDFOC(CveOrdenCompra As Integer)
|
Private Sub ImprimePDFOC(CveOrdenCompra As Integer)
|
||||||
Dim reporte As Byte() = NewGeneraBytesOC(CveOrdenCompra, ConBitacora:=(UsuarioActual.Empresa.Funcionalidad(119) = "1"))
|
Dim reporte As Byte() = NewGeneraBytesOC(CveOrdenCompra, ConBitacora:=(UsuarioActual.Empresa.Funcionalidad(119) = "1"))
|
||||||
@@ -2900,10 +2906,10 @@ Partial Class PopUpVerFactura
|
|||||||
ImprimirbytesPDF(reporte, $"OrdenCompra-{Folio.ToString}")
|
ImprimirbytesPDF(reporte, $"OrdenCompra-{Folio.ToString}")
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "OP = 'VAL' - IMPRIME PDF VAL"
|
#Region "OP = 'VAL' - IMPRIME PDF VAL"
|
||||||
Private Sub GenerarPDFVale(CveVale As Integer)
|
Private Sub GenerarPDFVale(CveVale As Integer)
|
||||||
|
|
||||||
@@ -2933,9 +2939,9 @@ Partial Class PopUpVerFactura
|
|||||||
'End If
|
'End If
|
||||||
End If
|
End If
|
||||||
ObjAF.Dispose()
|
ObjAF.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "OP = 'OS' - IMPRIMIR PDF OS"
|
#Region "OP = 'OS' - IMPRIMIR PDF OS"
|
||||||
Private Sub GenerarPDFOS(CveOS As Integer)
|
Private Sub GenerarPDFOS(CveOS As Integer)
|
||||||
Dim ObjOS As New ClsOS()
|
Dim ObjOS As New ClsOS()
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -5072,7 +5072,17 @@ Partial Class PV
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CalculaMesesUso()
|
Private Sub CalculaMesesUso()
|
||||||
TxtMesesUso.Text = DateDiff(DateInterval.Month, TxtFechaAjuste.Text.ToDate, Now).ToEntero.ToString
|
Dim FechaI = TxtFechaAjuste.Text.ToDate
|
||||||
|
Dim FechaF = Now
|
||||||
|
'Dim NumDiasAlMes As Double = (365 / 12)
|
||||||
|
|
||||||
|
'Dim DiasTranscurridos = DateDiff(DateInterval.Day, FechaI, FechaF)
|
||||||
|
|
||||||
|
'Dim MesesTranscurridos As Double = DiasTranscurridos / NumDiasAlMes
|
||||||
|
|
||||||
|
'Dim NoMesesTrascurridos = Math.Ceiling(MesesTranscurridos)
|
||||||
|
|
||||||
|
TxtMesesUso.Text = (DateDiff(DateInterval.Month, FechaI, FechaF) + 1).ToString()
|
||||||
CalculaPorcentajeAjuste()
|
CalculaPorcentajeAjuste()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user