Sistema de Facturación en php
Sistema de Facturación en php
![PHP.png](https://steemitimages.com/DQmNSJbxVNkyJ3T6KRTLdB1q1iosuE9NfpT8yXX1tY9qvja/PHP.png)
![Fact.png](https://steemitimages.com/640x0/https://steemitimages.com/DQmbeyLHazpukfFuqh1zNk8w6Dkb4GhvRExjWRWvqQXDgW3/Fact.png)
CÓDIGO FUENTE PHP
<?PHP $mer = $_POST['mer']; $und = $_POST['und']; $iva = $_POST['iva'];if ($mer==''){
$pre=0;
}
if ($mer=='Netbook'){
$pre=7000;
}
if ($mer=='Notebook'){
$pre=10000;
}
if ($mer=='PC Gamer'){
$pre=18000;
}
if ($mer=='All In One'){
$pre=11000;
}
if ($mer=='Tablet'){
$pre=4000;
}
if ($iva==21){
$tiva = 21/100;
}else{
$tiva = 18/100;
}
$sub = $pre * $und;
if ($sub >= 15000){
$des=$sub * 0.05;
}
$bas = $sub - $des;
$ttiva = round($bas * $tiva,2);
$total = $bas + $ttiva;
if ($n5==1){
$a5=1;
}else{
$a5="";
}
$a1 = $a3 + $a5 +$a6 +$a7+$a9+$a10+$a11+$a12 ;
if (($a1 % 2) == 0){
$p1=0;
}else{
$p1=1;
}
?>
![Fact2.png](https://steemitimages.com/DQmRP3rmXbN5XpQDuQkW2SQXone9h2gW9FxKZjBcLLdzifg/Fact2.png)