浏览代码

Update default currency in CompanySettingsService to MYR

3.x
Amirul Anwar 8 小时前
父节点
当前提交
c54e46e59d

+ 1
- 1
app/Concerns/HasJournalEntryActions.php 查看文件

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

+ 1
- 1
app/Services/CompanySettingsService.php 查看文件

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

+ 1
- 1
tests/Feature/Setting/LocalizationTest.php 查看文件

29
     $localization->update(['language' => 'en']);
29
     $localization->update(['language' => 'en']);
30
 
30
 
31
     // Test fixed amount formatting
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
     // Test percentage formatting
34
     // Test percentage formatting
35
     $scaledRate = RateCalculator::decimalToScaledRate(0.000025); // 0.25%
35
     $scaledRate = RateCalculator::decimalToScaledRate(0.000025); // 0.25%

正在加载...
取消
保存