Fixed TS #39
This commit is contained in:
@@ -39,8 +39,8 @@ const getCreatedDocumentTotal = (item: any) => {
|
||||
if (!['pagebreak', 'title', 'text'].includes(row.mode)) {
|
||||
let rowPrice = Number(Number(row.quantity) * Number(row.price) * (1 - Number(row.discountPercent) / 100)).toFixed(3);
|
||||
totalNet = totalNet + Number(rowPrice);
|
||||
if (row.taxPercent === 19) total19 += Number(rowPrice * 0.19);
|
||||
else if (row.taxPercent === 7) total7 += Number(rowPrice * 0.07);
|
||||
if (row.taxPercent === 19) total19 += Number(rowPrice) * Number(0.19);
|
||||
else if (row.taxPercent === 7) total7 += Number(rowPrice) * Number(0.07);
|
||||
}
|
||||
});
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user