-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a component to assign the delivery notes to an invoice
- Loading branch information
1 parent
5f35d8c
commit 65ecf7a
Showing
7 changed files
with
76 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
// Optional passed variables: | ||
// $invoiceId => Current invoice id | ||
if (!isset($invoiceId)) { | ||
$invoiceId = null; | ||
} | ||
?> | ||
<label for="deliveryNotes" class="required"><?= __('DeliveryNotes') ?>:</label><br> | ||
<?php | ||
$index = 0; | ||
/** @var \App\Models\DeliveryNote $deliveryNote */ | ||
foreach ($deliveryNotes as $deliveryNote) { | ||
?> | ||
<label> | ||
<input type="hidden" name="deliveryNote[<?= $index ?>]" value="<?= $deliveryNote->getId() ?>-0"> | ||
<input type="checkbox" name="deliveryNote[<?= $index ?>]" value="<?= $deliveryNote->getId() ?>-1" | ||
<?php | ||
if ($deliveryNote->getInvoiceId() === $invoiceId) { | ||
echo ' checked'; | ||
} | ||
?>> | ||
<?= $deliveryNote->getYear() ?> <?= $deliveryNote->getNr() ?> | ||
</label><br> | ||
<?php $index++; } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters