Retroactive fetch amout statistics
Summary
Bei einer Veränderung im Betrieb bei "Wie viel Kilogramm werden pro Abholung ungefähr mitgenommen?" werden nicht nur folgende Abholungen bedacht, sondern es wird auch auf vergangene Abholungen umgerechnet. Das ergibt eine tonnenschwere Verfälschung wenn z.b. Betriebe auf "0kg" gesetzt werden weil sie nicht mehr mit foodsharing kooperieren.
Das betrifft (denke ich) jeden Betrieb der verändert wird, wir haben die fehlenden Kilos bei Abholern von den betroffenen Betrieben bemerkt.
Vergangene Mengen sollten "fest" gespeichert werden wenn die Statistik ausssagekräftig sein soll, sonst verfälscht jede Mengenänderung die Abholungen der Vergangenheit.
If changing the value for "aprox kilo per pick up", this value is not only taken for future pickups but also for the calculation of the past statistic. This results in big errors e.g. if a closed but prior active shop get's set to "0 kg".
This concerns (I believe) every shop that gets changed. We have noticed those missing kilos for Foodsavers of those shops of concern.
The past quantities should be "fix" and saved so that the statistics may be correct. If not, the calculated quantity is false.
Steps to reproduce
go to "edit shop" and change the number of aprox kilo per pick up.
What is the current bug behavior?
The stastic of kilo grams of this shop gets changed calculating with this new value
What is the expected correct behavior?
Old statistic should be fix and the new kilo gram value added per future pick up.