Added Credit CSV download to Invoice/Index

This commit is contained in:
Frank Schubert
2024-07-12 18:57:46 +02:00
parent 1ca399786f
commit 5e5e4de27d
5 changed files with 103 additions and 51 deletions

View File

@@ -151,7 +151,11 @@ $pagination_entity_name = "Rechnungen";
<td class="<?=($total_gross < 0) ? "text-danger" : ""?>">€ <?=number_format($total_gross,2,",",".")?></td>
<td><?=($invoice->billing_type == "sepa") ? "SEPA" : "Überweisung"?></td>
<td><?=($invoice->billing_delivery == "email") ? "Email" : "Papier"?></td>
<td><a href="<?=self::getUrl("Invoice", "downloadInvoice", ["id" => $invoice->id])?>"><i class="fas fa-download fa-fw"></i></a></td>
<td>
<?php if($invoice->total < 0): ?>
<a class="text-danger" href="<?=self::getUrl("Invoice", "downloadInvoiceCsv", ["id" => $invoice->id])?>"><i class="fas fa-file-csv fa-fw"></i></a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>