Opened 11 years ago

Closed 8 years ago

#1147 closed enhancement (fixed)

Pure Live seed function in the Inventory dataview

Reported by: Lisa Burke Owned by: Kurt Endress
Priority: medium Milestone: Server Release 1.10.3
Component: Dataviews (CT) Version: 1.9.6.41 CT
Severity: Keywords: Pure Live Seed
Cc: Database Engine: N/A
Operating System: N/A

Description

Need a calculated field that takes the onhand and multiplies it by the latest germination percentage to get pure live seed (the actual number of viable seed propagules). So, if we have 1000 seeds and the germination test says 50% then we actually only have 500 seeds that are viable. I searched for if we had a ticket but could lot find one so I'm submitting it and I know that 3 sites have requested this in the past.

Change History (4)

comment:1 by Lisa Burke, 9 years ago

Component: Curator Tool → Trigger
Owner: changed from Pete Cyr to Kurt Endress
Status: new → assigned

comment:2 by Kurt Endress, 9 years ago

Component: Trigger → Dataviews
Milestone: Post-NPGS Prod'n → Server Release 1.10.3
Status: assigned → addressed

Loaded get_inventory_20180503 on npgsdev for testing of new Pure Live Seed field.

Also created a user stored function fn_i_pureliveseed so ST can be queried like this:

WHERE inventory_number_part1 = 'Ames'
AND quantity_on_hand > regeneration_critical_quantity
AND inventory_viability.inventory_viability_id IS NOT NULL
AND dbo.fn_i_pureliveseed(inventory.inventory_id) < regeneration_critical_quantity

comment:3 by Mark J. Millard, 8 years ago

Works on npgsDEV Development 1.10.3.5 2018-08-07

comment:4 by Mark J. Millard, 8 years ago

Resolution: → fixed
Status: addressed → closed

Visible on 1.10.4 build also.

Note: See TracTickets for help on using tickets.