caclulate rate currency result
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
2024-01-02 22:13:27 +01:00
parent 68418d1205
commit 49c0c94ec9
5 changed files with 45 additions and 15 deletions

View File

@@ -47,4 +47,17 @@ class CurrencyRates extends Model
return [$item["country_code"] => $rates[$item["currency_code"]]];
});
}
protected function currencyCode() {
return CountryCode::active("Y")->mapWithKeys(function ($item) {
return [$item['currency_code'] => $item['country_code']];
});
}
protected function countryCurrency() {
return CountryCode::active("Y")->mapWithKeys(function ($item) {
return [$item["country_code"] => $item["currency_code"]];
});
}
}