Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 292d0b85d9 |
+4
-1
@@ -2598,7 +2598,10 @@ function openEditModal(full) {
|
||||
// helper para fmt table cell
|
||||
const fmtCell = (v, isNum) => {
|
||||
if (v === null || v === undefined || v === '') return '';
|
||||
if (isNum) return fmtMoney(v);
|
||||
if (isNum) {
|
||||
const n = parseFloat(v);
|
||||
return isNaN(n) ? '' : 'R$ ' + n.toLocaleString('pt-BR', { minimumFractionDigits: 2 });
|
||||
}
|
||||
return v;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user