|
@@ -901,7 +901,7 @@ function __construct(){
|
|
$discount_amount = isset($tmp_discount_amount[$k])?$tmp_discount_amount[$k]:0;
|
|
$discount_amount = isset($tmp_discount_amount[$k])?$tmp_discount_amount[$k]:0;
|
|
$extra_price[$k] = [
|
|
$extra_price[$k] = [
|
|
'qty'=>$qty,
|
|
'qty'=>$qty,
|
|
- 'price'=>$price,
|
|
|
|
|
|
+ 'price'=>sprintf("%.2f",$price),
|
|
'row_total'=> sprintf("%.2f",($row_total*1 - $discount_amount*1 + $tax_amount*1)) ,
|
|
'row_total'=> sprintf("%.2f",($row_total*1 - $discount_amount*1 + $tax_amount*1)) ,
|
|
'sub_total'=>$price*$qty,
|
|
'sub_total'=>$price*$qty,
|
|
'tax_amount'=>$tax_amount,
|
|
'tax_amount'=>$tax_amount,
|