specify / specify7

Specify 7
https://www.specifysoftware.org/products/specify-7/
GNU General Public License v2.0
62 stars 36 forks source link

Add business logic for `isPrimary` and `isSubstrate` in COGs #5246

Open grantfitzsimmons opened 4 weeks ago

grantfitzsimmons commented 4 weeks ago

With the introduction of Collection Object Groups (COGs), we added two new fields in the CollectionObjectGroupJoin(COJO) table:

Business Logic:

Behavior

Users should be able to count the number of physical specimens in their collection by searching:

Base Table: Collection Object Query Line: Collection Object --> COJO --> IsPrimary = True or NULL

This should return all Collection Objects that are members of a COG where they are the primary CO or COs that are not members of a COG

sharadsw commented 5 days ago

The first COJO CO will automatically have isPrimary set to True when the COG type is 'consolidated'

First COJO CO by order of entry or first COJO CO determined by the precedence field?

grantfitzsimmons commented 2 days ago

First in the order of entry