Utilizando los tres Descuentos
This commit is contained in:
@@ -2560,9 +2560,18 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End If
|
End If
|
||||||
Dim MarcaPorcentaje As DataRow = DtPorcentajeMarcas.FiltroPrimero(String.Format("CveMarca = {0}", drPS("CveMarca").ToString))
|
Dim MarcaPorcentaje As DataRow = DtPorcentajeMarcas.FiltroPrimero(String.Format("CveMarca = {0}", drPS("CveMarca").ToString))
|
||||||
If MarcaPorcentaje IsNot Nothing Then
|
If MarcaPorcentaje IsNot Nothing Then
|
||||||
Dim Descuento As Decimal = MarcaPorcentaje("PorcentajeProducto").ToString.ToDecimal / 100
|
Dim PorcentajeProducto As Decimal = MarcaPorcentaje("PorcentajeProducto").ToString.ToDecimal / 100
|
||||||
Dim MontoDescuento As Decimal = PrecioSugerido * Descuento
|
Dim MontoDescuento As Decimal = PrecioSugerido * PorcentajeProducto
|
||||||
PrecioSugerido -= MontoDescuento
|
PrecioSugerido -= MontoDescuento
|
||||||
|
|
||||||
|
Dim PorcentajeProducto2 As Decimal = MarcaPorcentaje("PorcentajeProducto2").ToString.ToDecimal / 100
|
||||||
|
MontoDescuento = PrecioSugerido * PorcentajeProducto2
|
||||||
|
PrecioSugerido -= MontoDescuento
|
||||||
|
|
||||||
|
Dim PorcentajeProducto3 As Decimal = MarcaPorcentaje("PorcentajeProducto3").ToString.ToDecimal / 100
|
||||||
|
MontoDescuento = PrecioSugerido * PorcentajeProducto3
|
||||||
|
PrecioSugerido -= MontoDescuento
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
txtPrecio.Text = PrecioSugerido.FormatoNumero(2)
|
txtPrecio.Text = PrecioSugerido.FormatoNumero(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user