Skip to content
Snippets Groups Projects
Commit 0eb478b7 authored by Michael Leon Putra Widhi's avatar Michael Leon Putra Widhi
Browse files

feat : add rupiah annotation on history

parent 6f74d455
Branches
No related merge requests found
...@@ -19,7 +19,10 @@ window.onload = function() { ...@@ -19,7 +19,10 @@ window.onload = function() {
grid.appendChild(divDate); grid.appendChild(divDate);
var divTotalPrice = document.createElement('div'); var divTotalPrice = document.createElement('div');
divTotalPrice.textContent = item.totalprice; divTotalPrice.textContent = item.totalprice.toLocaleString("id-ID", {
style: "currency",
currency: "IDR",
});;
divTotalPrice.className = 'grid-value'; divTotalPrice.className = 'grid-value';
grid.appendChild(divTotalPrice); grid.appendChild(divTotalPrice);
}); });
...@@ -43,7 +46,10 @@ window.onload = function() { ...@@ -43,7 +46,10 @@ window.onload = function() {
grid.appendChild(divDate); grid.appendChild(divDate);
var divNominal = document.createElement('div'); var divNominal = document.createElement('div');
divNominal.textContent = item.amount; divNominal.textContent = item.amount.toLocaleString("id-ID", {
style: "currency",
currency: "IDR",
});;
divNominal.className = 'grid-value'; divNominal.className = 'grid-value';
grid.appendChild(divNominal); grid.appendChild(divNominal);
}); });
......
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