<commit_before><?php
/**
 * FoodCoopShop - The open source software for your foodcoop
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @since         FoodCoopShop 3.2.0
 * @license       https://opensource.org/licenses/mit-license.php MIT License
 * @author        <NAME> <<EMAIL>>
 * @copyright     Copyright (c) <NAME>, https://www.rothauer-it.com
 * @link          https://www.foodcoopshop.com
 */

use Cake\Core\Configure;

if ($groupBy == 'customer' && Configure::read('appDb.FCS_SEND_INVOICES_TO_CUSTOMERS') && $appAuth->isSuperadmin()) {
    echo '<td>';
        echo $this->Html->link(
            '<i class="fas fa-fw ok fa-file-invoice"></i> ' . __d('admin', 'Invoice') . ' - ' . $this->Number->formatAsCurrency($orderDetail['invoiceData']->sumPriceIncl),
            'javascript:void(0);',
            [
                'escape' => false,
                'class' => 'btn btn-outline-light invoice-for-customer-button ' . (!$orderDetail['invoiceData']->new_invoice_necessary ? 'disabled' : ''),
            ]
        );
    echo '</td>';
}

?><commit_msg>wording<commit_after><?php
/**
 * FoodCoopShop - The open source software for your foodcoop
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @since         FoodCoopShop 3.2.0
 * @license       https://opensource.org/licenses/mit-license.php MIT License
 * @author        <NAME> <<EMAIL>>
 * @copyright     Copyright (c) <NAME>, https://www.rothauer-it.com
 * @link          https://www.foodcoopshop.com
 */

use Cake\Core\Configure;

if ($groupBy == 'customer' && Configure::read('appDb.FCS_SEND_INVOICES_TO_CUSTOMERS') && $appAuth->isSuperadmin()) {
    echo '<td>';
        echo $this->Html->link(
            '<i class="fas fa-fw ok fa-file-invoice"></i> ' . __d('admin', 'Invoice') . ': ' . $this->Number->formatAsCurrency($orderDetail['invoiceData']->sumPriceIncl),
            'javascript:void(0);',
            [
                'escape' => false,
                'class' => 'btn btn-outline-light invoice-for-customer-button ' . (!$orderDetail['invoiceData']->new_invoice_necessary ? 'disabled' : ''),
            ]
        );
    echo '</td>';
}

?>
{'fraction_non_alphanumeric': 0.162839248434238, 'fraction_numerical': 0.003340292275574113, 'mean_word_length': 2.7851500789889414, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 39, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5629576', 'n_tokens_mistral': 744, 'n_tokens_neox': 740, 'n_words': 160}