Skip to content

Commit

Permalink
fix: balance number in two points after point
Browse files Browse the repository at this point in the history
  • Loading branch information
Saksham-Chauhan committed Aug 8, 2023
1 parent d33888c commit be85ae7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/invoice/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ function generatePDF(response) {
}

function getInvoiceObject(payload) {
console.log(payload);
return {
name:
payload?.contactDetails?.first_name +
Expand Down Expand Up @@ -82,7 +81,9 @@ function getInvoiceObject(payload) {
10
) / 10
).toFixed(2),
balance: payload?.invoiceData?.amount - payload?.invoiceData?.balance,
balance: (
payload?.invoiceData?.amount - payload?.invoiceData?.balance
).toFixed(2),
earlyPayDate: new getEarlyPayData(payload?.invoiceData)?.date,
earlyPayDiscount: getEarlyPayData(payload?.invoiceData)?.discount,
earlyPayAmt: (
Expand Down

0 comments on commit be85ae7

Please sign in to comment.