I need some end-user feedback on how it would be most useful to handle one of the situations I've come across (ticket 217).
Basically, if you have a percentage-limited equipment item (e.g. "no more than 10% of the unit can take an X") and give a unit with a size of 11 the item with an amount of 10% then the selection GUI will show that as being equal to 1. If, however, the equipment item itself says percentages should be rounded up then that 10% = 1.1, which gets rounded up to 2, so the number actually taken doesn't tally with the 'hint' in the number box.
As mentioned in the ticket, there are three possible solutions:
1) Ignore the mismatch (but possibly warn about it) because it is the data file creator's fault for setting the upper limit to round fractions down but the amount to round fractions up.
2) Have one fixed rounding for all percentages (upper limit, lower limit and amount), but this limits flexibility
3) Stop percentage selections being rounded outside the numeric equivalent of the percentage limits (which is what I've put in as temporary code).
Now, we've got a functional fix but it requires additional processing that won't always be necessary. It also means we deviate from what the data file actually tells us to do, but given that it tells us to do something that it also tells us is an error then that might be a good thing.
So, any thoughts or opinions? Any other options? Or is our current implementation probably the best and I should just close the ticket?