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
| Method | Signature | Returns |
|---|---|---|
clone | clone() | Account |
cloneSupplier | cloneSupplier(spi: Account) | Account |
Properties
| Property | Type |
|---|---|
PrimaryID | number |
UserID | number |
CompanyBranchID | number |
AccountCurrencyCode | string |
ClientVendorTypeID | number |
AccountTypeID | number |
Name | string |
FullName | string |
ModificationDate | Date |
Vat | string |
IsActive | boolean |
Email | string |
ImgPath | string |
ContractualInfo | SupplierContractualInfo |
MarketSegmentID | number |
MarketSegmentIDs | number[] |
Addresses | Address[] |
ContactInfoList | Array<ContactInfo> |
ContactPersonList | Array<ContactPersons> |
registrationData | Array<ClientSupplierRegistration> |
Selected | boolean |
Comments | Comment[] |
Diagram
mermaidgraph LR Caller --> Account Account --> clone["clone(): Account"] Account --> cloneSupplier["cloneSupplier(): Account"] clone --> AccountCopy["Account copy"] cloneSupplier --> SupplierCopy["Supplier Account copy"]
Usage
tsimport { 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
Accountfrom the person accounts model when working with account data. - Call
clone()when the caller needs a copiedAccount. - Call
cloneSupplier()only for supplier-specific account flows. - Keep cloned values typed as
Accountwhen 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)
BookingTargetsComponent—Frontend/src/app/components/configuration/company/booking-targets/booking-targets.component.ts:1NewBranchComponent—Frontend/src/app/components/configuration/company/main-branch/new.branch.component.ts:1MyDeskColumnsViewComponent—Frontend/src/app/components/dashboard/my-desk/my-desk-columns-view/my-desk-columns-view.component.ts:1MyDeskComponent—Frontend/src/app/components/dashboard/my-desk/my-desk.component.ts:1InvoiceDetailsComponent—Frontend/src/app/components/invoices/invoice-details/invoice-details.component.ts:1AccountManagersListComponent—Frontend/src/app/components/market/AccountManagers/account-managers-list/account-managers-list.component.ts:1AllAccountsComponent—Frontend/src/app/components/market/all-accounts/all-accounts.component.ts:1PrincipalComponent—Frontend/src/app/components/market/principles/principles/principles.component.ts:1
…and 4 more.
Was this page helpful?