Enlève 0 dans colonnes res et sae

Source : app/static/js/table_recap.js
This commit is contained in:
Martin Murzeau 2022-04-05 13:22:11 +02:00
parent 6b49c8472d
commit 62e9c02680

View File

@ -96,7 +96,7 @@ $(function () {
},
{
// Elimine les 0 à gauche pour les exports excel et les "copy"
targets: ["col_mod", "col_moy_gen", "col_ue"],
targets: ["col_mod", "col_moy_gen", "col_ue", "col_res", "col_sae"],
render: function (data, type, row) {
return type === 'export' ? data.replace(/0(\d\..*)/, '$1') : data;
}