mirror of
https://github.com/itflow-org/itflow
synced 2026-03-16 18:54:51 +00:00
Do not show Send Invoice or Add Payment if Invoice Amount is 0
This commit is contained in:
@@ -159,7 +159,7 @@ if (isset($_GET['invoice_id'])) {
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<?php if ($invoice_status == 'Draft') { ?>
|
<?php if ($invoice_status == 'Draft' && $invoice_amount != 0) { ?>
|
||||||
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
|
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
|
||||||
<i class="fas fa-fw fa-paper-plane mr-2"></i>Send
|
<i class="fas fa-fw fa-paper-plane mr-2"></i>Send
|
||||||
</button>
|
</button>
|
||||||
@@ -176,7 +176,7 @@ if (isset($_GET['invoice_id'])) {
|
|||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($invoice_status !== 'Paid' && $invoice_status !== 'Cancelled' && $invoice_status !== 'Draft') { ?>
|
<?php if ($invoice_status !== 'Paid' && $invoice_status !== 'Cancelled' && $invoice_status !== 'Draft' && $invoice_amount != 0) { ?>
|
||||||
<a class="btn btn-success" href="#" data-toggle="modal" data-target="#addPaymentModal">
|
<a class="btn btn-success" href="#" data-toggle="modal" data-target="#addPaymentModal">
|
||||||
<i class="fa fa-fw fa-credit-card mr-2"></i>Add Payment
|
<i class="fa fa-fw fa-credit-card mr-2"></i>Add Payment
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user