Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) says: When you make a salam sale, there is no sin on you if, in your salam sale, you receive part of the goods and take back part of your money; this is the recognised way.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 11132