--globldttamaños
This commit is contained in:
@@ -13278,7 +13278,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
Dim DrTamanio As DataRow = GlobalDTAcumTamaños().FiltroPrimero($"CvePSCargo={CvePSCargo}")
|
Dim DrTamanio As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($"CvePSCargo={CvePSCargo}")
|
||||||
|
|
||||||
If DrTamanio IsNot Nothing Then
|
If DrTamanio IsNot Nothing Then
|
||||||
'OBTIENE LOS IMPORTES ORIGINALES EN BASE A LO QUE HABIA EN EL MOVIMIENTO
|
'OBTIENE LOS IMPORTES ORIGINALES EN BASE A LO QUE HABIA EN EL MOVIMIENTO
|
||||||
@@ -29034,7 +29034,7 @@ Partial Class Ventas
|
|||||||
Dim CvePSCargo As Integer = RowUsado("CvePS").ToString().ToEntero()
|
Dim CvePSCargo As Integer = RowUsado("CvePS").ToString().ToEntero()
|
||||||
Dim Obs = ""
|
Dim Obs = ""
|
||||||
'SI ES ACUMULADOR LAS OBSERVACIOENS DEBEN SER EL NOMBRE DEL ACUMULADOR
|
'SI ES ACUMULADOR LAS OBSERVACIOENS DEBEN SER EL NOMBRE DEL ACUMULADOR
|
||||||
If GlobalDTAcumTamaños().FiltroPrimero($"CvePSCargo = {CvePSCargo}") IsNot Nothing Then
|
If GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($"CvePSCargo = {CvePSCargo}") IsNot Nothing Then
|
||||||
Obs = RowUsado("CodigoPS").ToString()
|
Obs = RowUsado("CodigoPS").ToString()
|
||||||
Else
|
Else
|
||||||
Obs = RowUsado("Obs").ToString()
|
Obs = RowUsado("Obs").ToString()
|
||||||
@@ -29122,7 +29122,7 @@ Partial Class Ventas
|
|||||||
Dim CvePSCargo As Integer = RowUsado("CvePS").ToString().ToEntero()
|
Dim CvePSCargo As Integer = RowUsado("CvePS").ToString().ToEntero()
|
||||||
Dim Obs = ""
|
Dim Obs = ""
|
||||||
'SI ES ACUMULADOR LAS OBSERVACIOENS DEBEN SER EL NOMBRE DEL ACUMULADOR
|
'SI ES ACUMULADOR LAS OBSERVACIOENS DEBEN SER EL NOMBRE DEL ACUMULADOR
|
||||||
If GlobalDTAcumTamaños().FiltroPrimero($"CvePSCargo = {CvePSCargo}") IsNot Nothing Then
|
If GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($"CvePSCargo = {CvePSCargo}") IsNot Nothing Then
|
||||||
Obs = RowUsado("CodigoPS").ToString()
|
Obs = RowUsado("CodigoPS").ToString()
|
||||||
End If
|
End If
|
||||||
'SI TIENE BCI EN LAS OBSERVACIONES AGREGARLO A LA FACTURA
|
'SI TIENE BCI EN LAS OBSERVACIONES AGREGARLO A LA FACTURA
|
||||||
@@ -29307,7 +29307,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
For Each RowCargo As DataRow In TmpDT.FiltraParametros("EsCargo = True", Orderby:="PU").Rows
|
For Each RowCargo As DataRow In TmpDT.FiltraParametros("EsCargo = True", Orderby:="PU").Rows
|
||||||
Dim CantidadCargo = RowCargo("Cantidad").ToString().ToDecimal()
|
Dim CantidadCargo = RowCargo("Cantidad").ToString().ToDecimal()
|
||||||
Dim ImportePU As Decimal = GlobalDTAcumTamaños().FiltroPrimeroValor("Bonificacion", $"CvePSCargo={RowCargo("CvePS")}").ToDecimal()
|
Dim ImportePU As Decimal = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimeroValor("Bonificacion", $"CvePSCargo={RowCargo("CvePS")}").ToDecimal()
|
||||||
Dim TotalCalculableImpuestosCargo As Decimal = (CantidadCargo * ImportePU)
|
Dim TotalCalculableImpuestosCargo As Decimal = (CantidadCargo * ImportePU)
|
||||||
Dim TotalCargo As Decimal = TotalCalculableImpuestosCargo + (TotalCalculableImpuestosCargo * RowCargo("PorcentajeIVA").ToString().ToDecimal).RoundSQL(2)
|
Dim TotalCargo As Decimal = TotalCalculableImpuestosCargo + (TotalCalculableImpuestosCargo * RowCargo("PorcentajeIVA").ToString().ToDecimal).RoundSQL(2)
|
||||||
|
|
||||||
@@ -29404,7 +29404,7 @@ Partial Class Ventas
|
|||||||
Dim CvePSCargo As Integer = RowUsado("CvePS").ToString().ToEntero()
|
Dim CvePSCargo As Integer = RowUsado("CvePS").ToString().ToEntero()
|
||||||
Dim Obs = ""
|
Dim Obs = ""
|
||||||
'SI ES ACUMULADOR LAS OBSERVACIOENS DEBEN SER EL NOMBRE DEL ACUMULADOR
|
'SI ES ACUMULADOR LAS OBSERVACIOENS DEBEN SER EL NOMBRE DEL ACUMULADOR
|
||||||
If GlobalDTAcumTamaños().FiltroPrimero($"CvePSCargo = {CvePSCargo}") IsNot Nothing Then
|
If GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($"CvePSCargo = {CvePSCargo}") IsNot Nothing Then
|
||||||
Obs = RowUsado("CodigoPS").ToString()
|
Obs = RowUsado("CodigoPS").ToString()
|
||||||
'Else
|
'Else
|
||||||
' Obs = RowUsado("Obs").ToString()
|
' Obs = RowUsado("Obs").ToString()
|
||||||
@@ -31249,7 +31249,7 @@ Partial Class Ventas
|
|||||||
Private Function CalculaUsadosCotizacion(ByRef SbVentasDetalle As StringBuilder, ByVal DTSeleccionadas As DataTable, ByVal DtCotizaciones As DataTable) As List(Of MVentaDetalleCotizacion)
|
Private Function CalculaUsadosCotizacion(ByRef SbVentasDetalle As StringBuilder, ByVal DTSeleccionadas As DataTable, ByVal DtCotizaciones As DataTable) As List(Of MVentaDetalleCotizacion)
|
||||||
Dim Retorno As New List(Of MVentaDetalleCotizacion)
|
Dim Retorno As New List(Of MVentaDetalleCotizacion)
|
||||||
|
|
||||||
Dim DTTamanios As DataTable = GlobalDTAcumTamaños()
|
Dim DTTamanios As DataTable = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
Dim DTCvePSCostos As DataTable = DTTamanios.FiltraParametros("", "", {"CvePSCargo"})
|
Dim DTCvePSCostos As DataTable = DTTamanios.FiltraParametros("", "", {"CvePSCargo"})
|
||||||
|
|
||||||
@@ -32835,7 +32835,7 @@ Partial Class Ventas
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim DTTamanios As DataTable = GlobalDTAcumTamaños()
|
Dim DTTamanios As DataTable = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
Dim DTCvePSCostos As DataTable
|
Dim DTCvePSCostos As DataTable
|
||||||
DTCvePSCostos = DTTamanios.FiltraParametros("", "", {"CvePSCargo"})
|
DTCvePSCostos = DTTamanios.FiltraParametros("", "", {"CvePSCargo"})
|
||||||
@@ -33001,7 +33001,7 @@ Partial Class Ventas
|
|||||||
If ClienteEsDistribuidor AndAlso Not factura.EsGarantia Then
|
If ClienteEsDistribuidor AndAlso Not factura.EsGarantia Then
|
||||||
For Each drow As DataRow In factura.DtDetalle.Rows
|
For Each drow As DataRow In factura.DtDetalle.Rows
|
||||||
If drow("CveTamaño").ToString.ToEntero > 0 Then
|
If drow("CveTamaño").ToString.ToEntero > 0 Then
|
||||||
Dim DrTamanio As DataRow = GlobalDTAcumTamaños().FiltroPrimero($"CveTamaño={drow("CveTamaño").ToString.ToEntero}")
|
Dim DrTamanio As DataRow = GlobalDTAcumTamaños(UsuarioActual.CveEmpresa).FiltroPrimero($"CveTamaño={drow("CveTamaño").ToString.ToEntero}")
|
||||||
If DrTamanio IsNot Nothing Then
|
If DrTamanio IsNot Nothing Then
|
||||||
Dim Cargo As Decimal = DrTamanio("Cargo").ToString().ToDecimal() * drow("Cantidad").ToString.ToDecimal()
|
Dim Cargo As Decimal = DrTamanio("Cargo").ToString().ToDecimal() * drow("Cantidad").ToString.ToDecimal()
|
||||||
Dim Bonificacion As Decimal = DrTamanio("Bonificacion").ToString().ToDecimal() * drow("Cantidad").ToString.ToDecimal()
|
Dim Bonificacion As Decimal = DrTamanio("Bonificacion").ToString().ToDecimal() * drow("Cantidad").ToString.ToDecimal()
|
||||||
|
|||||||
Reference in New Issue
Block a user