added type change and rounding to useSum

This commit is contained in:
2025-04-01 16:17:07 +02:00
parent b5287f4a7d
commit 621c61c094

View File

@@ -72,7 +72,7 @@ export const useSum = () => {
let sumToPay = totalGross - totalGrossAlreadyPaid let sumToPay = totalGross - totalGrossAlreadyPaid
return sumToPay return Number(sumToPay.toFixed(2))
} }
const getCreatedDocumentSumDetailed = (createddocument) => { const getCreatedDocumentSumDetailed = (createddocument) => {