From 1b7bc6af2c46938d8801dcc4f578a7b20139b6a1 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 14 Apr 2021 12:59:12 -0400 Subject: [PATCH] Fixed Number formating with pdf invoice --- invoice.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/invoice.php b/invoice.php index 6b5ba183..3f0d7dba 100644 --- a/invoice.php +++ b/invoice.php @@ -651,10 +651,8 @@ var docDefinition = { $item_tax = $row['item_tax']; $item_total = $row['item_total']; $tax_id = $row['tax_id']; - $total_tax = $item_tax + $total_tax; - $total_tax = number_format($total_tax,2); + $total_tax = $item_tax + $total_tax; $sub_total = $item_price * $item_quantity + $sub_total; - $sub_total = number_format($sub_total, 2); ?> // Item @@ -674,15 +672,15 @@ var docDefinition = { style:'itemQty' }, { - text:'$', + text:'$', style:'itemNumber' }, { - text:'$', + text:'$', style:'itemNumber' }, { - text: '$', + text: '$', style:'itemNumber' } ], @@ -724,7 +722,7 @@ var docDefinition = { style:'itemsFooterSubTitle' }, { - text:'$', + text:'$', style:'itemsFooterSubValue' } ],