[Pull Request] Address Validation Changes

Hi

I have submitted a pull request for address validation changes, the changes are due to the following reasons:

  • Earlier the customer address can be made without being a PRIMARY ADDRESS (in case we only set the address as SHIPPING ADDRESS)
  • Now if we make an address for customer then 1st Address is always “PRIMARY” and “PREFERRED for SHIPPING”
  • There is no possibility of having more than 1 PRIMARY or SHIPPING Address.

Kindly please let me know if the pull request is acceptable or not

https://github.com/frappe/erpnext/pull/2311

There are some minor issues, will look into it next week!