From f4d4b148349b6a358d1abb597fd3ddeebef6f83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vitor=20Dias?= Date: Sat, 16 Jan 2021 09:40:20 -0300 Subject: [PATCH] Update ferias-proporcionais.js --- client/src/pages/ferias-proporcionais.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/pages/ferias-proporcionais.js b/client/src/pages/ferias-proporcionais.js index a51ac25..5a474a7 100644 --- a/client/src/pages/ferias-proporcionais.js +++ b/client/src/pages/ferias-proporcionais.js @@ -39,7 +39,9 @@ export default function FeriasProporcionais() { await api.create(data) const value = (salary / 12) * period - const total = value + oneThird + const total = Number(value) + Number(oneThird) + + console.log(total) pdfMake.createPdf( document( @@ -120,7 +122,7 @@ function document(name, RG, year, salary, oneThird, value, extensive, extensiveO text: `Ano: ${year}`, margin: [0, 5] }, { - text: `Salario base: ${salary}` + text: `Salário base: ${salary}` }, { text: `1/3 férias: ${oneThird}`, margin: [0, 5]