Commit 78c3ff5
committed
Support MilkProduction activities with only quantity_produced - see HEA-887
Some BSSs (e.g.BF04~2011) have MilkProduction activities with a
quantity_produced but no quantity_sold, and hence no income.
They also have no percentage_kcals because that is initially part
of the ButterProduction activities. This was causing the MilkProduction
to be ignored, and therefore not available when attempting to transfer
the kcals from the ButterProduction to the MilkProduction. This commit
ensures that strategies that have a `quantity_produced` are kept, even
if they don't have income, expenditure or kcals.1 parent 60e0266 commit 78c3ff5
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
775 | 781 | | |
776 | 782 | | |
777 | 783 | | |
| |||
0 commit comments