You will need to explain more how your system is currently designed. Are finished good materials created per pack size (diff. mat codes for PAL and Q-BIT) or these are sent separately along with the delivery?
In either case, you can create a condition type in your sales pricing that will have condition records triggered using the material being sent (maintain the condition record against PAL but not against Q-BIT boxes). This should solve your requirement without any development.