1
0
forked from ScoDoc/ScoDoc

Merge pull request 'Enlève 0 dans colonnes res et sae' (#353) from martin.murzeau/ScoDocMM:master into master

Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/353
This commit is contained in:
Emmanuel Viennet 2022-04-05 14:03:36 +02:00
commit f42b54244e

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;
}