Sistema de Ventas de Autos Usados (PHP)

in #programming7 years ago

Sistema de Ventas de Autos Usados (PHP)

php.png

CONSIGNA
Realizar un Sistema de Ventas de Autos usados e informar: vendedor, patente, precio, descripción, modelo del auto, IVA 21%, la comisión por venta (4%) y bonificar (5%) al vendedor si el auto cuesta mas de $100.000.

INTERFAZ

comision.png

comision2.png

FUENTE

<?PHP
$Patente = $_POST['Patente'];
$Modelo = $_POST['Modelo'];
$Tipo = $_POST['Tipo'];
$Precio = $_POST['Precio'];
$Vendedor = $_POST['Vendedor'];

$Subtotal = $Precio;

if ($Subtotal >= 100000){
$Bonificacion = $Subtotal * 0.05;
}

$Subtotal2 = round($Subtotal + $Bonificacion,2);
$IVA21 = round($Subtotal2 * 0.21,2);
$Total = round($Subtotal2 + $IVA21,2);
$Comision = round($Total * 0.04,2);
?>

Fuente:
http://mauriciobobadilla.com/sistemas/comision

steemit-mauri.gif

Sort:  

This is supercool! @mauricioeb83 Thanks! Followed...


Este es un servicio gratuito para nuevos usuarios de steemit, para apoyarlos y motivarlos a seguir generando contenido de valor para la comunidad.
<3 Este es un corazón, o un helado, tu eliges .Hola @mauricioeb83, upv0t3

: )


N0. R4ND0M:
4743 4678 6886 3613
3241 9540 5135 7840
3411 8822 7502 5791
4394 2693 8863 6618

Congratulations @mauricioeb83! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @mauricioeb83! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!