mirror of
https://github.com/itflow-org/itflow
synced 2026-03-02 11:54:52 +00:00
Fixed Number formating with pdf quote
This commit is contained in:
10
quote.php
10
quote.php
@@ -549,9 +549,7 @@ var docDefinition = {
|
|||||||
$item_total = $row['item_total'];
|
$item_total = $row['item_total'];
|
||||||
$tax_id = $row['tax_id'];
|
$tax_id = $row['tax_id'];
|
||||||
$total_tax = $item_tax + $total_tax;
|
$total_tax = $item_tax + $total_tax;
|
||||||
$total_tax = number_format($total_tax,2);
|
|
||||||
$sub_total = $item_price * $item_quantity + $sub_total;
|
$sub_total = $item_price * $item_quantity + $sub_total;
|
||||||
$sub_total = number_format($sub_total, 2);
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
// Item
|
// Item
|
||||||
@@ -571,15 +569,15 @@ var docDefinition = {
|
|||||||
style:'itemQty'
|
style:'itemQty'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text:'$<?php echo $item_price; ?>',
|
text:'$<?php echo number_format($item_price,2); ?>',
|
||||||
style:'itemNumber'
|
style:'itemNumber'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text:'$<?php echo $item_tax; ?>',
|
text:'$<?php echo number_format($item_tax,2); ?>',
|
||||||
style:'itemNumber'
|
style:'itemNumber'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '$<?php echo $item_total; ?>',
|
text: '$<?php echo number_format($item_total,2); ?>',
|
||||||
style:'itemNumber'
|
style:'itemNumber'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -621,7 +619,7 @@ var docDefinition = {
|
|||||||
style:'itemsFooterSubTitle'
|
style:'itemsFooterSubTitle'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text:'$<?php echo $sub_total; ?>',
|
text:'$<?php echo number_format($sub_total,2); ?>',
|
||||||
style:'itemsFooterSubValue'
|
style:'itemsFooterSubValue'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user