Still a mess, but I think I'm on the right track.
Add trigger to reduce adjust stock values when certifying or uncertifying a standard.
Looks like the nested view works. Going to merge with master.
Trying to calculate density. Seems to lock up the tab when I try to run the JS. Is it too complicated?