Zoho Deluge - Calculate Portion Count
A function to calculate how many trays of each available size are needed for a requested number of portions. Pass in the portion count and a list of tray capacities, and Ascent.fn_CalculatePortionCount returns a map of tray sizes to quantities. The important detail is what “best” means: first minimise surplus capacity...