Skip to content

Account

reference
1 min readUpdated

Kind: Class

Source: Frontend/src/app/models/person/accounts.model.ts (line 67)

Part of: Frontend

Account is a person-domain model in the frontend. It exposes clone() and cloneSupplier() to create Account copies for different caller workflows.

Methods

MethodSignatureReturns
cloneclone()Account
cloneSuppliercloneSupplier(spi: Account)Account

Properties

PropertyType
PrimaryIDnumber
UserIDnumber
CompanyBranchIDnumber
AccountCurrencyCodestring
ClientVendorTypeIDnumber
AccountTypeIDnumber
Namestring
FullNamestring
ModificationDateDate
Vatstring
IsActiveboolean
Emailstring
ImgPathstring
ContractualInfoSupplierContractualInfo
MarketSegmentIDnumber
MarketSegmentIDsnumber[]
AddressesAddress[]
ContactInfoListArray<ContactInfo>
ContactPersonListArray<ContactPersons>
registrationDataArray<ClientSupplierRegistration>
Selectedboolean
CommentsComment[]

Diagram

mermaid
graph LR
  Caller --> Account
  Account --> clone["clone(): Account"]
  Account --> cloneSupplier["cloneSupplier(): Account"]
  clone --> AccountCopy["Account copy"]
  cloneSupplier --> SupplierCopy["Supplier Account copy"]

Usage

ts
import { Account } from './accounts.model';

function copyAccount(account: Account): Account {
  const copy = account.clone();

  return copy;
}

function copySupplierAccount(account: Account): Account {
  return account.cloneSupplier();
}

AI Coding Instructions

  • Import Account from the person accounts model when working with account data.
  • Call clone() when the caller needs a copied Account.
  • Call cloneSupplier() only for supplier-specific account flows.
  • Keep cloned values typed as Account when passing them to services or components.

Used by

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

Imported by (12)

  • BookingTargetsComponentFrontend/src/app/components/configuration/company/booking-targets/booking-targets.component.ts:1
  • NewBranchComponentFrontend/src/app/components/configuration/company/main-branch/new.branch.component.ts:1
  • MyDeskColumnsViewComponentFrontend/src/app/components/dashboard/my-desk/my-desk-columns-view/my-desk-columns-view.component.ts:1
  • MyDeskComponentFrontend/src/app/components/dashboard/my-desk/my-desk.component.ts:1
  • InvoiceDetailsComponentFrontend/src/app/components/invoices/invoice-details/invoice-details.component.ts:1
  • AccountManagersListComponentFrontend/src/app/components/market/AccountManagers/account-managers-list/account-managers-list.component.ts:1
  • AllAccountsComponentFrontend/src/app/components/market/all-accounts/all-accounts.component.ts:1
  • PrincipalComponentFrontend/src/app/components/market/principles/principles/principles.component.ts:1

…and 4 more.

Was this page helpful?

Download as PDF