feature/Reynolds-and-Reynolds-DMS-API-Integration - Add dealer id / merge fortellis

This commit is contained in:
Dave
2025-09-12 14:59:42 -04:00
parent 2fec9fd16e
commit 7c8260685e
37 changed files with 124 additions and 83 deletions

View File

@@ -0,0 +1,11 @@
export const determineDmsType = (bodyshop) => {
const dmsMapping = {
cdk_dealerid: "cdk",
pbs_serialnumber: "pbs",
rr_dealerid: "rr"
};
return Object.keys(dmsMapping).find((key) => bodyshop[key])
? dmsMapping[Object.keys(dmsMapping).find((key) => bodyshop[key])]
: "pbs";
};