hotfix/2026-03-12 - Be more specific on CDK error passing, resolve circular dependency

This commit is contained in:
Dave
2026-03-12 19:45:55 -04:00
parent fb863c7979
commit dd633cea89
6 changed files with 71 additions and 14 deletions

View File

@@ -46,7 +46,10 @@ const getTaskPresetAllocationErrors = (presets = [], t) => {
const laborTypeLabel =
translatedLaborType === `joblines.fields.lbr_types.${laborType}` ? laborType : translatedLaborType;
return `${laborTypeLabel} task preset total is ${total}% and cannot exceed 100%.`;
return t("bodyshop.errors.task_preset_allocation_exceeded", {
laborType: laborTypeLabel,
total
});
});
};