+ Fix bugs of currency rounding v2
This commit is contained in:
parent
df5f2c6121
commit
bfd3a246e4
|
@ -326,7 +326,7 @@ class Hyperviseur_dash extends CI_Controller
|
|||
} elseif ($this->input->get('show')) {
|
||||
$this->show_config_infos($this->input->get('show'));
|
||||
}else {
|
||||
$context = new CustomContext(2);
|
||||
$context = new AutoContext();
|
||||
|
||||
$data["commission"] = "";
|
||||
$data["principal"] = "";
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
use Brick\Money\Context\CustomContext;
|
||||
use Brick\Money\Money;
|
||||
$context = new CustomContext(2);
|
||||
$context = new \Brick\Money\Context\AutoContext();
|
||||
function convertDate($date)
|
||||
{
|
||||
$month = null;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
use Brick\Money\Context\CustomContext;
|
||||
use Brick\Money\Money;
|
||||
$context = new CustomContext(2);
|
||||
$context = new \Brick\Money\Context\AutoContext();
|
||||
function convertDate($date)
|
||||
{
|
||||
$month = null;
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
|
||||
use Brick\Money\Context\CustomContext;
|
||||
use Brick\Money\Money;
|
||||
$context = new CustomContext(2);
|
||||
$context = new \Brick\Money\Context\AutoContext();
|
||||
function convertDate($date){
|
||||
$month = null;
|
||||
switch ($date) {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
use Brick\Money\Context\CustomContext;
|
||||
use Brick\Money\Money;
|
||||
$context = new CustomContext(2);
|
||||
$context = new \Brick\Money\Context\AutoContext();
|
||||
$site_url = base_url();
|
||||
|
||||
if ($alert == "ok") {
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<div class="content-wrapper">
|
||||
<?php
|
||||
|
||||
use Brick\Money\Context\AutoContext;
|
||||
use Brick\Money\Context\CustomContext;
|
||||
use Carbon\Carbon;
|
||||
use Brick\Money\CurrencyConverter;
|
||||
|
@ -79,7 +80,7 @@ use Brick\Money\Money;
|
|||
|
||||
// this currency converter can now handle any currency pair
|
||||
$converter = new CurrencyConverter($provider);
|
||||
$context = new CustomContext(2);
|
||||
$context = new AutoContext();
|
||||
?>
|
||||
</section>
|
||||
<section class="content">
|
||||
|
|
Loading…
Reference in New Issue