Quellcode durchsuchen

Update default currency in CompanySettingsService to MYR

3.x
Amirul Anwar vor 9 Stunden
Ursprung
Commit
c54e46e59d

+ 1
- 1
app/Concerns/HasJournalEntryActions.php Datei anzeigen

@@ -185,7 +185,7 @@ trait HasJournalEntryActions
185 185
             return '0';
186 186
         }
187 187
 
188
-        $currency = currency('USD');
188
+        $currency = currency('MYR');
189 189
         $decimal = $currency->getDecimalMark();
190 190
 
191 191
         if (substr($amount, -1) === $decimal) {

+ 1
- 1
app/Services/CompanySettingsService.php Datei anzeigen

@@ -68,7 +68,7 @@ class CompanySettingsService
68 68
         return [
69 69
             'default_language' => config('transmatic.source_locale'),
70 70
             'default_timezone' => config('app.timezone'),
71
-            'default_currency' => 'USD',
71
+            'default_currency' => 'MYR',
72 72
             'default_date_format' => DateFormat::DEFAULT,
73 73
             'default_time_format' => TimeFormat::DEFAULT,
74 74
             'default_week_start' => WeekStart::DEFAULT,

+ 1
- 1
tests/Feature/Setting/LocalizationTest.php Datei anzeigen

@@ -29,7 +29,7 @@ it('handles rate formatting correctly for different computations', function () {
29 29
     $localization->update(['language' => 'en']);
30 30
 
31 31
     // Test fixed amount formatting
32
-    expect(rateFormat(100000, 'fixed', 'USD'))->toBe('$100,000.00 USD');
32
+    expect(rateFormat(100000, 'fixed', 'MYR'))->toBe('$100,000.00 USD');
33 33
 
34 34
     // Test percentage formatting
35 35
     $scaledRate = RateCalculator::decimalToScaledRate(0.000025); // 0.25%

Laden…
Abbrechen
Speichern