소스 검색

Update default currency in CurrencyAccessor to MYR

3.x
Amirul Anwar 13 시간 전
부모
커밋
3583074d6a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      app/Faker/CurrencyCode.php
  2. 1
    1
      app/Utilities/Currency/CurrencyAccessor.php

+ 1
- 1
app/Faker/CurrencyCode.php 파일 보기

@@ -13,7 +13,7 @@ class CurrencyCode extends Base
13 13
         try {
14 14
             return Country::where('id', $countryCode)->pluck('currency_code')->first();
15 15
         } catch (OutOfBoundsException $e) {
16
-            return 'USD';
16
+            return 'MYR';
17 17
         }
18 18
     }
19 19
 }

+ 1
- 1
app/Utilities/Currency/CurrencyAccessor.php 파일 보기

@@ -56,7 +56,7 @@ class CurrencyAccessor
56 56
         $companyId = auth()->user()?->current_company_id;
57 57
 
58 58
         if ($companyId === null) {
59
-            return 'USD';
59
+            return 'MYR';
60 60
         }
61 61
 
62 62
         return CompanySettingsService::getDefaultCurrency($companyId);

Loading…
취소
저장