Kind: Class
Source: Frontend/src/app/models/sales/job-item-status.model.ts (line 4)
Part of: Frontend
JobItemStatus represents the status data associated with a sales job item. It supports creating copies through clone() and copying its data through cloneData().
Methods
| Method | Signature | Returns |
|---|---|---|
clone | clone(item: JobItemStatus) | void |
cloneData | cloneData(item: JobItemStatus) | void |
Properties
| Property | Type |
|---|---|
JobItemStatusID | number |
JobItemID | number |
StatusID | number |
ActionDate | Date |
ActionByUserID | number |
ReasonID | number |
Comment | string |
Amount | number |
Data | JobItemStatusData |
Where it refuses work
JobItemStatusstops the work with an early return whenthis.ActionDate == null.
Diagram
mermaidgraph LR JobItemStatus[JobItemStatus] Clone[clone()] CloneData[cloneData()] JobItemStatus --> Clone JobItemStatus --> CloneData Clone --> StatusCopy[JobItemStatus copy] CloneData --> DataCopy[Copied status data]
Usage
tsimport { JobItemStatus } from './models/sales/job-item-status.model';
const status = new JobItemStatus();
const statusCopy = status.clone();
const statusData = status.cloneData();
// Use the cloned instance without changing the original status.
console.log(statusCopy, statusData);
AI Coding Instructions
- Use
clone()when code needs a separateJobItemStatusinstance. - Use
cloneData()when code needs copied status data rather than the original object reference. - Keep clone behavior aligned when adding fields to
JobItemStatus. - Check callers before changing the return shape of either clone method.
Relationships
- IMPORTS →
JobItemStatusData - IMPORTS →
AppSettings - IMPORTS →
JobStatusE - IMPORTS →
JobVersionStatusE
Used by
6 references from 6 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.
Imported by (6)
NewJobComponent—Frontend/src/app/components/sales/new-job/new-job.component.ts:1JobItemStatusService—Frontend/src/app/services/sales/job-item-status.service.ts:1JobItemService—Frontend/src/app/services/sales/job-items.service.ts:1TempInq—Frontend/src/app/models/sales/inquiry.model.ts:17itemProcessShared—Frontend/src/app/models/sales/items-process-shared.model.ts:3JobItem—Frontend/src/app/models/sales/job-item.model.ts:6
Was this page helpful?