updated money package to 5.0 version
				
					
				
			This commit is contained in:
		| @@ -98,11 +98,11 @@ trait Charts | ||||
|     public function getChartLabelFormatter($type = 'money', $position = null) | ||||
|     { | ||||
|         $label = ''; | ||||
|         $decimal_mark = str_replace("'", "\\'", config('money.' . default_currency() . '.decimal_mark')); | ||||
|         $thousands_separator = str_replace("'", "\\'", config('money.' . default_currency() . '.thousands_separator')); | ||||
|         $symbol = str_replace("'", "\\'", config('money.' . default_currency() . '.symbol')); | ||||
|         $symbol_first = str_replace("'", "\\'", config('money.' . default_currency() . '.symbol_first')); | ||||
|         $precision = str_replace("'", "\\'", config('money.' . default_currency() . '.precision')); | ||||
|         $decimal_mark = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.decimal_mark')); | ||||
|         $thousands_separator = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.thousands_separator')); | ||||
|         $symbol = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.symbol')); | ||||
|         $symbol_first = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.symbol_first')); | ||||
|         $precision = str_replace("'", "\\'", config('money.currencies.' . default_currency() . '.precision')); | ||||
|         $percent_position = $position ?: setting('localisation.percent_position'); | ||||
|  | ||||
|         switch ($type) { | ||||
|   | ||||
| @@ -95,11 +95,11 @@ trait Import | ||||
|         $data = [ | ||||
|             'company_id'    => company_id(), | ||||
|             'code'          => $row['currency_code'], | ||||
|             'name'          => isset($row['currency_name']) ? $row['currency_name'] : config('money.' . $row['currency_code'] . '.name'), | ||||
|             'name'          => isset($row['currency_name']) ? $row['currency_name'] : config('money.currencies.' . $row['currency_code'] . '.name'), | ||||
|             'rate'          => isset($row['currency_rate']) ? $row['currency_rate'] : 1, | ||||
|             'symbol'        => isset($row['currency_symbol']) ? $row['currency_symbol'] : config('money.' . $row['currency_code'] . '.symbol'), | ||||
|             'precision'     => isset($row['currency_precision']) ? $row['currency_precision'] : config('money.' . $row['currency_code'] . '.precision'), | ||||
|             'decimal_mark'  => isset($row['currency_decimal_mark']) ? $row['currency_decimal_mark'] : config('money.' . $row['currency_code'] . '.decimal_mark'), | ||||
|             'symbol'        => isset($row['currency_symbol']) ? $row['currency_symbol'] : config('money.currencies.' . $row['currency_code'] . '.symbol'), | ||||
|             'precision'     => isset($row['currency_precision']) ? $row['currency_precision'] : config('money.currencies.' . $row['currency_code'] . '.precision'), | ||||
|             'decimal_mark'  => isset($row['currency_decimal_mark']) ? $row['currency_decimal_mark'] : config('money.currencies.' . $row['currency_code'] . '.decimal_mark'), | ||||
|             'created_from'  => !empty($row['created_from']) ? $row['created_from'] : $this->getSourcePrefix() . 'import', | ||||
|             'created_by'    => !empty($row['created_by']) ? $row['created_by'] : user()->id, | ||||
|         ]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user