This commit is contained in:
Cüneyt Şentürk
2018-08-18 17:16:19 +03:00
parent b2e25990a1
commit 398c8d38a6
5 changed files with 60 additions and 4 deletions

View File

@ -365,6 +365,19 @@ class Items extends Controller
$json->grand_total = money($grand_total, $currency_code, true)->format();
// Get currency object
$currency = Currency::where('code', $currency_code)->first();
$json->currency_name = $currency->name;
$json->currency_code = $currency_code;
$json->currency_rate = $currency->rate;
$json->thousands_separator = $currency->thousands_separator;
$json->decimal_mark = $currency->decimal_mark;
$json->precision = (int) $currency->precision;
$json->symbol_first = $currency->symbol_first;
$json->symbol = $currency->symbol;
return response()->json($json);
}