-error correcion
This commit is contained in:
@@ -459,7 +459,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
TxtImporte.Text = ""
|
TxtImporte.Text = ""
|
||||||
TxtObservaciones.Text = ""
|
TxtObservaciones.Text = ""
|
||||||
If SumDescuentoProntoPago > 0.0 Then
|
If SumDescuentoProntoPago > 0.0 Then
|
||||||
GvCxC.Columns("DescuentoProntoPago").Visible = True
|
GvCxC.Columns(15).Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Mov.Dispose()
|
Mov.Dispose()
|
||||||
|
|||||||
@@ -10259,7 +10259,9 @@ Partial Class Ventas
|
|||||||
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${importeMovimiento.FormatoNumero(2)}"
|
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${importeMovimiento.FormatoNumero(2)}"
|
||||||
'Nota cuando es Nota de crédiot, debe de tomar el devoluciones y rebajas
|
'Nota cuando es Nota de crédiot, debe de tomar el devoluciones y rebajas
|
||||||
If ObjFactura.TipoDocto.Contiene("Egs", "Dev") Then
|
If ObjFactura.TipoDocto.Contiene("Egs", "Dev") Then
|
||||||
IdCtaContable = GlobalDTClasificaciones(ObjFactura.CveEmpresa).FiltroPrimeroValor("IdCuentaGasto", String.Format("CveClasificacion = {0}", Row2("CveClasificacion"))).ToEntero
|
Dim CampoCuenta As String = "IdCuentaGasto"
|
||||||
|
If UsuarioActual.CveEmpresa.Contiene(80, 72, 146) Then CampoCuenta = "IdCuentaDescuento"
|
||||||
|
IdCtaContable = GlobalDTClasificaciones(ObjFactura.CveEmpresa).FiltroPrimeroValor(CampoCuenta, String.Format("CveClasificacion = {0}", Row2("CveClasificacion"))).ToEntero
|
||||||
Else
|
Else
|
||||||
IdCtaContable = GlobalDTClasificaciones(ObjFactura.CveEmpresa).FiltroPrimeroValor("IdCuentaIngresos", String.Format("CveClasificacion = {0}", Row2("CveClasificacion"))).ToEntero
|
IdCtaContable = GlobalDTClasificaciones(ObjFactura.CveEmpresa).FiltroPrimeroValor("IdCuentaIngresos", String.Format("CveClasificacion = {0}", Row2("CveClasificacion"))).ToEntero
|
||||||
End If
|
End If
|
||||||
@@ -13827,10 +13829,12 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If DtPromociones.Rows.Count > 0 And DtPromociones IsNot Nothing Then
|
If DtPromociones.Rows.Count > 0 And DtPromociones IsNot Nothing Then
|
||||||
Dim dr As DataRow = DtPromociones.FiltroPrimero($"CvePS = {CvePS}")
|
Dim dr As DataRow = DtPromociones.FiltroPrimero($"CvePS = {CvePS}")
|
||||||
TipoPromo = dr("TipoPromocion").ToString.ToEntero
|
If dr IsNot Nothing Then
|
||||||
TotalPromocion = dr("PUPromocion").ToString.ToDecimal * TxtCantidad.Text.ToDecimal
|
TipoPromo = dr("TipoPromocion").ToString.ToEntero
|
||||||
PromocionPorcentaje = dr("Promocion").ToString.ToDecimal
|
TotalPromocion = dr("PUPromocion").ToString.ToDecimal * TxtCantidad.Text.ToDecimal
|
||||||
CantMinima = dr("CantidadMinima").ToString.ToEntero
|
PromocionPorcentaje = dr("Promocion").ToString.ToDecimal
|
||||||
|
CantMinima = dr("CantidadMinima").ToString.ToEntero
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If TipoPromo = 1 Then 'Promocion por Importe $
|
If TipoPromo = 1 Then 'Promocion por Importe $
|
||||||
|
|||||||
Reference in New Issue
Block a user