Fixed issue where balance wasnt showing due to the number formating with a , before calculation

This commit is contained in:
johnny@pittpc.com 2021-03-05 13:52:42 -05:00
parent 95bdc2fbd9
commit 713778d094
1 changed files with 1 additions and 2 deletions

View File

@ -77,7 +77,6 @@ if(isset($_GET['invoice_id'])){
$amount_paid = $row['amount_paid'];
$balance = $invoice_amount - $amount_paid;
$balance = number_format($balance,2);
//check to see if overdue
if($invoice_status !== "Paid" AND $invoice_status !== "Draft" AND $invoice_status !== "Cancelled"){
@ -765,7 +764,7 @@ include("footer.php");
style:'itemsFooterSubTitle'
},
{
text: '$<?php echo $balance; ?>',
text: '$<?php echo number_format($balance,2); ?>',
style:'itemsFooterSubValue'
}
],