-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Add entity financial account bridge entity #19927
Conversation
(Standard links)
|
@eileenmcnaughton if the table doesn't contain exactly 2 FKs, then you have to add an annotation to say which 2 entities it is supposed to link together. Like this:
|
@colemanw ah - so there is an entity_id -> entity_table In addition I think the account_relationship option values would work rather like the record_type_id in activity contact table (ie they are almost like different entitiies) |
* @see https://docs.civicrm.org/dev/en/latest/financial/financialentities/#financial-accounts | ||
* | ||
* @bridge entity_id financial_account_id | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eileenmcnaughton if you want the AccountRelationship field automatically shown when adding join in searchKit (like relationship type id is shown for related contacts or activity contact type is shown for activities) do this:
* | |
* @ui_join_filters account_relationship |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colemanw I've pushed that up - although note the whole thing doesn't work atm
I see the problem @eileenmcnaughton. The field |
@colemanw right - the only entity that does have one is entity_tag I guess.
(that last doesn't help!) |
More than just entityTag, there's quite a few |
@colemanw here is the latter part of the table The entity_id actually holds the id not the value it seems - which is a nasty non standard use of the option_value table but might be helpful here |
Yes that is actually helpful. So our pseudoconstant list just needs to contain 3 options and we should be good to go, at least as far as SearchKit is concerned. |
@colemanw ok - that seemed to work - let's see how jenkins gets on |
I don't think the test failure is related but retest this please just to be sure. |
@eileenmcnaughton I've merged the other. Can you rebase this pls? |
@colemanw done - lets see how it goes! |
@colemanw yep passing now! |
Looks great! |
Overview
Add entity financial account bridge entity
Before
Bridge entity not described
After
Now it is
Technical Details
@colemanw I've been digging around & can see that this is required -but is not in itself enough - ie
What else is needed?
Comments