Modified many-to-many for sales transaction