refs #451 Invoice create added item price mask

This commit is contained in:
cuneytsenturk
2018-08-17 17:10:23 +03:00
parent 33673def5b
commit 17b582796d
13 changed files with 636 additions and 276 deletions

View File

@ -365,9 +365,16 @@ class Customers extends Controller
// Get currency object
$currency = Currency::where('code', $currency_code)->first();
$customer->currency_name = $currency->name;
$customer->currency_code = $currency_code;
$customer->currency_rate = $currency->rate;
$customer->thousands_separator = $currency->thousands_separator;
$customer->decimal_mark = $currency->decimal_mark;
$customer->precision = (int) $currency->precision;
$customer->symbol_first = $currency->symbol_first;
$customer->symbol = $currency->symbol;
return response()->json($customer);
}