In spite of setting the End of Life date for a drug it does not get displayed when the same drug is added as Quotation line item.
This is because this line of code should be changed as follows:
result['expiry_date'] = life_date.strftime('%d/%m/%Y') if (type(life_date) == datetime) else None
After this correction -