Limpiar ajustes al deseleccionar el checkbox, no agregar pagos al generar remision
This commit is contained in:
@@ -1286,6 +1286,7 @@ Partial Class PV
|
|||||||
If UsuarioActual.Empresa.Funcionalidad(569) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(569) = "1" Then
|
||||||
DdlTipoComprobante.Items.Add(New ListItem("Remisión", "Rem"))
|
DdlTipoComprobante.Items.Add(New ListItem("Remisión", "Rem"))
|
||||||
DdlTipoComprobante.SelectedValueExist("Rem")
|
DdlTipoComprobante.SelectedValueExist("Rem")
|
||||||
|
DdlTipoComprobante_SelectedIndexChanged(DdlTipoComprobante, EventArgs.Empty)
|
||||||
End If
|
End If
|
||||||
DdlTipoDefecto.Width = New Unit(260%)
|
DdlTipoDefecto.Width = New Unit(260%)
|
||||||
|
|
||||||
@@ -5964,7 +5965,7 @@ Partial Class PV
|
|||||||
Case 1 'CREDITO
|
Case 1 'CREDITO
|
||||||
TxtFechaPago.Text = Now.AddDays(PlazoCobranza).ToShortDateString
|
TxtFechaPago.Text = Now.AddDays(PlazoCobranza).ToShortDateString
|
||||||
Case 2 'CONTADO
|
Case 2 'CONTADO
|
||||||
If DdlTipoComprobante.SelectedValue.Contiene("Ing", "Ant", "Rem") Then
|
If DdlTipoComprobante.SelectedValue.Contiene("Ing", "Ant") Then
|
||||||
DivContado.Visible = True
|
DivContado.Visible = True
|
||||||
TxtImporteContado.Text = TxtTotal.Text
|
TxtImporteContado.Text = TxtTotal.Text
|
||||||
End If
|
End If
|
||||||
@@ -6165,6 +6166,11 @@ Partial Class PV
|
|||||||
Retorno = True
|
Retorno = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If DtPagos IsNot Nothing AndAlso DtPagos.SUM("Importe").ToString.ToDecimal() > 0 AndAlso DdlTipoComprobante.SelectedValue = "Rem" Then
|
||||||
|
Alert("Los pagos no deben ser aplicados a una remisión.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Retorno = True
|
||||||
|
End If
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -7315,12 +7321,10 @@ Partial Class PV
|
|||||||
TxtPrecio.Text = TxtPrecio.Text
|
TxtPrecio.Text = TxtPrecio.Text
|
||||||
TxtObsPS.Text = "Descuento por garantía"
|
TxtObsPS.Text = "Descuento por garantía"
|
||||||
Else
|
Else
|
||||||
'For Each Gvr As GridViewRow In GvRecepcionUsados.Rows
|
If TmpDTAjustes IsNot Nothing Then
|
||||||
' If Gvr.RowType = DataControlRowType.DataRow Then
|
TmpDTAjustes.Clear()
|
||||||
' Gvr.FCTextBox("TxtCantidad").Text = ""
|
End If
|
||||||
' Gvr.FCTextBox("TxtCantidad").Enabled = True
|
TxtObsPS.Text = TxtObsPS.Text.Replace("Descuento por garantía", "")
|
||||||
' End If
|
|
||||||
'Next
|
|
||||||
|
|
||||||
DdlRecepcionUsados.SelectedValueExist("-1")
|
DdlRecepcionUsados.SelectedValueExist("-1")
|
||||||
DdlRecepcionUsados.Enabled = True
|
DdlRecepcionUsados.Enabled = True
|
||||||
|
|||||||
Reference in New Issue
Block a user