Skip to content

Client

reference
1 min readUpdated

Kind: Class

Source: Frontend/src/app/models/person/client.model.ts (line 5)

Part of: Frontend

Client represents a client person model in the frontend application. It supports creating copied Client instances through clone() and cloneClient().

Methods

MethodSignatureReturns
cloneclone()Client
cloneClientcloneClient(cli: Client)Client

Properties

PropertyType
ClientIDnumber
UserIDnumber
ModificationDateDate
CompanyBranchIDnumber
ClientCodestring
FullNamestring
ClientNamestring
Vatstring
Selectedboolean
ClientTypeIDnumber
MarketSegmentIDnumber
MarketSegmentIDsnumber[]
AddressesAddress[]
ContactInfoListArray<ContactInfo>
ContactPersonListArray<ContactPersons>
registrationDataArray<ClientSupplierRegistration>
ImgPathstring

Diagram

mermaid
graph LR
  Client[Client]
  Client --> Clone[clone(): Client]
  Client --> CloneClient[cloneClient(): Client]
  Clone --> ClientCopy[Client copy]
  CloneClient --> ClientCopy

Usage

ts
const copiedClient: Client = client.clone();

const copiedClientFromHelper: Client = client.cloneClient();

AI Coding Instructions

  • Keep clone() and cloneClient() return values typed as Client.
  • Use cloning methods when code needs a separate Client instance.
  • Check both cloning methods before changing copy behavior, since callers may depend on either method.
  • Avoid mutating a cloned instance when the original instance must remain unchanged.

Relationships

  • IMPORTS → Address
  • IMPORTS → ContactInfo
  • IMPORTS → ContactPersons
  • IMPORTS → ClientSupplierRegistration

Used by

7 references from 7 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (7)

  • ContactViewEditComponentFrontend/src/app/components/market/contacts/contact-view-edit/contact-view-edit.component.ts:1
  • ContactsComponentFrontend/src/app/components/market/contacts/contacts.component.ts:1
  • RegistrationsComponentFrontend/src/app/components/market/registrations/registrations/registrations.component.ts:1
  • CurrencyRateFrontend/src/app/components/payments/payment-details/payment-details.component.ts:1
  • PaymentsListComponentFrontend/src/app/components/payments/payments-list/payments-list.component.ts:1
  • TagComponentFrontend/src/app/components/shared/tag/tag.component.ts:1
  • ClientServiceFrontend/src/app/services/person/client.service.ts:1

Was this page helpful?

Download as PDF