No. I actually wrote a spec for a customer about 25 years ago to do
that. During receipt it would scan all the receipts made for any
parts with an expiry date. If more than one it would select the
oldest. This was used when packaging multiple types of pills in one
box, like you get with cold medicine where you have both night and day
pills in the same box.