76 lines
3.1 KiB
PHP
76 lines
3.1 KiB
PHP
<div id="contentTable">
|
|
<div class="breadcrumb" data-html2canvas-ignore>
|
|
<div class="crumb svg crumbhome">
|
|
<a href="<?php echo($_['url']['index']); ?>" class="icon-home"></a>
|
|
<span style="display: none;"></span>
|
|
</div>
|
|
<div class="crumb svg crumbhome">
|
|
<span><?php p($l->t('Invoice'));?></span>
|
|
</div>
|
|
<div class="crumb svg crumbhome">
|
|
<button style="margin-left:3px;" type="button" id="newInvoice">
|
|
<?php p($l->t('Add invoice'));?>
|
|
</button>
|
|
</div>
|
|
<!--<div class="crumb svg crumbhome">
|
|
<a><span id="newInvoice"><?php //p($l->t('Add invoice'));?></span></a>
|
|
</div>-->
|
|
</div>
|
|
<div class="d-flex justify-content-end">
|
|
<button id="showFacturePaymentModal" class="btn btn-secondary" data-toggle="modal" data-target="#facturePaymentModal">
|
|
Payer
|
|
</button>
|
|
<button class="btn btn-secondary" id="apercusFactures">Voir les aperçus</button>
|
|
</div>
|
|
<hr>
|
|
<table id="facture" class="display tabledt">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th><?php p($l->t('ID'));?></th>
|
|
<th><?php p($l->t('Invoice number'));?></th>
|
|
<th><?php p($l->t('Date of service'));?></th>
|
|
<th>Date de facture</th>
|
|
<th><?php p($l->t('Means of payment'));?></th>
|
|
<th>Devis associé</th>
|
|
<th>Société</th>
|
|
<th><?php p($l->t('Articles'));?></th>
|
|
<th><?php p($l->t('Status'));?></th>
|
|
<th><?php p($l->t('Date de paiement'));?></th>
|
|
<th><?php p($l->t('Généré'));?></th>
|
|
<th><?php p($l->t('Envoyé au client'));?></th>
|
|
<th><?php p($l->t('Actions'));?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
<div class="modal" id="facturePaymentModal" tabindex="-1">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">Choisir le mode de paiement et la date de paiement</h5>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="d-flex align-items-center gap-2">
|
|
<select class="form-select w-auto" name="payment_type" id="selectPaymentType">
|
|
<?php
|
|
$paymentTypes = $_['paymentTypes'];
|
|
foreach($paymentTypes as $paymentType){
|
|
?>
|
|
<option value="<?= $paymentType->id; ?>"><?= $paymentType->facture_payment_type_label; ?></option>
|
|
<?php
|
|
}
|
|
?>
|
|
<input type="date" id="facturePaymentDate">
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id="closeFacturePaymentModal" type="button" class="btn btn-secondary">Annuler</button>
|
|
<button id="payInvoice" type="button" class="btn btn-primary">Payer</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|