Skip to content

Supplier

reference
1 min readUpdated

Kind: Class

Source: Pams/Web/Pams.Web/Client/app/models/person/supplier.model.ts (line 9)

Part of: Pams

Supplier represents a supplier person model in the PAMS web client. It exposes clone() and cloneSupplier() methods that create another Supplier instance for workflows that need a copied supplier model.

Methods

MethodSignatureReturns
cloneclone()Supplier
cloneSuppliercloneSupplier(spi: Supplier)Supplier

Properties

PropertyType
SupplierIDnumber
SupplierCurrencyCodestring
PersonIDnumber
UserIDnumber
ModificationDateDate
CompanyBranchIDnumber
IsActiveboolean
SupplierNamestring
FullNamestring
SupplierTypeIDnumber
IsPrincipalboolean
ContractualInfoSupplierContractualInfo
Vatstring
Selectedboolean
ImgPathstring
MarketSegmentIDnumber
MarketSegmentIDsnumber[]
AddressesAddress[]
ContactInfoListArray<ContactInfo>
ContactPersonListArray<ContactPersons>

Diagram

mermaid
graph LR
  Supplier[Supplier]
  Supplier --> Clone[clone(): Supplier]
  Supplier --> CloneSupplier[cloneSupplier(): Supplier]
  Clone --> Copy[Supplier copy]
  CloneSupplier --> Copy

Usage

ts
const supplier = new Supplier();

const copiedSupplier = supplier.clone();
const supplierCopy = supplier.cloneSupplier();

// Work with a copied model without replacing the original reference.
console.log(copiedSupplier, supplierCopy);

AI Coding Instructions

  • Use clone() or cloneSupplier() when a caller needs another Supplier instance.
  • Keep clone-related changes consistent across both methods.
  • Confirm copied fields remain valid for supplier forms and API request models.
  • Avoid replacing the original supplier reference when an edit flow requires a separate copy.

Relationships

  • IMPORTS → Address
  • IMPORTS → SupplierContractualInfo
  • IMPORTS → SupplierContractCountry
  • IMPORTS → SupplierContractClient
  • IMPORTS → SupplierMarketSegment
  • IMPORTS → SupplierContractMarketSegment
  • IMPORTS → DecreasedTable

Used by

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

Imported by (10)

  • ProductCategoriesComponentPams/Web/Pams.Web/Client/app/components/configuration/products/product-categories/product-categories.component.ts:1
  • ContactViewEditComponentPams/Web/Pams.Web/Client/app/components/market/contacts/contact-view-edit/contact-view-edit.component.ts:1
  • ContactsComponentPams/Web/Pams.Web/Client/app/components/market/contacts/contacts.component.ts:1
  • RegistrationsComponentPams/Web/Pams.Web/Client/app/components/market/registrations/registrations/registrations.component.ts:1
  • CurrencyRatePams/Web/Pams.Web/Client/app/components/payments/payment-details/payment-details.component.ts:1
  • PaymentsListComponentPams/Web/Pams.Web/Client/app/components/payments/payments-list/payments-list.component.ts:1
  • TagComponentPams/Web/Pams.Web/Client/app/components/shared/tag/tag.component.ts:1
  • ProductCategoryServicePams/Web/Pams.Web/Client/app/services/common/product-category.service.ts:1

…and 2 more.

Was this page helpful?

Download as PDF