commercelayer-react-components
commercelayer-react-components copied to clipboard
Filter Customer Addresses for billing section if market requires billing info
Description
If a Customer Address has no billing info but the market linked to the order requires billing info we should filter out customer addresses as far as the billing section is concerned.
Steps to Reproduce
- Create a Customer Address without billing info
- Add requires billing info to a market
- Checkout an order with the customer and the market with required billing info
- Try to place the order
Expected Result
The expected result was to not have the Customer Address without billing info on the list of addresses that can be used for the order billing section. All Customer Addresses (unless a country code shipping lock is present) should be available on the shipping section.
Actual Results
The actual result was to get all Customer Addresses without filtering them base on billing info.