test fix - format min transfer amount with comma

This commit is contained in:
edmondlang
2024-10-23 18:03:54 +08:00
parent e32aa0a141
commit f211d695b4
@@ -69,7 +69,7 @@ class FetchCompanyBookingQuotationLogic extends AbstractControllerLogic
/** @var Currency $currency */
$currency = $this->fetchesCurrency->execute(['id' => $conversionObject->getCurrencyId()]);
if($calculationObject->getConvertibleTotal() < $calculationObject->getConfigurations()->getMinLimit()) throw new RequestValidationException('Your transfer is below the minimum amount allowed of '.$calculationObject->getConfigurations()->getMinLimit().' '.$currency->short_code);
if($calculationObject->getConvertibleTotal() < $calculationObject->getConfigurations()->getMinLimit()) throw new RequestValidationException('Your transfer is below the minimum amount allowed of '.number_format($calculationObject->getConfigurations()->getMinLimit()).' '.$currency->short_code);
//TODO add po limit validation
return $this->response(['data' => $this->generatesBookingQuotation->execute($calculationObject, 0, $conversionObject)]);