NASA-Tournament-Lab / coeci-cms-mpsp

Welcome to the Medicaid Provider Enrollment Screening Portal
http://nasa.github.io/coeci-cms-mpsp/
11 stars 40 forks source link

PO Box in billing address #23

Open angied opened 11 years ago

angied commented 11 years ago

Entering a PO Box on the first line as a billing address on Practice Info tab fails with the following error:

Please correct the following errors: Billing Address line 1 must contain the street address when entering a PO Box. Billing Address PO Box must be on line 2.

If the PO Box is moved to the second line, it fails again with the same error.

Billing address can be just a PO Box without a street address, and the provider should be able to enter the PO Box on either line, as well something other than a street address on the first, such as an ATTN TO.

angied commented 10 years ago

As long as something is in the 1st line, it'll accept the PO Box on the 2nd. But if just the PO Box on either line, the above error occurs.

It needs to allow for just a PO Box on either line.

cyberjag commented 10 years ago

Can you please provide the screenshots of the input that you are giving and the error which is coming? I can't reproduce this.

angied commented 10 years ago

Accepted: Name on line 1, PO Box on line 2: image

Not accepted: Nothing on line 1, PO Box on 2: image

After submitting with just a PO Box on line 2, an error occurs and the entry is moved to line 1: image

To clarify the business rules around this: if they are entering only a PO Box and nothing else it can be on line 1 or line 2. If they enter a billing name or street address and a PO Box, then the PO Box should be on line 2.