{% block ordermanager_admin_requ_ordersum %} {{ script({ include: "https://cdnjs.cloudflare.com/ajax/libs/cleave.js/1.6.0/cleave.min.js", dynamic: __oxid_include_dynamic }) }}
{% include "@d3ordermanager/admin/inc/d3ordermanager_activeswitch.html.twig" with {oActionRequ: oRequ, blActionRestriction: blActionRestriction, readonly: readonly} %}
{% if oView.isEditMode() %} {% block ordermanager_admin_requ_ordersum_editor %} {% set d3JsFnc %}{% apply spaceless %} new Cleave('#RequOrderSumValue', { numeral: true, numeralThousandsGroupStyle: 'thousand', numeralDecimalMark: ',', delimiter: '.', stripLeadingZeroes: false, swapHiddenInput: true }); {% endapply %}{% endset %} {{ script({ add: d3JsFnc.__toString(), dynamic: __oxid_include_dynamic }) }} {% endblock %} {% else %} {% block ordermanager_admin_requ_ordersum_viewer %} {% for type, translation in oRequ.getSumTypeList() %} {% if edit.getValue('sOrderSumType') == type %} {{ translate({ ident: translation }) }} {% endif %} {% endfor %} {% for type, translation in oRequ.getRelationList() %} {% if edit.getValue('sOrderSumRelation') == type %} {{ translate({ ident: translation }) }} {% endif %} {% endfor %} {% if edit.getValue('sOrderSumValue') %}{{ edit.getValue('sOrderSumValue') }}{% else %}0.00{% endif %} {{ translate({ ident: "D3_ORDERMANAGER_REQU_ORDERSUM_DEFCUR" }) }} {% endblock %} {% endif %} {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_REQU_ORDERSUM_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_REQU_ORDERSUM_DESC")} %}
{% endblock %}