An entity record identifies a customer or vendor. Its internal ID is the stable reference used by transactions; the company name is a label that can repeat or change. Match the ID before editing terms, subsidiary or inactive status. A supplier with a similar name is still a different counterparty.
Payment terms describe when an amount becomes due. They don't prove that a bill has been paid. In this model, an entity belongs to one subsidiary and carries a department default for new work. Multi-subsidiary customer and vendor features in production have more configuration than this subset. Keep the requested legal entity explicit, and inspect the saved record after a change. Inactivating a duplicate candidate preserves the historical identity while restricting new transactions.