Enhance client dashboard summary calculations: Update SQL queries to accurately reflect total confirmed and pending deposits, and adjust metrics for average cost basis and remaining balance. Modify API and frontend to ensure values are in full currency units, improving clarity and consistency in financial data representation.
This commit is contained in:
parent
4f0d2adf2a
commit
9ea8c37940
3 changed files with 33 additions and 24 deletions
|
|
@ -14,11 +14,11 @@ window.app = Vue.createApp({
|
|||
methods: {
|
||||
formatCurrency(amount) {
|
||||
if (!amount) return 'Q 0.00';
|
||||
// Convert centavos to quetzales
|
||||
// Values are already in full currency units, not centavos
|
||||
return new Intl.NumberFormat('es-GT', {
|
||||
style: 'currency',
|
||||
currency: 'GTQ',
|
||||
}).format(amount / 100);
|
||||
}).format(amount);
|
||||
},
|
||||
|
||||
formatDate(dateString) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue