close #1516 Changed: Currencies precision field change type

This commit is contained in:
Cüneyt Şentürk
2020-07-06 12:00:07 +03:00
parent 0a806678eb
commit 59727e46fc
3 changed files with 20 additions and 4 deletions

View File

@ -56,7 +56,15 @@ class Currencies extends Controller
$codes[$key] = $key;
}
return view('settings.currencies.create', compact('codes'));
$precisions = (object) [
0 => 0,
1 => 1,
2 => 2,
3 => 3,
4 => 4,
];
return view('settings.currencies.create', compact('codes', 'precisions'));
}
/**
@ -114,7 +122,15 @@ class Currencies extends Controller
// Set default currency
$currency->default_currency = ($currency->code == setting('default.currency')) ? 1 : 0;
return view('settings.currencies.edit', compact('currency', 'codes'));
$precisions = (object) [
0 => 0,
1 => 1,
2 => 2,
3 => 3,
4 => 4,
];
return view('settings.currencies.edit', compact('currency', 'codes', 'precisions'));
}
/**