diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 732762d6..afa032ee 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -8,12 +8,6 @@ MISC ITEMS THAT CAME UP todo: datatable number currency zero shows blank on grid, not zero Saw it in the imported rates -todo: datatable numbers - currency and possibly other numbers should center justify in their columns or left or whatever it takes to not look so weird but still be comparable / lined up or whatever - OR - Maybe it's the column header itself that should be moved - NOTE: CUrrency has problem, decimal apparently does not...investigate - todo: NEXT DEPLOY TO DEVOPS attach a photo from phone, no error just does nothing diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 2f52ec18..014460a5 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -234,9 +234,6 @@ export default { if (!value) { return false; } - if (value == "") { - return false; - } return new Date(value) < new Date(); }, @@ -245,7 +242,7 @@ export default { // currency display // currencyLocalized(value, languageName, currencyName) { - if (!value) return ""; + if (value == null) return ""; if (!languageName) { languageName = this.getBrowserLanguages(); } @@ -263,7 +260,7 @@ export default { // decimal format display // decimalLocalized(value, languageName) { - if (!value) return ""; + if (value == null) return ""; if (!languageName) { languageName = this.getBrowserLanguages(); }