|
@@ -174,10 +174,14 @@ class Sell
|
|
|
|
|
|
if (!$info['wallet_cash']) {
|
|
|
$info['wallet_cash'] = 0;
|
|
|
+ } else {
|
|
|
+ $info['wallet_cash'] = round($info['wallet_cash'], 2);
|
|
|
}
|
|
|
|
|
|
if (!$info['card_code_cash']) {
|
|
|
$info['card_code_cash'] = 0;
|
|
|
+ } else {
|
|
|
+ $info['card_code_cash'] = round($info['card_code_cash'], 2);
|
|
|
}
|
|
|
|
|
|
$info['card_name'] = '';
|
|
@@ -516,6 +520,8 @@ class Sell
|
|
|
$data['card']['cash'] = $card_cash;
|
|
|
$data['price'] -= $data['card']['cash'];
|
|
|
}
|
|
|
+
|
|
|
+ $data['card']['cash'] = round($data['card']['cash'], 2);
|
|
|
}
|
|
|
}
|
|
|
} elseif ($wallet && $wallet > 0) {
|
|
@@ -527,6 +533,8 @@ class Sell
|
|
|
$data['price'] = 0;
|
|
|
}
|
|
|
|
|
|
+ $data['price'] = round($data['price'], 2);
|
|
|
+
|
|
|
return $data;
|
|
|
}
|
|
|
|