The custom name for this version. This human-readable identifier allows users to distinguish between different versions of the same job, such as "Draft Version", "Final Version", or "Client Approved".
var versionName = version.CustomName;
if (versionName.includes("Final")) {
return Item.Price * 1.1; // 10% markup for final versions
}
The job ID for this version. This unique identifier links this version to a specific job in the system, allowing for tracking and management of individual version instances.
var versionJobId = version.JobId;
console.log("Processing version with job ID: " + versionJobId);
The quantity for this version. This value represents how many units of this specific version are being ordered, allowing for version-specific quantity calculations and pricing adjustments.
var versionQuantity = version.Quantity;
var versionTotal = Item.Price * versionQuantity;
Generated using TypeDoc
Represents individual version item information. Each version item contains details about a specific version of a job, including its unique identifier, custom name, and quantity information.
Version items are used to track different iterations or variations of the same job, allowing for complex pricing scenarios where multiple versions of a product are being ordered simultaneously.