all the haul

This commit is contained in:
2026-04-07 23:56:31 +00:00
parent 87cce83030
commit 24f303355b
244 changed files with 33743 additions and 11249 deletions
+18 -2
View File
@@ -2,6 +2,22 @@ import { Company as CwCompany } from "../../generated/prisma/client";
import { Company as ApiCompany } from "../../../api/generated/prisma/client";
import { Translation } from "./types";
const companyTranslation: Translation<CwCompany, ApiCompany> = {
values: [{ from: "" }],
export const companyTranslation: Translation<CwCompany, ApiCompany> = {
values: [
{ from: "companyRecId", to: "id" },
{
from: "companyName",
to: "name",
process: (value) => (value ? value : "Unnamed Company"),
},
{ from: "phoneNbr", to: "phone" },
{ from: "websiteUrl", to: "website" },
{ from: "deleteFlag", to: "deleteFlag" },
{ from: "dateDeleted", to: "dateDeleted" },
{ from: "taxId", to: "taxId" },
{ from: "deletedBy", to: "deletedById" },
{ from: "enteredBy", to: "enteredById" },
{ from: "dateEntered", to: "createdAt" },
{ from: "lastUpdate", to: "updatedAt" },
],
};