Resolve "Job Order form changes" #833

Merged
arcticzero merged 4 commits from 24-job-order-form-changes into master 2018-02-26 18:47:45 +00:00
Showing only changes of commit d77dbcd209 - Show all commits

View file

@ -300,9 +300,14 @@ class BatteryManufacturerController extends BaseController
'warr_private' => $battery->getWarrantyPrivate(),
'warr_commercial' => $battery->getWarrantyCommercial(),
];
}
}
}
// order by price
usort($batteries, function ($a, $b) {
return -($a['sell_price'] <=> $b['sell_price']);
});
// response
return $this->json([
'data' => $batteries