mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 12:18:11 +00:00
Generate ticket, dashboard, excess luggage rate updates
This commit is contained in:
@@ -4,8 +4,9 @@ export const formatCurrency = (amount: number, currency: string = 'ETB'): string
|
||||
return new Intl.NumberFormat('en-US', {
|
||||
style: 'currency',
|
||||
currency,
|
||||
currencyDisplay: 'code',
|
||||
minimumFractionDigits: 2,
|
||||
}).format(amount / 100);
|
||||
}).format(amount / 100).replace(/^([A-Z]{3})/, '$1 ').trim();
|
||||
};
|
||||
|
||||
export const formatDate = (date?: string | Date | null, formatStr: string = 'MMM dd, yyyy'): string => {
|
||||
|
||||
Reference in New Issue
Block a user