This commit is contained in:
Antonio Gonzalez
2020-06-16 17:39:23 -07:00
3 changed files with 41 additions and 11 deletions

View File

@@ -822,11 +822,10 @@ Partial Class Inventarios_EntregaAlmacen
If AplicaSeccion Then GvDatos.Columns(7).Visible = True
If AplicaLote Then GvDatos.Columns(8).Visible = True
If AplicaCaducidad Then GvDatos.Columns(9).Visible = True
GvDatos.DataSource = DtDatos
If AplicaCaducidad Then GvDatos.Columns(9).Visible = True
End If
GvDatos.DataSource = DtDatos
GvDatos.DataBind()
UpDatos.Update()
@@ -3253,6 +3252,8 @@ Partial Class Inventarios_EntregaAlmacen
TimmerRefresh.Enabled = True
UpGenerales.Update()
CargaGvDatos()
UpDatos.Update()
End Sub
#End Region

View File

@@ -3837,7 +3837,7 @@ Partial Class PV
TmpDT.Columns.Add("NoIdentificacion", GetType(String))
TmpDT.Columns.Add("CveTipoPS", GetType(Integer))
TmpDT.Columns.Add("CveTipoInvPS", GetType(Integer))
TmpDT.Columns.Add("SerieLote", GetType(String))
TmpDT.Columns.Add("Serie", GetType(String))
TmpDT.Columns.Add("CuentaPredial", GetType(String))
TmpDT.Columns.Add("Obs", GetType(String))
TmpDT.Columns.Add("TiempoEntrega", GetType(String))

View File

@@ -2308,9 +2308,9 @@ Partial Class Ventas
ViewState("CveRemision") = IfNull(Request("CveRemision").ToEntero(), 0)
ViewState("CveCotizacion") = IfNull(Request("CveCotizacion").ToEntero(), 0)
If ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
EsCreaApartirDe = True
End If
'If ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
' EsCreaApartirDe = True
'End If
If ViewState("CveRemision").ToString().ToEntero() > 0 Or ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
'ViewState("CveRemision") = Request("CveRemision")
@@ -2348,6 +2348,20 @@ Partial Class Ventas
'CargaDetalle de Almacen
InventarioMov()
If ViewState("CveCotizacion").ToString().ToEntero() > 0 Then
CargaCotizaciones()
If DtCotizaciones IsNot Nothing Then
For Each Row As DataRow In DtCotizaciones.Select($"CveVenta={ViewState("CveCotizacion").ToString().ToEntero()}")
Row("Aplicado") = True
Next
End If
CargarCotizacionesAFacturar()
End If
End If
If Not ExFolioFactura Then SetPermisos()
@@ -16241,6 +16255,11 @@ Partial Class Ventas
If Not OcurrioError Then
OcurrioError = Not GeneroMovimientoAlmacen
End If
If OcurrioError Then
Exit For
End If
End If
End If
@@ -16252,6 +16271,10 @@ Partial Class Ventas
Exit For
End If
End If
If OcurrioError Then
Exit For
End If
Next
@@ -23600,6 +23623,15 @@ Partial Class Ventas
'MARCA LAS SELECCIONADAS
VerificaCotizaciones(DtCotizaciones)
CargarCotizacionesAFacturar()
RegistraScript("$('#DivCotizaciones').modal('hide');")
End Sub
Private Sub CargarCotizacionesAFacturar()
Dim DTSeleccionadas = DtCotizaciones.FiltraParametros("Aplicado = True")
If DTSeleccionadas.Rows.Count = 0 Then
@@ -23686,9 +23718,6 @@ Partial Class Ventas
UpFacturar.Update()
UpPS.Update()
UpParametros.Update()
RegistraScript("$('#DivCotizaciones').modal('hide');")
End Sub
Private Sub VerificaCotizaciones(ByRef dt As DataTable)
If ChkCotProductos.Checked Then