fix(order): add order by volume di kualitas
This commit is contained in:
parent
c835c677d4
commit
44a63aa2f5
@ -25,7 +25,7 @@ public function updatedFormBottleId(string $value)
|
||||
return $this->toast('Botol tidak ditemukan, silakan hubungi Administrator.', 'Gagal', 'danger');
|
||||
}
|
||||
|
||||
$formulas = Formula::where('size', $bottle->size)->pluck('quality', 'id')->toArray();
|
||||
$formulas = Formula::where('size', $bottle->size)->orderBy('volume')->pluck('quality', 'id')->toArray();
|
||||
|
||||
// check if there is any formula
|
||||
if (empty($formulas)) {
|
||||
@ -44,7 +44,7 @@ public function updatedFormBottleId(string $value)
|
||||
*/
|
||||
public function updatedFormBottleSize(string $value)
|
||||
{
|
||||
$formulas = Formula::where('size', $value)->pluck('quality', 'id')->toArray();
|
||||
$formulas = Formula::where('size', $value)->orderBy('volume')->pluck('quality', 'id')->toArray();
|
||||
|
||||
// check if there is any formula
|
||||
if (empty($formulas)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user