Skip to content

Commit

Permalink
Merge pull request #773 from cityofaustin/sg-document-econ-patch
Browse files Browse the repository at this point in the history
Documents Comp Cost Change
  • Loading branch information
sergiogcx authored May 4, 2020
2 parents ec86647 + 3f158da commit b2ff549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atd-vzd/triggers/atd_txdot_crashes_updates_audit_log.sql
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ BEGIN
estCompEconList = ARRAY(SELECT est_econ_cost_amount FROM atd_txdot__est_econ_cost ORDER BY est_econ_cost_id ASC);

NEW.est_comp_cost = (0
+ (NEW.unkn_injry_cnt * (estCompCostList[1]))
+ (NEW.unkn_injry_cnt * (estCompCostList[1])) -- Needed only for comp. cost.
+ (NEW.death_cnt * (estCompCostList[2]))
+ (NEW.sus_serious_injry_cnt * (estCompCostList[3]))
+ (NEW.nonincap_injry_cnt * (estCompCostList[4]))
Expand Down

0 comments on commit b2ff549

Please sign in to comment.