Skip to content

Commit

Permalink
Update ferias-proporcionais.js
Browse files Browse the repository at this point in the history
diasjoaovitor committed Jan 16, 2021
1 parent 15b8724 commit f4d4b14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/pages/ferias-proporcionais.js
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit f4d4b14

Please sign in to comment.