Calculations
OperaJM calculates job materials, costs, selling prices and production data from the configured products and job settings. For job-level requests, use the job ID and year described in Jobs.
| Result | What OperaJM calculates |
|---|---|
| Bill of materials (BOM) | Combines cutting-list items, typology accessories and manually entered materials. |
| Cutting list | Uses configured dimensions, deductions and corrections to determine the pieces to cut. |
| Optimized cutting list | Combines and optimizes cuts for production. |
| Cost analysis | Uses materials, manufacturing and waste costs, overhead and any extra costs configured for the job. |
| Selling price and markup | Can calculate the selling price from costs and markup, derive markup from a predefined selling price, or combine these methods across job items. |
Cost and pricing inputs
Operating costs can vary between jobs. OperaJM lets a job override inherited rates and costs. Machining operations can have their own hourly rate. If a machining rate is unset, OperaJM uses the general construction rate. Waste classes in OPERACLP let materials carry different waste percentages. The selling price can be calculated from cost and markup or obtained from a configured price list revision in OPERARPL and its related archives.
Request job calculations
Supply the job ID with -jid and the year with -jyear. These tested HTTP examples use job ID 1 and year 2023:
| Request | Result |
|---|---|
http://localhost:9001/query?-g&-jid1&-jyear2023 |
Calculates and returns job details as XML. |
http://localhost:9001/query?-gm&-jid1&-jyear2023 |
Returns job details with materials at the job and typology levels. |
The CLI command reference also lists -gl for cutting-list details, -go for optimized cutting-list details, and -b<XMLfile> for cutting-list optimization with an XML file. Confirm the request schema and any units before constructing an input file for that command.
For a reproducible comparison, use the same job, archive configuration and job-specific rates as the OperaJM result being checked. The job can override inherited costs and rates.
Browser calculation report
Open this URL in a browser that supports XML stylesheets. Replace the job ID and year for the job you want to calculate.
http://localhost:9001/query?-gaf&-jid5&-jyear2026&-Yjob_details.xsl
The tested server returned HTTP 200 with text/xml. The -Yjob_details.xsl argument adds a stylesheet reference to the XML. A browser that applies the XSLT displays an HTML job details page. Integrations can parse the XML response directly.
The page's Reports section lists the reports available on that server for the job. The stylesheet uses the -d- report catalog and links each listed report to a request with the job ID and year. The tested page included links for schemes, cutting lists, materials, and optimization. The list can vary with the installation's configuration. See discover job reports and documents for the XML sources, filters, and generated request arguments.
For material entries with mat_type set to accessory, use the unit in mat_unit. See job materials response for the XML fields.
Profile quantities and stock lengths
Typology-level materials report the profile length used by the typology. Read the unit of that length from <mat_unit>. When a profile entry has <mat_unit>pc</mat_unit>, its quantity counts stock bars and <mat_width> gives the length of one bar in millimeters.
OperaJM calculates the job-level quantity using one-dimensional (1D) cutting optimization across the cuts from all typologies in the job. To compare the two figures, multiply the bar count by mat_width to get the total stock length in millimeters, then convert both figures to a common unit. For example, three bars with mat_width of 6000 represent 18 meters of stock. The total stock length covers the typologies' combined profile length plus the material lost during cutting.
Panel and glass cutting optimization
OperaJM uses two-dimensional (2D) cutting optimization for panels and glass purchased in stock sheet sizes and cut in-house. It lays out the required pieces on stock sheets to determine how many sheets are needed and accounts for the offcuts as waste.
When glass is ordered to size, the supplier provides the pieces at their required dimensions. Those pieces are excluded from stock-sheet cutting optimization.