1. The largest discount code that could apply should be applied, and all the others should be ignored. ALSO, promotion codes should be available only for specified dates. Example: Only for the month of January, weekdays, etc.