fix: fixed warehouse inventory numbers and some button verbage

This commit is contained in:
2026-04-21 04:38:07 +00:00
parent c94de8198f
commit 5194d0e21e
29 changed files with 835 additions and 575 deletions
+28
View File
@@ -0,0 +1,28 @@
import { Warehouse as CwWarehouse } from "../../generated/prisma/client";
import { Warehouse as ApiWarehouse } from "../../../api/generated/prisma/client";
import { Translation } from "./types";
export const warehouseTranslation: Translation<CwWarehouse, ApiWarehouse> = {
values: [
{ from: "warehouseRecId", to: "id" },
{
from: "warehouseName",
to: "name",
process: (value) => (value ? value : "Unnamed Warehouse"),
},
{
from: "inactiveFlag",
to: "inactiveFlag",
process: (value) => Boolean(value),
},
{
from: "lockedFlag",
to: "lockedFlag",
process: (value) => Boolean(value),
},
{ from: "updatedBy", to: "updatedById" },
{ from: "enteredBy", to: "createdById" },
{ from: "lastUpdatedUtc", to: "updatedAt" },
{ from: "dateEnteredUtc", to: "createdAt" },
],
};