Skip to content

Commit 53713a0

Browse files
committed
Add back batch payment when in client view for invoices
1 parent 61aa477 commit 53713a0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

invoices.php

+10-4
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,16 @@
180180
</div>
181181
</div>
182182
</div>
183-
<div class="col-sm-8">
184-
<div class="btn-group float-right">
183+
<div class="col-md-8">
184+
<?php if ($client_url) { ?>
185+
<div class="float-right">
186+
<div class="btn-group float-right">
187+
<?php if ($balance > 0) { ?>
188+
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#addBulkPaymentModal"><i class="fa fa-credit-card mr-2"></i>Batch Payment</button>
189+
<?php } ?>
190+
</div>
185191
</div>
192+
<?php } ?>
186193
</div>
187194
</div>
188195
<div class="collapse mt-3 <?php if (!empty($_GET['dtf']) || $_GET['canned_date'] !== "custom" ) { echo "show"; } ?>" id="advancedFilter">
@@ -380,7 +387,6 @@
380387

381388
<?php
382389
require_once "modals/invoice_add_modal.php";
390+
if ($client_url) { require_once "modals/invoice_payment_add_bulk_modal.php"; }
383391
require_once "modals/invoice_export_modal.php";
384-
385392
require_once "includes/footer.php";
386-

0 commit comments

Comments
 (0)