|
|
@@ -19,6 +19,25 @@
|
|
|
?>
|
|
|
</div>
|
|
|
|
|
|
+ <?php
|
|
|
+ if(!Core::$user->getInvoiceAddress()) {
|
|
|
+ ?>
|
|
|
+ <div class="alert alert-warning">
|
|
|
+ <i class="fal fa-fw fa-exclamation-triangle"></i>
|
|
|
+ You have multiple addresses. <a href="/account/addresses">Click here</a> to manage your addresses and set one as the invoice address to enable the invoice link.
|
|
|
+ </div>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ if(!Core::$user->hasValidPaymentMethod()) {
|
|
|
+ ?>
|
|
|
+ <div class="alert alert-warning">
|
|
|
+ <i class="fal fa-fw fa-exclamation-triangle"></i>
|
|
|
+ You have no valid payment method. <a href="/account/settings">Click here</a> and verify your payment method settings are correct to enable the invoice link.
|
|
|
+ </div>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+
|
|
|
<div class="list-group">
|
|
|
<?php
|
|
|
|
|
|
@@ -76,7 +95,7 @@
|
|
|
<div class="col order-1 order-sm-1">
|
|
|
<strong>ID: <?=$test->id?></strong><br />
|
|
|
<?php
|
|
|
- if($test->status == Test::STATUS_COMPLETED) {
|
|
|
+ if($test->status == Test::STATUS_COMPLETED && $can_invoice) {
|
|
|
?>
|
|
|
<a href="#" data-toggle="modal" data-target="#modal-test-invoice" data-invoice data-id="<?=$test->id?>">
|
|
|
<i class="fal fa-fw fa-external-link"></i> Invoice
|