Explorar el Código

Update default currency in CurrencyAccessor to MYR

3.x
Amirul Anwar hace 5 meses
padre
commit
3583074d6a
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      app/Faker/CurrencyCode.php
  2. 1
    1
      app/Utilities/Currency/CurrencyAccessor.php

+ 1
- 1
app/Faker/CurrencyCode.php Ver fichero

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

+ 1
- 1
app/Utilities/Currency/CurrencyAccessor.php Ver fichero

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

Loading…
Cancelar
Guardar