1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>fiche_saisie_ventes</title>
<script type="text/javascript">
//-- si changement de tva, seule change cette ligne ---------
var pourCentTva = 0.18;
function calcul(obj)
{
var valeur = parseInt(obj.options[obj.selectedIndex].value, 10);
if (valeur == '#')
return;
var ht = parseFloat(obj.form.ht.value);
if (valeur)
{
var tva = Math.round(ht * pourCentTva * 100) / 100;
var ttc = ht + tva;
}
else
{
var tva = 0;
var ttc = ht;
}
obj.form.tva.value = tva;
obj.form.ttc.value = ttc;
}
</script>
<style type="text/css">
<!--
.Style1 {
font-size: xx-large;
font-weight: bold;
}
body {
background-color: #FFFF99;
}
.Style2 {font-size: medium; font-weight: bold; }
-->
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p align="center" class="Style1">Saisie Vente </p>
<p>
<label><strong>Client</strong>
<input name="textfield2" type="text" maxlength="40" />
</label>
</p>
<p>
<label><strong>N°Facture</strong>
<input name="textfield3" type="text" maxlength="15" />
</label>
</p>
<p>
<label><strong>Montant H.T</strong>
<input name="ht" type="text" value="0" maxlength="30" />
</label>
</p>
<p>
<label><strong>TVA</strong>
<input name="tva" type="text" value="0" maxlength="30" />
</label>
</p>
<p>
<label><strong>Montant TTC</strong>
<input name="ttc" type="text" />
</label>
</p>
<p align="left" class="Style2">
<label>Nature chiffre d'affaire
<select name="select" onchange="calcul(this)">
<option value="#">-- Sélectionnez le type de chiffre d'affaires --</option>
<option value="1">Montant des affaires à l'exportation taxable à l'interieur</option>
<option value="0">Montant des affaires à l'exportation non-taxable à l'interieur</option>
<option value="0">Montant des affaires éxénorées autres que les exportations </option>
<option value="1">Livraison à soi-même</option>
<option value="0">Montant des affaires réalisées en suspension</option>
<option value="1">Montant des affaires soumises au précompte de T.V.A</option>
<option value="1">Montant des autres affaires taxable à l'interieur</option>
</select>
</label>
</p>
<p align="left" class="Style2">
<label>
<input name="AJOUTER" type="submit" id="AJOUTER" value="AJOUTER" />
</label>
<label>
<input name="ANNULER" type="submit" id="ANNULER" value="ANNULER" />
</label>
</p>
</form>
</body>
</html> |
Partager