mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-26 16:04:05 +00:00
change quotation segment select by best conversion rate instead of worst conversion rate
This commit is contained in:
@@ -41,7 +41,7 @@ class FetchesCompanyServiceSettings
|
||||
$currency->max_limit->value, $currency->min_limit->value, $rate->selling);
|
||||
|
||||
if($this->hasCustomOptions($constants)){
|
||||
$customOptions = $this->getServiceCustomOptions($constants, $object, $standardConfigurations, $object->getPaymentMethod())->sortByDesc(function($option) use($object) {
|
||||
$customOptions = $this->getServiceCustomOptions($constants, $object, $standardConfigurations)->sortBy(function($option) use($object) {
|
||||
return (new CalculationObject($object, $option))->getTotal();
|
||||
})->first();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user