<commit_before>{% extends 'admin/base.twig' %}

{% block content %}
    {% include 'cudi/admin/sales/session/partials/navigation.twig' %}

    {% include 'admin/partials/flashMessenger.twig' %}

    <div id="controller_action">
        {% import 'admin/partials/form.twig' as forms %}
        {{ forms.renderForm(form) }}
    </div>
{% endblock %}

{% block content_script %}
    <script type="text/javascript">
        $(document).ready(function () {
            {% if lastSession %}
                {% for amount in lastSession.getCloseRegister().getMoneyUnitAmounts() %}
                    $('#unit_{{ amount.getUnit().getId() }}').after(
                        $('<span>').css({'margin-left': '10px', 'color': '#999'}).html('({{ amount.getAmount() }})')
                    );
                {% endfor %}
                {% for device in lastSession.getCloseRegister().getBankDeviceAmounts() %}
                    $('#device_{{ device.getDevice().getId() }}').after(
                        $('<span>').css({'margin-left': '10px', 'color': '#999'}).html('({{ device.getAmount() }})')
                    );
                {% endfor %}
            {% endif %}
        });
    </script>
{% endblock %}<commit_msg>Forgot number_format<commit_after>{% extends 'admin/base.twig' %}

{% block content %}
    {% include 'cudi/admin/sales/session/partials/navigation.twig' %}

    {% include 'admin/partials/flashMessenger.twig' %}

    <div id="controller_action">
        {% import 'admin/partials/form.twig' as forms %}
        {{ forms.renderForm(form) }}
    </div>
{% endblock %}

{% block content_script %}
    <script type="text/javascript">
        $(document).ready(function () {
            {% if lastSession %}
                {% for amount in lastSession.getCloseRegister().getMoneyUnitAmounts() %}
                    $('#unit_{{ amount.getUnit().getId() }}').after(
                        $('<span>').css({'margin-left': '10px', 'color': '#999'}).html('({{ amount.getAmount() }})')
                    );
                {% endfor %}
                {% for device in lastSession.getCloseRegister().getBankDeviceAmounts() %}
                    $('#device_{{ device.getDevice().getId() }}').after(
                        $('<span>').css({'margin-left': '10px', 'color': '#999'}).html('({{ (device.getAmount()/100)|number_format(2) }})')
                    );
                {% endfor %}
            {% endif %}
        });
    </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.20161943319838058, 'fraction_numerical': 0.009716599190283401, 'mean_word_length': 2.0619578686493183, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2770932', 'n_tokens_mistral': 784, 'n_tokens_neox': 686, 'n_words': 109}