feat(F-156): completed feature

This commit is contained in:
chattie
2026-08-22 06:21:35 +02:00
parent 3b74fc10d2
commit 7a8595bebb
11 changed files with 181 additions and 12 deletions

View File

@@ -127,6 +127,6 @@ export function formatPrice(cents: number): string {
}
export function calcGrossPrice(netCents: number, vatRate: 'general' | 'reduced'): number {
const rate = vatRate === 'general' ? 0.21 : 0.10;
const rate = vatRate === 'general' ? 0.21 : 0.1;
return Math.round(netCents * (1 + rate));
}