ifnex/04_Laravel/app
Kazem Alghasi 58493feca4 refactor(currency): IRR as single base currency for all shipping rates
Make Iranian Rial (IRR) the sole base currency for shipping rates:
- RateImportService now converts all imported rates to IRR at import
  time using the current daily exchange rate (source currency AED/USD/
  EUR/IRR). Rates are stored in rate_entries with currency='IRR'.
- PriceCalculatorService looks up IRR rates directly — no conversion
  at calc time. Also fixes a pre-existing bug where extras (in IRR)
  were incorrectly added to the AED base before conversion.
- RateEntry::lookup() default currency changed from 'AED' to 'IRR'.
- Migration changes the column default to 'IRR'.
- Filament import form: relabel 'Rate currency' to 'Source currency
  (in Excel file)' with helper text explaining the conversion.
- WordPress JS: update price summary labels from 'درهم' to 'ریال'
  and drop the deprecated net_dirham field.

Architectural benefit: rates are 'frozen' in IRR at import time —
daily exchange rate changes only affect NEW imports, not already-
stored rates. This is more stable and predictable for customers.
2026-10-29 17:01:30 +03:30
..
Console/Commands refactor(currency): simplify exchange rate logic to use Rial as base 2026-10-29 03:54:02 +03:30
Enums feat(finance): rate approval + multi-currency credit system (درخواست ۹) 2026-09-30 05:14:31 +03:30
Exports feat(shipment): implement status history tracking and rate import improvements 2026-08-24 03:40:13 +03:30
Filament refactor(currency): IRR as single base currency for all shipping rates 2026-10-29 17:01:30 +03:30
Helpers feat(ui): redesign admin dashboard with layered grid and custom branding 2026-10-03 11:08:50 +03:30
Http fix(pricing): restore array-based calculate() and harden pricing API 2026-10-29 14:40:58 +03:30
Imports feat(ui): add invoice download action to shipment view 2026-08-23 23:35:12 +03:30
Models refactor(currency): IRR as single base currency for all shipping rates 2026-10-29 17:01:30 +03:30
Notifications feat(commitment-forms): implement end-to-end management and secure file access 2026-10-03 05:58:59 +03:30
Observers feat(core): implement configuration-driven logic via SystemSetting 2026-09-10 02:25:21 +03:30
Policies feat(security): implement secure file storage and shipment access control 2026-10-01 03:34:28 +03:30
Providers fix(view): place rate-import blade in standard view path 2026-10-29 16:15:38 +03:30
Services refactor(currency): IRR as single base currency for all shipping rates 2026-10-29 17:01:30 +03:30
Traits feat(core): implement order approval flow, credit system, and import invoicing 2026-09-03 06:04:20 +03:30