production/Vue/Detailfacturegarant/caution.php
2025-12-01 16:12:12 +00:00

63 lines
3.2 KiB
PHP
Executable File

<?php
$premiereFacture = $entetefacturegarant['premiereFacture'];
$commentaires = $entetefacturegarant['commentaires'];
?>
<legend><?= _("FACTURATION CAUTION PERMANENTE")?></legend>
<table class="table table-responsive table-condensed" style="font-size:12pt;">
<thead>
<tr>
<th style="text-align:center; font-size:12pt;" width="10%"><?= _("Montant") ?></th>
<th style="text-align:center; font-size:12pt;"><?= _("Ancien") ?></th>
<th style="text-align:center; font-size:12pt;"><?= _("Nouveau") ?></th>
</tr>
</thead>
<tbody>
<tr>
<td align="center"><?= _("HT") ?></td>
<td><INPUT class="form-control text-center" TYPE="text" id="montantHtCalcule" NAME="montantHtCalcule" value="<?= format_N($entetefacturegarant['montantHtCalcule']) ?>" style="font-size:12pt; height:30px;" disabled></td>
<td>
<?php if($premiereFacture=="1"):?>
<INPUT class="form-control text-center" TYPE="text" id="montantHt" NAME="montantHt" value="<?= format_N($entetefacturegarant['montantHt']) ?>" style="font-size:12pt; height:30px;" onchange="javascript:maj_ht_facturegarant_temp();"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" required AUTOCOMPLETE="OFF" autofocus>
<?php else:?>
<INPUT class="form-control text-center" TYPE="text" id="montantHt" NAME="montantHt" value="<?= format_N($entetefacturegarant['montantHt']) ?>" style="font-size:12pt; height:30px;" onchange="javascript:maj_ht_facturegarant_temp();"
disabled>
<?php endif;?>
</td>
</tr>
<tr>
<td align="center"><?= _("Taxes") ?></td>
<td><INPUT class="form-control text-center" TYPE="text" id="taxeCalcule" NAME="taxeCalcule" value="<?= format_N($entetefacturegarant['taxeCalcule']) ?>" style="font-size:12pt; height:30px;" disabled></td>
<td><INPUT class="form-control text-center" TYPE="text" id="taxe" NAME="taxe" value="<?= format_N($entetefacturegarant['taxe']) ?>" style="font-size:12pt; height:30px;" disabled></td>
</tr>
<tr>
<td align="center"><?= _("TTC") ?></td>
<td><INPUT class="form-control text-center" TYPE="text" id="montantTtcCalcule" NAME="montantTtcCalcule" value="<?= format_N($entetefacturegarant['montantTtcCalcule']) ?>" style="font-size:12pt; height:30px;" disabled></td>
<td><INPUT class="form-control text-center" TYPE="text" id="montantTtc" NAME="montantTtc" value="<?= format_N($entetefacturegarant['montantTtc']) ?>" style="font-size:12pt; height:30px;" disabled></td>
</tr>
<tr>
<td colspan="3" height="20">
</td>
</tr>
<?php if($premiereFacture == "1" || $entetefacturegarant['montantHt']>"0"):?>
<tr>
<td colspan="3">
<input id="btn_faccaut" name="btn_faccaut" class = "form-control btn btn-primary" type="button" value="<?= _("Générer Facture Caution Permanente") ?>" onClick="genererfacturecautiongarant();" style='font-size:12pt;' >
</td>
</tr>
<?php endif;?>
<tr>
<td align="center"><?= _("Commentaires") ?></td>
<td colspan="2">
<textarea style='font-size:12pt; width:100%;' rows="10" cols="100" class="form-control-lg" disabled><?= $commentaires;?></textarea>
</td>
</tr>
</tbody>
</table>