Un-receive receipt line does not look at earliest apply date

Sorry...I meant EADType = IP not CI
I'm on 10.700.4.  I've been working with Epicor and it is been determined there is an issue when you un-receive a receipt line. The system does not check if the original receipt date is before the earliest apply date to prevent the user from processing.  Another issue they will resolve in 10.1.301.

In the meantime I need to put a BPM in place to check.  I figured I would put custom code on Erp.Reciept.OnChangeDtlReceived.  I need to compare RcvDtl.ReceiptDate to EADType.EarliestApplyDate for EADType1 = "CI" and if the ReceiptDate is < EarliesApplyDate to throw up an error message. 

I can do the error message, but I do not know how to compare the dates.  Has anyone done anything similar where you can share?

Thanks in advance,
Craig