It looks like based on your calculation here that the PartsShipping column would only ever have 0 or the quantity of that particular item that matched the category.
Where are you seeing it as $9.50? Could you post back with a copy of your eCart folder in a zip archive so that we can take a look at it directly and do some testing? I think this would be the best way to try and resolve this.