Is the exchange of dates containing pits for dates with pits removed permissible?

Chapter on Riba (Usury) and Exchange (Sarf)

Al-Mughni

Book of Sales

Book 12 · Issue 2 · Bab 3

Open in Qurani

Primary text

It is impermissible to exchange dates with pits removed for dates that still contain pits because one quantity includes something that is not of the same genus as the other (the pits).