Commit ec9ffca7 authored by Eric Seigne's avatar Eric Seigne
Browse files

nb format fr

parent de80e43a
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
var icone = faIcone(data.label, data.type_frais_id); var icone = faIcone(data.label, data.type_frais_id);
var texte = ladate + " " + data.label; var texte = ladate + " " + data.label;
if (data.ttc > 0) { if (data.ttc > 0) {
texte += " (" + data.ttc + ")"; texte += " (" + nbFR.format(data.ttc) + ")";
} }
var loadthis = "<ons-list-item modifier=\"longdivider\" tappable onclick=\"localStoreData('ldfId','" + data.sid + "');gotoPage('detailsLdf.html', true);\"><div class=\"left\">" + icone + "</div><div class=\"center\">" + texte + "</div></ons-list-item>"; var loadthis = "<ons-list-item modifier=\"longdivider\" tappable onclick=\"localStoreData('ldfId','" + data.sid + "');gotoPage('detailsLdf.html', true);\"><div class=\"left\">" + icone + "</div><div class=\"center\">" + texte + "</div></ons-list-item>";
$(loadthis).hide().appendTo($('#contenuNDFS')).fadeIn(1000); $(loadthis).hide().appendTo($('#contenuNDFS')).fadeIn(1000);
......
...@@ -66,6 +66,11 @@ function dateFormatYYYYMMDD(ladate) { ...@@ -66,6 +66,11 @@ function dateFormatYYYYMMDD(ladate) {
return (y + "-" + m + "-" + d); return (y + "-" + m + "-" + d);
} }
var nbFR = new Intl.NumberFormat('fr-FR', {
style: 'currency',
currency: 'EUR',
});
//basename d'un fichier //basename d'un fichier
function basename(path) { function basename(path) {
return path.replace(/\\/g, '/').replace(/.*\//, ''); return path.replace(/\\/g, '/').replace(/.*\//, '');
...@@ -201,7 +206,7 @@ function feedToSync(formField) { ...@@ -201,7 +206,7 @@ function feedToSync(formField) {
let data = JSON.parse(jsonData); let data = JSON.parse(jsonData);
html += "<div style=\"clear:both\">" + id + ": " + data.typeFrais + " du " + data.ladate + " (" + data.label + ", " + data.ttc + " ) <br /><div style=\"float:right\"><ons-button modifier=\"material\" onclick=\"rSyncOne(" + id + ");\">Synchroniser</ons-button> <ons-button modifier=\"material\" onclick=\"rSyncDeleteConfirm(" + id + ");\">Supprimer</ons-button></div></div><hr />\n"; html += "<div style=\"clear:both\">" + id + ": " + data.typeFrais + " du " + data.ladate + " (" + data.label + ", " + nbFR(data.ttc) + " ) <br /><div style=\"float:right\"><ons-button modifier=\"material\" onclick=\"rSyncOne(" + id + ");\">Synchroniser</ons-button> <ons-button modifier=\"material\" onclick=\"rSyncDeleteConfirm(" + id + ");\">Supprimer</ons-button></div></div><hr />\n";
} }
$(formField).append(html); $(formField).append(html);
}, },
......
...@@ -393,7 +393,7 @@ function endSendFormForUpdate(formdata) { ...@@ -393,7 +393,7 @@ function endSendFormForUpdate(formdata) {
complete: function (request, textStatus, errorThrown) { complete: function (request, textStatus, errorThrown) {
myDebug("Request PUT finished (complete signal) : " + textStatus); myDebug("Request PUT finished (complete signal) : " + textStatus);
myDebug('Taille des donees envoyees sur le serveur : ' + request.getResponseHeader('Content-Length') + ' octets'); myDebug('Taille des donees envoyees sur le serveur : ' + request.getResponseHeader('Content-Length') + ' octets');
if (request.status == "201") { if (request.status == "200") {
gotoPage('messageDone.html', false); gotoPage('messageDone.html', false);
} }
else { else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment