diff --git a/Inventarios/EntregaAlmacen.aspx.vb b/Inventarios/EntregaAlmacen.aspx.vb
index cdb3ea74c..cea689a17 100644
--- a/Inventarios/EntregaAlmacen.aspx.vb
+++ b/Inventarios/EntregaAlmacen.aspx.vb
@@ -695,7 +695,7 @@ Partial Class Inventarios_EntregaAlmacen
TipoMovimiento = If(TipoDocto.Contiene({"Rem", "Ped", "Ing", "Ped", "PeC", "Ant"}) And (EsDevolucionVenta = 0 Or CveVentaAD > 0), 1, 2)
If UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 AndAlso TipoDocto.Contiene("Ped", "Ing") Then
- TxtObservaciones.Text = $"Dr. {drE("Medico").ToString}{vbCrLf}Cx. {drE("Procedimiento").ToString}{vbCrLf}F. Cirugía {drE("FechaEjecucion").ToString.ToDateTime.ToString("dd/MM/yyyy HH:mm")}{vbCrLf}H. {drE("Sucursal").ToString}{vbCrLf}"
+ TxtObservaciones.Text = $"Dr. {drE("Medico").ToString}{vbCrLf}Cx. {drE("Procedimiento").ToString}{vbCrLf}F. Cirugía {drE("FechaParaSurtir").ToString.ToDateTime.ToString("dd/MM/yyyy HH:mm")}{vbCrLf}H. {drE("Sucursal").ToString}{vbCrLf}"
TxtObservaciones.Rows = 4
End If
diff --git a/Ventas/Ventas.aspx b/Ventas/Ventas.aspx
index 53090e7fb..a2e1f750a 100644
--- a/Ventas/Ventas.aspx
+++ b/Ventas/Ventas.aspx
@@ -631,10 +631,10 @@
-
+ Tipo de Venta:
|
-
+
|
diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb
index 70d2e2c57..c3cf705b1 100644
--- a/Ventas/Ventas.aspx.vb
+++ b/Ventas/Ventas.aspx.vb
@@ -6173,6 +6173,10 @@ Partial Class Ventas
TxtPaciente.Enabled = False
TxtEpisodio.Enabled = False
+ TrVentasMedicas4.Visible = True
+ TxtFolioRemision.Text = DbRowVenta("Alfa1").ToString
+
+ LblTipoVenta.Text = DbRowVenta("TipoVenta").ToString
If DbRowVenta("FechaParaSurtir").ToString().ToDate() > DateTime.MinValue Then
TrVentasMedicas2.Visible = True
@@ -6181,12 +6185,9 @@ Partial Class Ventas
TxtFechaOS.Text = DbRowVenta("FechaParaSurtir").ToString().ToDateTime().ToString("yyyy-MM-dd HH:mm").Replace(" ", "T")
End If
+
End If
- If DdlTipoDocto.SelectedValue.Contiene("Ing", "Rem") Then
- TrVentasMedicas4.Visible = True
- TxtFolioRemision.Text = DbRowVenta("Alfa1").ToString
- End If
End If
End If
End Using
@@ -8612,6 +8613,9 @@ Partial Class Ventas
'If UsuarioActual.CveEmpresa = 119 Then
' e.Row.FCTextBox("TxtDescuento").Enabled = False
'End If
+
+
+
Else
'MODO NORMAL
@@ -8760,11 +8764,13 @@ Partial Class Ventas
End If
If EsVentaMedica Then
+
GvPS.Rows(e.NewEditIndex).FCTextBox("TxtPrecio").Enabled = False
- If DdlTipoComprobante.SelectedValue = "Cot" Then
+ If DdlTipoComprobante.SelectedValue = "Cot" Or RBLTipoVenta.SelectedValue.ToEntero = 1 Then
GvPS.Rows(e.NewEditIndex).FCTextBox("TxtPrecio").Enabled = True
End If
+
End If
If CveCicloComercial > 0 Then
@@ -17676,7 +17682,7 @@ Partial Class Ventas
If EsVentaMedica Then
TxtPrecio.Enabled = False
- If UsuarioActual.CveUsuario = 3986 Then
+ If UsuarioActual.CveUsuario = 3986 Or RBLTipoVenta.SelectedValue.ToEntero = 1 Then
TxtPrecio.Enabled = True
End If
@@ -22799,8 +22805,9 @@ Partial Class Ventas
End If
End If
+ TxtAtencionA.Enabled = True
-
+ UpCliente.Update()
UPPVentas.Update()
UpPS.Update()
UpCliente.Update()
@@ -37785,6 +37792,10 @@ Partial Class Ventas
AsignaAlmacenWS()
'CargaPS(-1, DdlPS)
End If
+ If RBLTipoVenta.SelectedValue.Contiene("1") Then
+ TxtPrecio.Enabled = True
+ UpPS.Update()
+ End If
RegistraScript("$('#DvModalTipoVenta').modal('hide');")
UpCliente.Update()