minerva-university / rationapp

1 stars 0 forks source link

added tables and calculations for cow requirements #2

Closed SomtochiUmeh closed 3 months ago

SomtochiUmeh commented 3 months ago

I've added all the table data from the sheets and implemented the calculations for the cow requirements. These uploads show that the calculation matches what's expected:

https://github.com/user-attachments/assets/df2943ca-6df1-4205-8695-401077138aaf

image

Concentrate intake (Max) and NDF intake have fixed values in the sheet - no calculations. When this is updated, I'll add it in.

Next step now:

  1. Instead of closing the cow requirements pop-up, I'll add a button that directs the user to enter in the feed details (fodder and concentrate).
  2. I'll also display the cow requirements as a table on the bottom of the page.
SomtochiUmeh commented 3 months ago

checking that all fields are filled before calculating cow requirements:

https://github.com/user-attachments/assets/ba7ca26d-db58-4ac4-9442-71f0b2c299db