Minor enhancement in pos module
This commit is contained in:
parent
18be763bce
commit
de8b9915ee
@ -102,9 +102,11 @@ $Id$
|
|||||||
<th><?php echo $langs->trans("Stock"); ?></th>
|
<th><?php echo $langs->trans("Stock"); ?></th>
|
||||||
<th><?php echo $langs->trans("PriceUHT"); ?></th>
|
<th><?php echo $langs->trans("PriceUHT"); ?></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th ><?php echo $langs->trans("VATRate"); ?></th>
|
|
||||||
<th><?php echo $langs->trans("Discount"); ?> (%)</th>
|
<th><?php echo $langs->trans("Discount"); ?> (%)</th>
|
||||||
<th><?php echo $langs->trans("TotalHT"); ?></th></tr>
|
<th><?php echo $langs->trans("TotalHT"); ?></th>
|
||||||
|
<th> </th>
|
||||||
|
<th><?php echo $langs->trans("VATRate"); ?></th>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input class="texte1" type="text" name="txtQte" value="1" onkeyup="javascript: modif();" onfocus="javascript: this.select();" /></td>
|
<td><input class="texte1" type="text" name="txtQte" value="1" onkeyup="javascript: modif();" onfocus="javascript: this.select();" /></td>
|
||||||
<!-- Affichage du stock pour l'article courant -->
|
<!-- Affichage du stock pour l'article courant -->
|
||||||
@ -114,31 +116,31 @@ $Id$
|
|||||||
<!-- Affichage du prix unitaire -->
|
<!-- Affichage du prix unitaire -->
|
||||||
<td><input class="texte1_off" type="text" name="txtPrixUnit" value="<?php echo price2num( $obj_facturation->prix(), 'MU'); ?>" disabled="disabled" /></td>
|
<td><input class="texte1_off" type="text" name="txtPrixUnit" value="<?php echo price2num( $obj_facturation->prix(), 'MU'); ?>" disabled="disabled" /></td>
|
||||||
<td><?php echo $conf->monnaie; ?></td>
|
<td><?php echo $conf->monnaie; ?></td>
|
||||||
<!-- Choix du taux de TVA -->
|
<!-- Choix de la remise -->
|
||||||
<td class="select_tva">
|
<td><input class="texte1" type="text" name="txtRemise" value="0" onkeyup="javascript: modif();" onfocus="javascript: this.select();"/></td>
|
||||||
<select name="selTva" onchange="javascript: modif();" >
|
<!-- Affichage du total HT -->
|
||||||
<?php
|
<td><input class="texte1_off" type="text" name="txtTotal" value="" disabled="disabled" /></td><td><?php echo $conf->monnaie; ?></td>
|
||||||
|
<!-- Choix du taux de TVA -->
|
||||||
|
<td class="select_tva">
|
||||||
|
<select name="selTva" onchange="javascript: modif();" >
|
||||||
|
<?php
|
||||||
|
|
||||||
$tva_tx = $obj_facturation->tva();
|
$tva_tx = $obj_facturation->tva();
|
||||||
$tab_tva_size=count($tab_tva);
|
$tab_tva_size=count($tab_tva);
|
||||||
for($i=0;$i < $tab_tva_size;$i++) {
|
for($i=0;$i < $tab_tva_size;$i++) {
|
||||||
|
|
||||||
if ( $tva_tx == $tab_tva[$i]['taux'] )
|
if ( $tva_tx == $tab_tva[$i]['taux'] )
|
||||||
$selected = 'selected="selected"';
|
$selected = 'selected="selected"';
|
||||||
else
|
else
|
||||||
$selected = '';
|
$selected = '';
|
||||||
|
|
||||||
echo ('<option '.$selected.' value="'.$tab_tva[$i]['rowid'].'">'.$tab_tva[$i]['taux'].'</option>'."\n ");
|
echo ('<option '.$selected.' value="'.$tab_tva[$i]['rowid'].'">'.$tab_tva[$i]['taux'].'</option>'."\n ");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<!-- Choix de la remise -->
|
|
||||||
<td><input class="texte1" type="text" name="txtRemise" value="0" onkeyup="javascript: modif();" onfocus="javascript: this.select();"/></td>
|
|
||||||
<!-- Affichage du total HT -->
|
|
||||||
<td><input class="texte1_off" type="text" name="txtTotal" value="" disabled="disabled" /></td><td><?php echo $conf->monnaie; ?></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user