From 2a90e974fe2edac9fa9073d63de97b3028a88d11 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Wed, 23 Oct 2024 18:18:44 +0800 Subject: [PATCH] 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)]);