trigger for total costs
working on functions
Merge branch 'master' of https://github.com/ankurt/Phase-2-311

Conflicts:
	pats_functions.sql