How customers, contacts, and addresses relate ​

A Customer, a Contact, and an Address describe different parts of one business relationship:

RecordRepresentsExample
CustomerThe party you sell to and billSummit Digital Stores
ContactA person you communicate withMorgan Lee, Purchasing Manager
AddressA location for billing, shipping, or another purposeHarbor Avenue head office

Why they are separate records ​

A Contact and an Address are not stored inside the Customer. They are separate records, connected to the Customer through their Links table. This design has these effects:

  • One customer, many people. A purchasing manager receives quotations. An accounts-payable clerk receives invoices.
  • One customer, many locations. The head office receives invoices. The warehouse or branch receives goods.
  • People and places change without a new customer. When a buyer leaves or a branch opens, you update a Contact or an Address. The sales history stays on one Customer.
  • One person or place, many parties. The same Contact or Address can link to more than one Customer, Supplier, or Lead when the relationship is real.

Create a new Customer only when the party is a separate commercial or accounting relationship. A new employee, office, or delivery point is not a new customer.

How defaults fill a sales document ​

When you select a customer on a Quotation, Sales Order, Delivery Note, or Sales Invoice, ERPNext fills the contact and the addresses from the customer's linked records:

  • Is Primary Contact on a Contact makes that person the default contact for the linked customer.
  • Preferred Billing Address on an Address makes it the default billing address.
  • Preferred Shipping Address on an Address makes it the default shipping address. One address can be both.

These flags set defaults only. A user can select any other linked contact or address on a single document.

Inside a Contact, the primary email and primary phone answer a different question. They choose which email and phone of that person ERPNext uses.

Changes and submitted documents ​

A submitted document stores the address text and contact details that it used. When you change a primary flag or edit an address, new documents use the new values. Submitted documents keep the old ones.

Example ​

Nova Electronics Trading sells to Summit Digital Stores:

  • Customer: Summit Digital Stores
  • Primary contact: Morgan Lee, Purchasing Manager
  • Other contact: Taylor Brooks, Accounts Payable
  • Preferred billing address: Harbor Avenue office
  • Preferred shipping address: Meridian Parkway warehouse

A new Sales Order for Summit Digital Stores gets Morgan Lee and both preferred addresses. For one order, the user can switch to Taylor Brooks.

Common mistakes ​

MistakeBetter approach
A new customer for every branchOne customer with several linked addresses
A person's name in the customer nameA Contact linked to the customer
Relying on Address Type to pick the defaultSet the preferred billing and shipping flags