Skip to content

JobProcess

reference
1 min readUpdated

Kind: Class

Source: Pams/Web/Pams.Web/Client/app/models/sales/job-process.model.ts (line 9)

Part of: Pams

JobProcess represents sales job-process data and calculates values for performance, warranty bond, and down-payment guarantees. It is used by client-side sales workflows when those amounts need to be read from a job process.

Methods

MethodSignatureReturns
getPerformanceValuegetPerformanceValue()void
getWarrantyBondValuegetWarrantyBondValue()void
getDownPaymentGuaranteeValuegetDownPaymentGuaranteeValue()void

Properties

PropertyType
JobProcessIDnumber
InquiryNumbernumber
CurrentVersionIDnumber
CurrentOfferVersionIDnumber
CurrentOrderVersionIDnumber
DeliveredOnDateDate
StatusDateDate
OrderBackLogPricenumber
ExpectedPricenumber
ExpectedPriceInBaseCurrencynumber
ExpectedPriceCurrencyCodestring
ExpectedPriceRateToBaseCurrencynumber
OrderChancenumber
ExpectedPriceCurrencySymblestring
clientDelayListClientDelay[]
StatusIDnumber
ActionDateDate
ActionByUserIDnumber
ReasonIDnumber
Commentstring
InquiryContactsInquiryContact[]
RateToBaseCurrencynumber
PerformanceBondChoicenumber
PerformanceBondValuenumber
PerformanceBondPrecentagenumber
PerformanceBondPrecentageFormatedstring
PerformanceBondValueFormatedstring
WarrantyBondChoicenumber
WarrantyBondValuenumber
WarrantyBondTimeChoicenumber
DownPaymentGuaranteeChoicenumber
DownPaymentGuaranteeValuenumber
DownPaymentGuaranteePrecentagenumber
DownPaymentGuaranteePrecentageFormatedstring
DownPaymentGuaranteeValueFormatedstring
OfferStatusIDnumber
OrderChanceIDnumber
OrderStatusIDnumber

Diagram

mermaid
graph LR
  JobProcess --> Performance[getPerformanceValue()]
  JobProcess --> WarrantyBond[getWarrantyBondValue()]
  JobProcess --> DownPaymentGuarantee[getDownPaymentGuaranteeValue()]

Usage

ts
const jobProcess = new JobProcess();

const guaranteeValues = {
  performance: jobProcess.getPerformanceValue(),
  warrantyBond: jobProcess.getWarrantyBondValue(),
  downPaymentGuarantee: jobProcess.getDownPaymentGuaranteeValue(),
};

console.log(guaranteeValues);

AI Coding Instructions

  • Call the value methods instead of duplicating guarantee-value calculations in UI components.
  • Keep getPerformanceValue(), getWarrantyBondValue(), and getDownPaymentGuaranteeValue() aligned with the sales job-process data model.
  • Check for missing or unset source values before displaying calculated amounts.
  • Update callers when changing method names or the value format returned by these methods.

Used by

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

Imported by (2)

  • JobProcessServicePams/Web/Pams.Web/Client/app/services/sales/job-process.service.ts:1
  • TempInqPams/Web/Pams.Web/Client/app/models/sales/inquiry.model.ts:17

Was this page helpful?

Download as PDF