Skip to content

JobProcess

reference
1 min readUpdated

Kind: Class

Source: Frontend/src/app/models/sales/job-process.model.ts (line 9)

Part of: Frontend

JobProcess models financial values associated with a sales job process. Its getter methods expose performance, warranty bond, and down-payment guarantee values for sales screens and related calculations.

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[JobProcess]
  Performance[getPerformanceValue()]
  Warranty[getWarrantyBondValue()]
  DownPayment[getDownPaymentGuaranteeValue()]

  JobProcess --> Performance
  JobProcess --> Warranty
  JobProcess --> DownPayment

Usage

ts
import { JobProcess } from './job-process.model';

const jobProcess = new JobProcess();

const performanceValue = jobProcess.getPerformanceValue();
const warrantyBondValue = jobProcess.getWarrantyBondValue();
const downPaymentGuaranteeValue =
  jobProcess.getDownPaymentGuaranteeValue();

console.log({
  performanceValue,
  warrantyBondValue,
  downPaymentGuaranteeValue,
});

AI Coding Instructions

  • Use the getter methods when reading job-process financial values.
  • Keep formatting such as currency display outside JobProcess.
  • Avoid duplicating value-selection logic in sales components.
  • Update consumers when changing a getter’s return behavior.

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)

  • JobProcessServiceFrontend/src/app/services/sales/job-process.service.ts:1
  • TempInqFrontend/src/app/models/sales/inquiry.model.ts:17

Was this page helpful?

Download as PDF