Quote Originally Posted by RodG View Post
Another option (easy to implement, but I'm not convinced that there isn't a better way) is for the server to provide quotes for *all* satchels (that are suitable), and leave it for the client to filter the ones they don't need. This is much like the current method, but it will have the 'bad' side effect of offering (say) the 3kg and the 500gm stachels instead of just the 500gm ones, if suitible. IOW, it will present the customer an option that they don't really need. It WILL solve the current problems though.. but it is a matter of choosing the lesser of two evils, in my opinion.

My 'other' solution is to update the client code (again), to include another setting to tell the server to continue to work the way it is, or to return all satchel quotes as indicated above, thus making it a user choice.. This is the 'near ideal' solution, other than it does introduce yet another setting that would probably confuse most people as to its purpose.
OK, I think I've figured out the best way to do this.

1. By default, have the server returning quotes as it currently does (less chance of causing issues with older versions).

2. Update the client code with the following tests/checks
a) Are ALL satchel sizes enabled? If so, no changes needed
b) Are ALL satchel sizes disabled? If so, no changes needed.
c) Are only *some* satchel sizes enabled? If so, send additional data to the server so that either ALL suitable satchel quotes are returned (IOW, the smallest sachel possible, plus those that are larger, if any).

The downside being if the client only disables the XL satchels (the most likely case) and the item/parcel is 500gm suitable, the customer will still be presented with the 3kg satchels as well.

The other option for part 'c' would be to send enough data to the server (based on what is enabled/disabled) to enable the server to return quotes based on client selection and what is possible (as opposed to what is optimum).

Hmmmm.... probably not to hard after all.... Stay tuned...

Cheers
Rod