Implement economic config round-trip test and enhance department handling

- Added a test to ensure correct round-tripping of default distribution department config value through economic config updates.
- Improved department handling by adding fallback logic to use the default economic distribution department id when a customer's department id is missing.
- Enhanced weather API routes to fetch, cache, and return detailed employee contributions per department for a given time slot.
This commit is contained in:
Jeppe Bundgaard
2026-05-13 17:37:49 +02:00
parent 30ed01e717
commit 0399cb4bb4
18 changed files with 1133 additions and 9 deletions
+1
View File
@@ -825,6 +825,7 @@ class authRoute
[
'economic' => [
'transaction_draft_customer_number' => (new economic())->getTransactionDraftCustomerNumber(),
'default_distribution_department_id' => (new economic())->getDefaultDistributionDepartmentId(),
],
]
);