close #582: Bill Vendor Currency Mask Issue

This commit is contained in:
cuneytsenturk 2018-11-02 16:26:02 +03:00
parent af95d9b552
commit dd836a943b

View File

@ -311,7 +311,7 @@ class Vendors extends Controller
if (empty($vendor_id)) {
return response()->json([]);
}
$vendor = Vendor::find($vendor_id);
if (empty($vendor)) {
@ -334,6 +334,12 @@ class Vendors extends Controller
$vendor->currency_code = $currency_code;
$vendor->currency_rate = $currency->rate;
$vendor->thousands_separator = $currency->thousands_separator;
$vendor->decimal_mark = $currency->decimal_mark;
$vendor->precision = (int) $currency->precision;
$vendor->symbol_first = $currency->symbol_first;
$vendor->symbol = $currency->symbol;
return response()->json($vendor);
}