commercelayer-react-components icon indicating copy to clipboard operation
commercelayer-react-components copied to clipboard

Filter Customer Addresses for billing section if market requires billing info

Open malessani opened this issue 3 years ago • 0 comments

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

  1. Create a Customer Address without billing info
  2. Add requires billing info to a market
  3. Checkout an order with the customer and the market with required billing info
  4. 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.

malessani avatar Nov 07 '22 11:11 malessani