From f211d695b45a5edcef34315f5e4cd8454ff7fe46 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Wed, 23 Oct 2024 18:03:54 +0800 Subject: [PATCH] test fix - format min transfer amount with comma --- .../ControllersLogic/FetchCompanyBookingQuotationLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Companies/ControllersLogic/FetchCompanyBookingQuotationLogic.php b/app/Classes/Modules/Companies/ControllersLogic/FetchCompanyBookingQuotationLogic.php index 926acaae..2fc53955 100644 --- a/app/Classes/Modules/Companies/ControllersLogic/FetchCompanyBookingQuotationLogic.php +++ b/app/Classes/Modules/Companies/ControllersLogic/FetchCompanyBookingQuotationLogic.php @@ -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)]);