const purchasedDetails = await PreSalePurchasedDetails.find().sort({date_n_time: -1});
for (let index = 0; index < purchasedDetails.length; index++