fruchtfolge / client

Crop planning optimisation with usability in mind
https://fruchtfolge.agp.uni-bonn.de/
11 stars 1 forks source link

organic or conventional farming #30

Open SHdrch opened 4 years ago

SHdrch commented 4 years ago

For the creation of the "Deckungsbeiträge" it is important for the program to know which sort of agriculture the fam is practising organic or conventional. Maybe it is possible to ask that in advance when the registration is taking place.

chrispahm commented 4 years ago

In order for this to work, we would need to define a default mapping from ELAN crop codes to the respective KTBL organic crops. Right now, this mapping exists for conventional farms only:

https://github.com/fruchtfolge/client/blob/master/assets/js/cultures.js

The structure should be the same, we would "just" have to replace the id property with the corresponding organic crop type.