Job Close fixed

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-11 15:58:35 -05:00
parent 5aa3612e52
commit aa8a719154

View File

@@ -62,13 +62,15 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
);
};
const menu = {
const menu =bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber ? {
items: bodyshop.md_responsibility_centers.dms_defaults.map((mapping) => ({
key: mapping.name,
label: mapping.name,
disabled: disabled,
})),
onClick: handleMenuClick,
} : {
items: []
}
return bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber ? (