IO-3503 Job Costing Fix

Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
Allan Carr
2026-02-06 15:04:00 -08:00
parent 7e6c97b3cf
commit fe7bf684aa

View File

@@ -545,7 +545,7 @@ function GenerateCostingData(job) {
if ( if (
job.materials["MAPA"] && job.materials["MAPA"] &&
job.materials["MAPA"].cal_maxdlr !== undefined && job.materials["MAPA"].cal_maxdlr !== undefined &&
job.materials["MAPA"].cal_maxdlr >= 0 (InstanceManager({ rome: true }) ? job.materials["MAPA"].cal_maxdlr >= 0 : job.materials["MAPA"].cal_maxdlr > 0)
) { ) {
//It has an upper threshhold. //It has an upper threshhold.
threshold = Dinero({ threshold = Dinero({
@@ -595,7 +595,7 @@ function GenerateCostingData(job) {
if ( if (
job.materials["MASH"] && job.materials["MASH"] &&
job.materials["MASH"].cal_maxdlr !== undefined && job.materials["MASH"].cal_maxdlr !== undefined &&
job.materials["MASH"].cal_maxdlr >= 0 (InstanceManager({ rome: true }) ? job.materials["MASH"].cal_maxdlr >= 0 : job.materials["MASH"].cal_maxdlr > 0)
) { ) {
//It has an upper threshhold. //It has an upper threshhold.
threshold = Dinero({ threshold = Dinero({