Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/components: update FormFieldCompanyAddress v-model type #696

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

maceksimon
Copy link
Contributor

Issue: Currently, the FormFieldCompanyAddress component accepts number type ID as the modelValue prop. However, in data, this will be the object with address fields - value needs to correspond with subsidiary address so that we can determine subsidiaryId.

Solution:

  • Update type in FormFieldCompanyAddress component
  • Update calculating option values in useSelectedOrganization composable and add behaviour that sets subsidiaryId based on selected address.

Additionally, based on data from endpoint, add optional address pro to Organization type.

@maceksimon maceksimon force-pushed the feature/company-address-model-type branch from 642e6e9 to 89f62ee Compare November 12, 2024 19:41
@tmszi tmszi added the enhancement New feature or request label Nov 13, 2024
@tmszi tmszi merged commit 3bd70e1 into auto-mat:main Nov 13, 2024
4 of 6 checks passed
@maceksimon maceksimon deleted the feature/company-address-model-type branch November 13, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants