Added confirmation before generating PreorderBilling Invoices

This commit is contained in:
Frank Schubert
2025-06-16 05:31:10 +02:00
parent e12990086e
commit f5f7ad276f

View File

@@ -127,7 +127,7 @@ $pagination_entity_name = "Billingrecords";
<?php if(PreorderBilling::count(["invoice_id" => false])): ?>
<div class="row">
<div class="col">
<a class="btn btn-primary mb-2" href="<?=self::getUrl("PreorderBillingInvoice", "create")?>">
<a class="btn btn-primary mb-2" href="<?=self::getUrl("PreorderBillingInvoice", "create")?>" onclick="if(!confirm('Rechnungen jetzt erstellen? Dieser Schritt kann nicht rückgängig gemacht werden!')) return false;">
<i class="far fa-fw fa-file-invoice"></i> Rechnungen erstellen
</a>
</div>