• File: merge_invoice.php
  • Full Path: /var/www/crm_set/application/views/admin/invoices/merge_invoice.php
  • Date Modified: 09/21/2026 4:19 AM
  • File size: 1.56 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php defined('BASEPATH') or exit('No direct script access allowed');
if (count($invoices_to_merge) > 0) { ?>
<div class="mergeable-invoices">
    <h4 class="tw-font-semibold tw-mb-4"><?php echo _l('invoices_available_for_merging'); ?></h4>
    <?php foreach ($invoices_to_merge as $_inv) { ?>
    <div class="checkbox">
        <input type="checkbox" name="invoices_to_merge[]" value="<?php echo $_inv->id; ?>">
        <label for="">
            <a href="<?php echo admin_url('invoices/list_invoices/' . $_inv->id); ?>" data-toggle="tooltip"
                data-title="<?php echo format_invoice_status($_inv->status, '', false); ?>" target="_blank">
                <?php echo format_invoice_number($_inv->id); ?>
            </a> - <?php echo app_format_money($_inv->total, $_inv->currency_name); ?>
        </label>
    </div>
    <?php
                if ($_inv->discount_total > 0) {
                    echo '<b>' . _l('invoices_merge_discount', app_format_money($_inv->discount_total, $_inv->currency_name)) . '</b><br />';
                }
                ?>
    <?php } ?>
    <p>
    <div class="checkbox checkbox-info">
        <input type="checkbox" checked name="cancel_merged_invoices" id="cancel_merged_invoices">
        <label for="cancel_merged_invoices"><i class="fa-regular fa-circle-question" data-toggle="tooltip"
                data-title="<?php echo _l('invoice_merge_number_warning'); ?>" data-placement="bottom"></i>
            <?php echo _l('invoices_merge_cancel_merged_invoices'); ?></label>
    </div>
    </p>
</div>
<?php } ?>