w-a-r-m-inventory-system / Food-Pantry-Inventory

New Inventory System for Westerville Area Resource Ministry
MIT License
23 stars 20 forks source link

07 rebuild location table #280

Closed babarehner closed 3 years ago

babarehner commented 3 years ago

This is Rebuild Location Table branch. Contains 3 Views RebuildLocTableStartView, RebuildLocTableProgressView and RebuildLocTableFinishView along with 3 matching html pages. Note on rebuild_loc_table_progress_html I had to add a link:

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">

After refactoring from using Lists to QuerySets in RebuildLocTableFinishView I also added some code to take care of the situation where the loc_row/bin/tier_descr columns may have an empty value. The code checks if empty and then updates if empty.

Also I left code in place for Manual Location Table that I started. As we have not gone over this I have not cleaned that code up or done testing on at that code.