{% if serializationGroups is not defined %}{% set serializationGroups = [] %}{% endif %}
<script type="application/json" data-type="module-data">
{
"module" : {
"name": "{{ module ?? 'core' }}",
"data": {{ (moduleData is defined ? moduleData|serialize('json',serializationGroups) : "{}")|raw }}
},
"locale": "{{ app.request.locale|split('_')[0] }}",
"accounting": {
"currency": {
"symbol": "{{ currencyFormatter().currencySymbol(currency is defined ? currency : null, true) }}",
"format": "{{ currencyFormatter().pattern }}",
"decimal": "{{ currencyFormatter().decimalSeparator }}",
"thousand": "{{ currencyFormatter().thousandSeparator }}",
"precision": 2
},
"number": {
"precision": 0,
"thousand": "{{ currencyFormatter().thousandSeparator }}",
"decimal": "{{ currencyFormatter().decimalSeparator }}"
}
}
}
</script>
{% include '@SolidInvoiceCore/_partials/status_labels.html.twig' %}