Merge branch 'master' of http://agonzalez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -827,7 +827,7 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
|
|
||||||
|
|
||||||
'cheque
|
'cheque
|
||||||
If DdlTipoTransaccion.SelectedValue = "1" Then FolioFijo = TxtFolio.Text.ToEntero
|
If DdlTipoTransaccion.SelectedValue = "1" AndAlso UsuarioActual.CveEmpresa.Contiene(13, 83) Then FolioFijo = TxtFolio.Text.ToEntero
|
||||||
|
|
||||||
CvePrePoliza = ObjMov.AddPrePolizas("Bancos/ProveedoresAbonar", 2, ImporteSeleccionado, ImporteSeleccionado, GlobalDTBancosCuentas(UsuarioActual.CveUsuario).FiltroPrimeroValor("CveMoneda", "CveCuenta = " & DdlCuenta.SelectedValue).ToEntero, TxtFechaDocumento.Text.ToDate, ConceptoPoliza, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FolioFijo:=FolioFijo, ReglaFolioPoliza:=ObjComp.ObtenerReglaFolio(DdlTipoTransaccion.SelectedValue, Nothing, UsuarioActual.CveEmpresa), CveTipoPoliza:=ObjMov.ObtenerTipoPoliza(DdlTipoTransaccion.SelectedValue, "-1", UsuarioActual.CveEmpresa))
|
CvePrePoliza = ObjMov.AddPrePolizas("Bancos/ProveedoresAbonar", 2, ImporteSeleccionado, ImporteSeleccionado, GlobalDTBancosCuentas(UsuarioActual.CveUsuario).FiltroPrimeroValor("CveMoneda", "CveCuenta = " & DdlCuenta.SelectedValue).ToEntero, TxtFechaDocumento.Text.ToDate, ConceptoPoliza, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FolioFijo:=FolioFijo, ReglaFolioPoliza:=ObjComp.ObtenerReglaFolio(DdlTipoTransaccion.SelectedValue, Nothing, UsuarioActual.CveEmpresa), CveTipoPoliza:=ObjMov.ObtenerTipoPoliza(DdlTipoTransaccion.SelectedValue, "-1", UsuarioActual.CveEmpresa))
|
||||||
|
|
||||||
|
|||||||
@@ -137,11 +137,12 @@ Partial Class Ventas_CatVendedores
|
|||||||
|
|
||||||
#Region "CARGA GLOBAL"
|
#Region "CARGA GLOBAL"
|
||||||
Private Sub CargaGlobal()
|
Private Sub CargaGlobal()
|
||||||
Dim ObjVendedores As New ClsVtaVendedores
|
GlobalDTVendedores(UsuarioActual.CveEmpresa) = Nothing
|
||||||
If ObjVendedores.GetVendedores(-1) Then
|
'Dim ObjVendedores As New ClsVtaVendedores
|
||||||
GlobalDTVendedores(-1) = ObjVendedores.DtResultados
|
'If ObjVendedores.GetVendedores(UsuarioActual.CveEmpresa) Then
|
||||||
End If
|
' GlobalDTVendedores(-1) = ObjVendedores.DtResultados
|
||||||
ObjVendedores.Dispose()
|
'End If
|
||||||
|
'ObjVendedores.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -10256,7 +10256,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
|
||||||
@@ -13824,10 +13826,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