Land Agreements - How to manually populate net company acreage
🤔 Problem
We currently have an issue when we upload a tract interest template on tracts. It uploads correctly but the company acreage on the tract grid shows 0 until you open the tract.
We have a wemain ticket to fix it, but until then we rely on a workaround to populate the column.
WESS-13552
🌱 Solution
As a workaround we are running a rails command that is basically the backend logic that calculates the net company acreage.
So if you receive a ticket asking to populate the net company acreage column (like this one WESS-15821), request the following script to be run by devOps:
- CODE
Tract.where(subtract: true).all.each do |tract| tract.count_acres_calculation end Tract.all.each do |tract| tract.set_acreage! end Agreement.all.each do |agree| agree.update_acreage end
Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu.