Kind: Class
Source: Pams/Web/Pams.WebApp/Client/app/models/person/accounts.model.ts (line 10)
Part of: Pams
Account is a client-side model for account data associated with a person. It supports copying account state through clone() and creating a supplier-oriented copy through cloneSupplier().
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 |
ImgPath | string |
ContractualInfo | SupplierContractualInfo |
MarketSegmentID | number |
MarketSegmentIDs | number[] |
Addresses | Address[] |
ContactInfoList | Array<ContactInfo> |
ContactPersonList | Array<ContactPersons> |
registrationData | Array<ClientSupplierRegistration> |
Diagram
mermaidgraph LR Person[Person model] --> Account[Account] Account --> Clone[clone(): Account] Account --> SupplierClone[cloneSupplier(): Account]
Usage
tsimport { Account } from './models/person/accounts.model';
const account = new Account();
const accountCopy = account.clone();
const supplierAccount = account.cloneSupplier();
AI Coding Instructions
- Use
clone()when a separateAccountinstance needs the same account state. - Use
cloneSupplier()when passing account data through supplier-specific flows. - Keep cloning logic inside
Accountso callers do not manually copy model fields. - Update both clone methods when adding fields that must persist in copied accounts.
Relationships
- IMPORTS →
Address - IMPORTS →
SupplierContractualInfo - IMPORTS →
SupplierContractCountry - IMPORTS →
SupplierContractClient - IMPORTS →
SupplierMarketSegment - IMPORTS →
SupplierContractMarketSegment - IMPORTS →
DecreasedTable
Was this page helpful?