Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
(feat): documents and bank details on supplier and customer records (#1656)
Anshul sharma386c974af1b2
diff --git a/.ai/plans/2026-09-16-supplier-customer-documents-and-bank-details.md b/.ai/plans/2026-09-16-supplier-customer-documents-and-bank-details.mdnew file mode 100644index 0000000000..2ae8a7d840--- /dev/null+++ b/.ai/plans/2026-09-16-supplier-customer-documents-and-bank-details.md@@ -0,0 +1,886 @@+# Supplier & Customer Documents and Bank Details — implementation plan++**Spec / source:** `.ai/specs/2026-09-16-supplier-customer-documents-and-bank-details.md`+**Branch:** `feat/supplier-customer-docs`+**Worktree:** `/Users/aashu/work/carbon/carbon-feat-supplier-customer-docs` — run every command from here. Do NOT touch `/Users/aashu/work/carbon/carbon`.++## Critical context for the executor++- This is a **pnpm** workspace. Never use `npm`.+- The ERP app's package name is `erp` (not `@carbon/erp`) — `pnpm exec turbo run typecheck --filter=erp`.+- Whole-repo typecheck OOMs. Always scope with `--filter`.+- After any migration: `pnpm db:migrate` then `pnpm run generate:types`, BEFORE any typecheck.+- **Never run `git commit`.** The user commits. Leave changes in the working tree.+- Every new user-facing string must be Lingui-wrapped (`<Trans>` for JSX, `` t`...` `` from `useLingui()` for attributes/strings). No bare English.+- Local Postgres for this worktree is on port **58641** (`PGPASSWORD=postgres psql -h 127.0.0.1 -p 58641 -U postgres -d postgres`).++## Progress++- [x] Task 1: Migration — documentSourceType enum values+- [x] Task 2: Migration — supplierBankAccount + customerBankAccount tables+- [x] Task 3: Apply migrations and regenerate types+- [x] Task 4: Register bank tables in audit config+- [x] Task 5: Add documentSourceTypes TS mirror values + document location links+- [x] Task 6: Add path entries for documents and bank accounts+- [x] Task 7: Extract shared RecordDocuments component+- [x] Task 8: Supplier + customer Documents routes+- [x] Task 9: Add permission-gating to sidebar hooks+- [x] Task 10: Sidebar entries for Documents and Bank Accounts+- [x] Task 11: Bank account validators and services+- [x] Task 12: Bank account form + list UI components+- [x] Task 13: Bank account routes (list / new / edit / delete)+- [x] Task 14: Full verification++## Dependencies++- Task 1, 2 independent of each other; both must precede Task 3.+- Task 3 must precede Tasks 4, 11 (needs regenerated DB types).+- Task 5, 6 independent, can run any time after Task 3.+- Task 7 must precede Task 8.+- Task 9 must precede Task 10.+- Task 11 must precede Tasks 12, 13.+- Task 12 must precede Task 13.+- Task 14 last.++---++## Task 1: Migration — add Supplier and Customer to documentSourceType++**Depends on:** none++**Files:**+- Create: `packages/database/supabase/migrations/<timestamp>_supplier-customer-document-source.sql`+- Copy from (precedent): `packages/database/supabase/migrations/20260202000000_supplier_quote_document_type.sql`++**Steps:**++1. Create the migration file:+ ```bash+ pnpm db:migrate:new supplier-customer-document-source+ ```+2. The generated filename has a timestamp. Verify its HHMMSS portion is NOT `000000` — if it is, rename the file with a randomized HHMMSS (e.g. `20260916142853_supplier-customer-document-source.sql`). The timestamp is the migration's primary key and `000000` collides across branches.+3. Write exactly this content into that file:+ ```sql+ -- Master records (supplier, customer) can now own documents. Every existing+ -- documentSourceType value is a transaction or an item; these are the first+ -- two master-record sources.+ ALTER TYPE "documentSourceType" ADD VALUE IF NOT EXISTS 'Supplier';+ ALTER TYPE "documentSourceType" ADD VALUE IF NOT EXISTS 'Customer';+ ```++**Verify:**+```bash+ls packages/database/supabase/migrations/ | grep supplier-customer-document-source+# Expected: exactly one filename, timestamp not ending in 000000+```++**Out of scope:** Do not modify the `document` table itself — it needs no schema change. Do not touch any other enum.++---++## Task 2: Migration — supplierBankAccount and customerBankAccount tables++**Depends on:** none++**Files:**+- Create: `packages/database/supabase/migrations/<timestamp>_supplier-customer-bank-accounts.sql`+- Copy from (precedent): `.claude/rules/conventions-database.md` table + RLS template; `packages/database/supabase/migrations/20260905132037_job-operation-batching.sql` for the exact RLS policy idiom.++**Steps:**++1. Create the migration file:+ ```bash+ pnpm db:migrate:new supplier-customer-bank-accounts+ ```+2. Check the HHMMSS is not `000000`; rename with a randomized one if it is.+3. Write this content. Note `countryCode` is `CHAR(2)` referencing `country("alpha2")` — verified against the live DB; `country` has no integer id column.++ ```sql+ -- Counterparty bank accounts: the bank we pay a supplier into, and the bank we+ -- refund a customer to. NOT the company's own bank accounts, and unrelated to+ -- "payment"."bankAccount", which is a GL chart-of-accounts reference.+ --+ -- Gated on accounting_* rather than purchasing_*/sales_* on purpose: payments are+ -- run by finance, and purchasing_view is very widely held.++ CREATE TABLE "supplierBankAccount" (+ "id" TEXT NOT NULL DEFAULT id('sba'),+ "companyId" TEXT NOT NULL,+ "supplierId" TEXT NOT NULL,++ "name" TEXT NOT NULL,+ "accountHolderName" TEXT,+ "bankName" TEXT,+ "countryCode" CHAR(2),+ "currencyCode" TEXT,++ "accountNumber" TEXT,+ "routingNumber" TEXT,+ "iban" TEXT,+ "swiftBic" TEXT,++ "isPrimary" BOOLEAN NOT NULL DEFAULT FALSE,+ "active" BOOLEAN NOT NULL DEFAULT TRUE,+ "notes" TEXT,++ "createdBy" TEXT NOT NULL REFERENCES "user"("id"),+ "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),+ "updatedBy" TEXT REFERENCES "user"("id"),+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "customFields" JSONB,+ "tags" TEXT[],++ PRIMARY KEY ("id", "companyId"),+ FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE,+ FOREIGN KEY ("supplierId", "companyId")+ REFERENCES "supplier"("id", "companyId") ON UPDATE CASCADE ON DELETE CASCADE,+ FOREIGN KEY ("countryCode") REFERENCES "country"("alpha2")+ ON UPDATE CASCADE ON DELETE SET NULL+ );++ CREATE INDEX "supplierBankAccount_companyId_idx" ON "supplierBankAccount" ("companyId");+ CREATE INDEX "supplierBankAccount_supplierId_idx" ON "supplierBankAccount" ("supplierId");+ CREATE INDEX "supplierBankAccount_createdBy_idx" ON "supplierBankAccount" ("createdBy");+ CREATE INDEX "supplierBankAccount_updatedBy_idx" ON "supplierBankAccount" ("updatedBy");+ CREATE INDEX "supplierBankAccount_countryCode_idx" ON "supplierBankAccount" ("countryCode");++ CREATE UNIQUE INDEX "supplierBankAccount_primary_idx"+ ON "supplierBankAccount" ("supplierId", "companyId")+ WHERE "isPrimary" AND "active";++ ALTER TABLE "public"."supplierBankAccount" ENABLE ROW LEVEL SECURITY;++ CREATE POLICY "SELECT" ON "public"."supplierBankAccount"+ FOR SELECT USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_view'))::text[])+ );++ CREATE POLICY "INSERT" ON "public"."supplierBankAccount"+ FOR INSERT WITH CHECK (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_create'))::text[])+ );++ CREATE POLICY "UPDATE" ON "public"."supplierBankAccount"+ FOR UPDATE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_update'))::text[])+ );++ CREATE POLICY "DELETE" ON "public"."supplierBankAccount"+ FOR DELETE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_delete'))::text[])+ );++ CREATE TABLE "customerBankAccount" (+ "id" TEXT NOT NULL DEFAULT id('cba'),+ "companyId" TEXT NOT NULL,+ "customerId" TEXT NOT NULL,++ "name" TEXT NOT NULL,+ "accountHolderName" TEXT,+ "bankName" TEXT,+ "countryCode" CHAR(2),+ "currencyCode" TEXT,++ "accountNumber" TEXT,+ "routingNumber" TEXT,+ "iban" TEXT,+ "swiftBic" TEXT,++ "isPrimary" BOOLEAN NOT NULL DEFAULT FALSE,+ "active" BOOLEAN NOT NULL DEFAULT TRUE,+ "notes" TEXT,++ "createdBy" TEXT NOT NULL REFERENCES "user"("id"),+ "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),+ "updatedBy" TEXT REFERENCES "user"("id"),+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "customFields" JSONB,+ "tags" TEXT[],++ PRIMARY KEY ("id", "companyId"),+ FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE,+ FOREIGN KEY ("customerId", "companyId")+ REFERENCES "customer"("id", "companyId") ON UPDATE CASCADE ON DELETE CASCADE,+ FOREIGN KEY ("countryCode") REFERENCES "country"("alpha2")+ ON UPDATE CASCADE ON DELETE SET NULL+ );++ CREATE INDEX "customerBankAccount_companyId_idx" ON "customerBankAccount" ("companyId");+ CREATE INDEX "customerBankAccount_customerId_idx" ON "customerBankAccount" ("customerId");+ CREATE INDEX "customerBankAccount_createdBy_idx" ON "customerBankAccount" ("createdBy");+ CREATE INDEX "customerBankAccount_updatedBy_idx" ON "customerBankAccount" ("updatedBy");+ CREATE INDEX "customerBankAccount_countryCode_idx" ON "customerBankAccount" ("countryCode");++ CREATE UNIQUE INDEX "customerBankAccount_primary_idx"+ ON "customerBankAccount" ("customerId", "companyId")+ WHERE "isPrimary" AND "active";++ ALTER TABLE "public"."customerBankAccount" ENABLE ROW LEVEL SECURITY;++ CREATE POLICY "SELECT" ON "public"."customerBankAccount"+ FOR SELECT USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_view'))::text[])+ );++ CREATE POLICY "INSERT" ON "public"."customerBankAccount"+ FOR INSERT WITH CHECK (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_create'))::text[])+ );++ CREATE POLICY "UPDATE" ON "public"."customerBankAccount"+ FOR UPDATE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_update'))::text[])+ );++ CREATE POLICY "DELETE" ON "public"."customerBankAccount"+ FOR DELETE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_delete'))::text[])+ );+ ```++4. Verify the FK target shape before trusting it:+ ```bash+ PGPASSWORD=postgres psql -h 127.0.0.1 -p 58641 -U postgres -d postgres -c '\d country' | head -8+ ```+ Expected: a `alpha2 | character(2)` column and `country_pkey PRIMARY KEY, btree (alpha2)`.+ **If `country`'s PK is not `alpha2`, STOP and report — do not improvise a different FK.**++**Verify:**+```bash+grep -c "CREATE TABLE" packages/database/supabase/migrations/*supplier-customer-bank-accounts.sql+# Expected: 2+grep -c "get_companies_with_employee_permission('accounting_" packages/database/supabase/migrations/*supplier-customer-bank-accounts.sql+# Expected: 8+```++**Out of scope:** Do NOT add bank columns to `supplierPayment` or `customerPayment`. Do NOT add encryption, vault functions, or audit-redaction — the spec explicitly accepts plaintext (see the spec's Accepted Risks section). Do NOT create a `bankAccount` table for the company's own banks.++---++## Task 3: Apply migrations and regenerate types++**Depends on:** Task 1, Task 2++**Files:**+- Modify (generated, do not hand-edit): `packages/database/src/types.ts`, `packages/database/supabase/functions/lib/types.ts`, `packages/database/src/swagger-docs-schema.ts`++**Steps:**++1. Apply:+ ```bash+ pnpm db:migrate+ ```+2. Regenerate DB types:+ ```bash+ pnpm run generate:types+ ```+3. Confirm the new tables and enum values exist in the live DB:+ ```bash+ PGPASSWORD=postgres psql -h 127.0.0.1 -p 58641 -U postgres -d postgres -c "SELECT unnest(enum_range(NULL::\"documentSourceType\"))::text" | grep -E "Supplier$|Customer$"+ PGPASSWORD=postgres psql -h 127.0.0.1 -p 58641 -U postgres -d postgres -c '\d "supplierBankAccount"' | head -20+ ```++**Verify:**+```bash+grep -c "supplierBankAccount" packages/database/src/types.ts+# Expected: a number greater than 0+grep -c "customerBankAccount" packages/database/src/types.ts+# Expected: a number greater than 0+```++**Out of scope:** Do not hand-edit any generated types file. If the generator fails, STOP and report — do not patch types by hand.++---++## Task 4: Register bank tables in the audit config++**Depends on:** Task 3++**Files:**+- Modify: `packages/database/src/audit.config.ts` — add both tables to the existing `supplier` and `customer` entities, and add display labels.++**Steps:**++1. In the `customer` entity's `tables` object (around line 141–155, which already contains `customerPayment: { role: "extension" }`), add:+ ```ts+ customerBankAccount: { entityIdColumn: "customerId" },+ ```+2. In the `supplier` entity's `tables` object (around line 174–190, which already contains `supplierPayment: { role: "extension" }`), add:+ ```ts+ supplierBankAccount: { entityIdColumn: "supplierId" },+ ```+3. In the table-label map (around line 615–625, which contains `customerPayment: "Payment"`), add:+ ```ts+ customerBankAccount: "Bank Account",+ supplierBankAccount: "Bank Account",+ ```++Use the `{ entityIdColumn }` role — documented at `audit.config.ts:17-18` as "a child table with its own surrogate PK; the named column contains the parent entity ID". Do NOT use `role: "extension"`, which is only for 1:1 tables whose PK equals the parent FK.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=@carbon/database+# Expected: exits 0, no type errors+```++**Out of scope:** Do NOT add per-field redaction or touch `skipFields`. The spec's Accepted Risks section documents that bank numbers appear in audit diffs in plaintext — that is the user's explicit decision, not a bug to fix here.++---++## Task 5: Add TS enum mirror values and document location links++**Depends on:** Task 3++**Files:**+- Modify: `apps/erp/app/modules/documents/documents.models.ts` — add two values to `documentSourceTypes` (line 9).+- Modify: `apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx` — add two cases to `getDocumentLocation()` (around line 634).++**Steps:**++1. In `documents.models.ts`, the `documentSourceTypes` array starts at line 9 and ends with `...itemType`. Add `"Supplier"` and `"Customer"` as entries before `...itemType`:+ ```ts+ "Shipment",+ "Supplier",+ "Customer",+ ...itemType+ ```+ This array is hand-maintained (not generated) and drives the source-type filter in the documents table.+2. In `DocumentsTable.tsx`, inside `getDocumentLocation(sourceDocument, sourceDocumentId)`, add these two cases before `default:`:+ ```ts+ case "Supplier":+ return path.to.supplierDetails(sourceDocumentId);+ case "Customer":+ return path.to.customerDetails(sourceDocumentId);+ ```+ `path.to.supplierDetails` and `path.to.customerDetails` already exist (`apps/erp/app/utils/path.ts:2188` and `:557`).++**Verify:**+```bash+grep -A2 '"Shipment",' apps/erp/app/modules/documents/documents.models.ts+# Expected: shows "Supplier", and "Customer",+grep -c 'case "Supplier":' apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx+# Expected: 1+```++**Out of scope:** Do not reorder or remove existing enum values — the array order feeds a UI filter list but the values must all remain.++---++## Task 6: Add path entries++**Depends on:** Task 3++**Files:**+- Modify: `apps/erp/app/utils/path.ts` — add four route builders, keeping alphabetical order within the `to` object.++**Steps:**++1. Near the existing `customerDetails` (line 557) and `customerPayment` (line 569) entries, add:+ ```ts+ customerBankAccount: (customerId: string, id: string) =>+ generatePath(`${x}/customer/${customerId}/bank-accounts/${id}`),+ customerBankAccounts: (id: string) =>+ generatePath(`${x}/customer/${id}/bank-accounts`),+ customerDocuments: (id: string) =>+ generatePath(`${x}/customer/${id}/documents`),+ deleteCustomerBankAccount: (customerId: string, id: string) =>+ generatePath(`${x}/customer/${customerId}/bank-accounts/delete/${id}`),+ newCustomerBankAccount: (customerId: string) =>+ generatePath(`${x}/customer/${customerId}/bank-accounts/new`),+ ```+2. Near the existing `supplierDetails` (line 2190) entry, add:+ ```ts+ supplierBankAccount: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/bank-accounts/${id}`),+ supplierBankAccounts: (id: string) =>+ generatePath(`${x}/supplier/${id}/bank-accounts`),+ supplierDocuments: (id: string) =>+ generatePath(`${x}/supplier/${id}/documents`),+ deleteSupplierBankAccount: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/bank-accounts/delete/${id}`),+ newSupplierBankAccount: (supplierId: string) =>+ generatePath(`${x}/supplier/${supplierId}/bank-accounts/new`),+ ```+ Place each in its correct alphabetical position within the object.++**Verify:**+```bash+grep -cE "supplierDocuments|customerDocuments|supplierBankAccounts|customerBankAccounts" apps/erp/app/utils/path.ts+# Expected: 4+```++**Out of scope:** Do not modify the existing `supplierDefaultAttachments` entry — default attachments are a different feature (outbound PO email attachments).++---++## Task 7: Extract shared RecordDocuments component++**Depends on:** none (but do after Task 6 so `path.to.*` exists)++**Files:**+- Create: `apps/erp/app/components/RecordDocuments.tsx`+- Copy from (precedent): `apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx` — the whole upload/download/delete/list card, minus the drag-and-drop and Opportunity-specific pieces.++**Steps:**++1. Read `apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx` in full first. It is ~490 lines and contains the complete reference implementation.+2. Create `RecordDocuments.tsx` exporting a default component with this exact prop shape:+ ```ts+ type RecordDocumentsProps = {+ files: FileObject[];+ /** The record's id — becomes document.sourceDocumentId */+ id: string;+ /** Storage prefix segment under ${companyId}/, e.g. "supplier" */+ bucketPrefix: string;+ /** documentSourceType value, e.g. "Supplier" */+ sourceDocument: "Supplier" | "Customer";+ /** Permission module gating upload/delete, e.g. "purchasing" */+ module: "purchasing" | "sales";+ isReadOnly?: boolean;+ };+ ```+3. Carry over from the precedent, adapting names:+ - The `Card` / `CardHeader` / `CardTitle` / `CardAction` / `CardContent` layout with a `Table` of files.+ - `FileDropzone` + a hidden file input with an upload `IconButton` (`LuUpload`).+ - `upload()`: for each file, `stripSpecialCharacters(file.name)`, build the path as+ `` `${companyId}/${bucketPrefix}/${id}/${safeName}` ``, call+ `carbon.storage.from("private").upload(fileName, file, { cacheControl: `${12 * 60 * 60}`, upsert: true })`,+ then on success call `createDocumentRecord({ path, name, size })` which submits a `FormData`+ with `path`, `name`, `size` (KB, `Math.round(size / 1024)`), `sourceDocument`, `sourceDocumentId`+ to `path.to.newDocument` via `submit(formData, { method: "post", action: path.to.newDocument, navigate: false, fetcherKey: ... })`.+ - `download()`, `deleteAttachment()` (calls `.remove([path])`), optimistic rows via `useFetchers`, `revalidator.revalidate()`.+ - `getDocumentType(file.name)` for the icon, `convertKbToString` for the size column, `DateTime` for `updated_at`.+ - Permission checks: upload/delete gated on `permissions.can("update", module)` / `permissions.can("delete", module)`.+4. Wrap every user-facing string in Lingui: `<Trans>` in JSX, `` t`...` `` from `useLingui()` for toasts and aria labels. The precedent already does this — follow it exactly.+5. Do NOT carry over: `useDndContext` / `useDraggable` / `useOptimisticDocumentDrag` (drag-to-line is Opportunity-specific), the `LuRadioTower`/`LuShoppingCart` badges, the `Outlet`, or the `opportunity` prop.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: exits 0+grep -c "Trans\|useLingui" apps/erp/app/components/RecordDocuments.tsx+# Expected: greater than 0 (proves Lingui wrapping is present)+```++**Out of scope:** Do NOT modify `OpportunityDocuments.tsx` to use this new component. Migrating it is unrelated refactoring of working code and is explicitly excluded by spec decision D9.++---++## Task 8: Supplier and customer Documents routes++**Depends on:** Task 5, Task 6, Task 7++**Files:**+- Create: `apps/erp/app/routes/x+/supplier+/$supplierId.documents.tsx`+- Create: `apps/erp/app/routes/x+/customer+/$customerId.documents.tsx`+- Copy from (precedent): `apps/erp/app/routes/x+/supplier+/$supplierId.default-attachments.tsx` — same loader shape, same storage `.list()` call.++**Steps:**++1. Create `$supplierId.documents.tsx`:+ ```tsx+ import { requirePermissions } from "@carbon/auth/auth.server";+ import type { LoaderFunctionArgs } from "react-router";+ import { useLoaderData } from "react-router";+ import RecordDocuments from "~/components/RecordDocuments";++ export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client, companyId } = await requirePermissions(request, {+ view: "purchasing"+ });+ const { supplierId } = params;+ if (!supplierId) throw new Error("Missing supplierId");++ const result = await client.storage+ .from("private")+ .list(`${companyId}/supplier/${supplierId}`);++ return {+ supplierId,+ files: result.data ?? []+ };+ }++ export default function SupplierDocumentsRoute() {+ const { supplierId, files } = useLoaderData<typeof loader>();++ return (+ <RecordDocuments+ files={files}+ id={supplierId}+ bucketPrefix="supplier"+ sourceDocument="Supplier"+ module="purchasing"+ />+ );+ }+ ```+2. Create `$customerId.documents.tsx` — identical but with `customerId`, `view: "sales"`, prefix `` `${companyId}/customer/${customerId}` ``, `bucketPrefix="customer"`, `sourceDocument="Customer"`, `module="sales"`.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: exits 0+ls apps/erp/app/routes/x+/supplier+/\$supplierId.documents.tsx apps/erp/app/routes/x+/customer+/\$customerId.documents.tsx+# Expected: both paths listed, no "No such file"+```++**Out of scope:** Do not add an `Outlet` — these routes have no child routes.++---++## Task 9: Add permission-gating to the sidebar hooks++**Depends on:** none++**Files:**+- Modify: `apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx` — extend the filter at lines 125–129.+- Modify: `apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx` — same change.++**Steps:**++1. The current filter is:+ ```ts+ ].filter(+ (item) =>+ item.role === undefined ||+ item.role.some((role) => permissions.is(role as Role))+ );+ ```+ `permissions.is(role)` tests the user's ROLE (employee / supplier / customer) — verified at `apps/erp/app/hooks/usePermissions.tsx:40-45`. It cannot express a module permission like `accounting_view`. `permissions.can(action, feature)` is the separate function for that (`usePermissions.tsx:26-31`).+2. Change the filter in BOTH files to also honour an optional `permission` field:+ ```ts+ ].filter((item) => {+ const roleOk =+ item.role === undefined ||+ item.role.some((role) => permissions.is(role as Role));+ const permissionOk =+ !("permission" in item) ||+ item.permission === undefined ||+ permissions.can(item.permission.action, item.permission.module);+ return roleOk && permissionOk;+ });+ ```+3. If TypeScript complains that `permission` does not exist on the array's inferred element type, add the field as optional to the object literal type. The array is built inline, so the simplest fix is to annotate the returned array's element type explicitly. **If the inline-array inference makes this awkward, STOP and report rather than restructuring the whole hook.**++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: exits 0+```++**Out of scope:** Do NOT change the `role` field on any existing sidebar entry. Existing entries must keep behaving exactly as they do now.++---++## Task 10: Sidebar entries for Documents and Bank Accounts++**Depends on:** Task 6, Task 9++**Files:**+- Modify: `apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx`+- Modify: `apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx`++**Steps:**++1. In `useSupplierSidebar.tsx`, add two entries. Place Documents immediately after the existing `Default Attachments` entry (which uses `icon: <LuFiles />` at line ~87), and Bank Accounts after `Payment`:+ ```tsx+ {+ name: t`Documents`,+ to: path.to.supplierDocuments(supplierId),+ role: ["employee"],+ icon: <LuFiles />+ },+ {+ name: t`Bank Accounts`,+ to: path.to.supplierBankAccounts(supplierId),+ role: ["employee"],+ permission: { action: "view", module: "accounting" },+ icon: <LuLandmark />+ },+ ```+2. `LuFiles` is already imported in that file (line 6). Add `LuLandmark` to the `react-icons/lu` import list — note it already appears in a commented-out block at line ~122, so the name is correct but the import may need adding.+3. Do the same in `useCustomerSidebar.tsx` with `path.to.customerDocuments` / `path.to.customerBankAccounts`. Check which `Lu*` icons that file already imports and add what is missing.+4. Both `name` values use the `` t`...` `` template tag from `useLingui()`, matching every existing entry in these files.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: exits 0+grep -c "supplierDocuments\|supplierBankAccounts" apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx+# Expected: 2+```++**Out of scope:** Do not remove the commented-out Shipping/Accounting blocks at the end of the supplier sidebar — they are pre-existing and unrelated.++---++## Task 11: Bank account validators and services++**Depends on:** Task 3++**Files:**+- Modify: `apps/erp/app/modules/purchasing/purchasing.models.ts` — add `supplierBankAccountValidator`.+- Modify: `apps/erp/app/modules/purchasing/purchasing.service.ts` — add four functions.+- Modify: `apps/erp/app/modules/sales/sales.models.ts` — add `customerBankAccountValidator`.+- Modify: `apps/erp/app/modules/sales/sales.service.ts` — add four functions.+- Modify: `apps/erp/app/modules/purchasing/types.ts` and `apps/erp/app/modules/sales/types.ts` — export the row types.+- Copy from (precedent): `supplierProcessValidator` at `purchasing.models.ts:414`; `upsertSupplierProcess` at `purchasing.service.ts:2064`; `deleteSupplierProcess` at `purchasing.service.ts:275`.++**Steps:**++1. Add to `purchasing.models.ts` (near `supplierLocationValidator`, line ~400):+ ```ts+ export const supplierBankAccountValidator = z+ .object({+ id: zfd.text(z.string().optional()),+ supplierId: z.string().min(1, { message: "Supplier is required" }),+ name: zfd.text(z.string().min(1, { message: "Name is required" })),+ accountHolderName: zfd.text(z.string().optional()),+ bankName: zfd.text(z.string().optional()),+ countryCode: zfd.text(z.string().optional()),+ currencyCode: zfd.text(z.string().optional()),+ accountNumber: zfd.text(z.string().optional()),+ routingNumber: zfd.text(z.string().optional()),+ iban: zfd.text(z.string().optional()),+ swiftBic: zfd.text(z.string().optional()),+ isPrimary: zfd.checkbox(),+ active: zfd.checkbox(),+ notes: zfd.text(z.string().optional())+ })+ .refine((data) => data.accountNumber || data.iban, {+ message: "Either an account number or an IBAN is required",+ path: ["accountNumber"]+ })+ .refine((data) => !data.iban || isValidIban(data.iban), {+ message: "Invalid IBAN",+ path: ["iban"]+ })+ .refine((data) => !data.routingNumber || isValidAbaRouting(data.routingNumber), {+ message: "Invalid routing number",+ path: ["routingNumber"]+ })+ .refine((data) => !data.swiftBic || /^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/.test(data.swiftBic.toUpperCase()), {+ message: "Invalid SWIFT/BIC code",+ path: ["swiftBic"]+ });+ ```+2. Create the two validation helpers in `packages/utils/src/bank.ts` and export them from `packages/utils/src/index.ts`:+ ```ts+ /** ISO 13616 IBAN check: rearrange, letters->digits, mod 97 must equal 1. */+ export function isValidIban(raw: string): boolean {+ const iban = raw.replace(/\s+/g, "").toUpperCase();+ if (!/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/.test(iban)) return false;+ const rearranged = iban.slice(4) + iban.slice(0, 4);+ const expanded = rearranged.replace(/[A-Z]/g, (c) =>+ (c.charCodeAt(0) - 55).toString()+ );+ // mod-97 over a string, digit by digit (the number exceeds Number.MAX_SAFE_INTEGER)+ let remainder = 0;+ for (const digit of expanded) {+ remainder = (remainder * 10 + Number(digit)) % 97;+ }+ return remainder === 1;+ }++ /** ABA routing checksum: 9 digits, weighted 3-7-1 sum mod 10 must equal 0. */+ export function isValidAbaRouting(raw: string): boolean {+ const digits = raw.replace(/\s+/g, "");+ if (!/^[0-9]{9}$/.test(digits)) return false;+ const w = [3, 7, 1, 3, 7, 1, 3, 7, 1];+ const sum = digits+ .split("")+ .reduce((acc, d, i) => acc + Number(d) * w[i], 0);+ return sum % 10 === 0;+ }+ ```+ Import them into the models file from `@carbon/utils`.+ **Check first whether `zfd.checkbox()` is the idiom used elsewhere in these models files** (`grep -n "zfd.checkbox" apps/erp/app/modules/*/*.models.ts`). If the repo uses a different boolean coercion, match it. If `zfd.checkbox` does not exist, STOP and report — do not invent a coercion.+3. Add to `purchasing.service.ts`, matching the `upsertSupplierProcess` shape exactly (two-arm union on `createdBy` vs `updatedBy`, `sanitize()` on update):+ ```ts+ export async function getSupplierBankAccounts(+ client: SupabaseClient<Database>,+ supplierId: string+ ) {+ return client+ .from("supplierBankAccount")+ .select("*")+ .eq("supplierId", supplierId)+ .eq("active", true)+ .order("isPrimary", { ascending: false })+ .order("name");+ }++ export async function getSupplierBankAccount(+ client: SupabaseClient<Database>,+ id: string+ ) {+ return client.from("supplierBankAccount").select("*").eq("id", id).single();+ }++ export async function upsertSupplierBankAccount(...) // mirror upsertSupplierProcess+ export async function deleteSupplierBankAccount(...) // mirror deleteSupplierProcess+ ```+ In `upsertSupplierBankAccount`, when `isPrimary` is true, first clear it on the party's other rows:+ ```ts+ await client+ .from("supplierBankAccount")+ .update({ isPrimary: false })+ .eq("supplierId", bankAccount.supplierId)+ .neq("id", idBeingSaved ?? "");+ ```+ Do this before the insert/update so the partial unique index never sees two primaries.+4. Mirror all of the above in the sales module for `customerBankAccount`.+5. Export the new functions and validators from each module's `index.ts` barrel, and add row types to `types.ts` following how `SupplierProcess` / `SupplierLocation` are declared there.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp --filter=@carbon/utils+# Expected: exits 0+```++**Out of scope:** Do not build a Kysely transaction — these are simple supabase-client calls, matching every sibling service function. Do not add encryption or masking in the service layer; masking is presentation-only (Task 12).++---++## Task 12: Bank account form and list UI components++**Depends on:** Task 11++**Files:**+- Create: `apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccountForm.tsx`+- Create: `apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsx`+- Create: `apps/erp/app/modules/sales/ui/Customer/CustomerBankAccountForm.tsx`+- Create: `apps/erp/app/modules/sales/ui/Customer/CustomerBankAccounts.tsx`+- Modify: the `index.ts` in each `ui/Supplier` / `ui/Customer` folder to export them.+- Copy from (precedent): `apps/erp/app/modules/purchasing/ui/Supplier/SupplierLocations.tsx` (list card with actions + ConfirmDelete) and `apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcessForm.tsx` (drawer form with ValidatedForm).++**Steps:**++1. Read both precedent files fully before writing.+2. `SupplierBankAccountForm.tsx` — a drawer `ValidatedForm` with `validator={supplierBankAccountValidator}`, containing, in this order:+ - `<Hidden name="id" />`, `<Hidden name="supplierId" />`+ - `Input name="name"` label `` t`Name` ``+ - `Input name="accountHolderName"` label `` t`Account Holder` ``+ - `Input name="bankName"` label `` t`Bank Name` ``+ - `Country name="countryCode"` label `` t`Country` ``+ - `Currency name="currencyCode"` label `` t`Currency` ``+ - `Input name="accountNumber"` label `` t`Account Number` ``+ - `Input name="routingNumber"` label `` t`Routing Number` ``+ - `Input name="iban"` label `` t`IBAN` ``+ - `Input name="swiftBic"` label `` t`SWIFT / BIC` ``+ - `Boolean name="isPrimary"` label `` t`Primary Account` ``+ - `Boolean name="active"` label `` t`Active` ``+ - `TextArea name="notes"` label `` t`Notes` ``+ - `<CustomFormFields table="supplierBankAccount" />`+ - `<Submit isDisabled={isDisabled}>` where `isDisabled = !permissions.can(isEditing ? "update" : "create", "accounting")`++ All of `Input`, `TextArea`, `Boolean`, `Country`, `Currency`, `Hidden`, `Submit`, `CustomFormFields` are exported from `~/components/Form` (verified present in `apps/erp/app/components/Form/index.ts`).+3. `SupplierBankAccounts.tsx` — a `Card` listing accounts, following `SupplierLocations.tsx`:+ - `CardAction` with a `New` button → `path.to.newSupplierBankAccount(supplierId)`, gated `permissions.can("create", "accounting")`.+ - One row per account showing: `name`, a `Badge` reading `` t`Primary` `` when `isPrimary`, the bank name, and the **masked** number.+ - Masking helper, defined in the component file:+ ```ts+ function maskAccountNumber(value: string | null): string {+ if (!value) return "";+ const trimmed = value.replace(/\s+/g, "");+ if (trimmed.length <= 4) return "••••";+ return `••••${trimmed.slice(-4)}`;+ }+ ```+ Show `maskAccountNumber(account.iban ?? account.accountNumber)`.+ - A per-row reveal toggle (`useState<Set<string>>` of revealed ids, `LuEye` / `LuEyeOff` icon button) that swaps the masked string for the raw value. Add a comment above it stating this is presentation-only and the loader already returns the full value.+ - Row actions (Edit / Delete) gated on `permissions.can("update"/"delete", "accounting")`, plus `ConfirmDelete` wired to `path.to.deleteSupplierBankAccount(...)`, exactly as `SupplierLocations.tsx` does.+ - An `<Outlet />` at the end so the new/edit/delete child routes render.+4. Mirror both files for customer.+5. Every visible string Lingui-wrapped.++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: exits 0+grep -c "maskAccountNumber" apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsx+# Expected: 2 or more (definition plus at least one use)+```++**Out of scope:** Do not build an approval/pending-change workflow — spec decision D6 defers it. Do not add a "verify with supplier" step.++---++## Task 13: Bank account routes++**Depends on:** Task 11, Task 12++**Files:**+- Create: `apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.tsx`+- Create: `apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.new.tsx`+- Create: `apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.$id.tsx`+- Create: `apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.delete.$id.tsx`+- Create: the four mirrored `$customerId.bank-accounts*.tsx` files.+- Copy from (precedent): `$supplierId.locations.tsx`, `$supplierId.locations.new.tsx`, `$supplierId.processes.$id.tsx`, `$supplierId.processes.delete.$id.tsx`.++**Steps:**++1. **List route** (`$supplierId.bank-accounts.tsx`) — mirror `$supplierId.locations.tsx` exactly, but:+ - `requirePermissions(request, { view: "accounting" })`+ - call `getSupplierBankAccounts(client, supplierId)`+ - on error, redirect to `path.to.supplier(supplierId)` with a flash message `"Failed to fetch supplier bank accounts"`+ - render `<SupplierBankAccounts bankAccounts={bankAccounts} />`+2. **New route** — mirror `$supplierId.locations.new.tsx`:+ - `requirePermissions(request, { create: "accounting" })`+ - validate with `supplierBankAccountValidator`+ - call `upsertSupplierBankAccount(client, { ...data, supplierId, companyId, createdBy: userId, customFields: setCustomFields(formData) })`+ - redirect to `path.to.supplierBankAccounts(supplierId)` with success flash+ - the default export renders `SupplierBankAccountForm` with `initialValues` of empty strings, `isPrimary: false`, `active: true`, and `countryCode: company?.countryCode ?? ""`+ - `userId` comes from `requirePermissions` — confirm the exact destructured name against the precedent file (`grep -n "userId" apps/erp/app/routes/x+/supplier+/\$supplierId.processes.new.tsx`). **If `requirePermissions` does not return `userId`, STOP and report.**+3. **Edit route** (`$supplierId.bank-accounts.$id.tsx`) — mirror `$supplierId.processes.$id.tsx`: loader `getSupplierBankAccount`, action with `update: "accounting"` calling `upsertSupplierBankAccount` with `updatedBy`.+4. **Delete route** — mirror `$supplierId.processes.delete.$id.tsx`: `delete: "accounting"`, `deleteSupplierBankAccount`, `ConfirmDelete` reading the row from `useRouteData` on `path.to.supplierBankAccounts(supplierId)`.+5. Mirror all four for customer with `sales`→ still `accounting` permissions (the permission module is accounting on BOTH sides — that is the point of spec decision D2).++**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: exits 0+ls apps/erp/app/routes/x+/supplier+/ | grep -c bank-accounts+# Expected: 4+ls apps/erp/app/routes/x+/customer+/ | grep -c bank-accounts+# Expected: 4+```++**Out of scope:** Do not gate these routes on `purchasing` or `sales` — they are accounting-gated by design.++---++## Task 14: Full verification++**Depends on:** all previous tasks++**Steps:**++1. Typecheck the touched packages:+ ```bash+ pnpm exec turbo run typecheck --filter=erp --filter=@carbon/database --filter=@carbon/utils+ ```+2. Lint:+ ```bash+ pnpm run lint+ ```+3. Unit tests:+ ```bash+ pnpm run test+ ```+4. Dataset / backup pre-commit gates (these read the live schema and are run by `.husky/pre-commit`; the migrations are already applied by Task 3):+ ```bash+ pnpm db:check:datasets+ pnpm db:check:backups+ ```+5. Confirm no English-only strings were introduced in the new UI files:+ ```bash+ grep -rn "label=\"" apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccount*.tsx apps/erp/app/modules/sales/ui/Customer/CustomerBankAccount*.tsx apps/erp/app/components/RecordDocuments.tsx+ # Expected: no output. A raw label="..." string is untranslated; it must be label={t`...`}.+ ```+6. Report results honestly — including any failures — and list what was NOT verified (the app was not launched; no browser testing was done).++**Verify:** all commands above exit 0, except where a pre-existing failure is present on the branch — in that case report it as pre-existing rather than fixing unrelated code.++**Out of scope:** Do NOT run `git commit`. Do not launch the dev server unless the user asks.diff --git a/.ai/research/supplier-customer-bank-details.md b/.ai/research/supplier-customer-bank-details.mdnew file mode 100644index 0000000000..b2475d0575--- /dev/null+++ b/.ai/research/supplier-customer-bank-details.md@@ -0,0 +1,392 @@+# Supplier & Customer Bank Details — How Mature ERP/Accounting Systems Model Them++Research for Carbon (manufacturing ERP). Scope: **counterparty** bank details — the bank accounts we pay suppliers into (ACH/SEPA/wire) and the ones we refund customers to / direct-debit from. This is *not* about our own company bank accounts.++Every substantive claim below cites a URL. Where I could not verify something from a primary source, it is explicitly marked **[UNVERIFIED]**.++---++## 1. Field set++### 1.1 Odoo — the most useful reference, because the source is readable++Odoo stores counterparty bank accounts in `res.partner.bank`, one record per account, linked to a partner (a partner is both customer and supplier in Odoo). Field definitions read from the 18.0 source at [`odoo/addons/base/models/res_bank.py`](https://github.com/odoo/odoo/blob/18.0/odoo/addons/base/models/res_bank.py):++| Field | Type | Required | Notes |+|---|---|---|---|+| `acc_number` | Char | **Yes** | The account number. This is the only required data field. |+| `partner_id` | Many2one → `res.partner` | **Yes** | Account holder (the counterparty) |+| `sanitized_acc_number` | Char, computed + stored | No | Normalized form of `acc_number`, used for uniqueness/matching |+| `acc_holder_name` | Char, computed + stored | No | Help text: "Account holder name, in case different than…" |+| `acc_type` | Selection, computed | No | Help: "Bank account type: Normal or IBAN. Inferred from…" — i.e. IBAN-ness is **derived**, not a separate column |+| `allow_out_payment` | Boolean | No | Help: "This account can be used for outgoing payments" |+| `bank_id` | Many2one → `res.bank` | No | The bank institution |+| `bank_name`, `bank_bic` | Char, related | No | Denormalized from `res.bank` |+| `currency_id` | Many2one → `res.currency` | No | |+| `company_id` | Many2one → `res.company`, related+stored | No | Multi-company scoping |+| `country_code` | Char, related | No | |+| `sequence` | Integer (default 10) | No | Ordering — this is how "primary" is expressed |+| `active` | Boolean (default True) | No | Soft archive |++Unique constraint: `unique(sanitized_acc_number, partner_id)` — "The combination Account Number/Partner must be unique." ([source](https://github.com/odoo/odoo/blob/18.0/odoo/addons/base/models/res_bank.py))++The **bank institution** is a separate model, `res.bank`, with `name` (required), `street`, `street2`, `zip`, `city`, `state`, `country`, `country_code`, `email`, `phone`, `active`, and `bic` — help text "Sometimes called BIC or Swift." ([source](https://github.com/odoo/odoo/blob/18.0/odoo/addons/base/models/res_bank.py))++**Design lesson from Odoo:** there is no `iban` column, no `routing_number` column, no `sort_code` column. There is *one* generic `acc_number` string, and the format is inferred and validated per country. Local clearing codes (sort code, etc.) are pushed out to community addons — e.g. `partner_bank_code` ([PyPI](https://pypi.org/project/odoo-addon-partner-bank-code/19.0.1.0.0.1/)) and `partner_bank_sort_code`, described as "Adds a field in banks to manage Sort Codes" ([PyPI](https://pypi.org/project/odoo10-addon-partner-bank-sort-code/10.0.1.0.0.99.dev3/)).++### 1.2 NetSuite++NetSuite's counterparty bank data lives on **Entity Bank Details** records, unlocked by the Electronic Bank Payments / EFT bundle. For US vendors, the documented fields are ([Oracle NetSuite help, section N1660722](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N1660722.html)):++| Field label (verbatim) | Requirement |+|---|---|+| **Name** | Unique name for this bank detail record |+| **Payment File Format** | `ACH-CCD/PPD` or `ACH-CTX (Free Text)` |+| **Type** | Whether this is the vendor's **primary or secondary** bank account |+| **Bank Account Number** | Up to 17 digits |+| **Bank Number** | The 9-digit routing number of the entity's bank |++Prerequisite: the **EFT Bill Payment** checkbox must be ticked on the vendor's Bank Payment Details subtab before bank details can be created. Multiple bank accounts per vendor are supported. Note this specific page is US/ACH-only — IBAN, SWIFT/BIC and currency are not in it; NetSuite exposes those through other country-specific payment file formats. **[UNVERIFIED]** — I did not find a single NetSuite page enumerating the international field set, so I can't give verbatim NetSuite IBAN/BIC field labels.++Enabling EFT is what makes the bank fields appear on vendor, employee and bank account records at all ([Oracle NetSuite help](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N1659433.html)).++### 1.3 Microsoft Dynamics 365 Business Central++Business Central has a dedicated **Vendor Bank Account** table (table 288). Documented sensitive fields: **Bank Branch No.**, **Bank Account No.**, **SWIFT Code**, **IBAN Code** ([Microsoft Learn — Set Up Vendor Bank Account](https://learn.microsoft.com/en-us/dynamics365/business-central/purchasing-how-set-up-vendors-bank-accounts)). The doc notes vendor bank accounts store "contact information, SWIFT, and IBAN codes."++Microsoft's docs call these fields out explicitly as "sensitive business data" — that phrasing is theirs, and it's the hook for the field-monitoring feature covered in §4.5.++BC also tracks **historical IBANs** when a vendor's bank account number changes — a shipped release-plan feature, "keep track historical iban number when vendor bank account number changes" ([Microsoft release plan](https://learn.microsoft.com/en-us/dynamics365-release-plan/2021wave2/smb/dynamics365-business-central/keep-track-historical-iban-number-when-vendor-bank-account-number-changes)). Relevant to us: they treat the *change history* of the account number as a first-class requirement, not an afterthought.++### 1.4 Dynamics 365 Finance (the larger sibling)++D365 Finance has a `VendBankAccount` table and a configurable approval workflow over it (covered in detail in §5). Field-level detail not fully enumerated here — **[UNVERIFIED]**.++### 1.5 SAP Business One++Business partner bank accounts are stored in table **OCRB** ("BP Bank Accounts"). It holds IBAN and BIC/SWIFT; the DI API object exposes a `BPBankAccounts` collection containing a `BICSwiftCode` field ([SAP Community](https://community.sap.com/t5/enterprise-resource-planning-q-a/table-name-for-iban-and-swift-code/qaq-p/6315134), [SAP Community — DTW Update BIC/SWIFT Code in OCRB](https://community.sap.com/t5/enterprise-resource-planning-q-a/dtw-update-bic-swift-code-in-ocrb/qaq-p/9096909)). A BIC/SWIFT can be defined per bank account. SAP's SEPA guide confirms IBAN and BIC are the account and bank identifiers ([SAP SEPA How-To Guide, PDF](https://help.sap.com/doc/011000358700001155172013e/9.1/en-US/HowTo_SEPA_BFFs_91.pdf)).++Full OCRB column list **[UNVERIFIED]** — I could not find an authoritative public field dictionary for OCRB.++### 1.6 Xero++Xero is the outlier and the most instructive one. On a Contact, bank details are essentially: **BankAccountNumber**, **BankAccountName**, and **Details** (a payment reference/particulars field). The API historically exposes only `BankAccountDetails` (the number) — `BankAccountName` and `Details` are *not* settable via the API, and Xero's own response explains why:++> "Setting these details will be addressed after work has been done to add an enhanced permissions model to the API as there are quite specific rules about when a user can edit these details."+> — [Xero Developer Ideas](https://xero.uservoice.com/forums/5528-xero-accounting-api/suggestions/2480450-be-able-to-specify-and-get-all-the-bank-account-de)++Without `BankAccountName` populated, batch payments fail ([Xero Community](https://community.xero.com/developer/discussion/10516528/); [Batch Payments API](https://developer.xero.com/documentation/api/accounting/batchpayments)).++**This is a direct signal for Carbon:** a mature vendor deliberately withheld API write access to counterparty bank fields because they hadn't built a permission model granular enough to govern it. Bank detail writes need their own permission before they need an API.++### 1.7 QuickBooks Online++QBO does not let you read back the full number at all. It masks to the **last four digits** for employees, contractors and vendor payment setups, and the full account/routing numbers cannot be viewed from normal QBO screens ([QuickBooks Community](https://quickbooks.intuit.com/community/other-questions-9/how-can-i-see-full-account-number-and-routing-number-of-my-vendors-and-contractors-92412)). Intuit's guidance when you need to verify is to get a voided check or a signed direct-deposit authorization form out-of-band — not to read it back out of the system.++### 1.8 Synthesis — the field set worth modelling++| Concern | Field | Notes |+|---|---|---|+| Holder | `account_holder_name` | Often differs from the supplier's legal name — a real fraud signal when it does |+| Account | `account_number` *or* `iban` | Odoo proves one generic field + inferred type works |+| Bank id (intl) | `swift_bic` | 8 or 11 chars, ISO 9362 |+| Bank id (local) | `routing_number` (US, 9 digits) / `sort_code` (UK, 6) / `BSB` (AU, 6) | A `(clearing_code_type, clearing_code)` pair generalizes better than one column per country |+| US-only | `account_type` (checking / savings) | Required by ACH; NetSuite has a "Bank Account Type" field |+| Routing context | `country`, `currency` | |+| Bank | `bank_name`, `bank_address` | Wires often need the bank's address |+| Control | `is_primary` / `sequence`, `active`, `allow_out_payment` | |++US ACH needs routing + account + account type. There is no IBAN in the US. International needs IBAN + BIC. A payments-capable schema needs both shapes, and a per-country clearing code (sort code, BSB, etc.) is entered into the ISO 20022 clearing field, e.g. Australian BSB as `AU` + 6 digits ([Nordea country-specific bank connection information, PDF](https://www.nordea.fi/Images/147-81974/electronicforeigncurrencypayments-countryspecificbankconnectionInformation-feb2022en.pdf); [Nacha ISO 20022 Credit Transaction Guide, PDF](https://www.nacha.org/system/files/2023-08/NACHA_ISO20022_Guide_pain.001_credit%2008-09-23.pdf)).++---++## 2. Cardinality++**Unanimous across every system I checked: MANY bank accounts per supplier, with one designated for default use.** Nobody models it as one-to-one.++- **Odoo** — `res.partner.bank` is a one-to-many off the partner (`bank_ids`). Ordering is by `sequence`; the first is effectively the default. There is no boolean `is_primary` field in 18.0 ([source](https://github.com/odoo/odoo/blob/18.0/odoo/addons/base/models/res_bank.py)).+- **NetSuite** — "You can set up multiple bank accounts for each vendor," and the **Type** field explicitly selects *primary or secondary* ([Oracle](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N1660722.html)).+- **Business Central** — "If a vendor has one or more bank accounts…"; additional accounts are managed on the **Vendor Bank Account List** page, and a single default is chosen via the **Preferred Bank Account Code** field on the **Payments** FastTab of the vendor card, which then flows onto payment journal lines ([Microsoft Learn](https://learn.microsoft.com/en-us/dynamics365/business-central/purchasing-how-set-up-vendors-bank-accounts)).++### What distinguishes the accounts++1. **Currency** — Odoo has `currency_id` on the account. A supplier billing in USD and EUR needs one account per currency.+2. **Company / legal entity** — Odoo's `company_id`. In a multi-company install, the account may belong to only one of your entities.+3. **Country / payment rail** — a supplier may have a domestic ACH account and an international IBAN.+4. **Direction / purpose** — Odoo's `allow_out_payment` boolean gates whether an account can receive *outgoing* payments at all. This is the cleanest expression I found of "this account is for receiving payments from us" vs. "we merely know about it."+5. **Lifecycle** — `active` for soft-archive; BC keeps historical IBANs after a change.++**Recommendation for Carbon:** many-to-one, with an explicit default per (supplier, currency) rather than a single global primary — the currency dimension is the one that actually bites. Do not hard-delete; archive, because a paid invoice must still resolve which account it was paid to.++---++## 3. Validation++### 3.1 IBAN — ISO 13616, mod-97++This is the one with a real checksum, and every serious system implements it. Odoo's implementation, verbatim from [`addons/base_iban/models/res_partner_bank.py`](https://github.com/odoo/odoo/blob/18.0/addons/base_iban/models/res_partner_bank.py):++```python+def validate_iban(iban):+ iban = normalize_iban(iban)+ if not iban:+ raise ValidationError(_lt("There is no IBAN code."))++ country_code = iban[:2].lower()+ if country_code not in _map_iban_template:+ raise ValidationError(_lt("The IBAN is invalid, it should begin with the country code"))++ iban_template = _map_iban_template[country_code]+ if len(iban) != len(iban_template.replace(' ', '')) or not re.fullmatch("[a-zA-Z0-9]+", iban):+ raise ValidationError(...)++ check_chars = iban[4:] + iban[:4]+ digits = int(''.join(str(int(char, 36)) for char in check_chars)) # BASE 36: 0..9,A..Z -> 0..35+ if digits % 97 != 1:+ raise ValidationError(_lt("This IBAN does not pass the validation check, please verify it."))+```++The algorithm, stated plainly:++1. Strip spaces, uppercase.+2. Check the first two chars are a known ISO 3166-1 country code, and that the **length matches that country's expected IBAN length** — this is a per-country table, not a constant. Odoo ships 86 country templates.+3. Move the first four characters (country code + 2 check digits) to the end.+4. Replace each letter with its base-36 value (`A`=10 … `Z`=35), producing a very long integer.+5. Valid iff that integer **mod 97 == 1**.++Note step 2: a length table per country is mandatory. Mod-97 alone will happily accept a truncated IBAN. Odoo raises a message naming the expected template, "Where B = National bank code, S = Branch code, C = Account No, k = Check digit."++Worth knowing: Odoo has had a bug report titled "IBAN validation ignored" ([odoo#49900](https://github.com/odoo/odoo/issues/49900)) — even a mature implementation can end up with the validator not firing on some code paths. Validate on the model/DB layer, not only in the form.++Business Central also validates IBAN ([Dynamics community](https://community.dynamics.com/blogs/post/?postid=e20b8e6f-b472-44cf-9d3c-ae9ec0b91e90)).++### 3.2 ABA / US routing number — weighted mod-10++Nine digits. Weights `3 7 1` repeating across the nine positions:++```+position: 1 2 3 4 5 6 7 8 9+weight: 3 7 1 3 7 1 3 7 1+```++Valid iff `3*(d1+d4+d7) + 7*(d2+d5+d8) + 1*(d3+d6+d9) ≡ 0 (mod 10)`. The 9th digit is the check digit, computed from the first eight ([BrainJar validation algorithms](http://www.brainjar.com/js/validation/); [Apache Commons Validator `ABANumberCheckDigit`](https://commons.apache.org/validator/apidocs/org/apache/commons/validator/routines/checkdigit/ABANumberCheckDigit.html)). A single mistyped digit, or two transposed digits, almost always breaks it.++Caveat worth stating to users: a valid checksum means the number is *well-formed*, not that the bank exists or the account exists. Real assurance needs a routing directory lookup or a bank-side account validation service.++### 3.3 SWIFT / BIC — ISO 9362, format only++**8 or 11 characters, no checksum.** Structure ([Swift — Business Identifier Code](https://www.swift.com/standards/data-standards/bic-business-identifier-code); [ISO 9362:2014](https://www.iso.org/standard/60390.html); [XMLdation knowledge base](https://knowledge.xmldation.com/support/iso20022/general_rules/bic)):++| Positions | Content |+|---|---|+| 1–4 | Institution / business party prefix — **4 letters** |+| 5–6 | Country code — **2 letters**, ISO 3166-1 alpha-2 |+| 7–8 | Location code — **2 alphanumeric** |+| 9–11 | Branch code — **optional, 3 alphanumeric**; `XXX` denotes the primary/head office |++Regex: `^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$`. Validation is structural only — you cannot detect a typo in a BIC by arithmetic. The only real check is a lookup against the Swift BIC directory.++### 3.4 Local clearing codes — format only++- **UK sort code** — six digits, conventionally `12-34-56`; hierarchically addresses clearing bank → region → branch ([Wikipedia: Sort code](https://en.wikipedia.org/wiki/Sort_code)).+- **Australian BSB** — six numerals, first two or three identify the bank ([Wikipedia: Bank state branch](https://en.wikipedia.org/wiki/Bank_state_branch)).++Neither carries a general-purpose checksum. **[UNVERIFIED]** — some UK banks apply modulus checks over sort code + account number together (the "modulus checking" weight tables), but I did not verify a primary source for that in this pass; treat as a lead, not a fact.++### 3.5 Validation posture++Checksums catch typos. They catch **zero** fraud — a fraudster supplies a real, valid account number belonging to themselves. Do not let a green "valid IBAN" tick imply the account is legitimate. §5 is where actual fraud control lives.++---++## 4. Security & compliance++### 4.1 PCI-DSS — your instinct is correct: NOT in scope++Confirmed from the PCI Security Standards Council's own FAQ, "Does PCI DSS apply to bank account data?":++> Bank account data, such as branch identification numbers, bank account numbers, sort codes, routing numbers, etc., are **not considered payment card data, and PCI DSS does not apply** to this information.++([PCI SSC FAQ](https://www.pcisecuritystandards.org/faq/articles/Frequently_Asked_Question/Does-PCI-DSS-apply-to-bank-account-data/))++The one exception: if a bank account number *is* a PAN or contains a PAN, PCI DSS applies. Not our case.++### 4.2 What regime DOES apply++**Nacha — the closest thing to a mandate for US ACH.** Nacha's "Supplementing Data Security Requirements" rule requires covered entities to:++> "protect DFI Account Numbers used in the initiation of Entries by rendering them **unreadable when stored electronically**"++([Nacha](https://www.nacha.org/rules/supplementing-data-security-requirements))++- **Who:** non-consumer Originators that are not Participating DFIs, Third-Party Senders, and Third-Party Service Providers performing ACH processing functions. Financial institutions are excluded (already regulated).+- **Thresholds:** Phase 1 effective **June 30, 2021** for entities exceeding **6 million** ACH entries/year; Phase 2 effective **June 30, 2022** for entities exceeding **2 million**/year. Thereafter, any entity crossing 2M entries in a calendar year must comply by June 30 of the following year.+- **Acceptable methods:** the rule is implementation-neutral — "Encryption, truncation, tokenization, destruction, or having the financial institution store, host, or tokenize the account numbers, are among options."++**Relevance to Carbon:** Carbon almost certainly sits below 2M ACH entries/year today, so the rule likely does not *bind* us — but (a) it's the de facto standard of care, (b) a customer's own compliance team may push it down to us contractually, and (c) if Carbon ever originates ACH on customers' behalf, the Third-Party Sender / TPSP language starts to matter. "Unreadable when stored electronically" is a good design target regardless.++Note also: ACH data has no PCI-equivalent *enforced* standard; Nacha best practices are largely advisory outside the rule above ([Modern Treasury](https://www.moderntreasury.com/journal/what-is-the-pci-of-bank-payments); [Skyflow](https://www.skyflow.com/post/are-you-protecting-your-customers-ach-banking-data-heres-why-you-should)). And the asymmetry matters: a card charge needs PAN + expiry + CVV, whereas ACH needs only a routing number (public) plus an account number — so **the account number alone is the whole secret** ([Modern Treasury](https://www.moderntreasury.com/journal/what-is-the-pci-of-bank-payments)).++### 4.3 GDPR++- A bank account number / IBAN **is personal data** when it relates to an identifiable natural person (a sole-trader supplier, an individual contractor, a customer being refunded). For a limited company supplier, the account number alone is generally not personal data, though the contact names attached to it are.+- It is **not** Article 9 special-category data. Article 9's list (racial/ethnic origin, political opinions, religious beliefs, trade union membership, genetic, biometric, health, sex life, sexual orientation) is a **closed category**, and financial data is not on it ([Article 9 text](https://gdpr-info.eu/art-9-gdpr/); [VeraSafe](https://verasafe.com/blog/special-categories-of-personal-data-under-the-gdpr/)). So no Article 9 lawful-basis gymnastics required.+- **Article 32 (Security of processing)** is the operative one. It requires "appropriate technical and organisational measures to ensure a level of security appropriate to the risk," and names **pseudonymisation and encryption** of personal data as example measures, alongside confidentiality/integrity/availability/resilience and regular testing ([Art. 32 GDPR](https://gdpr-info.eu/art-32-gdpr/)).+- Article 32 is **risk-proportionate, not absolute** — regulators do not require that every byte be encrypted, but they expect encryption where it is an effective and proportionate risk reduction. For a field whose disclosure enables direct financial loss, that bar is easily met.++Practical consequence: bank details are a strong candidate for GDPR erasure/rectification requests and for inclusion in a data-processing record. **[UNVERIFIED]** — I did not research retention-period guidance specific to bank details; note that tax/audit retention obligations usually conflict with erasure requests here.++### 4.4 NIST 800-171 / SOC 2++- **NIST SP 800-171** protects **CUI** in nonfederal systems ([NIST SP 800-171r3](https://csrc.nist.gov/pubs/sp/800/171/r3/final)). Commonly cited examples of CUI include **bank routing numbers and account numbers** alongside SSNs and credit card numbers ([Kiteworks](https://www.kiteworks.com/risk-compliance-glossary/protect-cui-with-nist-800-171-compliance/)). This only binds Carbon if Carbon (or its customers, flowing it down) handles federal contract information — **highly relevant for a manufacturing ERP**, since defense/aerospace manufacturers are exactly the population subject to 800-171/CMMC. Worth flagging to whoever owns Carbon's compliance posture: if we target defense manufacturing, 800-171 is a live constraint, not a hypothetical. **[UNVERIFIED]** — whether Carbon's actual customer base triggers this.+- **SOC 2** has no field-level rule for bank accounts. It's a controls audit against Trust Services Criteria; the **Confidentiality** criterion is where this lands, and auditors will look for access restriction, encryption, and change logging as evidence ([framework comparison](https://stackcyber.com/posts/compliance-framework-comparison)). Practically: whatever we build, SOC 2 wants us to be able to *demonstrate* who can see bank details and who changed them — which argues for audit logging as a compliance deliverable, not just a nice-to-have.++### 4.5 Encryption at rest — is field-level encryption standard?++**Honest answer: there is no single published standard, and I could not find an ERP vendor stating "we field-level-encrypt vendor bank details." Marked [UNVERIFIED] as a universal claim.**++What I *can* establish:++- Nacha's rule says "unreadable when stored electronically" and accepts **encryption, truncation, tokenization, or destruction** — a menu, not a mandate for one technique ([Nacha](https://www.nacha.org/rules/supplementing-data-security-requirements)). Disk-level/TDE encryption is generally **not** considered to satisfy "render unreadable" in the spirit of these rules, because it protects against stolen disks but not against an application-level or DBA-level read — but I did not find Nacha explicitly saying TDE is insufficient. **[UNVERIFIED]**.+- GDPR Art. 32 names encryption as an example measure, proportionate to risk, without specifying the layer ([Art. 32](https://gdpr-info.eu/art-32-gdpr/)).+- QBO's behaviour — the full number is not retrievable through the UI at all ([QuickBooks Community](https://quickbooks.intuit.com/community/other-questions-9/how-can-i-see-full-account-number-and-routing-number-of-my-vendors-and-contractors-92412)) — is consistent with storage that the application deliberately does not read back for display. Whether that's encryption or tokenization, Intuit doesn't say.++**Pragmatic recommendation for Carbon:** treat disk/DB-level encryption as the floor, not the answer. The threat that matters is not a stolen disk — it's a compromised app-level credential, an over-broad internal role, or a leaked DB dump/backup. Application-layer encryption of `account_number` / `iban` with a KMS-held key, plus a separately-stored plaintext `last4` for display, gets you: (a) "unreadable when stored," (b) masked UI for free, (c) decryption becomes an auditable event. That is a meaningfully different security property from TDE and costs little at Carbon's likely data volume.++### 4.6 Masking in the UI++Masking to the **last four digits** is observably the norm:++- **QuickBooks Online** — "you'll normally only see the last four digits" for employees, contractors and vendor payment setups; full numbers are not viewable from regular QBO screens, and Intuit's recommended path to verify is a voided check or authorization form obtained out-of-band ([QuickBooks Community](https://quickbooks.intuit.com/community/other-questions-9/how-can-i-see-full-account-number-and-routing-number-of-my-vendors-and-contractors-92412)).+- Government/public-sector systems mask on reports as a deliberate control — e.g. Texas Comptroller change requests "Mask Account Numbers on Monthly Direct Deposit Reports" and "Mask Account Numbers on Direct Deposit Reports" ([ACR 60446](https://fmx.cpa.texas.gov/fmx/changes/tins/2021/60446.php), [ACR 60486](https://fmx.cpa.texas.gov/fmx/changes/tins/2022/60486.php)). Note: these are *reports*, not just screens — masking must cover exports and printed output too, which is easy to forget.++**Who can see the full number?** The best-documented model is **Xero's**: editing contact bank account details requires a distinct **"bank account admin"** permission, which is *not* granted by default and must be explicitly added to a user. It can only be added to the advisor, standard, invoice-only (purchases), or invoice-only (approve & pay) roles ([Xero Central — Give users the bank account admin permission](https://central.xero.com/s/article/Give-Contact-Bank-Account-Admin-permission-to-a-user)). Xero also cited "quite specific rules about when a user can edit these details" as the reason the API can't write them ([Xero Developer Ideas](https://xero.uservoice.com/forums/5528-xero-accounting-api/suggestions/2480450-be-able-to-specify-and-get-all-the-bank-account-de)).++**[UNVERIFIED]** — I could not confirm whether Xero's bank-account-admin permission also gates *viewing* (as opposed to editing) the number, nor whether Xero masks in list views.++**Recommendation:** separate `view_full_bank_details` from `edit_bank_details` from ordinary supplier read access. Default everyone to masked. Log every unmask.++### 4.7 Audit logging / change tracking++**Yes, this is standard, and it's the single most consistent finding across vendors.**++- **Business Central** ships a **field monitoring** feature aimed squarely at this. Microsoft's own doc: some vendor bank account fields "contain sensitive business data, such as the **Bank Branch No.**, **Bank Account No.**, **SWIFT Code**, and **IBAN Code** fields. You can monitor such fields and get notified when someone changes their values" ([Microsoft Learn](https://learn.microsoft.com/en-us/dynamics365/business-central/purchasing-how-set-up-vendors-bank-accounts)). Setup nominates the monitored fields and a notification recipient, via the Monitored Fields Worksheet — a practitioner walkthrough covers table 288 / Bank Acct No. specifically ([Kristen Hosman](https://www.kristenhosman.com/2024/05/scenario-client-wants-field-monitoring.html)).+- **Business Central** also retains **historical IBANs** across changes ([Microsoft release plan](https://learn.microsoft.com/en-us/dynamics365-release-plan/2021wave2/smb/dynamics365-business-central/keep-track-historical-iban-number-when-vendor-bank-account-number-changes)).+- **D365 Finance** keeps full workflow history on bank account approvals — "select **Workflow > View history**" ([Microsoft Learn](https://learn.microsoft.com/en-us/dynamics365/finance/accounts-payable/vendor-bank-account-workflow)).++**Why it matters:** in a BEC/vendor-fraud incident, the forensic question is always *who changed the account number, when, from what value, and from which session*. Without before/after values you cannot answer it, cannot recall the payment credibly, and cannot support an insurance or law-enforcement claim. Change history is also the substrate for the detective controls in §5 — you cannot notify on a change you did not record.++**Design note:** the audit log must store the *old and new values*. But those values are the sensitive data — so an audit log of bank detail changes inherits the same encryption and access controls as the field itself, or you've just created an unprotected plaintext copy. This is an easy and common mistake.++---++## 5. Fraud — BEC / vendor bank detail fraud++### 5.1 The threat, with numbers++FBI IC3 PSA I-060923-PSA, "Business Email Compromise: The $50 Billion Scam" ([ic3.gov](https://www.ic3.gov/PSA/2023/psa230609)), reports for October 2013 – December 2022:++- **277,918** total domestic and international incidents+- **$50,871,249,501** in total exposed dollar losses globally+- US victims specifically: **137,601** victims, **$17,328,435,141** in losses++The attack pattern relevant to us: a fraudster (often via a compromised supplier mailbox — "vendor email compromise") emails AP claiming the supplier's bank details have changed. The change is applied. Subsequent legitimate invoices are paid to the fraudster. Nothing is technically exploited; the ERP does exactly what it was told.++### 5.2 Guidance++IC3's recommendations, verbatim from the PSA, with the first being the one that matters here:++> - "**Use secondary channels or two-factor authentication to verify requests for changes in account information.**"+> - "Ensure the URL in emails is associated with the business/individual it claims to be from."+> - "Be alert to hyperlinks that may contain misspellings of the actual domain name."+> - "Refrain from supplying login credentials or PII of any sort via email."+> - "Verify the email address used to send emails, especially when using a mobile or handheld device"+> - "Ensure the settings in employees' computers are enabled to allow full email extensions to be viewed."+> - "Monitor your personal financial accounts on a regular basis for irregularities, such as missing deposits."++([IC3 PSA 230609](https://www.ic3.gov/PSA/2023/psa230609))++The standard operational elaboration is to **call back on a phone number already on file from a prior invoice — never a number supplied in the change request itself** ([U.S. Bank](https://www.usbank.com/corporate-and-commercial-banking/insights/risk/mitigation/BEC-recognize-a-scam.html)). FBI also frames BEC as exploiting routine trusted business relationships rather than technical vulnerabilities ([FBI](https://www.fbi.gov/how-we-can-help-you/scams-and-safety/common-frauds-and-scams/business-email-compromise)).++### 5.3 What ERPs actually implement++**D365 Finance — the reference implementation.** The "Vendor bank account change proposal workflow" (v10.0.32+, enabled via feature management) is the most complete control I found, and Microsoft states its purpose plainly:++> "The vendor bank approval workflow ensures that bank data that suppliers submit is secure, financially compliant, and protected against fraud. This feature helps reduce the risk of fraud by detecting and preventing unapproved changes."++([Microsoft Learn — Vendor bank account workflow](https://learn.microsoft.com/en-us/dynamics365/finance/accounts-payable/vendor-bank-account-workflow))++Its design is worth copying closely:++**Configuration** (Accounts payable parameters → General → Vendor bank account approval FastTab):++- **Bank account approval (create)** — *Yes* requires approval for all new bank account records, "regardless of whether the web client is used or records are imported through the data entity."+- **Bank account approval (update)** — *Yes* requires approval on update, but "**only for fields where the IsEnabled checkbox is selected**" — i.e. **field-level** protection, not record-level. You nominate exactly which fields are protected.+- **Data entity behavior (update)** — governs the **API/import** path separately from the UI, with three options:+ - *Allow changes without approval*+ - *Reject changes* — "The data entity will never update values for protected fields. The import will fail if it includes updates for protected fields."+ - *Create change proposals* — non-protected fields update; protected fields land as proposed changes awaiting submission.++**The change-proposal mechanism.** Editing a protected field does **not** mutate the record. The new value is held as a *proposed change* while the record keeps its old value. Fields requiring approval are visually marked **"(requires approval)"** in the UI. The submitter can review via a **Proposed changes** dialog and discard individually or in bulk. Approvers see **current and proposed value side by side** before approving. Only after approval does the system write the proposed values.++**Review status** is a first-class field on every vendor bank account record:++| Review status | Meaning |+|---|---|+| *Draft* | New record, not yet submitted |+| *Approved* | All new/updated settings approved |+| *Approved, changes not submitted* | Protected fields edited, not yet submitted |+| *Approved, pending changes* | Protected fields edited and submitted, awaiting approval |++**Critically: "The new bank account record won't be available for use until an approver has approved it."** Unapproved accounts cannot be paid to.++Approvers can approve, reject (record returns to its pre-submission status for edit/resubmit), delegate to another approver, or cancel. Full workflow history is retained via **Workflow > View history**.++**Business Central** takes the lighter, detective approach: field monitoring notifies a nominated person the moment a monitored sensitive field (Bank Account No., IBAN, SWIFT, Bank Branch No.) changes ([Microsoft Learn](https://learn.microsoft.com/en-us/dynamics365/business-central/purchasing-how-set-up-vendors-bank-accounts); [Kristen Hosman](https://www.kristenhosman.com/2024/05/scenario-client-wants-field-monitoring.html)). BC also supports approval workflows generally ([Microsoft Learn — Using approval workflows](https://learn.microsoft.com/en-us/dynamics365/business-central/across-use-workflows)).++**That BC's native story is weaker is evidenced by a third-party market:** multiple ISVs sell vendor-bank-approval apps for BC — e.g. AMJS Consulting's "Vendor Bank Account Approval Workflow" ([Microsoft Marketplace](https://marketplace.microsoft.com/en-us/product/dynamics-365-business-central/PUBID.amjsconsulting1621353404525|AID.vendor_bank_account_approval_workflow|PAPPID.00d28d75-cf08-43fa-8287-dd21876722d1?tab=Overview)) and ASQ IT's "Vendor Bank Approvals" ([asqit.co.uk](https://www.asqit.co.uk/products/vendorbankapprovals), [Advantage Business Systems](https://www.advantage.co.uk/microsoft-dynamics/addons-and-integrations/vendor-bank-approvals-for-business-central)). When customers pay for an add-on to get a control, the control is table stakes.++**Odoo** implements a minimal version: `allow_out_payment` must be true or payment orders are blocked, and **setting it requires membership of a dedicated "Validate bank accounts" group** — a separation of the person who *enters* an account from the person who *authorizes it for payment*. Confirming a payment order containing a bank account with `allow_out_payment = False` produces a blocking error ([OCA bank-payment-alternative](https://github.com/OCA/bank-payment-alternative); [odoo#249885](https://github.com/odoo/odoo/issues/249885)). There is also an OCA module `partner_bank_mail_thread` that puts a chatter/audit trail on bank accounts ([PyPI](https://pypi.org/project/odoo10-addon-partner-bank-mail-thread)).++### 5.4 Control checklist++Mapping what the evidence supports:++| Control | Evidence | Verdict for Carbon |+|---|---|---|+| **Approval workflow on bank detail changes** | D365 Finance change proposals; BC ISV add-ons | **Core.** The single highest-value control. |+| **Field-level (not record-level) protection** | D365 `IsEnabled` per field | **Core.** Editing a phone number shouldn't need CFO sign-off; editing an IBAN should. |+| **New account unusable until approved** | D365: "won't be available for use until an approver has approved it" | **Core.** Prevents the create-and-immediately-pay path. |+| **Old value retained during pending change** | D365 change proposals; BC historical IBAN | **Core.** Also gives the approver a diff. |+| **Separate API/import policy from UI policy** | D365 "Data entity behavior (update)" | **Important.** An unguarded import endpoint defeats a UI-only approval gate. Carbon has APIs — this is a real hole. |+| **Segregation of duties / dual authorization** | Odoo "Validate bank accounts" group; D365 approver ≠ submitter | **Core.** Submitter must not be able to self-approve. |+| **Change notification to a nominated person** | BC field monitoring | **High value, low cost.** Cheap detective control even before full workflow exists. |+| **Out-of-band verification (callback to a number on file)** | IC3 PSA 230609; U.S. Bank | **Process, not code** — but Carbon can *support* it: a required "verification method / verified by / verified on" attestation captured at approval time. |+| **2FA / secondary channel on change requests** | IC3: "Use secondary channels or two-factor authentication to verify requests for changes in account information" | Consider step-up auth on the approve action. |+| **Cooling-off period before first payment to a new account** | **[UNVERIFIED]** | I found **no** ERP vendor documenting a built-in cooling-off/quarantine period. It's discussed as a banking/AP practice but I could not cite a primary ERP source. Treat as an idea, not an industry norm. |+| **Audit log with before/after values** | BC field monitoring; D365 workflow history | **Core.** See §4.7 — and encrypt the log. |++---++## Summary of what should change Carbon's design++1. **Cardinality: many accounts per supplier/customer, never one.** Distinguish by currency first, then company/country. Archive, never hard-delete — historical payments must resolve their account.+2. **Field shape: one generic `account_number` + inferred type beats a column per country.** Odoo proves this at scale. Add `(clearing_code_type, clearing_code)` for local rails and a separate bank-institution record for SWIFT/BIC and address.+3. **PCI-DSS does not apply** — confirmed from PCI SSC. The governing regimes are Nacha's "render unreadable when stored electronically" (threshold-gated, likely non-binding for us today but the standard of care), GDPR Art. 32 (risk-proportionate encryption), and — if Carbon serves defense manufacturing — NIST 800-171, where routing/account numbers are cited CUI.+4. **Application-layer encryption + plaintext `last4`.** Disk/TDE is the floor, not the answer; the real threats are app-credential compromise and DB dumps. `last4` gives masked UI for free and makes each decrypt an auditable event.+5. **Three distinct permissions**, not one: read supplier / view full bank details / edit bank details. Xero deliberately shipped a separate non-default "bank account admin" permission and withheld API writes until its permission model caught up — a direct precedent.+6. **Approval workflow with change proposals is the core anti-fraud control**, modelled on D365: field-level protection, old value retained while the new one is pending, side-by-side diff for the approver, new accounts unusable until approved, submitter ≠ approver.+7. **Gate the API/import path separately from the UI.** D365 has an explicit parameter for this. A UI-only approval gate with an open import endpoint is not a control.+8. **Audit log with before/after values is mandatory** — and must itself be encrypted and access-controlled, or it becomes an unprotected plaintext copy of the data you just protected.+9. **Masking must cover exports and printed reports, not just screens.**+10. **Checksums catch typos, not fraud.** Don't let a green validation tick imply legitimacy.++## Open / unverified items++- NetSuite's international (IBAN/BIC) field labels — not found in a single authoritative page.+- Full SAP Business One OCRB column list — no public field dictionary found.+- Whether Xero's bank-account-admin permission gates *viewing* as well as editing.+- Whether Nacha explicitly rejects TDE/disk encryption as satisfying "render unreadable."+- UK modulus checking (sort code + account number combined checksum) — plausible lead, not verified here.+- Cooling-off / quarantine periods before first payment to a newly added account — no ERP vendor documentation found.+- Retention-period guidance for bank details under GDPR vs. tax/audit retention obligations.diff --git a/.ai/specs/2026-09-16-supplier-customer-documents-and-bank-details.md b/.ai/specs/2026-09-16-supplier-customer-documents-and-bank-details.mdnew file mode 100644index 0000000000..30cced98f9--- /dev/null+++ b/.ai/specs/2026-09-16-supplier-customer-documents-and-bank-details.md@@ -0,0 +1,298 @@+# Supplier & Customer Documents and Bank Details++> Status: draft+> Author: Claude (with Aashu)+> Date: 2026-09-16+> Research notes: `.ai/research/supplier-customer-bank-details.md`+> Branch: `feat/supplier-customer-docs`++## TLDR++Two capabilities are missing from the supplier and customer **master records**, and they are unrelated to each other except that both were asked for together.++1. **Documents** — there is nowhere to file an NDA, a W-9, an ISO certificate or an insurance certificate against a supplier or customer as a company. Every transactional record in Carbon already has a Documents tab; the two master records do not. This half is pure reuse: a new route + sidebar entry per side, two new `documentSourceType` enum values, and two new storage prefixes. No new table.++2. **Bank account details** — Carbon cannot store the bank account it pays a supplier into, or refunds a customer to. Nothing exists to extend. This half adds two new tables, `supplierBankAccount` and `customerBankAccount`, gated on the **accounting** permission module rather than purchasing/sales, supporting many accounts per party with one primary.++## Problem Statement++**Documents.** A buyer onboarding "Unique Shoes'" motor supplier receives a signed NDA, a W-9, and an ISO 9001 certificate. There is no place in Carbon to put any of them. The supplier detail page has tabs for Details, Contacts, Locations, Payment, Tax, Shipping, Processes, Risks, Accounting and Default Attachments — none of which accepts an arbitrary file about the supplier. The two near-misses are actively misleading:++- `/x/supplier/:id/default-attachments` (`apps/erp/app/routes/x+/supplier+/$supplierId.default-attachments.tsx`) stores files that ride *outbound* on every purchase order email to that supplier. That is the opposite direction — files we send them, not files about them.+- `supplier-interaction` documents (`apps/erp/app/modules/purchasing/purchasing.service.ts:674`) are scoped to one RFQ or PO thread, not to the supplier as a company.++So the documents live in somebody's email, and when that buyer leaves, the certificate expiry is nobody's job.++**Bank details.** When AP pays that supplier, the account number is on a PDF in a shared drive or in an email — exactly the artifact that Business Email Compromise attacks target. Carbon has no field for it. The Payment tab (`SupplierPaymentForm.tsx`) holds only payment *terms* (Net 30), a currency, and bill-to pointers. The single `bankAccount` column anywhere in the schema (`20260630093809_ar-ap-payments.sql:206`) is a foreign key to `account(id)` — the company's own GL chart of accounts, an internal ledger reference, and not reusable for a counterparty bank.++## Goals++- File arbitrary documents against a supplier or customer master record, searchable alongside every other document in Carbon.+- Store one or more counterparty bank accounts per supplier and per customer, with the fields needed for US ACH and international wire/SEPA.+- Restrict bank detail access to finance staff rather than everyone who can browse the supplier list.+- Full change-tracking on bank details via the existing audit log.++## Non-Goals++- **Bank detail change-approval workflow.** Deferred to its own spec (see Design Decisions D6). The research (`.ai/research/supplier-customer-bank-details.md` §5) identifies D365 Finance's change-proposal flow as the primary anti-BEC control, and it is a real subsystem: a pending-state model, approver routing, side-by-side diff UI, a new approver permission, and it must gate the API and CSV-import paths too, or it is not a control at all. Building it inside this spec would roughly double the scope.+- **Encryption at rest for account numbers.** Explicitly declined — see D4 and the Accepted Risks section.+- **Payment file generation** (NACHA ACH files, SEPA XML). Storing the details is a prerequisite; generating payment files is a separate feature.+- **Document expiry tracking / reminders** on certificates. The files are stored; nothing watches their expiry dates.+- **Supplier portal upload.** Suppliers cannot upload their own documents through the portal in v1; this is employee-facing only.++## Design++### Part 1 — Documents++#### Storage++Files go to the existing `private` bucket (`20230123004514_buckets.sql:1-5`, non-public), under two new prefixes following the established `${companyId}/<recordType>/<recordId>` convention:++```+${companyId}/supplier/${supplierId}/<filename>+${companyId}/customer/${customerId}/<filename>+```++Singular `supplier` / `customer`, matching the nearest neighbours `opportunity`, `quality` and `supplier-interaction`. (`parts` is plural; the prefixes are already inconsistent, so the rule is match-the-neighbour.) `companyId` stays the first segment — the storage RLS policies key off it for tenant isolation.++#### Metadata++Each upload also writes one row to the existing `document` table (`20230423023136_documents.sql:14`), linked to its parent by `sourceDocument` + `sourceDocumentId` (`20240330181457_document-types.sql:17-18`). No schema change to the table itself.++The `documentSourceType` enum currently holds 21 values (verified against the live DB), every one a transaction or an item — no master records. Two values are added:++```sql+ALTER TYPE "documentSourceType" ADD VALUE IF NOT EXISTS 'Supplier';+ALTER TYPE "documentSourceType" ADD VALUE IF NOT EXISTS 'Customer';+```++Precedent: `20260202000000_supplier_quote_document_type.sql:2` is exactly this, one line.++The TypeScript mirror `documentSourceTypes` in `apps/erp/app/modules/documents/documents.models.ts:9` must gain both values in the same change — it is a hand-maintained array, not generated, and `DocumentsTable.tsx` derives its source-type filter from it.++#### Behaviour inherited at no cost++Because these are ordinary `document` rows:++- `documentTransaction` records Upload / Download / Edit / Favorite / Unfavorite / Label (`20230423023136_documents.sql:125`), cascading from `document.id`.+- `documentLabel` and `documentFavorite` work per-user.+- Files appear in the global Documents module at `/x/documents`, searchable and filterable by source type (D5).+- Access control already exists: `readGroups` / `writeGroups` default to `[userId]` (`apps/erp/app/routes/x+/documents+/new.tsx:37-38`) and are user-editable through the document drawer's "View Permissions" / "Edit Permissions" pickers (`DocumentForm.tsx:66-76`). No new design needed.++### Part 2 — Bank Details++#### Data model++Two new mirrored tables. `supplierBankAccount` shown; `customerBankAccount` is identical with `customerId` → `customer`.++```sql+CREATE TABLE "supplierBankAccount" (+ "id" TEXT NOT NULL DEFAULT id('sba'),+ "companyId" TEXT NOT NULL,+ "supplierId" TEXT NOT NULL,++ -- Identification+ "name" TEXT NOT NULL, -- user label, e.g. "USD Operating"+ "accountHolderName" TEXT, -- when it differs from the supplier name+ "bankName" TEXT,+ "countryCode" CHAR(2), -- FK -> country(alpha2)+ "currencyCode" TEXT,++ -- Generic by design. `accountNumber` holds an IBAN in SEPA and a plain+ -- account number elsewhere; `bankCode` holds an ABA / sort code / BSB /+ -- IFSC / transit. countryCode decides labels and validation, so a new+ -- country is a config entry rather than a migration. `bankDetails` is the+ -- long tail nothing queries (accountType, branchName, purposeCode).+ "accountNumber" TEXT,+ "bankCode" TEXT,+ "swiftBic" TEXT,+ "bankDetails" JSONB,++ "isPrimary" BOOLEAN NOT NULL DEFAULT FALSE,+ "active" BOOLEAN NOT NULL DEFAULT TRUE,+ "notes" TEXT,++ "createdBy" TEXT NOT NULL REFERENCES "user"("id"),+ "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),+ "updatedBy" TEXT REFERENCES "user"("id"),+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "customFields" JSONB,+ "tags" TEXT[],++ PRIMARY KEY ("id", "companyId"),+ FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE,+ FOREIGN KEY ("supplierId", "companyId")+ REFERENCES "supplier"("id", "companyId") ON UPDATE CASCADE ON DELETE CASCADE,+ FOREIGN KEY ("countryCode") REFERENCES "country"("alpha2")+ ON UPDATE CASCADE ON DELETE SET NULL+);++CREATE INDEX "supplierBankAccount_companyId_idx" ON "supplierBankAccount" ("companyId");+CREATE INDEX "supplierBankAccount_supplierId_idx" ON "supplierBankAccount" ("supplierId");+CREATE INDEX "supplierBankAccount_createdBy_idx" ON "supplierBankAccount" ("createdBy");++-- At most one primary per supplier, among active rows only+CREATE UNIQUE INDEX "supplierBankAccount_primary_idx"+ ON "supplierBankAccount" ("supplierId", "companyId")+ WHERE "isPrimary" AND "active";+```++Notes on the shape:++- `countryCode` is `CHAR(2)` referencing `country("alpha2")`. Verified against the live DB — `country`'s primary key is `alpha2`, not an integer id. (`.claude/rules/customer-supplier-database-schema.md` describes `address.countryCode` as INTEGER; that is stale. The live schema wins.)+- `id('sba')` / `id('cba')` prefixed ids, composite PK with `companyId`, per `conventions-database.md`.+- All number columns are nullable because which ones apply is country-dependent: a US account uses `accountNumber` + `routingNumber`; a SEPA account uses `iban` + `swiftBic`. Validation is conditional on `countryCode` (D7).+- `active` gives soft-archive. Bank accounts are never hard-deleted once payments may reference them — matching Odoo's `active` flag (research §2).++#### RLS — accounting-gated++This is the deliberate departure from the sibling tables. `supplierPayment` is gated on `purchasing_view`; these are gated on `accounting_*`:++```sql+ALTER TABLE "public"."supplierBankAccount" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "SELECT" ON "public"."supplierBankAccount"+FOR SELECT USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_view'))::text[])+);++CREATE POLICY "INSERT" ON "public"."supplierBankAccount"+FOR INSERT WITH CHECK (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_create'))::text[])+);++CREATE POLICY "UPDATE" ON "public"."supplierBankAccount"+FOR UPDATE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_update'))::text[])+);++CREATE POLICY "DELETE" ON "public"."supplierBankAccount"+FOR DELETE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_delete'))::text[])+);+```++`Accounting` is an existing value of the `module` enum (`20230123004409_permissions.sql:2-16`) and is actively used in the app (`permissions.can("view", "accounting")` across `apps/erp/app/modules/accounting/ui/`). No new permission module is introduced.++#### Audit registration++Both tables are added to `packages/database/src/audit.config.ts` under the existing `supplier` and `customer` entities, as child tables with their own surrogate PK:++```ts+supplierBankAccount: { entityIdColumn: "supplierId" },+```++This is the `{ entityIdColumn }` role documented at `audit.config.ts:17-18` — a child table whose named column holds the parent entity id. Changes then roll up into the supplier's audit view alongside `supplierPayment` and `supplierShipping`.++### UI++#### Documents tabs++Per side, three edits plus one new route, following `$supplierId.default-attachments.tsx` as the route shape and `OpportunityDocuments.tsx` as the component reference:++| File | Change |+|------|--------|+| `apps/erp/app/routes/x+/supplier+/$supplierId.documents.tsx` | New. Loader lists `${companyId}/supplier/${supplierId}` from the `private` bucket, gated `view: "purchasing"`. |+| `apps/erp/app/routes/x+/customer+/$customerId.documents.tsx` | New. Same, gated `view: "sales"`. |+| `apps/erp/app/utils/path.ts` | Add `supplierDocuments(id)` and `customerDocuments(id)`. |+| `useSupplierSidebar.tsx` / `useCustomerSidebar.tsx` | Add a Documents entry, `LuFiles` icon, matching the existing Default Attachments entry shape. |+| `DocumentsTable.tsx` `getDocumentLocation()` | Add `case "Supplier"` / `case "Customer"` returning `path.to.supplierDetails(id)` / `path.to.customerDetails(id)`, so a global-module row links back to the record. |++Upload flow is copied from `OpportunityDocuments.tsx`: upload bytes to storage, then `submit()` to `path.to.newDocument` with `sourceDocument` and `sourceDocumentId`.++Rather than duplicating the ~490-line `OpportunityDocuments.tsx` twice, a shared `RecordDocuments` component is extracted into `apps/erp/app/components/`, parameterised by source type, record id, and storage prefix. Both new tabs consume it. Opportunity is **not** migrated onto it in this spec — that is unrelated refactoring of working code.++#### Bank Accounts tab++A new tab per side at `/x/supplier/:id/bank-accounts` and `/x/customer/:id/bank-accounts`, listing accounts in a card with a `New` action and a drawer form, following the `SupplierLocations` / `SupplierLocationForm` pattern (list + `new` / `:id` / `delete` sub-routes).++Sidebar entries are permission-gated so the tab is hidden from users without `accounting_view`. **This needs a new mechanism.** The existing filter in `useSupplierSidebar.tsx:125-129` calls `permissions.is(role)`, which tests the user's *role* (employee / supplier / customer) — not a module permission. The `role: ["employee"]` field cannot express `accounting_view`. The sidebar hook therefore gains an optional `permission?: { action, module }` field, filtered with `permissions.can(action, module)` alongside the existing role check. Both sidebars use it; existing entries are untouched.++The route loader is the actual gate (`requirePermissions(request, { view: "accounting" })`); hiding the tab is a UX affordance on top of it.++**Masking.** The account number and IBAN render as last-4 only (`••••6789`) in the list. A per-row "Reveal" toggle shows the full value to a user who already has `accounting_view`. This is presentation only, not an access control — the loader returns the full row, so the mask deters shoulder-surfing and screenshots, nothing more. See Accepted Risks.++All new copy is wrapped in Lingui (`<Trans>` / `` t`` ``) from the first commit.++### Services++`apps/erp/app/modules/purchasing/purchasing.service.ts` and `sales.service.ts` gain:++- `getSupplierBankAccounts(client, supplierId, companyId)` / customer equivalent+- `getSupplierBankAccount(client, id)` / customer equivalent+- `upsertSupplierBankAccount(client, data)` / customer equivalent+- `deleteSupplierBankAccount(client, id)` / customer equivalent++Validators go in the matching `.models.ts`, per module conventions. Setting `isPrimary` on one row clears it on the party's other rows in the same transaction, guarded by the partial unique index.++## Design Decisions++| # | Decision | Choice | Rationale |+|---|----------|--------|-----------|+| D1 | Where bank details live | New `supplierBankAccount` / `customerBankAccount` tables | Columns on `supplierPayment` would cap it at one account per party and expose numbers to every `purchasing_view` holder. Research §2: many-per-party with a primary is universal (NetSuite, Business Central, Odoo). |+| D2 | Who can read bank details | `accounting_*` permission module | Whoever runs payments is finance; `purchasing_view` is very widely held. `Accounting` already exists in the `module` enum and is used in-app — no new permission needed. |+| D3 | Cardinality | Many per party, one primary, soft-archived | Research §2. Currency is the dimension that forces a second account. Partial unique index enforces one primary among active rows. |+| D4 | Account number storage | **Plaintext columns, masked in the UI** | User decision, taken against the recommendation. See Accepted Risks. |+| D5 | Global Documents visibility | Supplier/customer documents appear in `/x/documents` too | Consistent with all 21 existing source types; makes files searchable. Hiding them would need a new exclusion in the documents query. |+| D6 | Bank change approval | Not in v1; deferred to its own spec | Real subsystem (pending state, approver routing, diff UI, must gate API + CSV import). Audit log still records who changed what. |+| D7 | Bank field shape | **Revised:** three generic columns (`accountNumber`, `bankCode`, `swiftBic`) + a `bankDetails` JSONB, driven by a per-country config | The original explicit-per-scheme design did not scale — four columns covered three regimes, and UK sort code, AU BSB, IN IFSC and CA transit would each have needed a migration. Odoo (research §1.1) stores one generic `acc_number` and infers the type per country; this keeps that flexibility while leaving the three fields payment-file generation actually reads as real columns. Carbon's own `trackedEntity.attributes` shows the failure mode of going pure-JSONB: `readableId` had to be added as a column and backfilled out of the JSON (`20251220013724`). |+| D8 | Storage prefix naming | Singular `supplier` / `customer` | Matches nearest neighbours `opportunity`, `quality`, `supplier-interaction`. |+| D9 | Component duplication | Extract shared `RecordDocuments`; do not migrate Opportunity | Avoids a third copy of ~490 lines without refactoring working unrelated code. |+| D10 | Country reference | `CHAR(2)` FK to `country("alpha2")` | Verified against the live DB; the schema rule doc's "INTEGER countryCode" is stale. |++## Accepted Risks++Recorded because D4 was taken against an explicit, code-verified recommendation. This is the user's call and is documented so a later reader understands it was deliberate, not an oversight.++**Bank account numbers are stored and logged in plaintext.** Consequences, each verified in code:++1. **Audit-log copies.** `supplierBankAccount` is registered in `audit.config.ts`, so every change writes a `diff` JSONB containing the before and after account number. `skipFields` is a single global list (`audit.config.ts:690`) with no per-field redaction, so the values are recorded in full.+2. **Storage archives.** Audit rows archive to `audit-logs/{companyId}/{year}/{month}.jsonl.gz` in the `private` bucket after 30 days (`audit.config.ts:693-697`). Those archives are not gated by `accounting_view`, so the plaintext numbers land outside the permission boundary that D2 was chosen to establish.+3. **Backups.** Company backups include the table and its plaintext columns.+4. **UI masking is not access control.** The route loader returns the full row; masking is client-side presentation. Anyone with `accounting_view` and network tools sees the full number regardless of the mask.++Research context (`.ai/research/supplier-customer-bank-details.md` §4): PCI-DSS confirmed **not** applicable (bank account numbers are not card data, per PCI SSC's own FAQ). What does apply is Nacha's "render unreadable when stored electronically" rule — which binds only above 2M ACH entries/year, so likely not yet, but it is the standard of care — plus GDPR Art. 32 (an IBAN is personal data, though not Art. 9 special category), and NIST 800-171 if Carbon serves defense manufacturing, where routing and account numbers are cited CUI.++The mitigation, if revisited: Vault-encrypt the number and keep a plaintext `last4`, reusing the integration-secret pattern already in the codebase (`20260817122916_integration-secret-vault.sql`). That closes items 1–4 at once, because the column never holds the value. Adding it later is a migration plus a backfill, not a redesign.++## Acceptance Criteria++**Documents**++- [ ] A user with `purchasing_view` opens `/x/supplier/:id/documents`, sees a Documents tab in the sidebar, drops `NDA.pdf`, and the file appears in the list with its name, size and upload timestamp.+- [ ] That upload creates an object at `${companyId}/supplier/${supplierId}/NDA.pdf` in the `private` bucket and one `document` row with `sourceDocument = 'Supplier'` and `sourceDocumentId = <supplierId>`.+- [ ] The same file appears at `/x/documents`, is findable by searching "NDA", and filtering the source-type column by `Supplier` returns it.+- [ ] Clicking that row in the global Documents table navigates to the supplier's detail page.+- [ ] Downloading the file writes a `documentTransaction` row with `type = 'Download'`.+- [ ] The document drawer's View/Edit Permissions pickers change `readGroups` / `writeGroups`, and a second user outside those groups no longer sees the row.+- [ ] The equivalent flow works end-to-end at `/x/customer/:id/documents` with `sourceDocument = 'Customer'`.+- [ ] Uploading to a supplier in company A produces a row invisible to a user scoped only to company B.++**Bank details**++- [ ] A user with `accounting_view` sees a Bank Accounts tab on the supplier page; a user with `purchasing_view` but not `accounting_view` does not see the tab, and a direct GET of the route returns no rows.+- [ ] Creating an account with name "USD Operating", `countryCode = 'US'`, `accountNumber = '123456789'`, `routingNumber = '011000015'` saves and lists as `••••6789`.+- [ ] Reveal on that row shows `123456789`.+- [ ] Creating a second account with `countryCode = 'DE'` and a valid IBAN saves; the form requires `iban` and not `routingNumber` for DE, and requires `routingNumber` for US.+- [ ] An invalid IBAN (failing mod-97) and an invalid ABA routing number (failing its checksum) are both rejected with a field-level error.+- [ ] Marking the second account primary clears `isPrimary` on the first; the DB rejects a direct attempt to set two active primaries for one supplier.+- [ ] Archiving an account (`active = false`) removes it from the default list and frees the primary slot.+- [ ] Editing an account number produces an audit-log entry under the parent supplier showing the old and new values, attributed to the editing user.+- [ ] The equivalent flow works for customers under `accounting_view`.+- [ ] All new user-facing strings render translated under a non-English locale — no hardcoded English.++## Open Questions++All resolved before this spec was written.++- [x] **Where should counterparty bank details live, and who can read them?** — **Answer:** New `supplierBankAccount` / `customerBankAccount` tables gated on `accounting_*`. Chosen over columns on `supplierPayment` (which would cap at one account and expose numbers to all `purchasing_view` holders) and over new tables kept on purchasing/sales permissions. Rationale: payments are run by finance, and research §2 shows many-accounts-per-party with a primary is the universal model.+- [x] **How should the account number be stored and shown?** — **Answer:** Plaintext columns, masked in the UI. Chosen over the recommended Vault-encrypted + plaintext-last4 approach and over plaintext-with-audit-redaction. Recorded in Accepted Risks with the verified consequences.+- [x] **Given the audit log copies values to storage in plaintext, keep plaintext with no redaction?** — **Answer:** Yes, re-confirmed after the audit-log leak was presented with file:line evidence. No per-field redaction will be added. Documented in Accepted Risks so the decision is traceable.+- [x] **Should changing bank details require approval?** — **Answer:** No approval workflow in v1. The audit log records who changed what. A D365-style change-proposal flow is deferred to its own spec, noted in Non-Goals with the reason it is not a small addition.+- [x] **How should the bank number fields be shaped?** — **Answer (revised during implementation):** three generic columns plus a JSONB long tail, driven by `getBankFieldConfig` in `@carbon/utils`. The originally-agreed explicit-per-scheme columns were replaced after the user observed that a column per country does not scale. See D7.+- [x] **Supplier documents will also appear in the global `/x/documents` module — is that right?** — **Answer:** Yes, both places. Consistent with every existing source type and keeps the files searchable; requires adding the two cases to `getDocumentLocation()`.++## Changelog++- **2026-09-16** — Initial spec. Six open questions resolved with the user before writing. Research on counterparty bank modelling captured in `.ai/research/supplier-customer-bank-details.md`.+- **2026-09-16** — D7 revised during implementation: bank identifier columns generalised to `accountNumber` + `bankCode` + `swiftBic` + `bankDetails` JSONB with a per-country config, replacing the per-scheme columns. Also fixed from review: edit actions no longer trust a form-supplied parent id, both upserts are Kysely transactions, and the `active` toggle was removed from the forms (archiving made a row unreachable).diff --git a/apps/erp/app/components/RecordDocuments.tsx b/apps/erp/app/components/RecordDocuments.tsxnew file mode 100644index 0000000000..ab4d5cd47d--- /dev/null+++ b/apps/erp/app/components/RecordDocuments.tsx@@ -0,0 +1,428 @@+import { useCarbon } from "@carbon/auth";+import { getLogger } from "@carbon/logger";+import {+ Card,+ CardAction,+ CardContent,+ CardHeader,+ CardTitle,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ File,+ HStack,+ IconButton,+ Table,+ Tbody,+ Td,+ Th,+ Thead,+ Tr,+ toast+} from "@carbon/react";+import { convertKbToString } from "@carbon/utils";+import { Trans, useLingui } from "@lingui/react/macro";+import type { FileObject } from "@supabase/storage-js";+import type { ChangeEvent } from "react";+import { useCallback } from "react";+import { LuEllipsisVertical, LuExternalLink, LuUpload } from "react-icons/lu";+import { useFetchers, useRevalidator, useSubmit } from "react-router";+import { DateTime, DocumentPreview, FileDropzone } from "~/components";+import DocumentIcon from "~/components/DocumentIcon";+import { usePermissions, useUser } from "~/hooks";+import type { OptimisticFileObject } from "~/modules/shared";+import { getDocumentType } from "~/modules/shared";+import { path } from "~/utils/path";+import { stripSpecialCharacters } from "~/utils/string";++const logger = getLogger("erp", "recorddocuments");++/**+ * Documents filed against a master record (a supplier or a customer as a+ * company), as opposed to a transaction. Files land in the `private` bucket+ * under `${companyId}/${bucketPrefix}/${id}`, and each upload also writes a+ * `document` row so the file is searchable in the global Documents module.+ */+/** PDFs and images are the only types a browser reliably renders inline; for+ * anything else a new tab would just trigger a download, so the action is hidden. */+function isViewableInBrowser(fileName: string): boolean {+ const type = getDocumentType(fileName);+ return type === "PDF" || type === "Image";+}++type RecordDocumentsProps = {+ files: FileObject[];+ /** The record's id — becomes document.sourceDocumentId */+ id: string;+ /** Storage prefix segment under ${companyId}/, e.g. "supplier" */+ bucketPrefix: string;+ /** documentSourceType value */+ sourceDocument: "Supplier" | "Customer";+ /** Permission module gating upload/delete */+ module: "purchasing" | "sales";+ isReadOnly?: boolean;+};++const RecordDocuments = ({+ files,+ id,+ bucketPrefix,+ sourceDocument,+ module,+ isReadOnly+}: RecordDocumentsProps) => {+ const { t } = useLingui();+ const { canDelete, download, view, deleteAttachment, getPath, upload } =+ useRecordDocuments({ id, bucketPrefix, sourceDocument, module });++ const effectiveCanDelete = isReadOnly ? false : canDelete;++ const onDrop = useCallback(+ (acceptedFiles: globalThis.File[]) => {+ upload(acceptedFiles);+ },+ [upload]+ );++ const filesByName = new Map<string, FileObject | OptimisticFileObject>(+ files.map((file) => [file.name, file])+ );+ const pendingItems = usePendingItems();+ for (const pendingItem of pendingItems) {+ const item = filesByName.get(pendingItem.name);+ const merged = item ? { ...item, ...pendingItem } : pendingItem;+ filesByName.set(pendingItem.name, merged);+ }++ const filesToRender = Array.from(filesByName.values()).sort((a, b) =>+ a.name.localeCompare(b.name)+ ) as FileObject[];++ return (+ <Card>+ <HStack className="justify-between items-start">+ <CardHeader>+ <CardTitle>+ <Trans>Documents</Trans>+ </CardTitle>+ </CardHeader>+ <CardAction>+ {!isReadOnly && (+ <RecordDocumentUpload+ id={id}+ bucketPrefix={bucketPrefix}+ sourceDocument={sourceDocument}+ module={module}+ />+ )}+ </CardAction>+ </HStack>+ <CardContent>+ <Table>+ <Thead>+ <Tr>+ <Th>+ <Trans>Name</Trans>+ </Th>+ <Th>+ <Trans>Size</Trans>+ </Th>+ <Th>+ <Trans>Created</Trans>+ </Th>+ <Th />+ </Tr>+ </Thead>+ <Tbody>+ {filesToRender.length ? (+ filesToRender.map((file) => (+ <Tr key={file.id}>+ <Td>+ <HStack>+ <DocumentIcon type={getDocumentType(file.name)} />+ <span+ className="font-medium cursor-pointer"+ onClick={() => download(file)}+ >+ <DocumentPreview+ bucket="private"+ pathToFile={getPath(file)}+ // @ts-ignore+ type={getDocumentType(file.name)}+ >+ {file.name}+ </DocumentPreview>+ </span>+ </HStack>+ </Td>+ <Td className="text-xs font-mono">+ {convertKbToString(+ Math.floor((file.metadata?.size ?? 0) / 1024)+ )}+ </Td>+ <Td className="text-xs font-mono">+ {file.created_at ? (+ <DateTime value={file.created_at} variant="date" />+ ) : (+ "--"+ )}+ </Td>+ <Td>+ <div className="flex justify-end gap-2">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton+ aria-label={t`More`}+ icon={<LuEllipsisVertical />}+ variant="secondary"+ />+ </DropdownMenuTrigger>+ <DropdownMenuContent>+ {isViewableInBrowser(file.name) && (+ <DropdownMenuItem onClick={() => view(file)}>+ <LuExternalLink className="mr-2" />+ <Trans>View in new tab</Trans>+ </DropdownMenuItem>+ )}+ <DropdownMenuItem onClick={() => download(file)}>+ <Trans>Download</Trans>+ </DropdownMenuItem>+ <DropdownMenuItem+ destructive+ disabled={!effectiveCanDelete}+ onClick={() => deleteAttachment(file)}+ >+ <Trans>Delete</Trans>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </Td>+ </Tr>+ ))+ ) : (+ <Tr>+ <Td+ colSpan={24}+ className="py-8 text-muted-foreground text-center"+ >+ <Trans>No documents</Trans>+ </Td>+ </Tr>+ )}+ </Tbody>+ </Table>+ {!isReadOnly && <FileDropzone onDrop={onDrop} />}+ </CardContent>+ </Card>+ );+};++type RecordDocumentUploadProps = {+ id: string;+ bucketPrefix: string;+ sourceDocument: "Supplier" | "Customer";+ module: "purchasing" | "sales";+};++const RecordDocumentUpload = (props: RecordDocumentUploadProps) => {+ const { t } = useLingui();+ const permissions = usePermissions();+ const { upload } = useRecordDocuments(props);++ const uploadFiles = async (e: ChangeEvent<HTMLInputElement>) => {+ if (e.target.files) {+ await upload(Array.from(e.target.files));+ }+ };++ return (+ <File+ isDisabled={!permissions.can("update", props.module)}+ leftIcon={<LuUpload />}+ onChange={uploadFiles}+ multiple+ >+ {t`New`}+ </File>+ );+};++export const useRecordDocuments = ({+ id,+ bucketPrefix,+ sourceDocument,+ module+}: RecordDocumentUploadProps) => {+ const { t } = useLingui();+ const permissions = usePermissions();+ const { company } = useUser();+ const { carbon } = useCarbon();+ const revalidator = useRevalidator();+ const submit = useSubmit();++ const canDelete = permissions.can("delete", module);++ const getPath = useCallback(+ (file: { name: string }) =>+ `${company.id}/${bucketPrefix}/${id}/${stripSpecialCharacters(+ file.name+ )}`,+ [company.id, bucketPrefix, id]+ );++ const deleteAttachment = useCallback(+ async (file: FileObject) => {+ const result = await carbon?.storage+ .from("private")+ .remove([getPath(file)]);++ if (!result || result.error) {+ toast.error(result?.error?.message || t`Error deleting file`);+ return;+ }++ toast.success(t`${file.name} deleted successfully`);+ revalidator.revalidate();+ },+ [carbon?.storage, getPath, revalidator, t]+ );++ const view = useCallback(+ (file: FileObject) => {+ // The preview route streams the file inline, so the browser renders it+ // rather than downloading. noopener because this is a user-content URL.+ window.open(+ path.to.file.previewFile(`private/${getPath(file)}`),+ "_blank",+ "noopener,noreferrer"+ );+ },+ [getPath]+ );++ const download = useCallback(+ async (file: FileObject) => {+ const url = path.to.file.previewFile(`private/${getPath(file)}`);+ try {+ const response = await fetch(url);+ const blob = await response.blob();+ const blobUrl = window.URL.createObjectURL(blob);+ const a = document.createElement("a");+ document.body.appendChild(a);+ a.href = blobUrl;+ a.download = file.name;+ a.click();+ window.URL.revokeObjectURL(blobUrl);+ document.body.removeChild(a);+ } catch (error) {+ toast.error(t`Error downloading file`);+ logger.error("Error", { error });+ }+ },+ [getPath, t]+ );++ const createDocumentRecord = useCallback(+ ({+ path: filePath,+ name,+ size+ }: {+ path: string;+ name: string;+ size: number;+ }) => {+ const formData = new FormData();+ formData.append("path", filePath);+ formData.append("name", name);+ formData.append("size", Math.round(size / 1024).toString());+ formData.append("sourceDocument", sourceDocument);+ formData.append("sourceDocumentId", id);++ submit(formData, {+ method: "post",+ action: path.to.newDocument,+ navigate: false,+ fetcherKey: `${bucketPrefix}:${name}`+ });+ },+ [id, bucketPrefix, sourceDocument, submit]+ );++ const upload = useCallback(+ async (files: globalThis.File[]) => {+ if (!carbon) {+ toast.error(t`Carbon client not available`);+ return;+ }++ for (const file of files) {+ const fileName = getPath(file);+ toast.info(t`Uploading ${file.name}`);++ const fileUpload = await carbon.storage+ .from("private")+ .upload(fileName, file, {+ cacheControl: `${12 * 60 * 60}`,+ upsert: true+ });++ if (fileUpload.error) {+ toast.error(t`Failed to upload file: ${file.name}`);+ } else if (fileUpload.data?.path) {+ toast.success(t`Uploaded: ${file.name}`);+ createDocumentRecord({+ path: fileUpload.data.path,+ name: file.name,+ size: file.size+ });+ }+ }+ revalidator.revalidate();+ },+ [getPath, createDocumentRecord, carbon, revalidator, t]+ );++ return {+ canDelete,+ deleteAttachment,+ download,+ view,+ upload,+ getPath+ };+};++export const usePendingItems = () => {+ type PendingItem = ReturnType<typeof useFetchers>[number] & {+ formData: FormData;+ };++ return useFetchers()+ .filter((fetcher): fetcher is PendingItem => {+ return fetcher.formAction === path.to.newDocument;+ })+ .reduce<OptimisticFileObject[]>((acc, fetcher) => {+ const filePath = fetcher.formData.get("path") as string;+ const name = fetcher.formData.get("name") as string;+ const size = parseInt(fetcher.formData.get("size") as string, 10) * 1024;++ if (filePath && name && size) {+ const newItem: OptimisticFileObject = {+ id: filePath,+ name: name,+ bucket_id: "private",+ metadata: {+ size,+ mimetype: getDocumentType(name)+ }+ };+ return [...acc, newItem];+ }+ return acc;+ }, []);+};++export default RecordDocuments;diff --git a/apps/erp/app/modules/agent/kb/docs/reference/documents.md b/apps/erp/app/modules/agent/kb/docs/reference/documents.mdindex 891f245695..d0591cbb58 100644--- a/apps/erp/app/modules/agent/kb/docs/reference/documents.md+++ b/apps/erp/app/modules/agent/kb/docs/reference/documents.md@@ -47,12 +47,13 @@ The explorer search box does a case-insensitive substring match across a file'sA document can point back at the record it belongs to. The row's **Source Document** column shows that link and jumps straight to the parent record (`DocumentsTable.tsx:207-237`). The set of record types a document can attach to is fixed (`documents.models.ts:9-23`):- - **Sales side**: Quote, Request for Quote, Sales Order, Sales Invoice, Shipment.- - **Purchasing side**: Purchase Order, Purchase Invoice, Purchasing Request for Quote, Supplier Quote.+ - **Sales side**: Quote, Request for Quote, Sales Order, Sales Invoice, Sales Return Order, Shipment.+ - **Purchasing side**: Purchase Order, Purchase Invoice, Purchase Return Order, Purchasing Request for Quote, Supplier Quote.- **Production & quality**: Job, Gauge Calibration Record, Issue.- **Items**: Part, Material, Tool, Consumable, Service.+ - **Trading parties**: Supplier, Customer. These are the master records rather than transactions, for files that belong to the party itself.-The attachment is stored as a `sourceDocument` (the type) plus a `sourceDocumentId` (the record's id) on the file (`documents.service.ts:154-183`). Because the file also lives in the shared explorer, you can find it either by opening the record or by searching the library. See the `docs/reference/sales-orders`, `docs/reference/purchase-orders`, and `docs/reference/jobs` references for where each record surfaces its files.+The attachment is stored as a `sourceDocument` (the type) plus a `sourceDocumentId` (the record's id) on the file (`documents.service.ts:154-183`). Because the file also lives in the shared explorer, you can find it either by opening the record or by searching the library. See the `docs/reference/sales-orders`, `docs/reference/purchase-orders`, and `docs/reference/jobs` references for where each record surfaces its files, and `docs/reference/suppliers-and-customers` for the party-level Documents tab.## AI extractiondiff --git a/apps/erp/app/modules/agent/kb/docs/reference/suppliers-and-customers.md b/apps/erp/app/modules/agent/kb/docs/reference/suppliers-and-customers.mdindex 1306caa0a2..7e7cd1e2ce 100644--- a/apps/erp/app/modules/agent/kb/docs/reference/suppliers-and-customers.md+++ b/apps/erp/app/modules/agent/kb/docs/reference/suppliers-and-customers.md@@ -20,6 +20,33 @@ The asymmetry to remember: **supplier status is a fixed four-value set; customerBoth records carry the same satellite shape: **contacts**, **locations/addresses**, and **payment, shipping, and tax** defaults. Payment terms, currency, and tax settings live on those satellites, not on the core record. Both also have a human-readable id (`SUP…` / `CUS…`) on top of their internal key, and both can expose an external **portal**: suppliers respond to RFQs through a digital-quote link; customers track their orders through a `docs/reference/customer-portal`.+## Bank accounts++Both parties can carry bank accounts: the account you pay a supplier into, and the one you refund a customer to. They live on the **Bank Accounts** tab of the record, and they are reference data. Nothing in Carbon moves money from them; a person reads the details and enters them in their own banking system.++The fields adapt to the account's country, because banking identifiers are not the same everywhere. Pick France and the account field is labelled **"IBAN"** with no routing field, since an IBAN already identifies the bank. Pick India and you get an **"IFSC Code"** field plus a required SWIFT / BIC, because one routes the payment inside the country and the other gets it there.++ - **Name**: Your label for the account, so two accounts at one bank stay distinguishable.+ - **Account Holder**: Only needed when it differs from the party's own name.+ - **Bank Name**: The bank the account sits with.+ - **Bank Address**: Printed onto payment files; correspondent banks route international wires on it.+ - **Country**: Selects which validation rules apply to everything below.+ - **Currency**: The currency the account settles in.+ - **Account Number / IBAN**: Labelled by country. Validated by checksum where the scheme has one.+ - **Routing code**: Named for the country: *Routing Number (ABA)*, *Sort Code*, *BSB*, *IFSC Code*, or *Transit & Institution*. Absent for countries whose IBAN carries it.+ - **SWIFT / BIC**: Required wherever the country expects a cross-border payment to route.+ - **Notes**: Free text for anything the fixed fields do not cover.++Most people who can open a supplier should not see its bank account, so the tab is gated on **accounting** rather than the module that owns the record. Without `accounting` view permission the tab does not appear in the sidebar, and opening its URL directly is refused. Adding, editing, and deleting are gated separately.++Account numbers display masked, showing the last four characters with a toggle to reveal the rest. That deters someone reading over your shoulder or catching it in a screenshot; it is not an access control, and the permission above is what actually protects the data.++A checksum confirms an IBAN was typed correctly. It cannot tell you the account belongs to the supplier you think it does. Confirming that is an out-of-band step, a call to a number you already had, and it is the control that stops payment-redirection fraud.++## Documents++Both records have a **Documents** tab for files that belong to the party itself rather than to one transaction: a W-9, an insurance certificate, a signed master agreement. Drop a file on the tab and it is filed against that record, and it also appears in the shared `docs/reference/documents`, so you can find it either by opening the party or by searching.+## Related- Quote to cash How a customer's quote becomes an order.diff --git a/apps/erp/app/modules/agent/kb/manifest.json b/apps/erp/app/modules/agent/kb/manifest.jsonindex 2dee36ca04..750da1c01f 100644--- a/apps/erp/app/modules/agent/kb/manifest.json+++ b/apps/erp/app/modules/agent/kb/manifest.json@@ -1585,6 +1585,8 @@"Suppliers","Customers","What they share",+ "Bank accounts",+ "Documents","Related","Troubleshooting","\"Cannot edit a protected customer type\" / \"Cannot edit a protected supplier type\"",diff --git a/apps/erp/app/modules/documents/documents.models.ts b/apps/erp/app/modules/documents/documents.models.tsindex 6d4777cf71..91d4c301a9 100644--- a/apps/erp/app/modules/documents/documents.models.ts+++ b/apps/erp/app/modules/documents/documents.models.ts@@ -22,6 +22,8 @@ export const documentSourceTypes = ["Sales Return Order","Purchase Return Order","Shipment",+ "Supplier",+ "Customer",...itemType] as const;diff --git a/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx b/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsxindex 9e6fe96457..cfd1988444 100644--- a/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx+++ b/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx@@ -667,6 +667,10 @@ function getDocumentLocation(return path.to.salesInvoice(sourceDocumentId);case "Supplier Quote":return path.to.supplierQuote(sourceDocumentId);+ case "Supplier":+ return path.to.supplierDetails(sourceDocumentId);+ case "Customer":+ return path.to.customerDetails(sourceDocumentId);default:return "#";}diff --git a/apps/erp/app/modules/purchasing/purchasing.models.ts b/apps/erp/app/modules/purchasing/purchasing.models.tsindex 87b8339854..d5544eae85 100644--- a/apps/erp/app/modules/purchasing/purchasing.models.ts+++ b/apps/erp/app/modules/purchasing/purchasing.models.ts@@ -1,3 +1,8 @@+import {+ bicMatchesCountry,+ getBankFieldConfig,+ isValidSwiftBic+} from "@carbon/utils";import { getLocalTimeZone, today } from "@internationalized/date";import { z } from "zod";import { zfd } from "zod-form-data";@@ -403,6 +408,109 @@ export const supplierLocationValidator = z.object({...address});+export const supplierBankAccountValidator = z+ .object({+ id: zfd.text(z.string().optional()),+ supplierId: z.string().min(1, { message: "Supplier is required" }),+ name: zfd.text(z.string().min(1, { message: "Name is required" })),+ accountHolderName: zfd.text(z.string().optional()),+ bankName: zfd.text(z.string().min(1, { message: "Bank name is required" })),+ // Correspondent banks route international wires on this.+ bankAddress: zfd.text(+ z.string().min(1, { message: "Bank address is required" })+ ),+ // Required because it SELECTS the validation rules below — left blank, the+ // permissive default applies and nothing is really checked.+ countryCode: zfd.text(+ z.string().min(1, { message: "Country is required" })+ ),+ currencyCode: zfd.text(z.string().optional()),+ // Generic by design: `accountNumber` holds an IBAN in SEPA and a plain+ // account number elsewhere; `bankCode` holds an ABA / sort code / BSB /+ // IFSC / transit. countryCode decides which validator applies, so a new+ // country is an entry in getBankFieldConfig, not a migration.+ accountNumber: zfd.text(z.string().optional()),+ bankCode: zfd.text(z.string().optional()),+ swiftBic: zfd.text(z.string().optional()),+ notes: zfd.text(z.string().optional())+ })+ .superRefine((data, ctx) => {+ const config = getBankFieldConfig(data.countryCode);++ if (!data.accountNumber) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "An account number is required",+ path: ["accountNumber"]+ });+ } else if (+ config.validateAccount &&+ !config.validateAccount(data.accountNumber)+ ) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "Invalid account number for the selected country",+ path: ["accountNumber"]+ });+ }++ if (config.bankCodeLabel !== null) {+ // A country that defines a routing identifier always needs it — there is+ // no scheme where it is optional.+ if (!data.bankCode) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "A bank code is required for the selected country",+ path: ["bankCode"]+ });+ } else if (+ config.validateBankCode &&+ !config.validateBankCode(data.bankCode)+ ) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "Invalid bank code for the selected country",+ path: ["bankCode"]+ });+ }+ }++ // Cross-border payments will not route without a BIC, so where the country+ // config demands one, absence is an error rather than a blank field.+ if (!data.swiftBic) {+ if (config.requiresSwift) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "A SWIFT/BIC code is required for this country",+ path: ["swiftBic"]+ });+ }+ } else if (!isValidSwiftBic(data.swiftBic)) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "Invalid SWIFT/BIC code",+ path: ["swiftBic"]+ });+ } else if (!bicMatchesCountry(data.swiftBic, data.countryCode)) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "This SWIFT/BIC belongs to a different country",+ path: ["swiftBic"]+ });+ }+ })+ // Countries with no routing identifier (SEPA: the IBAN carries it) unmount the+ // input, so nothing is submitted. Left undefined, an update would skip the+ // column entirely and strand the previous country's code on the row — so it is+ // explicitly nulled rather than merely absent.+ .transform((data) => ({+ ...data,+ bankCode:+ getBankFieldConfig(data.countryCode).bankCodeLabel === null+ ? null+ : (data.bankCode ?? null)+ }));+export const supplierPaymentValidator = z.object({supplierId: z.string().min(1, { message: "Supplier is required" }),invoiceSupplierId: zfd.text(z.string().optional()),diff --git a/apps/erp/app/modules/purchasing/purchasing.service.ts b/apps/erp/app/modules/purchasing/purchasing.service.tsindex f94ab37a67..c7fe6a5286 100644--- a/apps/erp/app/modules/purchasing/purchasing.service.ts+++ b/apps/erp/app/modules/purchasing/purchasing.service.ts@@ -45,6 +45,7 @@ import type {purchasingRfqStatusType,selectedLinesValidator,supplierAccountingValidator,+ supplierBankAccountValidator,supplierContactValidator,supplierPaymentValidator,supplierProcessValidator,@@ -273,6 +274,64 @@ export async function deleteSupplierLocation(}}+export async function deleteSupplierBankAccount(+ client: SupabaseClient<Database>,+ id: string+) {+ return client.from("supplierBankAccount").delete().eq("id", id);+}++export async function getSupplierBankAccounts(+ client: SupabaseClient<Database>,+ supplierId: string+) {+ return client+ .from("supplierBankAccount")+ .select("*")+ .eq("supplierId", supplierId)+ .order("name");+}++export async function upsertSupplierBankAccount(+ db: Kysely<KyselyDatabase>,+ bankAccount:+ | (Omit<z.infer<typeof supplierBankAccountValidator>, "id"> & {+ companyId: string;+ createdBy: string;+ customFields?: Json;+ })+ | (Omit<z.infer<typeof supplierBankAccountValidator>, "id"> & {+ id: string;+ companyId: string;+ updatedBy: string;+ customFields?: Json;+ })+) {+ const { supplierId, companyId } = bankAccount;++ if ("createdBy" in bankAccount) {+ return await db+ .insertInto("supplierBankAccount")+ .values(bankAccount)+ .returning("id")+ .executeTakeFirstOrThrow();+ }++ const { id, ...update } = bankAccount;++ // supplierId and companyId are scoping columns, not editable fields. They are+ // also re-asserted in the WHERE clause so a forged form value cannot move+ // this row to another supplier.+ return await db+ .updateTable("supplierBankAccount")+ .set({ ...update, updatedAt: datetime.timestamp() })+ .where("id", "=", id)+ .where("supplierId", "=", supplierId)+ .where("companyId", "=", companyId)+ .returning("id")+ .executeTakeFirstOrThrow();+}+export async function deleteSupplierProcess(client: SupabaseClient<Database>,supplierProcessId: stringdiff --git a/apps/erp/app/modules/purchasing/types.ts b/apps/erp/app/modules/purchasing/types.tsindex 8b6004f7bc..1e5f019613 100644--- a/apps/erp/app/modules/purchasing/types.ts+++ b/apps/erp/app/modules/purchasing/types.ts@@ -9,6 +9,7 @@ import type {getPurchasingRFQSuppliers,getPurchasingRFQs,getSupplier,+ getSupplierBankAccounts,getSupplierContacts,getSupplierInteraction,getSupplierLocations,@@ -119,6 +120,10 @@ export type SupplierLocation = NonNullable<Awaited<ReturnType<typeof getSupplierLocations>>["data"]>[number];+export type SupplierBankAccount = NonNullable<+ Awaited<ReturnType<typeof getSupplierBankAccounts>>["data"]+>[number];+export type SupplierProcess = NonNullable<Awaited<ReturnType<typeof getSupplierProcessesBySupplier>>["data"]>[number];diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccountForm.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccountForm.tsxnew file mode 100644index 0000000000..b0d6dec222--- /dev/null+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccountForm.tsx@@ -0,0 +1,174 @@+import { ValidatedForm } from "@carbon/form";+import {+ Button,+ HStack,+ ModalDrawer,+ ModalDrawerBody,+ ModalDrawerContent,+ ModalDrawerFooter,+ ModalDrawerHeader,+ ModalDrawerProvider,+ ModalDrawerTitle,+ VStack+} from "@carbon/react";+import type { AccountLabelKey, BankCodeLabelKey } from "@carbon/utils";+import { getBankFieldConfig } from "@carbon/utils";+import { Trans, useLingui } from "@lingui/react/macro";+import { useState } from "react";+import { useFetcher, useNavigate, useParams } from "react-router";+import type { z } from "zod";+import {+ Currency,+ CustomFormFields,+ Hidden,+ Input,+ Submit,+ TextArea+} from "~/components/Form";+import Country from "~/components/Form/Country";+import { usePermissions } from "~/hooks";+import { supplierBankAccountValidator } from "~/modules/purchasing";+import { path } from "~/utils/path";++type SupplierBankAccountFormProps = {+ initialValues: z.infer<typeof supplierBankAccountValidator>;+ type?: "drawer" | "modal";+ open?: boolean;+ onClose: () => void;+};++const SupplierBankAccountForm = ({+ initialValues,+ type = "drawer",+ open = true,+ onClose+}: SupplierBankAccountFormProps) => {+ const { t } = useLingui();+ const permissions = usePermissions();+ const fetcher = useFetcher<{}>();+ const navigate = useNavigate();+ const { supplierId } = useParams();+ if (!supplierId) throw new Error("supplierId not found");++ // The country decides what the two identifier fields are called and how they+ // validate, so it is tracked in state rather than read once from initialValues.+ const [countryCode, setCountryCode] = useState(+ initialValues.countryCode ?? ""+ );+ const bankFields = getBankFieldConfig(countryCode);++ const ACCOUNT_LABELS: Record<AccountLabelKey, string> = {+ accountNumber: t`Account Number`,+ iban: t`IBAN`+ };+ const BANK_CODE_LABELS: Record<BankCodeLabelKey, string> = {+ aba: t`Routing Number (ABA)`,+ sortCode: t`Sort Code`,+ bsb: t`BSB`,+ ifsc: t`IFSC Code`,+ transit: t`Transit & Institution`,+ bankCode: t`Bank Code`+ };++ const accountLabel = ACCOUNT_LABELS[bankFields.accountLabel];+ const bankCodeLabel = bankFields.bankCodeLabel+ ? BANK_CODE_LABELS[bankFields.bankCodeLabel]+ : null;++ const isEditing = initialValues.id !== undefined;+ const isDisabled = isEditing+ ? !permissions.can("update", "accounting")+ : !permissions.can("create", "accounting");++ return (+ <ModalDrawerProvider type={type}>+ <ModalDrawer+ open={open}+ onOpenChange={(isOpen) => {+ if (!isOpen) {+ if (type === "modal") {+ onClose?.();+ } else {+ navigate(-1);+ }+ }+ }}+ >+ <ModalDrawerContent>+ <ValidatedForm+ validator={supplierBankAccountValidator}+ method="post"+ action={+ isEditing+ ? path.to.supplierBankAccount(supplierId, initialValues.id!)+ : path.to.newSupplierBankAccount(supplierId)+ }+ defaultValues={initialValues}+ fetcher={fetcher}+ className="flex flex-col h-full"+ >+ <ModalDrawerHeader>+ <ModalDrawerTitle>+ {isEditing ? (+ <Trans>Edit Bank Account</Trans>+ ) : (+ <Trans>New Bank Account</Trans>+ )}+ </ModalDrawerTitle>+ </ModalDrawerHeader>+ <ModalDrawerBody>+ <Hidden name="id" />+ <Hidden name="type" value={type} />+ <Hidden name="supplierId" value={supplierId} />+ <VStack spacing={4}>+ <Input name="name" label={t`Name`} isRequired />+ <Input+ name="accountHolderName"+ label={t`Account Holder`}+ helperText={t`Only if it differs from the supplier name`}+ />+ <Input name="bankName" label={t`Bank Name`} isRequired />+ {/* Correspondent banks route international wires on this. */}+ <TextArea+ name="bankAddress"+ label={t`Bank Address`}+ isRequired+ />+ <Country+ name="countryCode"+ label={t`Country`}+ isRequired+ onChange={(value) => setCountryCode(value?.value ?? "")}+ />+ <Currency name="currencyCode" label={t`Currency`} />+ <Input name="accountNumber" label={accountLabel} isRequired />+ {bankCodeLabel && (+ <Input name="bankCode" label={bankCodeLabel} isRequired />+ )}+ <Input+ name="swiftBic"+ label={t`SWIFT / BIC`}+ isRequired={bankFields.requiresSwift}+ />+ <TextArea name="notes" label={t`Notes`} />+ <CustomFormFields table="supplierBankAccount" />+ </VStack>+ </ModalDrawerBody>+ <ModalDrawerFooter>+ <HStack>+ <Submit isDisabled={isDisabled}>+ <Trans>Save</Trans>+ </Submit>+ <Button size="md" variant="solid" onClick={() => onClose?.()}>+ <Trans>Cancel</Trans>+ </Button>+ </HStack>+ </ModalDrawerFooter>+ </ValidatedForm>+ </ModalDrawerContent>+ </ModalDrawer>+ </ModalDrawerProvider>+ );+};++export default SupplierBankAccountForm;diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsxnew file mode 100644index 0000000000..a4367d3ef1--- /dev/null+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsx@@ -0,0 +1,244 @@+import {+ Card,+ CardAction,+ CardContent,+ CardHeader,+ CardTitle,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ HStack,+ IconButton,+ useDisclosure+} from "@carbon/react";+import type { BankCodeLabelKey } from "@carbon/utils";+import { getBankFieldConfig, maskAccountNumber } from "@carbon/utils";+import { Trans, useLingui } from "@lingui/react/macro";+import { useCallback, useState } from "react";+import {+ LuEllipsisVertical,+ LuEye,+ LuEyeOff,+ LuPencil,+ LuTrash+} from "react-icons/lu";+import { Outlet, useNavigate, useParams } from "react-router";+import { New } from "~/components";+import { useCountries } from "~/components/Form/Country";+import { ConfirmDelete } from "~/components/Modals";+import { usePermissions } from "~/hooks";+import type { SupplierBankAccount } from "~/modules/purchasing/types";+import { path } from "~/utils/path";++type SupplierBankAccountsProps = {+ bankAccounts: SupplierBankAccount[];+};++const SupplierBankAccounts = ({ bankAccounts }: SupplierBankAccountsProps) => {+ const { t } = useLingui();+ const navigate = useNavigate();+ const { supplierId } = useParams();+ if (!supplierId) throw new Error("supplierId not found");++ const permissions = usePermissions();+ const canEdit = permissions.can("create", "accounting");+ const isEmpty = !bankAccounts || bankAccounts.length === 0;++ const countries = useCountries();++ const deleteModal = useDisclosure();+ const [selected, setSelected] = useState<SupplierBankAccount>();++ // Presentation only. The loader returns the full account number, so this+ // deters shoulder-surfing and screenshots — it is not an access control.+ // Access is enforced by the accounting_view RLS policy on the table.+ const [revealed, setRevealed] = useState<Set<string>>(new Set());+ const toggleReveal = useCallback((id: string) => {+ setRevealed((prev) => {+ const next = new Set(prev);+ if (next.has(id)) {+ next.delete(id);+ } else {+ next.add(id);+ }+ return next;+ });+ }, []);++ // The routing identifier goes by a different name in each country, so the+ // row labels it the way the country writes it rather than showing a generic+ // "Bank Code" that tells the reader nothing.+ const BANK_CODE_LABELS: Record<BankCodeLabelKey, string> = {+ aba: t`ABA`,+ sortCode: t`Sort Code`,+ bsb: t`BSB`,+ ifsc: t`IFSC`,+ transit: t`Transit`,+ bankCode: t`Bank Code`+ };++ return (+ <>+ <Card>+ <HStack className="justify-between items-start">+ <CardHeader>+ <CardTitle>+ <Trans>Bank Accounts</Trans>+ </CardTitle>+ </CardHeader>+ <CardAction>{canEdit && <New to="new" />}</CardAction>+ </HStack>+ <CardContent>+ {isEmpty ? (+ <div className="my-8 text-center w-full">+ <p className="text-muted-foreground text-sm">+ <Trans>No bank accounts have been added yet.</Trans>+ </p>+ </div>+ ) : (+ <ul className="w-full divide-y divide-border">+ {bankAccounts.map((account) => {+ const identifier = account.accountNumber ?? "";+ const isRevealed = revealed.has(account.id);+ const config = getBankFieldConfig(account.countryCode);+ const bankCodeLabel = config.bankCodeLabel+ ? BANK_CODE_LABELS[config.bankCodeLabel]+ : null;+ const countryName =+ countries.find((c) => c.value === account.countryCode)+ ?.label ?? account.countryCode;++ return (+ <li+ key={account.id}+ className="flex items-start justify-between gap-4 py-4 first:pt-0 last:pb-0"+ >+ <div className="min-w-0 flex-1">+ <div className="flex items-baseline gap-2">+ <p className="truncate text-sm font-medium">+ {account.name}+ </p>+ {account.currencyCode && (+ <span className="shrink-0 font-mono text-sm text-muted-foreground">+ {account.currencyCode}+ </span>+ )}+ </div>++ {(account.bankName || countryName) && (+ <p className="truncate text-sm text-muted-foreground">+ {[account.bankName, countryName]+ .filter(Boolean)+ .join(" · ")}+ </p>+ )}++ <dl className="mt-2 flex flex-wrap items-center gap-x-4 gap-y-1">+ <div className="flex items-center gap-1.5">+ <dt className="text-sm font-medium">+ {config.accountLabel === "iban" ? (+ <Trans>IBAN</Trans>+ ) : (+ <Trans>Account</Trans>+ )}+ </dt>+ <dd className="flex items-center gap-1 font-mono text-sm tabular-nums text-muted-foreground">+ {isRevealed+ ? identifier+ : maskAccountNumber(identifier)}+ {identifier && (+ <IconButton+ aria-label={+ isRevealed+ ? t`Hide account number`+ : t`Reveal account number`+ }+ icon={isRevealed ? <LuEyeOff /> : <LuEye />}+ variant="ghost"+ size="sm"+ onClick={() => toggleReveal(account.id)}+ />+ )}+ </dd>+ </div>++ {bankCodeLabel && account.bankCode && (+ <div className="flex items-center gap-1.5">+ <dt className="text-sm font-medium">+ {bankCodeLabel}+ </dt>+ <dd className="font-mono text-sm tabular-nums text-muted-foreground">+ {account.bankCode}+ </dd>+ </div>+ )}++ {account.swiftBic && (+ <div className="flex items-center gap-1.5">+ <dt className="text-sm font-medium">+ <Trans>SWIFT</Trans>+ </dt>+ <dd className="font-mono text-sm text-muted-foreground">+ {account.swiftBic}+ </dd>+ </div>+ )}+ </dl>+ </div>++ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton+ aria-label={t`More`}+ icon={<LuEllipsisVertical />}+ variant="secondary"+ className="shrink-0"+ />+ </DropdownMenuTrigger>+ <DropdownMenuContent>+ <DropdownMenuItem+ disabled={!permissions.can("update", "accounting")}+ onClick={() => navigate(account.id)}+ >+ <LuPencil className="mr-2" />+ <Trans>Edit</Trans>+ </DropdownMenuItem>+ <DropdownMenuItem+ destructive+ disabled={!permissions.can("delete", "accounting")}+ onClick={() => {+ setSelected(account);+ deleteModal.onOpen();+ }}+ >+ <LuTrash className="mr-2" />+ <Trans>Delete</Trans>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </li>+ );+ })}+ </ul>+ )}+ </CardContent>+ </Card>++ {selected?.id && (+ <ConfirmDelete+ action={path.to.deleteSupplierBankAccount(supplierId, selected.id)}+ name={selected.name}+ text={t`Are you sure you want to delete this bank account?`}+ isOpen={deleteModal.isOpen}+ onCancel={deleteModal.onClose}+ onSubmit={deleteModal.onClose}+ />+ )}++ <Outlet />+ </>+ );+};++export default SupplierBankAccounts;diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsxindex 0fc5eda62b..d4890bb685 100644--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx@@ -4,6 +4,7 @@ import {LuContact,LuCreditCard,LuFiles,+ LuLandmark,LuLayoutList,LuMapPin,LuPackageSearch,@@ -80,12 +81,25 @@ export function useSupplierSidebar({ contacts, locations }: Props) {icon: <LuRedoDot />,shortcut: DETAIL_TAB_SHORTCUTS.processes},+ {+ name: t`Documents`,+ to: path.to.supplierDocuments(supplierId),+ role: ["employee"],+ icon: <LuFiles />+ },{name: t`Default Attachments`,to: path.to.supplierDefaultAttachments(supplierId),role: ["employee"],icon: <LuFiles />},+ {+ name: t`Bank Accounts`,+ to: path.to.supplierBankAccounts(supplierId),+ role: ["employee"],+ permission: { action: "view" as const, module: "accounting" },+ icon: <LuLandmark />+ },{name: t`Risks`,to: path.to.supplierRisks(supplierId),@@ -122,9 +136,24 @@ export function useSupplierSidebar({ contacts, locations }: Props) {// icon: <LuLandmark />,// shortcut: DETAIL_TAB_SHORTCUTS.accounting,// },- ].filter(- (item) =>+ ].filter((item) => {+ // `role` gates on WHO the user is (employee / supplier / customer);+ // `permission` gates on WHAT they may do (a <module>_<action> grant).+ // They are separate checks — permissions.is() cannot express a module permission.+ const roleOk =item.role === undefined ||- item.role.some((role) => permissions.is(role as Role))- );+ item.role.some((role) => permissions.is(role as Role));+ const permission = (+ item as {+ permission?: {+ action: "view" | "create" | "update" | "delete";+ module: string;+ };+ }+ ).permission;+ const permissionOk =+ permission === undefined ||+ permissions.can(permission.action, permission.module);+ return roleOk && permissionOk;+ });}diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/index.ts b/apps/erp/app/modules/purchasing/ui/Supplier/index.tsindex 54aed88ba0..e6a0b8d09f 100644--- a/apps/erp/app/modules/purchasing/ui/Supplier/index.ts+++ b/apps/erp/app/modules/purchasing/ui/Supplier/index.ts@@ -1,3 +1,5 @@+import SupplierBankAccountForm from "./SupplierBankAccountForm";+import SupplierBankAccounts from "./SupplierBankAccounts";import SupplierContactForm from "./SupplierContactForm";import SupplierContacts from "./SupplierContacts";import SupplierForm from "./SupplierForm";@@ -12,6 +14,8 @@ import SupplierSidebar from "./SupplierSidebar";import SuppliersTable from "./SuppliersTable";import SupplierTaxForm from "./SupplierTaxForm";export {+ SupplierBankAccountForm,+ SupplierBankAccounts,SupplierContactForm,SupplierContacts,SupplierForm,diff --git a/apps/erp/app/modules/sales/sales.models.ts b/apps/erp/app/modules/sales/sales.models.tsindex b8a2aaed8e..5a668fa51a 100644--- a/apps/erp/app/modules/sales/sales.models.ts+++ b/apps/erp/app/modules/sales/sales.models.ts@@ -1,3 +1,8 @@+import {+ bicMatchesCountry,+ getBankFieldConfig,+ isValidSwiftBic+} from "@carbon/utils";import { z } from "zod";import { zfd } from "zod-form-data";import { address, contact } from "~/types/validators";@@ -102,6 +107,109 @@ export const customerTaxValidator = z});+export const customerBankAccountValidator = z+ .object({+ id: zfd.text(z.string().optional()),+ customerId: z.string().min(1, { message: "Customer is required" }),+ name: zfd.text(z.string().min(1, { message: "Name is required" })),+ accountHolderName: zfd.text(z.string().optional()),+ bankName: zfd.text(z.string().min(1, { message: "Bank name is required" })),+ // Correspondent banks route international wires on this.+ bankAddress: zfd.text(+ z.string().min(1, { message: "Bank address is required" })+ ),+ // Required because it SELECTS the validation rules below — left blank, the+ // permissive default applies and nothing is really checked.+ countryCode: zfd.text(+ z.string().min(1, { message: "Country is required" })+ ),+ currencyCode: zfd.text(z.string().optional()),+ // Generic by design: `accountNumber` holds an IBAN in SEPA and a plain+ // account number elsewhere; `bankCode` holds an ABA / sort code / BSB /+ // IFSC / transit. countryCode decides which validator applies, so a new+ // country is an entry in getBankFieldConfig, not a migration.+ accountNumber: zfd.text(z.string().optional()),+ bankCode: zfd.text(z.string().optional()),+ swiftBic: zfd.text(z.string().optional()),+ notes: zfd.text(z.string().optional())+ })+ .superRefine((data, ctx) => {+ const config = getBankFieldConfig(data.countryCode);++ if (!data.accountNumber) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "An account number is required",+ path: ["accountNumber"]+ });+ } else if (+ config.validateAccount &&+ !config.validateAccount(data.accountNumber)+ ) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "Invalid account number for the selected country",+ path: ["accountNumber"]+ });+ }++ if (config.bankCodeLabel !== null) {+ // A country that defines a routing identifier always needs it — there is+ // no scheme where it is optional.+ if (!data.bankCode) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "A bank code is required for the selected country",+ path: ["bankCode"]+ });+ } else if (+ config.validateBankCode &&+ !config.validateBankCode(data.bankCode)+ ) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "Invalid bank code for the selected country",+ path: ["bankCode"]+ });+ }+ }++ // Cross-border payments will not route without a BIC, so where the country+ // config demands one, absence is an error rather than a blank field.+ if (!data.swiftBic) {+ if (config.requiresSwift) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "A SWIFT/BIC code is required for this country",+ path: ["swiftBic"]+ });+ }+ } else if (!isValidSwiftBic(data.swiftBic)) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "Invalid SWIFT/BIC code",+ path: ["swiftBic"]+ });+ } else if (!bicMatchesCountry(data.swiftBic, data.countryCode)) {+ ctx.addIssue({+ code: z.ZodIssueCode.custom,+ message: "This SWIFT/BIC belongs to a different country",+ path: ["swiftBic"]+ });+ }+ })+ // Countries with no routing identifier (SEPA: the IBAN carries it) unmount the+ // input, so nothing is submitted. Left undefined, an update would skip the+ // column entirely and strand the previous country's code on the row — so it is+ // explicitly nulled rather than merely absent.+ .transform((data) => ({+ ...data,+ bankCode:+ getBankFieldConfig(data.countryCode).bankCodeLabel === null+ ? null+ : (data.bankCode ?? null)+ }));+export const customerPaymentValidator = z.object({customerId: z.string().min(1, { message: "Customer is required" }),invoiceCustomerId: zfd.text(z.string().optional()),diff --git a/apps/erp/app/modules/sales/sales.service.ts b/apps/erp/app/modules/sales/sales.service.tsindex a85688b221..f91622fad3 100644--- a/apps/erp/app/modules/sales/sales.service.ts+++ b/apps/erp/app/modules/sales/sales.service.ts@@ -39,6 +39,7 @@ import {} from "../shared/shared.service";import type {customerAccountingValidator,+ customerBankAccountValidator,customerContactValidator,customerPaymentValidator,customerShippingValidator,@@ -341,6 +342,64 @@ export async function deleteCustomer(return client.from("customer").delete().eq("id", customerId);}+export async function deleteCustomerBankAccount(+ client: SupabaseClient<Database>,+ id: string+) {+ return client.from("customerBankAccount").delete().eq("id", id);+}++export async function getCustomerBankAccounts(+ client: SupabaseClient<Database>,+ customerId: string+) {+ return client+ .from("customerBankAccount")+ .select("*")+ .eq("customerId", customerId)+ .order("name");+}++export async function upsertCustomerBankAccount(+ db: Kysely<KyselyDatabase>,+ bankAccount:+ | (Omit<z.infer<typeof customerBankAccountValidator>, "id"> & {+ companyId: string;+ createdBy: string;+ customFields?: Json;+ })+ | (Omit<z.infer<typeof customerBankAccountValidator>, "id"> & {+ id: string;+ companyId: string;+ updatedBy: string;+ customFields?: Json;+ })+) {+ const { customerId, companyId } = bankAccount;++ if ("createdBy" in bankAccount) {+ return await db+ .insertInto("customerBankAccount")+ .values(bankAccount)+ .returning("id")+ .executeTakeFirstOrThrow();+ }++ const { id, ...update } = bankAccount;++ // customerId and companyId are scoping columns, not editable fields. They are+ // also re-asserted in the WHERE clause so a forged form value cannot move+ // this row to another customer.+ return await db+ .updateTable("customerBankAccount")+ .set({ ...update, updatedAt: datetime.timestamp() })+ .where("id", "=", id)+ .where("customerId", "=", customerId)+ .where("companyId", "=", companyId)+ .returning("id")+ .executeTakeFirstOrThrow();+}+export async function deleteCustomerContact(client: SupabaseClient<Database>,customerId: string,diff --git a/apps/erp/app/modules/sales/types.ts b/apps/erp/app/modules/sales/types.tsindex ad484b6a9f..3362eaf860 100644--- a/apps/erp/app/modules/sales/types.ts+++ b/apps/erp/app/modules/sales/types.ts@@ -3,6 +3,7 @@ import type { jobStatus } from "../production/production.models";import type { QuantityEffect } from "../shared";import type {getCustomer,+ getCustomerBankAccounts,getCustomerContacts,getCustomerLocations,getCustomerStatuses,@@ -149,6 +150,10 @@ export type Customer = NonNullable<Awaited<ReturnType<typeof getCustomers>>["data"]>[number];+export type CustomerBankAccount = NonNullable<+ Awaited<ReturnType<typeof getCustomerBankAccounts>>["data"]+>[number];+export type CustomerContact = NonNullable<Awaited<ReturnType<typeof getCustomerContacts>>["data"]>[number];diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccountForm.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccountForm.tsxnew file mode 100644index 0000000000..c15746ef51--- /dev/null+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccountForm.tsx@@ -0,0 +1,174 @@+import { ValidatedForm } from "@carbon/form";+import {+ Button,+ HStack,+ ModalDrawer,+ ModalDrawerBody,+ ModalDrawerContent,+ ModalDrawerFooter,+ ModalDrawerHeader,+ ModalDrawerProvider,+ ModalDrawerTitle,+ VStack+} from "@carbon/react";+import type { AccountLabelKey, BankCodeLabelKey } from "@carbon/utils";+import { getBankFieldConfig } from "@carbon/utils";+import { Trans, useLingui } from "@lingui/react/macro";+import { useState } from "react";+import { useFetcher, useNavigate, useParams } from "react-router";+import type { z } from "zod";+import {+ Currency,+ CustomFormFields,+ Hidden,+ Input,+ Submit,+ TextArea+} from "~/components/Form";+import Country from "~/components/Form/Country";+import { usePermissions } from "~/hooks";+import { customerBankAccountValidator } from "~/modules/sales";+import { path } from "~/utils/path";++type CustomerBankAccountFormProps = {+ initialValues: z.infer<typeof customerBankAccountValidator>;+ type?: "drawer" | "modal";+ open?: boolean;+ onClose: () => void;+};++const CustomerBankAccountForm = ({+ initialValues,+ type = "drawer",+ open = true,+ onClose+}: CustomerBankAccountFormProps) => {+ const { t } = useLingui();+ const permissions = usePermissions();+ const fetcher = useFetcher<{}>();+ const navigate = useNavigate();+ const { customerId } = useParams();+ if (!customerId) throw new Error("customerId not found");++ // The country decides what the two identifier fields are called and how they+ // validate, so it is tracked in state rather than read once from initialValues.+ const [countryCode, setCountryCode] = useState(+ initialValues.countryCode ?? ""+ );+ const bankFields = getBankFieldConfig(countryCode);++ const ACCOUNT_LABELS: Record<AccountLabelKey, string> = {+ accountNumber: t`Account Number`,+ iban: t`IBAN`+ };+ const BANK_CODE_LABELS: Record<BankCodeLabelKey, string> = {+ aba: t`Routing Number (ABA)`,+ sortCode: t`Sort Code`,+ bsb: t`BSB`,+ ifsc: t`IFSC Code`,+ transit: t`Transit & Institution`,+ bankCode: t`Bank Code`+ };++ const accountLabel = ACCOUNT_LABELS[bankFields.accountLabel];+ const bankCodeLabel = bankFields.bankCodeLabel+ ? BANK_CODE_LABELS[bankFields.bankCodeLabel]+ : null;++ const isEditing = initialValues.id !== undefined;+ const isDisabled = isEditing+ ? !permissions.can("update", "accounting")+ : !permissions.can("create", "accounting");++ return (+ <ModalDrawerProvider type={type}>+ <ModalDrawer+ open={open}+ onOpenChange={(isOpen) => {+ if (!isOpen) {+ if (type === "modal") {+ onClose?.();+ } else {+ navigate(-1);+ }+ }+ }}+ >+ <ModalDrawerContent>+ <ValidatedForm+ validator={customerBankAccountValidator}+ method="post"+ action={+ isEditing+ ? path.to.customerBankAccount(customerId, initialValues.id!)+ : path.to.newCustomerBankAccount(customerId)+ }+ defaultValues={initialValues}+ fetcher={fetcher}+ className="flex flex-col h-full"+ >+ <ModalDrawerHeader>+ <ModalDrawerTitle>+ {isEditing ? (+ <Trans>Edit Bank Account</Trans>+ ) : (+ <Trans>New Bank Account</Trans>+ )}+ </ModalDrawerTitle>+ </ModalDrawerHeader>+ <ModalDrawerBody>+ <Hidden name="id" />+ <Hidden name="type" value={type} />+ <Hidden name="customerId" value={customerId} />+ <VStack spacing={4}>+ <Input name="name" label={t`Name`} isRequired />+ <Input+ name="accountHolderName"+ label={t`Account Holder`}+ helperText={t`Only if it differs from the customer name`}+ />+ <Input name="bankName" label={t`Bank Name`} isRequired />+ {/* Correspondent banks route international wires on this. */}+ <TextArea+ name="bankAddress"+ label={t`Bank Address`}+ isRequired+ />+ <Country+ name="countryCode"+ label={t`Country`}+ isRequired+ onChange={(value) => setCountryCode(value?.value ?? "")}+ />+ <Currency name="currencyCode" label={t`Currency`} />+ <Input name="accountNumber" label={accountLabel} isRequired />+ {bankCodeLabel && (+ <Input name="bankCode" label={bankCodeLabel} isRequired />+ )}+ <Input+ name="swiftBic"+ label={t`SWIFT / BIC`}+ isRequired={bankFields.requiresSwift}+ />+ <TextArea name="notes" label={t`Notes`} />+ <CustomFormFields table="customerBankAccount" />+ </VStack>+ </ModalDrawerBody>+ <ModalDrawerFooter>+ <HStack>+ <Submit isDisabled={isDisabled}>+ <Trans>Save</Trans>+ </Submit>+ <Button size="md" variant="solid" onClick={() => onClose?.()}>+ <Trans>Cancel</Trans>+ </Button>+ </HStack>+ </ModalDrawerFooter>+ </ValidatedForm>+ </ModalDrawerContent>+ </ModalDrawer>+ </ModalDrawerProvider>+ );+};++export default CustomerBankAccountForm;diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccounts.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccounts.tsxnew file mode 100644index 0000000000..4f43dc7e47--- /dev/null+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccounts.tsx@@ -0,0 +1,244 @@+import {+ Card,+ CardAction,+ CardContent,+ CardHeader,+ CardTitle,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ HStack,+ IconButton,+ useDisclosure+} from "@carbon/react";+import type { BankCodeLabelKey } from "@carbon/utils";+import { getBankFieldConfig, maskAccountNumber } from "@carbon/utils";+import { Trans, useLingui } from "@lingui/react/macro";+import { useCallback, useState } from "react";+import {+ LuEllipsisVertical,+ LuEye,+ LuEyeOff,+ LuPencil,+ LuTrash+} from "react-icons/lu";+import { Outlet, useNavigate, useParams } from "react-router";+import { New } from "~/components";+import { useCountries } from "~/components/Form/Country";+import { ConfirmDelete } from "~/components/Modals";+import { usePermissions } from "~/hooks";+import type { CustomerBankAccount } from "~/modules/sales/types";+import { path } from "~/utils/path";++type CustomerBankAccountsProps = {+ bankAccounts: CustomerBankAccount[];+};++const CustomerBankAccounts = ({ bankAccounts }: CustomerBankAccountsProps) => {+ const { t } = useLingui();+ const navigate = useNavigate();+ const { customerId } = useParams();+ if (!customerId) throw new Error("customerId not found");++ const permissions = usePermissions();+ const canEdit = permissions.can("create", "accounting");+ const isEmpty = !bankAccounts || bankAccounts.length === 0;++ const countries = useCountries();++ const deleteModal = useDisclosure();+ const [selected, setSelected] = useState<CustomerBankAccount>();++ // Presentation only. The loader returns the full account number, so this+ // deters shoulder-surfing and screenshots — it is not an access control.+ // Access is enforced by the accounting_view RLS policy on the table.+ const [revealed, setRevealed] = useState<Set<string>>(new Set());+ const toggleReveal = useCallback((id: string) => {+ setRevealed((prev) => {+ const next = new Set(prev);+ if (next.has(id)) {+ next.delete(id);+ } else {+ next.add(id);+ }+ return next;+ });+ }, []);++ // The routing identifier goes by a different name in each country, so the+ // row labels it the way the country writes it rather than showing a generic+ // "Bank Code" that tells the reader nothing.+ const BANK_CODE_LABELS: Record<BankCodeLabelKey, string> = {+ aba: t`ABA`,+ sortCode: t`Sort Code`,+ bsb: t`BSB`,+ ifsc: t`IFSC`,+ transit: t`Transit`,+ bankCode: t`Bank Code`+ };++ return (+ <>+ <Card>+ <HStack className="justify-between items-start">+ <CardHeader>+ <CardTitle>+ <Trans>Bank Accounts</Trans>+ </CardTitle>+ </CardHeader>+ <CardAction>{canEdit && <New to="new" />}</CardAction>+ </HStack>+ <CardContent>+ {isEmpty ? (+ <div className="my-8 text-center w-full">+ <p className="text-muted-foreground text-sm">+ <Trans>No bank accounts have been added yet.</Trans>+ </p>+ </div>+ ) : (+ <ul className="w-full divide-y divide-border">+ {bankAccounts.map((account) => {+ const identifier = account.accountNumber ?? "";+ const isRevealed = revealed.has(account.id);+ const config = getBankFieldConfig(account.countryCode);+ const bankCodeLabel = config.bankCodeLabel+ ? BANK_CODE_LABELS[config.bankCodeLabel]+ : null;+ const countryName =+ countries.find((c) => c.value === account.countryCode)+ ?.label ?? account.countryCode;++ return (+ <li+ key={account.id}+ className="flex items-start justify-between gap-4 py-4 first:pt-0 last:pb-0"+ >+ <div className="min-w-0 flex-1">+ <div className="flex items-baseline gap-2">+ <p className="truncate text-sm font-medium">+ {account.name}+ </p>+ {account.currencyCode && (+ <span className="shrink-0 font-mono text-sm text-muted-foreground">+ {account.currencyCode}+ </span>+ )}+ </div>++ {(account.bankName || countryName) && (+ <p className="truncate text-sm text-muted-foreground">+ {[account.bankName, countryName]+ .filter(Boolean)+ .join(" · ")}+ </p>+ )}++ <dl className="mt-2 flex flex-wrap items-center gap-x-4 gap-y-1">+ <div className="flex items-center gap-1.5">+ <dt className="text-sm font-medium">+ {config.accountLabel === "iban" ? (+ <Trans>IBAN</Trans>+ ) : (+ <Trans>Account</Trans>+ )}+ </dt>+ <dd className="flex items-center gap-1 font-mono text-sm tabular-nums text-muted-foreground">+ {isRevealed+ ? identifier+ : maskAccountNumber(identifier)}+ {identifier && (+ <IconButton+ aria-label={+ isRevealed+ ? t`Hide account number`+ : t`Reveal account number`+ }+ icon={isRevealed ? <LuEyeOff /> : <LuEye />}+ variant="ghost"+ size="sm"+ onClick={() => toggleReveal(account.id)}+ />+ )}+ </dd>+ </div>++ {bankCodeLabel && account.bankCode && (+ <div className="flex items-center gap-1.5">+ <dt className="text-sm font-medium">+ {bankCodeLabel}+ </dt>+ <dd className="font-mono text-sm tabular-nums text-muted-foreground">+ {account.bankCode}+ </dd>+ </div>+ )}++ {account.swiftBic && (+ <div className="flex items-center gap-1.5">+ <dt className="text-sm font-medium">+ <Trans>SWIFT</Trans>+ </dt>+ <dd className="font-mono text-sm text-muted-foreground">+ {account.swiftBic}+ </dd>+ </div>+ )}+ </dl>+ </div>++ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton+ aria-label={t`More`}+ icon={<LuEllipsisVertical />}+ variant="secondary"+ className="shrink-0"+ />+ </DropdownMenuTrigger>+ <DropdownMenuContent>+ <DropdownMenuItem+ disabled={!permissions.can("update", "accounting")}+ onClick={() => navigate(account.id)}+ >+ <LuPencil className="mr-2" />+ <Trans>Edit</Trans>+ </DropdownMenuItem>+ <DropdownMenuItem+ destructive+ disabled={!permissions.can("delete", "accounting")}+ onClick={() => {+ setSelected(account);+ deleteModal.onOpen();+ }}+ >+ <LuTrash className="mr-2" />+ <Trans>Delete</Trans>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </li>+ );+ })}+ </ul>+ )}+ </CardContent>+ </Card>++ {selected?.id && (+ <ConfirmDelete+ action={path.to.deleteCustomerBankAccount(customerId, selected.id)}+ name={selected.name}+ text={t`Are you sure you want to delete this bank account?`}+ isOpen={deleteModal.isOpen}+ onCancel={deleteModal.onClose}+ onSubmit={deleteModal.onClose}+ />+ )}++ <Outlet />+ </>+ );+};++export default CustomerBankAccounts;diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsxindex 698ced93da..2abead9252 100644--- a/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx@@ -3,6 +3,8 @@ import {LuBuilding,LuContact,LuCreditCard,+ LuFiles,+ LuLandmark,LuMapPin,LuReceipt,LuShieldAlert,@@ -59,6 +61,19 @@ export function useCustomerSidebar({ contacts, locations }: Props) {icon: <LuCreditCard />,shortcut: DETAIL_TAB_SHORTCUTS.payment},+ {+ name: t`Bank Accounts`,+ to: path.to.customerBankAccounts(customerId),+ role: ["employee"],+ permission: { action: "view" as const, module: "accounting" },+ icon: <LuLandmark />+ },+ {+ name: t`Documents`,+ to: path.to.customerDocuments(customerId),+ role: ["employee"],+ icon: <LuFiles />+ },{name: t`Tax`,to: path.to.customerTax(customerId),@@ -109,9 +124,24 @@ export function useCustomerSidebar({ contacts, locations }: Props) {// icon: <LuLandmark />,// shortcut: DETAIL_TAB_SHORTCUTS.accounting,// },- ].filter(- (item) =>+ ].filter((item) => {+ // `role` gates on WHO the user is (employee / supplier / customer);+ // `permission` gates on WHAT they may do (a <module>_<action> grant).+ // They are separate checks — permissions.is() cannot express a module permission.+ const roleOk =item.role === undefined ||- item.role.some((role) => permissions.is(role as Role))- );+ item.role.some((role) => permissions.is(role as Role));+ const permission = (+ item as {+ permission?: {+ action: "view" | "create" | "update" | "delete";+ module: string;+ };+ }+ ).permission;+ const permissionOk =+ permission === undefined ||+ permissions.can(permission.action, permission.module);+ return roleOk && permissionOk;+ });}diff --git a/apps/erp/app/modules/sales/ui/Customer/index.ts b/apps/erp/app/modules/sales/ui/Customer/index.tsindex 1730fc771b..9174f22784 100644--- a/apps/erp/app/modules/sales/ui/Customer/index.ts+++ b/apps/erp/app/modules/sales/ui/Customer/index.ts@@ -1,3 +1,5 @@+import CustomerBankAccountForm from "./CustomerBankAccountForm";+import CustomerBankAccounts from "./CustomerBankAccounts";import CustomerContactForm from "./CustomerContactForm";import CustomerContacts from "./CustomerContacts";import CustomerForm from "./CustomerForm";@@ -10,6 +12,8 @@ import CustomerSidebar from "./CustomerSidebar";import CustomerTaxForm from "./CustomerTaxForm";export {+ CustomerBankAccountForm,+ CustomerBankAccounts,CustomerContactForm,CustomerContacts,CustomerForm,diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.jsonindex c09487a31e..7cf2e30462 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json@@ -1,5 +1,5 @@{- "totalTools": 1567,+ "totalTools": 1573,"modules": 15,"tools": [{"name":"account_deleteUserAttributeValue","classification":"DESTRUCTIVE","paramCount":2,"schema":"0d38e12233b4","response":"bcde375ebd4c","injectAuth":"companyId","permission":"none","paginates":false},@@ -149,19 +149,19 @@{"name":"documents_deleteDocument","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"documents:delete","paginates":false},{"name":"documents_deleteDocumentFavorite","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"documents:delete","paginates":false},{"name":"documents_deleteDocumentLabel","classification":"DESTRUCTIVE","paramCount":2,"schema":"5c453c6c156d","response":"bcde375ebd4c","injectAuth":"companyId","permission":"documents:delete","paginates":false},- {"name":"documents_getDocument","classification":"READ","paramCount":1,"schema":"e7617eb689c8","response":"d414b248d2e5","injectAuth":"companyId","permission":"documents:view","paginates":false},+ {"name":"documents_getDocument","classification":"READ","paramCount":1,"schema":"e7617eb689c8","response":"88539143f954","injectAuth":"companyId","permission":"documents:view","paginates":false},{"name":"documents_getDocumentExtensions","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"b24f77557f86","injectAuth":"companyId","permission":"documents:view","paginates":false},{"name":"documents_getDocumentLabels","classification":"READ","paramCount":0,"schema":"efddc7bd8bbc","response":"7e2eeb0066ab","injectAuth":"companyId","permission":"documents:view","paginates":false},- {"name":"documents_getDocuments","classification":"READ","paramCount":6,"schema":"848cac7bea79","response":"1531ae9cb61a","injectAuth":"companyId","permission":"documents:view","paginates":true},+ {"name":"documents_getDocuments","classification":"READ","paramCount":6,"schema":"848cac7bea79","response":"806ff23e9acc","injectAuth":"companyId","permission":"documents:view","paginates":true},{"name":"documents_insertDocumentExtraction","classification":"WRITE","paramCount":4,"schema":"790f2b883984","response":"d181256b2684","injectAuth":"companyId+createdBy+updatedBy","permission":"documents:create","paginates":false},{"name":"documents_insertDocumentFavorite","classification":"WRITE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId+createdBy+updatedBy","permission":"documents:create","paginates":false},{"name":"documents_insertDocumentLabel","classification":"WRITE","paramCount":2,"schema":"5c453c6c156d","response":"bcde375ebd4c","injectAuth":"companyId+createdBy+updatedBy","permission":"documents:create","paginates":false},- {"name":"documents_insertUploadedDocument","classification":"WRITE","paramCount":5,"schema":"cbdda03525e5","response":"e44071b67bea","injectAuth":"companyId+createdBy+updatedBy","permission":"documents:create","paginates":false},+ {"name":"documents_insertUploadedDocument","classification":"WRITE","paramCount":5,"schema":"d82e74374bd6","response":"697b262639cd","injectAuth":"companyId+createdBy+updatedBy","permission":"documents:create","paginates":false},{"name":"documents_moveDocumentToTrash","classification":"WRITE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"documents:update","paginates":false},{"name":"documents_restoreDocument","classification":"WRITE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"documents:update","paginates":false},{"name":"documents_updateDocumentFavorite","classification":"DESTRUCTIVE","paramCount":2,"schema":"85769b943e30","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"documents:update","paginates":false},{"name":"documents_updateDocumentLabels","classification":"DESTRUCTIVE","paramCount":2,"schema":"0adc09fa2bb3","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"documents:update","paginates":false},- {"name":"documents_upsertDocument","classification":"WRITE","paramCount":11,"schema":"80aaa4f65fcb","response":"e44071b67bea","injectAuth":"companyId+createdBy+updatedBy","permission":"documents:create+update","paginates":false},+ {"name":"documents_upsertDocument","classification":"WRITE","paramCount":11,"schema":"c26ae983ace8","response":"697b262639cd","injectAuth":"companyId+createdBy+updatedBy","permission":"documents:create+update","paginates":false},{"name":"inventory_cancelOpenPickingListsForJob","classification":"WRITE","paramCount":1,"schema":"4999bd4be598","response":"844f8eedb019","injectAuth":"companyId","permission":"inventory:update","paginates":false},{"name":"inventory_correctStockMovement","classification":"WRITE","paramCount":3,"schema":"fb389b0474f2","response":"3797626bd17e","injectAuth":"companyId","permission":"inventory:update","paginates":false},{"name":"inventory_createInventoryReconciliationJournal","classification":"WRITE","paramCount":1,"schema":"00e9099a963a","response":"a9f23ceb9dc1","injectAuth":"companyId+createdBy+updatedBy","permission":"inventory:create","paginates":false},@@ -205,7 +205,7 @@{"name":"inventory_getKanban","classification":"READ","paramCount":1,"schema":"369f807bc840","response":"c5aa7a081ed4","injectAuth":"companyId","permission":"inventory:view","paginates":false},{"name":"inventory_getKanbans","classification":"READ","paramCount":2,"schema":"68cb4a73d5a9","response":"fa96e94d8dda","injectAuth":"companyId","permission":"inventory:view","paginates":true},{"name":"inventory_getPickingList","classification":"READ","paramCount":1,"schema":"0a4ec3e7319b","response":"227255936b96","injectAuth":"companyId","permission":"inventory:view","paginates":false},- {"name":"inventory_getPickingListAvailability","classification":"READ","paramCount":1,"schema":"0a4ec3e7319b","response":"dccc40b61694","injectAuth":"companyId","permission":"inventory:view","paginates":false},+ {"name":"inventory_getPickingListAvailability","classification":"READ","paramCount":1,"schema":"0a4ec3e7319b","response":"eabbf12414ff","injectAuth":"companyId","permission":"inventory:view","paginates":false},{"name":"inventory_getPickingListLine","classification":"READ","paramCount":1,"schema":"063a6777d378","response":"b51ad23d436f","injectAuth":"companyId","permission":"inventory:view","paginates":false},{"name":"inventory_getPickingListLines","classification":"READ","paramCount":1,"schema":"0a4ec3e7319b","response":"07d244c0f017","injectAuth":"companyId","permission":"inventory:view","paginates":false},{"name":"inventory_getPickingListLineTrackedEntities","classification":"READ","paramCount":1,"schema":"063a6777d378","response":"51dd622ce168","injectAuth":"companyId","permission":"inventory:view","paginates":false},@@ -298,7 +298,7 @@{"name":"inventory_upsertWarehouseTransfer","classification":"WRITE","paramCount":10,"schema":"8af29a9b1929","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"inventory:create+update","paginates":false},{"name":"inventory_upsertWarehouseTransferLine","classification":"WRITE","paramCount":1,"schema":"93538fae689b","response":"237082879d41","injectAuth":"companyId+createdBy+updatedBy","permission":"inventory:create+update","paginates":false},{"name":"invoicing_applyCreditsToInvoices","classification":"DESTRUCTIVE","paramCount":4,"schema":"404db2e47d09","response":"none","injectAuth":"companyId+createdBy","permission":"invoicing:update","paginates":false},- {"name":"invoicing_computeEarlyPaymentDiscounts","classification":"READ","paramCount":3,"schema":"0069677fb034","response":"dccc40b61694","injectAuth":"companyId","permission":"invoicing:view","paginates":false},+ {"name":"invoicing_computeEarlyPaymentDiscounts","classification":"READ","paramCount":3,"schema":"0069677fb034","response":"eabbf12414ff","injectAuth":"companyId","permission":"invoicing:view","paginates":false},{"name":"invoicing_computeInvoiceDateDue","classification":"READ","paramCount":2,"schema":"c07433aded5b","response":"174e29b899b9","injectAuth":"companyId","permission":"invoicing:view","paginates":false},{"name":"invoicing_createPurchaseInvoiceFromPurchaseOrder","classification":"WRITE","paramCount":1,"schema":"28cffcd9d6e8","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"invoicing:create","paginates":false},{"name":"invoicing_createSalesInvoiceFromSalesOrder","classification":"WRITE","paramCount":1,"schema":"d160a49d6787","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"invoicing:create","paginates":false},@@ -401,7 +401,7 @@{"name":"items_findChangeNoticesForItem","classification":"READ","paramCount":2,"schema":"10c8230a9f49","response":"e0196d4b0041","injectAuth":"companyId","permission":"parts:view","paginates":false},{"name":"items_findOtherOpenChangeNoticesForItem","classification":"READ","paramCount":2,"schema":"8a1da983320d","response":"e0196d4b0041","injectAuth":"companyId","permission":"parts:view","paginates":false},{"name":"items_getBomHasShelfLifeManagedInput","classification":"READ","paramCount":1,"schema":"623ca47a6c74","response":"7cb541e84f22","injectAuth":"companyId","permission":"parts:view","paginates":false},- {"name":"items_getBomItemAttributes","classification":"READ","paramCount":1,"schema":"c4ca22fd1816","response":"dccc40b61694","injectAuth":"companyId","permission":"parts:view","paginates":false},+ {"name":"items_getBomItemAttributes","classification":"READ","paramCount":1,"schema":"c4ca22fd1816","response":"eabbf12414ff","injectAuth":"companyId","permission":"parts:view","paginates":false},{"name":"items_getChangeNotice","classification":"READ","paramCount":1,"schema":"29578070edb2","response":"09c0b464284c","injectAuth":"companyId","permission":"parts:view","paginates":false},{"name":"items_getChangeNoticeActions","classification":"READ","paramCount":1,"schema":"29578070edb2","response":"949f86b5cda3","injectAuth":"companyId","permission":"parts:view","paginates":false},{"name":"items_getChangeNoticeAffectedItems","classification":"READ","paramCount":1,"schema":"29578070edb2","response":"5483e69d7515","injectAuth":"companyId","permission":"parts:view","paginates":false},@@ -780,13 +780,13 @@{"name":"production_insertJob","classification":"WRITE","paramCount":2,"schema":"fea224e085b1","response":"ad63dfd9d877","injectAuth":"companyId+createdBy+updatedBy","permission":"production:create","paginates":false},{"name":"production_invalidateAssemblyModelCache","classification":"DESTRUCTIVE","paramCount":1,"schema":"277f7d872d8c","response":"bcde375ebd4c","injectAuth":"companyId","permission":"production:update","paginates":false},{"name":"production_issueMaterial","classification":"WRITE","paramCount":7,"schema":"0408bd8c9bde","response":"none","injectAuth":"companyId","permission":"production:update","paginates":false},- {"name":"production_maxToolQuantityByItem","classification":"WRITE","paramCount":1,"schema":"8b9e90037b9a","response":"dccc40b61694","injectAuth":"companyId","permission":"production:update","paginates":false},+ {"name":"production_maxToolQuantityByItem","classification":"WRITE","paramCount":1,"schema":"8b9e90037b9a","response":"eabbf12414ff","injectAuth":"companyId","permission":"production:update","paginates":false},{"name":"production_movePeopleAssignment","classification":"DESTRUCTIVE","paramCount":2,"schema":"a726aa587ccc","response":"fe5e1dc03da5","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_movePeopleWeek","classification":"DESTRUCTIVE","paramCount":5,"schema":"fec8ebf1add4","response":"3badaa1686e8","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_notifyScheduleInputsChanged","classification":"WRITE","paramCount":3,"schema":"172bee52ed70","response":"none","injectAuth":"companyId","permission":"production:update","paginates":false},- {"name":"production_planAssemblyStepMarkerRemap","classification":"WRITE","paramCount":2,"schema":"e8a18fd41775","response":"dccc40b61694","injectAuth":"companyId","permission":"production:update","paginates":false},- {"name":"production_planAssemblyStepMarkerSync","classification":"WRITE","paramCount":2,"schema":"f32958f213ae","response":"389763929620","injectAuth":"companyId","permission":"production:update","paginates":false},- {"name":"production_planOrphanStepAdoption","classification":"WRITE","paramCount":3,"schema":"aae2658d9922","response":"dccc40b61694","injectAuth":"companyId","permission":"production:update","paginates":false},+ {"name":"production_planAssemblyStepMarkerRemap","classification":"WRITE","paramCount":2,"schema":"e8a18fd41775","response":"eabbf12414ff","injectAuth":"companyId","permission":"production:update","paginates":false},+ {"name":"production_planAssemblyStepMarkerSync","classification":"WRITE","paramCount":2,"schema":"f32958f213ae","response":"e76f5b90d591","injectAuth":"companyId","permission":"production:update","paginates":false},+ {"name":"production_planOrphanStepAdoption","classification":"WRITE","paramCount":3,"schema":"aae2658d9922","response":"eabbf12414ff","injectAuth":"companyId","permission":"production:update","paginates":false},{"name":"production_pullJobMaterialMakeMethod","classification":"WRITE","paramCount":2,"schema":"e27f48bbab4c","response":"bcde375ebd4c","injectAuth":"companyId","permission":"production:update","paginates":false},{"name":"production_reassignAssemblyStepComponents","classification":"DESTRUCTIVE","paramCount":4,"schema":"99f3d689165d","response":"none","injectAuth":"companyId","permission":"production:update","paginates":false},{"name":"production_recalculateJobMakeMethodRequirements","classification":"WRITE","paramCount":1,"schema":"3797626bd17e","response":"none","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},@@ -881,6 +881,7 @@{"name":"purchasing_deletePurchasingRFQ","classification":"DESTRUCTIVE","paramCount":1,"schema":"4e16cef99961","response":"bcde375ebd4c","injectAuth":"companyId","permission":"purchasing:delete","paginates":false},{"name":"purchasing_deletePurchasingRFQLine","classification":"DESTRUCTIVE","paramCount":1,"schema":"943916e70d0b","response":"bcde375ebd4c","injectAuth":"companyId","permission":"purchasing:delete","paginates":false},{"name":"purchasing_deleteSupplier","classification":"DESTRUCTIVE","paramCount":1,"schema":"67043a31b1b5","response":"bcde375ebd4c","injectAuth":"companyId","permission":"purchasing:delete","paginates":false},+ {"name":"purchasing_deleteSupplierBankAccount","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"purchasing:delete","paginates":false},{"name":"purchasing_deleteSupplierContact","classification":"DESTRUCTIVE","paramCount":2,"schema":"041a4bd97ec8","response":"700b93baa3ef","injectAuth":"companyId","permission":"purchasing:delete","paginates":false},{"name":"purchasing_deleteSupplierLocation","classification":"DESTRUCTIVE","paramCount":2,"schema":"dad5decd6951","response":"bcde375ebd4c","injectAuth":"companyId","permission":"purchasing:delete","paginates":false},{"name":"purchasing_deleteSupplierProcess","classification":"DESTRUCTIVE","paramCount":1,"schema":"fe73a000b6f7","response":"bcde375ebd4c","injectAuth":"companyId","permission":"purchasing:delete","paginates":false},@@ -926,6 +927,7 @@{"name":"purchasing_getReturnableLinesForSupplier","classification":"READ","paramCount":2,"schema":"7a1204db0d90","response":"24dd6c0d1c55","injectAuth":"companyId","permission":"purchasing:view","paginates":false},{"name":"purchasing_getSiblingQuotesForQuote","classification":"READ","paramCount":1,"schema":"5db39f9abf41","response":"cb143b1fe761","injectAuth":"companyId","permission":"purchasing:view","paginates":false},{"name":"purchasing_getSupplier","classification":"READ","paramCount":1,"schema":"67043a31b1b5","response":"10c7209cc38a","injectAuth":"companyId","permission":"purchasing:view","paginates":false},+ {"name":"purchasing_getSupplierBankAccounts","classification":"READ","paramCount":1,"schema":"67043a31b1b5","response":"f2b09b60b722","injectAuth":"companyId","permission":"purchasing:view","paginates":false},{"name":"purchasing_getSupplierContact","classification":"READ","paramCount":1,"schema":"bc2c630a873e","response":"6d2aa722b1ce","injectAuth":"companyId","permission":"purchasing:view","paginates":false},{"name":"purchasing_getSupplierContacts","classification":"READ","paramCount":1,"schema":"67043a31b1b5","response":"e28ccbd2c417","injectAuth":"companyId","permission":"purchasing:view","paginates":false},{"name":"purchasing_getSupplierInteraction","classification":"READ","paramCount":1,"schema":"5e54451f6705","response":"a2d087005b56","injectAuth":"companyId","permission":"purchasing:view","paginates":false},@@ -998,6 +1000,7 @@{"name":"purchasing_upsertPurchasingRFQLine","classification":"WRITE","paramCount":1,"schema":"60751ccac2a4","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"purchasing:create+update","paginates":false},{"name":"purchasing_upsertPurchasingRFQSuppliers","classification":"DESTRUCTIVE","paramCount":2,"schema":"fa459fc25bca","response":"5c9ba5bee3f1","injectAuth":"companyId+createdBy+updatedBy","permission":"purchasing:create+update","paginates":false},{"name":"purchasing_upsertSupplier","classification":"WRITE","paramCount":10,"schema":"9bd3cb688e5f","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"purchasing:create+update","paginates":false},+ {"name":"purchasing_upsertSupplierBankAccount","classification":"WRITE","paramCount":13,"schema":"e650c0c7754d","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"purchasing:create+update","paginates":false},{"name":"purchasing_upsertSupplierProcess","classification":"WRITE","paramCount":6,"schema":"1367b80281cb","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"purchasing:create+update","paginates":false},{"name":"purchasing_upsertSupplierQuote","classification":"WRITE","paramCount":15,"schema":"afff6c561cd5","response":"4ed5e2358875","injectAuth":"companyId+createdBy+updatedBy","permission":"purchasing:create+update","paginates":false},{"name":"purchasing_upsertSupplierQuoteLine","classification":"WRITE","paramCount":14,"schema":"903d170d2231","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"purchasing:create+update","paginates":false},@@ -1199,6 +1202,7 @@{"name":"sales_createReplacementSalesOrder","classification":"WRITE","paramCount":1,"schema":"f41daa12b05a","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create","paginates":false},{"name":"sales_createSalesReturnOrderCredit","classification":"WRITE","paramCount":3,"schema":"b73e7908d9de","response":"00404e686415","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create","paginates":false},{"name":"sales_deleteCustomer","classification":"DESTRUCTIVE","paramCount":1,"schema":"09e48c79fb16","response":"bcde375ebd4c","injectAuth":"companyId","permission":"sales:delete","paginates":false},+ {"name":"sales_deleteCustomerBankAccount","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"sales:delete","paginates":false},{"name":"sales_deleteCustomerContact","classification":"DESTRUCTIVE","paramCount":2,"schema":"3fd22b0165d4","response":"700b93baa3ef","injectAuth":"companyId","permission":"sales:delete","paginates":false},{"name":"sales_deleteCustomerItemPriceOverride","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"sales:delete","paginates":false},{"name":"sales_deleteCustomerLocation","classification":"DESTRUCTIVE","paramCount":2,"schema":"1786ebad8e35","response":"bcde375ebd4c","injectAuth":"companyId","permission":"sales:delete","paginates":false},@@ -1228,6 +1232,7 @@{"name":"sales_getConfigurationParametersByQuoteLineId","classification":"READ","paramCount":1,"schema":"e0050938a2c8","response":"c36ad21b447b","injectAuth":"companyId","permission":"sales:view","paginates":false},{"name":"sales_getCreditableQuantities","classification":"READ","paramCount":1,"schema":"f41daa12b05a","response":"da2f02c5bdac","injectAuth":"companyId","permission":"sales:view","paginates":false},{"name":"sales_getCustomer","classification":"READ","paramCount":1,"schema":"09e48c79fb16","response":"8642159293c2","injectAuth":"companyId","permission":"sales:view","paginates":false},+ {"name":"sales_getCustomerBankAccounts","classification":"READ","paramCount":1,"schema":"09e48c79fb16","response":"d8173b9c2e54","injectAuth":"companyId","permission":"sales:view","paginates":false},{"name":"sales_getCustomerContact","classification":"READ","paramCount":1,"schema":"ad038ec2602b","response":"d16ba475ee9a","injectAuth":"companyId","permission":"sales:view","paginates":false},{"name":"sales_getCustomerContacts","classification":"READ","paramCount":1,"schema":"09e48c79fb16","response":"acc29dbe9746","injectAuth":"companyId","permission":"sales:view","paginates":false},{"name":"sales_getCustomerItemPriceOverride","classification":"READ","paramCount":4,"schema":"8e0420ef7552","response":"2dfcd06e591d","injectAuth":"companyId","permission":"sales:view","paginates":false},@@ -1363,6 +1368,7 @@{"name":"sales_updateSalesRFQLineOrder","classification":"WRITE","paramCount":1,"schema":"d19d08f2d129","response":"none","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},{"name":"sales_updateSalesRFQStatus","classification":"WRITE","paramCount":4,"schema":"987b1b266fe8","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy","permission":"sales:update","paginates":false},{"name":"sales_upsertCustomer","classification":"WRITE","paramCount":11,"schema":"5f03a003004d","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},+ {"name":"sales_upsertCustomerBankAccount","classification":"WRITE","paramCount":13,"schema":"2f6b498df5e9","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},{"name":"sales_upsertCustomerItemPriceOverride","classification":"DESTRUCTIVE","paramCount":10,"schema":"6f67d6ad287a","response":"3797626bd17e","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},{"name":"sales_upsertCustomerStatus","classification":"WRITE","paramCount":3,"schema":"f47f137a8607","response":"8394fbabd845","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},{"name":"sales_upsertCustomerType","classification":"WRITE","paramCount":3,"schema":"f47f137a8607","response":"8394fbabd845","injectAuth":"companyId+createdBy+updatedBy","permission":"sales:create+update","paginates":false},diff --git a/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.$id.tsx b/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.$id.tsxnew file mode 100644index 0000000000..ee71028d63--- /dev/null+++ b/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.$id.tsx@@ -0,0 +1,99 @@+import { assertIsPost, error } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { validationError, validator } from "@carbon/form";+import type { ActionFunctionArgs } from "react-router";+import { redirect, useNavigate, useParams } from "react-router";+import { useRouteData } from "~/hooks";+import type { CustomerBankAccount } from "~/modules/sales";+import {+ customerBankAccountValidator,+ upsertCustomerBankAccount+} from "~/modules/sales";+import CustomerBankAccountForm from "~/modules/sales/ui/Customer/CustomerBankAccountForm";+import { getDatabaseClient } from "~/services/database.server";+import { setCustomFields } from "~/utils/form";+import { path } from "~/utils/path";++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {+ update: "accounting"+ });++ const { customerId } = params;+ if (!customerId) throw new Error("Could not find customerId");++ const formData = await request.formData();++ const validation = await validator(customerBankAccountValidator).validate(+ formData+ );++ if (validation.error) {+ return validationError(validation.error);+ }++ const { id, ...rest } = validation.data;+ if (!id) throw new Error("Could not find id");++ try {+ // customerId and companyId come from the URL and the session, never from the+ // form body — the service re-asserts both in its WHERE clause so a forged+ // field cannot move this account to another customer.+ await upsertCustomerBankAccount(getDatabaseClient(), {+ ...rest,+ id,+ customerId,+ companyId,+ updatedBy: userId,+ customFields: setCustomFields(formData)+ });+ } catch (err) {+ throw redirect(+ path.to.customerBankAccounts(customerId),+ await flash(request, error(err, "Failed to update customer bank account"))+ );+ }++ return redirect(path.to.customerBankAccounts(customerId));+}++export default function EditCustomerBankAccountRoute() {+ const navigate = useNavigate();+ const { customerId, id } = useParams();+ if (!customerId) throw new Error("Could not find customerId");+ if (!id) throw new Error("Could not find id");++ const routeData = useRouteData<{ bankAccounts: CustomerBankAccount[] }>(+ path.to.customerBankAccounts(customerId)+ );++ const bankAccount = routeData?.bankAccounts.find(+ (account) => account.id === id+ );+ if (!bankAccount) throw new Error("Could not find bank account");++ const initialValues = {+ id: bankAccount.id,+ customerId: bankAccount.customerId,+ name: bankAccount.name ?? "",+ accountHolderName: bankAccount.accountHolderName ?? "",+ bankName: bankAccount.bankName ?? "",+ bankAddress: bankAccount.bankAddress ?? "",+ countryCode: bankAccount.countryCode ?? "",+ currencyCode: bankAccount.currencyCode ?? "",+ accountNumber: bankAccount.accountNumber ?? "",+ bankCode: bankAccount.bankCode ?? "",+ swiftBic: bankAccount.swiftBic ?? "",+ notes: bankAccount.notes ?? ""+ };++ return (+ <CustomerBankAccountForm+ key={initialValues.id}+ initialValues={initialValues}+ onClose={() => navigate(path.to.customerBankAccounts(customerId))}+ />+ );+}diff --git a/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.delete.$id.tsx b/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.delete.$id.tsxnew file mode 100644index 0000000000..8c3e81fac0--- /dev/null+++ b/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.delete.$id.tsx@@ -0,0 +1,63 @@+import { assertIsPost, error } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { useLingui } from "@lingui/react/macro";+import type { ActionFunctionArgs } from "react-router";+import { redirect, useNavigate, useParams } from "react-router";+import { ConfirmDelete } from "~/components/Modals";+import { useRouteData } from "~/hooks";+import type { CustomerBankAccount } from "~/modules/sales";+import { deleteCustomerBankAccount } from "~/modules/sales";+import { path } from "~/utils/path";++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { client } = await requirePermissions(request, {+ delete: "accounting"+ });++ const { customerId, id } = params;+ if (!customerId) throw new Error("Could not find customerId");+ if (!id) throw new Error("Could not find id");++ const remove = await deleteCustomerBankAccount(client, id);++ if (remove.error) {+ throw redirect(+ path.to.customerBankAccounts(customerId),+ await flash(+ request,+ error(remove.error, "Failed to delete customer bank account")+ )+ );+ }++ return redirect(path.to.customerBankAccounts(customerId));+}++export default function DeleteCustomerBankAccountRoute() {+ const navigate = useNavigate();+ const { t } = useLingui();+ const { customerId, id } = useParams();+ if (!customerId) throw new Error("Could not find customerId");+ if (!id) throw new Error("Could not find id");++ const routeData = useRouteData<{ bankAccounts: CustomerBankAccount[] }>(+ path.to.customerBankAccounts(customerId)+ );++ const bankAccount = routeData?.bankAccounts.find(+ (account) => account.id === id+ );+ if (!bankAccount) throw new Error("Could not find bank account");++ return (+ <ConfirmDelete+ action={path.to.deleteCustomerBankAccount(customerId, id)}+ isOpen+ name={bankAccount.name}+ text={t`Are you sure you want to permanently delete this bank account?`}+ onCancel={() => navigate(-1)}+ />+ );+}diff --git a/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.new.tsx b/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.new.tsxnew file mode 100644index 0000000000..5aba40cf7c--- /dev/null+++ b/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.new.tsx@@ -0,0 +1,98 @@+import { assertIsPost, error, notFound, success } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { validationError, validator } from "@carbon/form";+import type { ActionFunctionArgs } from "react-router";+import { data, redirect, useNavigate, useParams } from "react-router";+import { useUser } from "~/hooks";+import {+ customerBankAccountValidator,+ upsertCustomerBankAccount+} from "~/modules/sales";+import CustomerBankAccountForm from "~/modules/sales/ui/Customer/CustomerBankAccountForm";+import { getDatabaseClient } from "~/services/database.server";+import { setCustomFields } from "~/utils/form";+import { path } from "~/utils/path";++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {+ create: "accounting"+ });++ const formData = await request.formData();+ const modal = formData.get("type") === "modal";++ const { customerId } = params;+ if (!customerId) throw notFound("customerId not found");++ const validation = await validator(customerBankAccountValidator).validate(+ formData+ );++ if (validation.error) {+ return validationError(validation.error);+ }++ // biome-ignore lint/correctness/noUnusedVariables: id is absent on create+ const { id, ...rest } = validation.data;++ let created: { id: string };+ try {+ // customerId and companyId come from the URL and the session, never from the+ // form body.+ created = await upsertCustomerBankAccount(getDatabaseClient(), {+ ...rest,+ customerId,+ companyId,+ createdBy: userId,+ customFields: setCustomFields(formData)+ });+ } catch (err) {+ if (modal) {+ return data(+ { error: "Failed to create customer bank account" },+ { status: 500 }+ );+ }+ throw redirect(+ path.to.customerBankAccounts(customerId),+ await flash(request, error(err, "Failed to create customer bank account"))+ );+ }++ return modal+ ? data(created, { status: 201 })+ : redirect(+ path.to.customerBankAccounts(customerId),+ await flash(request, success("Customer bank account created"))+ );+}++export default function NewCustomerBankAccountRoute() {+ const navigate = useNavigate();+ const { company } = useUser();+ const { customerId } = useParams();+ if (!customerId) throw new Error("customerId not found");++ const initialValues = {+ customerId,+ name: "",+ accountHolderName: "",+ bankName: "",+ bankAddress: "",+ countryCode: company?.countryCode ?? "",+ currencyCode: company?.baseCurrencyCode ?? "",+ accountNumber: "",+ bankCode: "",+ swiftBic: "",+ notes: ""+ };++ return (+ <CustomerBankAccountForm+ initialValues={initialValues}+ onClose={() => navigate(path.to.customerBankAccounts(customerId))}+ />+ );+}diff --git a/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.tsx b/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.tsxnew file mode 100644index 0000000000..c3cf735849--- /dev/null+++ b/apps/erp/app/routes/x+/customer+/$customerId.bank-accounts.tsx@@ -0,0 +1,38 @@+import { error } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import type { LoaderFunctionArgs } from "react-router";+import { redirect, useLoaderData } from "react-router";+import { getCustomerBankAccounts } from "~/modules/sales";+import CustomerBankAccounts from "~/modules/sales/ui/Customer/CustomerBankAccounts";+import { path } from "~/utils/path";++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client } = await requirePermissions(request, {+ view: "accounting"+ });++ const { customerId } = params;+ if (!customerId) throw new Error("Could not find customerId");++ const bankAccounts = await getCustomerBankAccounts(client, customerId);+ if (bankAccounts.error) {+ throw redirect(+ path.to.customer(customerId),+ await flash(+ request,+ error(bankAccounts.error, "Failed to fetch customer bank accounts")+ )+ );+ }++ return {+ bankAccounts: bankAccounts.data ?? []+ };+}++export default function CustomerBankAccountsRoute() {+ const { bankAccounts } = useLoaderData<typeof loader>();++ return <CustomerBankAccounts bankAccounts={bankAccounts} />;+}diff --git a/apps/erp/app/routes/x+/customer+/$customerId.documents.tsx b/apps/erp/app/routes/x+/customer+/$customerId.documents.tsxnew file mode 100644index 0000000000..fe8ab7d7bd--- /dev/null+++ b/apps/erp/app/routes/x+/customer+/$customerId.documents.tsx@@ -0,0 +1,36 @@+import { requirePermissions } from "@carbon/auth/auth.server";+import type { LoaderFunctionArgs } from "react-router";+import { useLoaderData } from "react-router";+import RecordDocuments from "~/components/RecordDocuments";++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client, companyId } = await requirePermissions(request, {+ view: "sales"+ });++ const { customerId } = params;+ if (!customerId) throw new Error("Missing customerId");++ const result = await client.storage+ .from("private")+ .list(`${companyId}/customer/${customerId}`);++ return {+ customerId,+ files: result.data ?? []+ };+}++export default function CustomerDocumentsRoute() {+ const { customerId, files } = useLoaderData<typeof loader>();++ return (+ <RecordDocuments+ files={files}+ id={customerId}+ bucketPrefix="customer"+ sourceDocument="Customer"+ module="sales"+ />+ );+}diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.$id.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.$id.tsxnew file mode 100644index 0000000000..b0ca697a81--- /dev/null+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.$id.tsx@@ -0,0 +1,99 @@+import { assertIsPost, error } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { validationError, validator } from "@carbon/form";+import type { ActionFunctionArgs } from "react-router";+import { redirect, useNavigate, useParams } from "react-router";+import { useRouteData } from "~/hooks";+import type { SupplierBankAccount } from "~/modules/purchasing";+import {+ supplierBankAccountValidator,+ upsertSupplierBankAccount+} from "~/modules/purchasing";+import SupplierBankAccountForm from "~/modules/purchasing/ui/Supplier/SupplierBankAccountForm";+import { getDatabaseClient } from "~/services/database.server";+import { setCustomFields } from "~/utils/form";+import { path } from "~/utils/path";++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {+ update: "accounting"+ });++ const { supplierId } = params;+ if (!supplierId) throw new Error("Could not find supplierId");++ const formData = await request.formData();++ const validation = await validator(supplierBankAccountValidator).validate(+ formData+ );++ if (validation.error) {+ return validationError(validation.error);+ }++ const { id, ...rest } = validation.data;+ if (!id) throw new Error("Could not find id");++ try {+ // supplierId and companyId come from the URL and the session, never from the+ // form body — the service re-asserts both in its WHERE clause so a forged+ // field cannot move this account to another supplier.+ await upsertSupplierBankAccount(getDatabaseClient(), {+ ...rest,+ id,+ supplierId,+ companyId,+ updatedBy: userId,+ customFields: setCustomFields(formData)+ });+ } catch (err) {+ throw redirect(+ path.to.supplierBankAccounts(supplierId),+ await flash(request, error(err, "Failed to update supplier bank account"))+ );+ }++ return redirect(path.to.supplierBankAccounts(supplierId));+}++export default function EditSupplierBankAccountRoute() {+ const navigate = useNavigate();+ const { supplierId, id } = useParams();+ if (!supplierId) throw new Error("Could not find supplierId");+ if (!id) throw new Error("Could not find id");++ const routeData = useRouteData<{ bankAccounts: SupplierBankAccount[] }>(+ path.to.supplierBankAccounts(supplierId)+ );++ const bankAccount = routeData?.bankAccounts.find(+ (account) => account.id === id+ );+ if (!bankAccount) throw new Error("Could not find bank account");++ const initialValues = {+ id: bankAccount.id,+ supplierId: bankAccount.supplierId,+ name: bankAccount.name ?? "",+ accountHolderName: bankAccount.accountHolderName ?? "",+ bankName: bankAccount.bankName ?? "",+ bankAddress: bankAccount.bankAddress ?? "",+ countryCode: bankAccount.countryCode ?? "",+ currencyCode: bankAccount.currencyCode ?? "",+ accountNumber: bankAccount.accountNumber ?? "",+ bankCode: bankAccount.bankCode ?? "",+ swiftBic: bankAccount.swiftBic ?? "",+ notes: bankAccount.notes ?? ""+ };++ return (+ <SupplierBankAccountForm+ key={initialValues.id}+ initialValues={initialValues}+ onClose={() => navigate(path.to.supplierBankAccounts(supplierId))}+ />+ );+}diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.delete.$id.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.delete.$id.tsxnew file mode 100644index 0000000000..503be23ca0--- /dev/null+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.delete.$id.tsx@@ -0,0 +1,63 @@+import { assertIsPost, error } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { useLingui } from "@lingui/react/macro";+import type { ActionFunctionArgs } from "react-router";+import { redirect, useNavigate, useParams } from "react-router";+import { ConfirmDelete } from "~/components/Modals";+import { useRouteData } from "~/hooks";+import type { SupplierBankAccount } from "~/modules/purchasing";+import { deleteSupplierBankAccount } from "~/modules/purchasing";+import { path } from "~/utils/path";++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { client } = await requirePermissions(request, {+ delete: "accounting"+ });++ const { supplierId, id } = params;+ if (!supplierId) throw new Error("Could not find supplierId");+ if (!id) throw new Error("Could not find id");++ const remove = await deleteSupplierBankAccount(client, id);++ if (remove.error) {+ throw redirect(+ path.to.supplierBankAccounts(supplierId),+ await flash(+ request,+ error(remove.error, "Failed to delete supplier bank account")+ )+ );+ }++ return redirect(path.to.supplierBankAccounts(supplierId));+}++export default function DeleteSupplierBankAccountRoute() {+ const navigate = useNavigate();+ const { t } = useLingui();+ const { supplierId, id } = useParams();+ if (!supplierId) throw new Error("Could not find supplierId");+ if (!id) throw new Error("Could not find id");++ const routeData = useRouteData<{ bankAccounts: SupplierBankAccount[] }>(+ path.to.supplierBankAccounts(supplierId)+ );++ const bankAccount = routeData?.bankAccounts.find(+ (account) => account.id === id+ );+ if (!bankAccount) throw new Error("Could not find bank account");++ return (+ <ConfirmDelete+ action={path.to.deleteSupplierBankAccount(supplierId, id)}+ isOpen+ name={bankAccount.name}+ text={t`Are you sure you want to permanently delete this bank account?`}+ onCancel={() => navigate(-1)}+ />+ );+}diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.new.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.new.tsxnew file mode 100644index 0000000000..7ccb57883e--- /dev/null+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.new.tsx@@ -0,0 +1,98 @@+import { assertIsPost, error, notFound, success } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { validationError, validator } from "@carbon/form";+import type { ActionFunctionArgs } from "react-router";+import { data, redirect, useNavigate, useParams } from "react-router";+import { useUser } from "~/hooks";+import {+ supplierBankAccountValidator,+ upsertSupplierBankAccount+} from "~/modules/purchasing";+import SupplierBankAccountForm from "~/modules/purchasing/ui/Supplier/SupplierBankAccountForm";+import { getDatabaseClient } from "~/services/database.server";+import { setCustomFields } from "~/utils/form";+import { path } from "~/utils/path";++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {+ create: "accounting"+ });++ const formData = await request.formData();+ const modal = formData.get("type") === "modal";++ const { supplierId } = params;+ if (!supplierId) throw notFound("supplierId not found");++ const validation = await validator(supplierBankAccountValidator).validate(+ formData+ );++ if (validation.error) {+ return validationError(validation.error);+ }++ // biome-ignore lint/correctness/noUnusedVariables: id is absent on create+ const { id, ...rest } = validation.data;++ let created: { id: string };+ try {+ // supplierId and companyId come from the URL and the session, never from the+ // form body.+ created = await upsertSupplierBankAccount(getDatabaseClient(), {+ ...rest,+ supplierId,+ companyId,+ createdBy: userId,+ customFields: setCustomFields(formData)+ });+ } catch (err) {+ if (modal) {+ return data(+ { error: "Failed to create supplier bank account" },+ { status: 500 }+ );+ }+ throw redirect(+ path.to.supplierBankAccounts(supplierId),+ await flash(request, error(err, "Failed to create supplier bank account"))+ );+ }++ return modal+ ? data(created, { status: 201 })+ : redirect(+ path.to.supplierBankAccounts(supplierId),+ await flash(request, success("Supplier bank account created"))+ );+}++export default function NewSupplierBankAccountRoute() {+ const navigate = useNavigate();+ const { company } = useUser();+ const { supplierId } = useParams();+ if (!supplierId) throw new Error("supplierId not found");++ const initialValues = {+ supplierId,+ name: "",+ accountHolderName: "",+ bankName: "",+ bankAddress: "",+ countryCode: company?.countryCode ?? "",+ currencyCode: company?.baseCurrencyCode ?? "",+ accountNumber: "",+ bankCode: "",+ swiftBic: "",+ notes: ""+ };++ return (+ <SupplierBankAccountForm+ initialValues={initialValues}+ onClose={() => navigate(path.to.supplierBankAccounts(supplierId))}+ />+ );+}diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.tsxnew file mode 100644index 0000000000..0b7b4735a2--- /dev/null+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.bank-accounts.tsx@@ -0,0 +1,38 @@+import { error } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import type { LoaderFunctionArgs } from "react-router";+import { redirect, useLoaderData } from "react-router";+import { getSupplierBankAccounts } from "~/modules/purchasing";+import SupplierBankAccounts from "~/modules/purchasing/ui/Supplier/SupplierBankAccounts";+import { path } from "~/utils/path";++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client } = await requirePermissions(request, {+ view: "accounting"+ });++ const { supplierId } = params;+ if (!supplierId) throw new Error("Could not find supplierId");++ const bankAccounts = await getSupplierBankAccounts(client, supplierId);+ if (bankAccounts.error) {+ throw redirect(+ path.to.supplier(supplierId),+ await flash(+ request,+ error(bankAccounts.error, "Failed to fetch supplier bank accounts")+ )+ );+ }++ return {+ bankAccounts: bankAccounts.data ?? []+ };+}++export default function SupplierBankAccountsRoute() {+ const { bankAccounts } = useLoaderData<typeof loader>();++ return <SupplierBankAccounts bankAccounts={bankAccounts} />;+}diff --git a/apps/erp/app/routes/x+/supplier+/$supplierId.documents.tsx b/apps/erp/app/routes/x+/supplier+/$supplierId.documents.tsxnew file mode 100644index 0000000000..6cffeb7942--- /dev/null+++ b/apps/erp/app/routes/x+/supplier+/$supplierId.documents.tsx@@ -0,0 +1,36 @@+import { requirePermissions } from "@carbon/auth/auth.server";+import type { LoaderFunctionArgs } from "react-router";+import { useLoaderData } from "react-router";+import RecordDocuments from "~/components/RecordDocuments";++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client, companyId } = await requirePermissions(request, {+ view: "purchasing"+ });++ const { supplierId } = params;+ if (!supplierId) throw new Error("Missing supplierId");++ const result = await client.storage+ .from("private")+ .list(`${companyId}/supplier/${supplierId}`);++ return {+ supplierId,+ files: result.data ?? []+ };+}++export default function SupplierDocumentsRoute() {+ const { supplierId, files } = useLoaderData<typeof loader>();++ return (+ <RecordDocuments+ files={files}+ id={supplierId}+ bucketPrefix="supplier"+ sourceDocument="Supplier"+ module="purchasing"+ />+ );+}diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.tsindex 60e9489e35..c05e4695c1 100644--- a/apps/erp/app/utils/path.ts+++ b/apps/erp/app/utils/path.ts@@ -552,12 +552,18 @@ export const path = {customerAccounting: (id: string) =>generatePath(`${x}/customer/${id}/accounting`),customerAccounts: `${x}/users/customers`,+ customerBankAccount: (customerId: string, id: string) =>+ generatePath(`${x}/customer/${customerId}/bank-accounts/${id}`),+ customerBankAccounts: (id: string) =>+ generatePath(`${x}/customer/${id}/bank-accounts`),customerContact: (customerId: string, id: string) =>generatePath(`${x}/customer/${customerId}/contacts/${id}`),customerContacts: (id: string) =>generatePath(`${x}/customer/${id}/contacts`),customerDetails: (id: string) =>generatePath(`${x}/customer/${id}/details`),+ customerDocuments: (id: string) =>+ generatePath(`${x}/customer/${id}/documents`),customerLocation: (customerId: string, id: string) =>generatePath(`${x}/customer/${customerId}/locations/${id}`),customerLocations: (id: string) =>@@ -655,6 +661,8 @@ export const path = {deleteCostCenter: (id: string) =>generatePath(`${x}/accounting/cost-centers/delete/${id}`),deleteCustomer: (id: string) => generatePath(`${x}/customer/${id}/delete`),+ deleteCustomerBankAccount: (customerId: string, id: string) =>+ generatePath(`${x}/customer/${customerId}/bank-accounts/delete/${id}`),deleteCustomerContact: (customerId: string, id: string) =>generatePath(`${x}/customer/${customerId}/contacts/delete/${id}`),deleteCustomerLocation: (customerId: string, id: string) =>@@ -877,6 +885,8 @@ export const path = {deleteSuggestion: (id: string) =>generatePath(`${x}/resources/suggestions/delete/${id}`),deleteSupplier: (id: string) => generatePath(`${x}/supplier/${id}/delete`),+ deleteSupplierBankAccount: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/bank-accounts/delete/${id}`),deleteSupplierContact: (supplierId: string, id: string) =>generatePath(`${x}/supplier/${supplierId}/contacts/delete/${id}`),deleteSupplierLocation: (supplierId: string, id: string) =>@@ -1509,6 +1519,8 @@ export const path = {newCostCenter: `${x}/accounting/cost-centers/new`,newCustomer: `${x}/customer/new`,newCustomerAccount: `${x}/users/customers/new`,+ newCustomerBankAccount: (id: string) =>+ generatePath(`${x}/customer/${id}/bank-accounts/new`),newCustomerContact: (id: string) =>generatePath(`${x}/customer/${id}/contacts/new`),newCustomerLocation: (id: string) =>@@ -1663,6 +1675,8 @@ export const path = {newSuggestion: `${x}/resources/suggestions/new`,newSupplier: `${x}/supplier/new`,newSupplierAccount: `${x}/users/suppliers/new`,+ newSupplierBankAccount: (id: string) =>+ generatePath(`${x}/supplier/${id}/bank-accounts/new`),newSupplierContact: (id: string) =>generatePath(`${x}/supplier/${id}/contacts/new`),newSupplierLocation: (id: string) =>@@ -2181,6 +2195,10 @@ export const path = {supplierAccounts: `${x}/users/suppliers`,supplierApproval: (id: string) =>generatePath(`${x}/supplier/${id}/approval`),+ supplierBankAccount: (supplierId: string, id: string) =>+ generatePath(`${x}/supplier/${supplierId}/bank-accounts/${id}`),+ supplierBankAccounts: (id: string) =>+ generatePath(`${x}/supplier/${id}/bank-accounts`),supplierContact: (supplierId: string, id: string) =>generatePath(`${x}/supplier/${supplierId}/contacts/${id}`),supplierContacts: (id: string) =>@@ -2189,6 +2207,8 @@ export const path = {generatePath(`${x}/supplier/${supplierId}/default-attachments`),supplierDetails: (id: string) =>generatePath(`${x}/supplier/${id}/details`),+ supplierDocuments: (id: string) =>+ generatePath(`${x}/supplier/${id}/documents`),supplierLocation: (supplierId: string, id: string) =>generatePath(`${x}/supplier/${supplierId}/locations/${id}`),supplierLocations: (id: string) =>diff --git a/docs/content/docs/reference/documents.mdx b/docs/content/docs/reference/documents.mdxindex b0b8af031e..2ecaeee233 100644--- a/docs/content/docs/reference/documents.mdx+++ b/docs/content/docs/reference/documents.mdx@@ -55,13 +55,14 @@ The explorer search box does a case-insensitive substring match across a file'sA document can point back at the record it belongs to. The row's **Source Document** column shows that link and jumps straight to the parent record (`DocumentsTable.tsx:207-237`). The set of record types a document can attach to is fixed (`documents.models.ts:9-23`):<FieldTable>- <Field name="Sales side">Quote, Request for Quote, Sales Order, Sales Invoice, Shipment.</Field>- <Field name="Purchasing side">Purchase Order, Purchase Invoice, Purchasing Request for Quote, Supplier Quote.</Field>+ <Field name="Sales side">Quote, Request for Quote, Sales Order, Sales Invoice, Sales Return Order, Shipment.</Field>+ <Field name="Purchasing side">Purchase Order, Purchase Invoice, Purchase Return Order, Purchasing Request for Quote, Supplier Quote.</Field><Field name="Production & quality">Job, Gauge Calibration Record, Issue.</Field><Field name="Items">Part, Material, Tool, Consumable, Service.</Field>+ <Field name="Trading parties">Supplier, Customer. These are the master records rather than transactions, for files that belong to the party itself.</Field></FieldTable>-The attachment is stored as a `sourceDocument` (the type) plus a `sourceDocumentId` (the record's id) on the file (`documents.service.ts:154-183`). Because the file also lives in the shared explorer, you can find it either by opening the record or by searching the library. See the [sales orders](/docs/reference/sales-orders), [purchase orders](/docs/reference/purchase-orders), and [jobs](/docs/reference/jobs) references for where each record surfaces its files.+The attachment is stored as a `sourceDocument` (the type) plus a `sourceDocumentId` (the record's id) on the file (`documents.service.ts:154-183`). Because the file also lives in the shared explorer, you can find it either by opening the record or by searching the library. See the [sales orders](/docs/reference/sales-orders), [purchase orders](/docs/reference/purchase-orders), and [jobs](/docs/reference/jobs) references for where each record surfaces its files, and [suppliers & customers](/docs/reference/suppliers-and-customers) for the party-level Documents tab.## AI extractiondiff --git a/docs/content/docs/reference/suppliers-and-customers.mdx b/docs/content/docs/reference/suppliers-and-customers.mdxindex db039d0245..20a0fa52dd 100644--- a/docs/content/docs/reference/suppliers-and-customers.mdx+++ b/docs/content/docs/reference/suppliers-and-customers.mdx@@ -25,6 +25,43 @@ The asymmetry to remember: **supplier status is a fixed four-value set; customerBoth records carry the same satellite shape: **contacts**, **locations/addresses**, and **payment, shipping, and tax** defaults. Payment terms, currency, and tax settings live on those satellites, not on the core record. Both also have a human-readable id (`SUP…` / `CUS…`) on top of their internal key, and both can expose an external **portal**: suppliers respond to <Term id="rfq">RFQs</Term> through a digital-quote link; customers track their orders through a [customer portal](/docs/reference/customer-portal).+## Bank accounts++Both parties can carry bank accounts: the account you pay a supplier into, and the one you refund a customer to. They live on the **Bank Accounts** tab of the record, and they are reference data. Nothing in Carbon moves money from them; a person reads the details and enters them in their own banking system.++<Screenshot src="/screens/reference-bank-accounts.png" label="Customer Bank Accounts tab listing two Indian accounts, one in USD and one in INR, each showing a masked account number with its IFSC and SWIFT codes" caption="Currency, bank, and country sit on every row, so two accounts at different banks stay distinguishable without opening either." ratio="wide" />++The fields adapt to the account's country, because banking identifiers are not the same everywhere. Pick France and the account field is labelled **"IBAN"** with no routing field, since an <Term>IBAN</Term> already identifies the bank. Pick India and you get an **"IFSC Code"** field plus a required <Term id="swift-bic">SWIFT / BIC</Term>, because one routes the payment inside the country and the other gets it there.++<FieldTable>+ <Field name="Name" required>Your label for the account, so two accounts at one bank stay distinguishable.</Field>+ <Field name="Account Holder">Only needed when it differs from the party's own name.</Field>+ <Field name="Bank Name" required>The bank the account sits with.</Field>+ <Field name="Bank Address" required>Printed onto payment files; correspondent banks route international wires on it.</Field>+ <Field name="Country" required>Selects which validation rules apply to everything below.</Field>+ <Field name="Currency">The currency the account settles in.</Field>+ <Field name="Account Number / IBAN" required>Labelled by country. Validated by checksum where the scheme has one.</Field>+ <Field name="Routing code" required>Named for the country: *Routing Number (ABA)*, *Sort Code*, *BSB*, *IFSC Code*, or *Transit & Institution*. Absent for countries whose IBAN carries it.</Field>+ <Field name="SWIFT / BIC">Required wherever the country expects a cross-border payment to route.</Field>+ <Field name="Notes">Free text for anything the fixed fields do not cover.</Field>+</FieldTable>++<Callout type="warn" title="Bank details sit behind accounting permissions, not purchasing or sales">+Most people who can open a supplier should not see its bank account, so the tab is gated on **accounting** rather than the module that owns the record. Without `accounting` view permission the tab does not appear in the sidebar, and opening its URL directly is refused. Adding, editing, and deleting are gated separately.+</Callout>++Account numbers display masked, showing the last four characters with a toggle to reveal the rest. That deters someone reading over your shoulder or catching it in a screenshot; it is not an access control, and the permission above is what actually protects the data.++<Callout type="note" title="Validation proves the format, never the owner">+A checksum confirms an <Term id="iban">IBAN</Term> was typed correctly. It cannot tell you the account belongs to the supplier you think it does. Confirming that is an out-of-band step, a call to a number you already had, and it is the control that stops payment-redirection fraud.+</Callout>++## Documents++Both records have a **Documents** tab for files that belong to the party itself rather than to one transaction: a W-9, an insurance certificate, a signed master agreement. Drop a file on the tab and it is filed against that record, and it also appears in the shared [document library](/docs/reference/documents), so you can find it either by opening the party or by searching.++<Screenshot src="/screens/reference-party-documents.png" label="Customer Documents tab listing two uploaded files with their size and upload date, above the drag-and-drop area" caption="Files filed here belong to the party, not to any one order." ratio="wide" />+## Related<Cards>diff --git a/docs/public/screens/reference-bank-accounts.png b/docs/public/screens/reference-bank-accounts.pngnew file mode 100644index 0000000000..aa0958cf65Binary files /dev/null and b/docs/public/screens/reference-bank-accounts.png differdiff --git a/docs/public/screens/reference-party-documents.png b/docs/public/screens/reference-party-documents.pngnew file mode 100644index 0000000000..a516c39055Binary files /dev/null and b/docs/public/screens/reference-party-documents.png differdiff --git a/packages/checks/src/conformance/baseline.json b/packages/checks/src/conformance/baseline.jsonindex 9376788900..31908947d3 100644--- a/packages/checks/src/conformance/baseline.json+++ b/packages/checks/src/conformance/baseline.json@@ -293,6 +293,8 @@"no-raw-rounding::apps/erp/app/components/ModelUploadProgress.tsx::if (n >= 1024) return `${Math.round(n / 1024)} KB`;","no-raw-rounding::apps/erp/app/components/ModelUploadProgress.tsx::value={`${Math.round(percent)}%`}","no-raw-rounding::apps/erp/app/components/PeriodSelector.tsx::const month = Math.floor((date.month - 1) / 3) * 3 + 1;",+ "no-raw-rounding::apps/erp/app/components/RecordDocuments.tsx::Math.floor((file.metadata?.size ?? 0) / 1024)",+ "no-raw-rounding::apps/erp/app/components/RecordDocuments.tsx::formData.append(\"size\", Math.round(size / 1024).toString());","no-raw-rounding::apps/erp/app/components/Table/Table.tsx::const mid = Math.floor(sorted.length / 2);","no-raw-rounding::apps/erp/app/components/Table/components/Pagination/usePagination.tsx::const canNextPage = pageIndex < Math.ceil(count / pageSize);","no-raw-rounding::apps/erp/app/components/Table/components/Pagination/usePagination.tsx::const pageCount = Math.ceil(count / pageSize);",@@ -331,12 +333,12 @@"no-raw-rounding::apps/erp/app/modules/people/ui/Timecards/TimecardsTable.tsx::const minutes = Math.floor((ms % 3600000) / 60000);","no-raw-rounding::apps/erp/app/modules/production/production.service.ts::const count = Math.round(material.quantity);","no-raw-rounding::apps/erp/app/modules/production/production.service.ts::const totalJobs = lotSize > 0 ? Math.ceil(totalQuantity / lotSize) : 1;",- "no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::` · BOM qty ${Math.round(bomLine.quantity)} ≠ model ${group.count}`}",+ "no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::` \u00b7 BOM qty ${Math.round(bomLine.quantity)} \u2260 model ${group.count}`}","no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::bomLine !== undefined && Math.round(bomLine.quantity) !== group.count;",- "no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::if (mm3 >= 1000) return `${(mm3 / 1000).toFixed(1)} cm³`;",- "no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::return `${mm3.toFixed(0)} mm³`;",+ "no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::if (mm3 >= 1000) return `${(mm3 / 1000).toFixed(1)} cm\u00b3`;",+ "no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::return `${mm3.toFixed(0)} mm\u00b3`;","no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::return mm >= 100 ? mm.toFixed(0) : mm.toFixed(1);",- "no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::×{Math.round(material.quantity)}",+ "no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx::\u00d7{Math.round(material.quantity)}","no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionExplorer.tsx::? Math.max(0, Math.round((solveNow - solveStartedAt) / 1000))","no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionExplorer.tsx::const solveElapsedLabel = `${Math.floor(solveElapsedSeconds / 60)}:${String(","no-raw-rounding::apps/erp/app/modules/production/ui/Assemblies/AssemblyStepBom.tsx::)}, ${Math.round(color[2] * 255)}, ${color[3]})`",@@ -524,7 +526,7 @@"no-raw-rounding::packages/ee/src/planning/scheduling/slot-allocator.ts::const wallNeeded = Math.ceil((laborMs - laborDoneMs) / n);","no-raw-rounding::packages/ee/src/slack/lib/client.ts::const currentTime = Math.floor(Date.now() / 1000);","no-raw-rounding::packages/ee/src/slack/lib/messages.ts::? `on <!date^${Math.floor(",- "no-raw-rounding::packages/ee/src/slack/lib/messages.ts::? `• Completed <!date^${Math.floor(",+ "no-raw-rounding::packages/ee/src/slack/lib/messages.ts::? `\u2022 Completed <!date^${Math.floor(","no-raw-rounding::packages/ee/src/slack/lib/messages.ts::text: `Updated by <@${update.updatedBy}> at <!date^${Math.floor(","no-raw-rounding::packages/jobs/src/inngest/functions/integrations/accounting-reconciliation.ts::Math.round(amount * 100)","no-raw-rounding::packages/jobs/src/inngest/functions/integrations/accounting-reconciliation.ts::const cents = Math.round(",diff --git a/packages/database/src/audit.config.ts b/packages/database/src/audit.config.tsindex b41f31c832..169a9c661a 100644--- a/packages/database/src/audit.config.ts+++ b/packages/database/src/audit.config.ts@@ -154,6 +154,7 @@ export const auditConfig = {customerPayment: { role: "extension" }, // PK = customerIdcustomerShipping: { role: "extension" }, // PK = customerIdcustomerTax: { role: "extension" }, // PK = customerId+ customerBankAccount: { entityIdColumn: "customerId" },contact: {resolve: {junction: "customerContact",@@ -183,6 +184,7 @@ export const auditConfig = {supplierPayment: { role: "extension" }, // PK = supplierIdsupplierShipping: { role: "extension" }, // PK = supplierIdsupplierTax: { role: "extension" }, // PK = supplierId+ supplierBankAccount: { entityIdColumn: "supplierId" },contact: {resolve: {junction: "supplierContact",@@ -616,12 +618,14 @@ export const auditConfig = {customerPayment: "Payment",customerShipping: "Shipping",customerTax: "Tax",+ customerBankAccount: "Bank Account",contact: "Contact",address: "Address",supplier: "Supplier",supplierPayment: "Payment",supplierShipping: "Shipping",supplierTax: "Tax",+ supplierBankAccount: "Bank Account",supplierPart: "Supplier Part",item: "Item",itemShelfLife: "Shelf Life",diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.tsindex 942e9765c2..29031e74a9 100644--- a/packages/database/src/swagger-docs-schema.ts+++ b/packages/database/src/swagger-docs-schema.ts@@ -27546,6 +27546,285 @@ export default {tags: ["salesOrder"]}},+ "/supplierBankAccount": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.id"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.companyId"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.supplierId"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.name"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.accountHolderName"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankName"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankAddress"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.countryCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.currencyCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.accountNumber"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.swiftBic"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.isPrimary"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.active"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.notes"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.createdBy"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.createdAt"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.updatedBy"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.updatedAt"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.customFields"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.tags"+ },+ {+ $ref: "#/parameters/select"+ },+ {+ $ref: "#/parameters/order"+ },+ {+ $ref: "#/parameters/range"+ },+ {+ $ref: "#/parameters/rangeUnit"+ },+ {+ $ref: "#/parameters/offset"+ },+ {+ $ref: "#/parameters/limit"+ },+ {+ $ref: "#/parameters/preferCount"+ }+ ],+ responses: {+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/supplierBankAccount"+ },+ type: "array"+ }+ },+ "206": {+ description: "Partial Content"+ }+ },+ tags: ["supplierBankAccount"]+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.supplierBankAccount"+ },+ {+ $ref: "#/parameters/select"+ },+ {+ $ref: "#/parameters/preferPost"+ }+ ],+ responses: {+ "201": {+ description: "Created"+ }+ },+ tags: ["supplierBankAccount"]+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.id"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.companyId"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.supplierId"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.name"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.accountHolderName"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankName"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankAddress"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.countryCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.currencyCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.accountNumber"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.swiftBic"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.isPrimary"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.active"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.notes"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.createdBy"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.createdAt"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.updatedBy"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.updatedAt"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.customFields"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.tags"+ },+ {+ $ref: "#/parameters/preferReturn"+ }+ ],+ responses: {+ "204": {+ description: "No Content"+ }+ },+ tags: ["supplierBankAccount"]+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.id"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.companyId"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.supplierId"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.name"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.accountHolderName"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankName"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankAddress"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.countryCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.currencyCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.accountNumber"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.bankCode"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.swiftBic"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.isPrimary"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.active"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.notes"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.createdBy"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.createdAt"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.updatedBy"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.updatedAt"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.customFields"+ },+ {+ $ref: "#/parameters/rowFilter.supplierBankAccount.tags"+ },+ {+ $ref: "#/parameters/body.supplierBankAccount"+ },+ {+ $ref: "#/parameters/preferReturn"+ }+ ],+ responses: {+ "204": {+ description: "No Content"+ }+ },+ tags: ["supplierBankAccount"]+ }+ },"/jobOperationTool": {get: {parameters: [@@ -74904,6 +75183,285 @@ export default {tags: ["quoteMaterialStep"]}},+ "/customerBankAccount": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.id"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.companyId"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.customerId"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.name"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.accountHolderName"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankName"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankAddress"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.countryCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.currencyCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.accountNumber"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.swiftBic"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.isPrimary"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.active"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.notes"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.createdBy"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.createdAt"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.updatedBy"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.updatedAt"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.customFields"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.tags"+ },+ {+ $ref: "#/parameters/select"+ },+ {+ $ref: "#/parameters/order"+ },+ {+ $ref: "#/parameters/range"+ },+ {+ $ref: "#/parameters/rangeUnit"+ },+ {+ $ref: "#/parameters/offset"+ },+ {+ $ref: "#/parameters/limit"+ },+ {+ $ref: "#/parameters/preferCount"+ }+ ],+ responses: {+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/customerBankAccount"+ },+ type: "array"+ }+ },+ "206": {+ description: "Partial Content"+ }+ },+ tags: ["customerBankAccount"]+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.customerBankAccount"+ },+ {+ $ref: "#/parameters/select"+ },+ {+ $ref: "#/parameters/preferPost"+ }+ ],+ responses: {+ "201": {+ description: "Created"+ }+ },+ tags: ["customerBankAccount"]+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.id"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.companyId"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.customerId"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.name"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.accountHolderName"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankName"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankAddress"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.countryCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.currencyCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.accountNumber"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.swiftBic"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.isPrimary"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.active"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.notes"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.createdBy"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.createdAt"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.updatedBy"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.updatedAt"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.customFields"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.tags"+ },+ {+ $ref: "#/parameters/preferReturn"+ }+ ],+ responses: {+ "204": {+ description: "No Content"+ }+ },+ tags: ["customerBankAccount"]+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.id"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.companyId"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.customerId"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.name"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.accountHolderName"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankName"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankAddress"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.countryCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.currencyCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.accountNumber"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.bankCode"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.swiftBic"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.isPrimary"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.active"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.notes"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.createdBy"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.createdAt"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.updatedBy"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.updatedAt"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.customFields"+ },+ {+ $ref: "#/parameters/rowFilter.customerBankAccount.tags"+ },+ {+ $ref: "#/parameters/body.customerBankAccount"+ },+ {+ $ref: "#/parameters/preferReturn"+ }+ ],+ responses: {+ "204": {+ description: "No Content"+ }+ },+ tags: ["customerBankAccount"]+ }+ },"/nonConformanceSupplier": {get: {parameters: [@@ -117090,6 +117648,121 @@ export default {},type: "object"},+ supplierBankAccount: {+ required: [+ "id",+ "companyId",+ "supplierId",+ "name",+ "isPrimary",+ "active",+ "createdBy",+ "createdAt"+ ],+ properties: {+ id: {+ default: "public.id('sba'::text)",+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string"+ },+ companyId: {+ description:+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string"+ },+ supplierId: {+ format: "text",+ type: "string"+ },+ name: {+ format: "text",+ type: "string"+ },+ accountHolderName: {+ format: "text",+ type: "string"+ },+ bankName: {+ format: "text",+ type: "string"+ },+ bankAddress: {+ format: "text",+ type: "string"+ },+ countryCode: {+ description:+ "Note:\nThis is a Foreign Key to `country.alpha2`.<fk table='country' column='alpha2'/>",+ format: "character",+ maxLength: 2,+ type: "string"+ },+ currencyCode: {+ format: "text",+ type: "string"+ },+ accountNumber: {+ format: "text",+ type: "string"+ },+ bankCode: {+ format: "text",+ type: "string"+ },+ swiftBic: {+ format: "text",+ type: "string"+ },+ isPrimary: {+ default: false,+ format: "boolean",+ type: "boolean"+ },+ active: {+ default: true,+ format: "boolean",+ type: "boolean"+ },+ notes: {+ format: "text",+ type: "string"+ },+ createdBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string"+ },+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string"+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string"+ },+ updatedAt: {+ format: "timestamp with time zone",+ type: "string"+ },+ customFields: {+ format: "jsonb"+ },+ tags: {+ format: "text[]",+ items: {+ type: "string"+ },+ type: "array"+ }+ },+ type: "object"+ },jobOperationTool: {required: ["id",@@ -123433,7 +124106,9 @@ export default {"Issue","Gauge Calibration Record","Purchasing Request for Quote",- "Supplier Quote"+ "Supplier Quote",+ "Supplier",+ "Customer"],format: 'public."documentSourceType"',type: "string"@@ -138342,7 +139017,9 @@ export default {"Issue","Gauge Calibration Record","Purchasing Request for Quote",- "Supplier Quote"+ "Supplier Quote",+ "Supplier",+ "Customer"],format: 'public."documentSourceType"',type: "string"@@ -139142,6 +139819,121 @@ export default {},type: "object"},+ customerBankAccount: {+ required: [+ "id",+ "companyId",+ "customerId",+ "name",+ "isPrimary",+ "active",+ "createdBy",+ "createdAt"+ ],+ properties: {+ id: {+ default: "public.id('cba'::text)",+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string"+ },+ companyId: {+ description:+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string"+ },+ customerId: {+ format: "text",+ type: "string"+ },+ name: {+ format: "text",+ type: "string"+ },+ accountHolderName: {+ format: "text",+ type: "string"+ },+ bankName: {+ format: "text",+ type: "string"+ },+ bankAddress: {+ format: "text",+ type: "string"+ },+ countryCode: {+ description:+ "Note:\nThis is a Foreign Key to `country.alpha2`.<fk table='country' column='alpha2'/>",+ format: "character",+ maxLength: 2,+ type: "string"+ },+ currencyCode: {+ format: "text",+ type: "string"+ },+ accountNumber: {+ format: "text",+ type: "string"+ },+ bankCode: {+ format: "text",+ type: "string"+ },+ swiftBic: {+ format: "text",+ type: "string"+ },+ isPrimary: {+ default: false,+ format: "boolean",+ type: "boolean"+ },+ active: {+ default: true,+ format: "boolean",+ type: "boolean"+ },+ notes: {+ format: "text",+ type: "string"+ },+ createdBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string"+ },+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string"+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string"+ },+ updatedAt: {+ format: "timestamp with time zone",+ type: "string"+ },+ customFields: {+ format: "jsonb"+ },+ tags: {+ format: "text[]",+ items: {+ type: "string"+ },+ type: "array"+ }+ },+ type: "object"+ },nonConformanceSupplier: {required: ["id",@@ -162442,6 +163234,141 @@ export default {in: "query",type: "string"},+ "body.supplierBankAccount": {+ name: "supplierBankAccount",+ description: "supplierBankAccount",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/supplierBankAccount"+ }+ },+ "rowFilter.supplierBankAccount.id": {+ name: "id",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.companyId": {+ name: "companyId",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.supplierId": {+ name: "supplierId",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.name": {+ name: "name",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.accountHolderName": {+ name: "accountHolderName",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.bankName": {+ name: "bankName",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.bankAddress": {+ name: "bankAddress",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.countryCode": {+ name: "countryCode",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.currencyCode": {+ name: "currencyCode",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.accountNumber": {+ name: "accountNumber",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.bankCode": {+ name: "bankCode",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.swiftBic": {+ name: "swiftBic",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.isPrimary": {+ name: "isPrimary",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.active": {+ name: "active",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.notes": {+ name: "notes",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.createdBy": {+ name: "createdBy",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.createdAt": {+ name: "createdAt",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.updatedBy": {+ name: "updatedBy",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.updatedAt": {+ name: "updatedAt",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.customFields": {+ name: "customFields",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.supplierBankAccount.tags": {+ name: "tags",+ required: false,+ in: "query",+ type: "string"+ },"body.jobOperationTool": {name: "jobOperationTool",description: "jobOperationTool",@@ -186927,6 +187854,141 @@ export default {in: "query",type: "string"},+ "body.customerBankAccount": {+ name: "customerBankAccount",+ description: "customerBankAccount",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/customerBankAccount"+ }+ },+ "rowFilter.customerBankAccount.id": {+ name: "id",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.companyId": {+ name: "companyId",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.customerId": {+ name: "customerId",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.name": {+ name: "name",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.accountHolderName": {+ name: "accountHolderName",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.bankName": {+ name: "bankName",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.bankAddress": {+ name: "bankAddress",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.countryCode": {+ name: "countryCode",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.currencyCode": {+ name: "currencyCode",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.accountNumber": {+ name: "accountNumber",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.bankCode": {+ name: "bankCode",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.swiftBic": {+ name: "swiftBic",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.isPrimary": {+ name: "isPrimary",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.active": {+ name: "active",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.notes": {+ name: "notes",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.createdBy": {+ name: "createdBy",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.createdAt": {+ name: "createdAt",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.updatedBy": {+ name: "updatedBy",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.updatedAt": {+ name: "updatedAt",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.customFields": {+ name: "customFields",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.customerBankAccount.tags": {+ name: "tags",+ required: false,+ in: "query",+ type: "string"+ },"body.nonConformanceSupplier": {name: "nonConformanceSupplier",description: "nonConformanceSupplier",diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex 50d394cdaf..8060cd646c 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -9472,6 +9472,205 @@ export type Database = {}]}+ customerBankAccount: {+ Row: {+ accountHolderName: string | null+ accountNumber: string | null+ active: boolean+ bankAddress: string | null+ bankCode: string | null+ bankName: string | null+ companyId: string+ countryCode: string | null+ createdAt: string+ createdBy: string+ currencyCode: string | null+ customerId: string+ customFields: Json | null+ id: string+ isPrimary: boolean+ name: string+ notes: string | null+ swiftBic: string | null+ tags: string[] | null+ updatedAt: string | null+ updatedBy: string | null+ }+ Insert: {+ accountHolderName?: string | null+ accountNumber?: string | null+ active?: boolean+ bankAddress?: string | null+ bankCode?: string | null+ bankName?: string | null+ companyId: string+ countryCode?: string | null+ createdAt?: string+ createdBy: string+ currencyCode?: string | null+ customerId: string+ customFields?: Json | null+ id?: string+ isPrimary?: boolean+ name: string+ notes?: string | null+ swiftBic?: string | null+ tags?: string[] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Update: {+ accountHolderName?: string | null+ accountNumber?: string | null+ active?: boolean+ bankAddress?: string | null+ bankCode?: string | null+ bankName?: string | null+ companyId?: string+ countryCode?: string | null+ createdAt?: string+ createdBy?: string+ currencyCode?: string | null+ customerId?: string+ customFields?: Json | null+ id?: string+ isPrimary?: boolean+ name?: string+ notes?: string | null+ swiftBic?: string | null+ tags?: string[] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "customerBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "companies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "company"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "customFieldTables"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "integrations"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_countryCode_fkey"+ columns: ["countryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["alpha2"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "customerBankAccount_customerId_companyId_fkey"+ columns: ["customerId", "companyId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_customerId_companyId_fkey"+ columns: ["customerId", "companyId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_customerId_companyId_fkey"+ columns: ["customerId", "companyId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ }+ ]+ }customerContact: {Row: {companyId: string@@ -56055,6 +56254,205 @@ export type Database = {}]}+ supplierBankAccount: {+ Row: {+ accountHolderName: string | null+ accountNumber: string | null+ active: boolean+ bankAddress: string | null+ bankCode: string | null+ bankName: string | null+ companyId: string+ countryCode: string | null+ createdAt: string+ createdBy: string+ currencyCode: string | null+ customFields: Json | null+ id: string+ isPrimary: boolean+ name: string+ notes: string | null+ supplierId: string+ swiftBic: string | null+ tags: string[] | null+ updatedAt: string | null+ updatedBy: string | null+ }+ Insert: {+ accountHolderName?: string | null+ accountNumber?: string | null+ active?: boolean+ bankAddress?: string | null+ bankCode?: string | null+ bankName?: string | null+ companyId: string+ countryCode?: string | null+ createdAt?: string+ createdBy: string+ currencyCode?: string | null+ customFields?: Json | null+ id?: string+ isPrimary?: boolean+ name: string+ notes?: string | null+ supplierId: string+ swiftBic?: string | null+ tags?: string[] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Update: {+ accountHolderName?: string | null+ accountNumber?: string | null+ active?: boolean+ bankAddress?: string | null+ bankCode?: string | null+ bankName?: string | null+ companyId?: string+ countryCode?: string | null+ createdAt?: string+ createdBy?: string+ currencyCode?: string | null+ customFields?: Json | null+ id?: string+ isPrimary?: boolean+ name?: string+ notes?: string | null+ supplierId?: string+ swiftBic?: string | null+ tags?: string[] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "supplierBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "companies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "company"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "customFieldTables"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "integrations"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_countryCode_fkey"+ columns: ["countryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["alpha2"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "supplierBankAccount_supplierId_companyId_fkey"+ columns: ["supplierId", "companyId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_supplierId_companyId_fkey"+ columns: ["supplierId", "companyId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_supplierId_companyId_fkey"+ columns: ["supplierId", "companyId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ }+ ]+ }supplierContact: {Row: {companyId: string@@ -83463,6 +83861,8 @@ export type Database = {| "Gauge Calibration Record"| "Purchasing Request for Quote"| "Supplier Quote"+ | "Supplier"+ | "Customer"documentthreadtype:| "nonConformance"| "quote"@@ -84859,6 +85259,8 @@ export const Constants = {"Gauge Calibration Record","Purchasing Request for Quote","Supplier Quote",+ "Supplier",+ "Customer",],documentthreadtype: ["nonConformance",diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.tsindex 50d394cdaf..8060cd646c 100644--- a/packages/database/supabase/functions/lib/types.ts+++ b/packages/database/supabase/functions/lib/types.ts@@ -9472,6 +9472,205 @@ export type Database = {}]}+ customerBankAccount: {+ Row: {+ accountHolderName: string | null+ accountNumber: string | null+ active: boolean+ bankAddress: string | null+ bankCode: string | null+ bankName: string | null+ companyId: string+ countryCode: string | null+ createdAt: string+ createdBy: string+ currencyCode: string | null+ customerId: string+ customFields: Json | null+ id: string+ isPrimary: boolean+ name: string+ notes: string | null+ swiftBic: string | null+ tags: string[] | null+ updatedAt: string | null+ updatedBy: string | null+ }+ Insert: {+ accountHolderName?: string | null+ accountNumber?: string | null+ active?: boolean+ bankAddress?: string | null+ bankCode?: string | null+ bankName?: string | null+ companyId: string+ countryCode?: string | null+ createdAt?: string+ createdBy: string+ currencyCode?: string | null+ customerId: string+ customFields?: Json | null+ id?: string+ isPrimary?: boolean+ name: string+ notes?: string | null+ swiftBic?: string | null+ tags?: string[] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Update: {+ accountHolderName?: string | null+ accountNumber?: string | null+ active?: boolean+ bankAddress?: string | null+ bankCode?: string | null+ bankName?: string | null+ companyId?: string+ countryCode?: string | null+ createdAt?: string+ createdBy?: string+ currencyCode?: string | null+ customerId?: string+ customFields?: Json | null+ id?: string+ isPrimary?: boolean+ name?: string+ notes?: string | null+ swiftBic?: string | null+ tags?: string[] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "customerBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "companies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "company"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "customFieldTables"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "integrations"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_countryCode_fkey"+ columns: ["countryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["alpha2"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "customerBankAccount_customerId_companyId_fkey"+ columns: ["customerId", "companyId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_customerId_companyId_fkey"+ columns: ["customerId", "companyId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_customerId_companyId_fkey"+ columns: ["customerId", "companyId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ }+ ]+ }customerContact: {Row: {companyId: string@@ -56055,6 +56254,205 @@ export type Database = {}]}+ supplierBankAccount: {+ Row: {+ accountHolderName: string | null+ accountNumber: string | null+ active: boolean+ bankAddress: string | null+ bankCode: string | null+ bankName: string | null+ companyId: string+ countryCode: string | null+ createdAt: string+ createdBy: string+ currencyCode: string | null+ customFields: Json | null+ id: string+ isPrimary: boolean+ name: string+ notes: string | null+ supplierId: string+ swiftBic: string | null+ tags: string[] | null+ updatedAt: string | null+ updatedBy: string | null+ }+ Insert: {+ accountHolderName?: string | null+ accountNumber?: string | null+ active?: boolean+ bankAddress?: string | null+ bankCode?: string | null+ bankName?: string | null+ companyId: string+ countryCode?: string | null+ createdAt?: string+ createdBy: string+ currencyCode?: string | null+ customFields?: Json | null+ id?: string+ isPrimary?: boolean+ name: string+ notes?: string | null+ supplierId: string+ swiftBic?: string | null+ tags?: string[] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Update: {+ accountHolderName?: string | null+ accountNumber?: string | null+ active?: boolean+ bankAddress?: string | null+ bankCode?: string | null+ bankName?: string | null+ companyId?: string+ countryCode?: string | null+ createdAt?: string+ createdBy?: string+ currencyCode?: string | null+ customFields?: Json | null+ id?: string+ isPrimary?: boolean+ name?: string+ notes?: string | null+ supplierId?: string+ swiftBic?: string | null+ tags?: string[] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "supplierBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "companies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "company"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "customFieldTables"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "integrations"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_countryCode_fkey"+ columns: ["countryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["alpha2"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "supplierBankAccount_supplierId_companyId_fkey"+ columns: ["supplierId", "companyId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_supplierId_companyId_fkey"+ columns: ["supplierId", "companyId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_supplierId_companyId_fkey"+ columns: ["supplierId", "companyId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id", "companyId"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierBankAccount_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ }+ ]+ }supplierContact: {Row: {companyId: string@@ -83463,6 +83861,8 @@ export type Database = {| "Gauge Calibration Record"| "Purchasing Request for Quote"| "Supplier Quote"+ | "Supplier"+ | "Customer"documentthreadtype:| "nonConformance"| "quote"@@ -84859,6 +85259,8 @@ export const Constants = {"Gauge Calibration Record","Purchasing Request for Quote","Supplier Quote",+ "Supplier",+ "Customer",],documentthreadtype: ["nonConformance",diff --git a/packages/database/supabase/migrations/20260916090307_supplier-customer-document-source.sql b/packages/database/supabase/migrations/20260916090307_supplier-customer-document-source.sqlnew file mode 100644index 0000000000..195cf7efea--- /dev/null+++ b/packages/database/supabase/migrations/20260916090307_supplier-customer-document-source.sql@@ -0,0 +1,5 @@+-- Master records (supplier, customer) can now own documents. Every existing+-- documentSourceType value is a transaction or an item; these are the first+-- two master-record sources.+ALTER TYPE "documentSourceType" ADD VALUE IF NOT EXISTS 'Supplier';+ALTER TYPE "documentSourceType" ADD VALUE IF NOT EXISTS 'Customer';diff --git a/packages/database/supabase/migrations/20260916090316_supplier-customer-bank-accounts.sql b/packages/database/supabase/migrations/20260916090316_supplier-customer-bank-accounts.sqlnew file mode 100644index 0000000000..3403dd2d84--- /dev/null+++ b/packages/database/supabase/migrations/20260916090316_supplier-customer-bank-accounts.sql@@ -0,0 +1,168 @@+-- Counterparty bank accounts: the bank we pay a supplier into, and the bank we+-- refund a customer to. NOT the company's own bank accounts, and unrelated to+-- "payment"."bankAccount", which is a GL chart-of-accounts reference.+--+-- Gated on accounting_* rather than purchasing_*/sales_* on purpose: payments are+-- run by finance, and purchasing_view is very widely held.++CREATE TABLE "supplierBankAccount" (+ "id" TEXT NOT NULL DEFAULT id('sba'),+ "companyId" TEXT NOT NULL,+ "supplierId" TEXT NOT NULL,++ "name" TEXT NOT NULL,+ "accountHolderName" TEXT,+ "bankName" TEXT,+ -- Free text, not an addressId FK: correspondent banks route on this string+ -- and it is printed verbatim onto payment files. Nothing queries or+ -- geocodes it, so the address table's structure would only get in the way.+ "bankAddress" TEXT,+ "countryCode" CHAR(2),+ "currencyCode" TEXT,++ -- The account identifier as the country writes it: an IBAN in SEPA, a plain+ -- account number in the US, a BBAN elsewhere. Storing one column rather than+ -- one per scheme is how Odoo models this; countryCode decides how it is+ -- labelled and validated.+ "accountNumber" TEXT,+ -- The routing identifier: US ABA, UK sort code, AU BSB, IN IFSC, CA transit.+ -- One column for the same reason.+ "bankCode" TEXT,+ "swiftBic" TEXT,++ -- Reserved for a future payment integration. Nothing reads these yet: the+ -- accounts are reference data a person consults, so there is no default to+ -- select and no archive flow. Deliberately left unindexed and unconstrained+ -- until something actually consumes them.+ "isPrimary" BOOLEAN NOT NULL DEFAULT FALSE,+ "active" BOOLEAN NOT NULL DEFAULT TRUE,+ "notes" TEXT,++ "createdBy" TEXT NOT NULL REFERENCES "user"("id"),+ "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),+ "updatedBy" TEXT REFERENCES "user"("id"),+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "customFields" JSONB,+ "tags" TEXT[],++ PRIMARY KEY ("id", "companyId"),+ FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE,+ FOREIGN KEY ("supplierId", "companyId")+ REFERENCES "supplier"("id", "companyId") ON UPDATE CASCADE ON DELETE CASCADE,+ FOREIGN KEY ("countryCode") REFERENCES "country"("alpha2")+ ON UPDATE CASCADE ON DELETE SET NULL+);++CREATE INDEX "supplierBankAccount_companyId_idx" ON "supplierBankAccount" ("companyId");+CREATE INDEX "supplierBankAccount_supplierId_idx" ON "supplierBankAccount" ("supplierId");+CREATE INDEX "supplierBankAccount_createdBy_idx" ON "supplierBankAccount" ("createdBy");+CREATE INDEX "supplierBankAccount_updatedBy_idx" ON "supplierBankAccount" ("updatedBy");+CREATE INDEX "supplierBankAccount_countryCode_idx" ON "supplierBankAccount" ("countryCode");++ALTER TABLE "public"."supplierBankAccount" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "SELECT" ON "public"."supplierBankAccount"+FOR SELECT USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_view'))::text[])+);++CREATE POLICY "INSERT" ON "public"."supplierBankAccount"+FOR INSERT WITH CHECK (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_create'))::text[])+);++CREATE POLICY "UPDATE" ON "public"."supplierBankAccount"+FOR UPDATE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_update'))::text[])+);++CREATE POLICY "DELETE" ON "public"."supplierBankAccount"+FOR DELETE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_delete'))::text[])+);++CREATE TABLE "customerBankAccount" (+ "id" TEXT NOT NULL DEFAULT id('cba'),+ "companyId" TEXT NOT NULL,+ "customerId" TEXT NOT NULL,++ "name" TEXT NOT NULL,+ "accountHolderName" TEXT,+ "bankName" TEXT,+ -- Free text, not an addressId FK: correspondent banks route on this string+ -- and it is printed verbatim onto payment files. Nothing queries or+ -- geocodes it, so the address table's structure would only get in the way.+ "bankAddress" TEXT,+ "countryCode" CHAR(2),+ "currencyCode" TEXT,++ -- The account identifier as the country writes it: an IBAN in SEPA, a plain+ -- account number in the US, a BBAN elsewhere. Storing one column rather than+ -- one per scheme is how Odoo models this; countryCode decides how it is+ -- labelled and validated.+ "accountNumber" TEXT,+ -- The routing identifier: US ABA, UK sort code, AU BSB, IN IFSC, CA transit.+ -- One column for the same reason.+ "bankCode" TEXT,+ "swiftBic" TEXT,++ -- Reserved for a future payment integration. Nothing reads these yet: the+ -- accounts are reference data a person consults, so there is no default to+ -- select and no archive flow. Deliberately left unindexed and unconstrained+ -- until something actually consumes them.+ "isPrimary" BOOLEAN NOT NULL DEFAULT FALSE,+ "active" BOOLEAN NOT NULL DEFAULT TRUE,+ "notes" TEXT,++ "createdBy" TEXT NOT NULL REFERENCES "user"("id"),+ "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),+ "updatedBy" TEXT REFERENCES "user"("id"),+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "customFields" JSONB,+ "tags" TEXT[],++ PRIMARY KEY ("id", "companyId"),+ FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE,+ FOREIGN KEY ("customerId", "companyId")+ REFERENCES "customer"("id", "companyId") ON UPDATE CASCADE ON DELETE CASCADE,+ FOREIGN KEY ("countryCode") REFERENCES "country"("alpha2")+ ON UPDATE CASCADE ON DELETE SET NULL+);++CREATE INDEX "customerBankAccount_companyId_idx" ON "customerBankAccount" ("companyId");+CREATE INDEX "customerBankAccount_customerId_idx" ON "customerBankAccount" ("customerId");+CREATE INDEX "customerBankAccount_createdBy_idx" ON "customerBankAccount" ("createdBy");+CREATE INDEX "customerBankAccount_updatedBy_idx" ON "customerBankAccount" ("updatedBy");+CREATE INDEX "customerBankAccount_countryCode_idx" ON "customerBankAccount" ("countryCode");++ALTER TABLE "public"."customerBankAccount" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "SELECT" ON "public"."customerBankAccount"+FOR SELECT USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_view'))::text[])+);++CREATE POLICY "INSERT" ON "public"."customerBankAccount"+FOR INSERT WITH CHECK (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_create'))::text[])+);++CREATE POLICY "UPDATE" ON "public"."customerBankAccount"+FOR UPDATE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_update'))::text[])+);++CREATE POLICY "DELETE" ON "public"."customerBankAccount"+FOR DELETE USING (+ "companyId" = ANY ((SELECT get_companies_with_employee_permission('accounting_delete'))::text[])+);++-- Register both tables for custom fields. Without these rows the tables never+-- appear in Settings → Custom Fields, so the <CustomFormFields> block on each+-- form has nothing to render and country-specific extras (US ACH account type,+-- an Indian purpose code, a branch name) have nowhere structured to live.+INSERT INTO "customFieldTable" ("table", "module", "name")+VALUES+ ('supplierBankAccount', 'Purchasing', 'Supplier Bank Account'),+ ('customerBankAccount', 'Sales', 'Customer Bank Account')+ON CONFLICT ("table") DO NOTHING;diff --git a/packages/glossary/src/terms.ts b/packages/glossary/src/terms.tsindex ebc63027ff..3fdfa01b30 100644--- a/packages/glossary/src/terms.ts+++ b/packages/glossary/src/terms.ts@@ -2055,5 +2055,13 @@ export const terms = {"magic-link": {term: msg`Magic link`,definition: msg`Carbon's default passwordless sign-in: an emailed one-time link that signs you in when opened, with no password to remember or leak.`+ },+ iban: {+ term: msg`IBAN`,+ definition: msg`An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code.`+ },+ "swift-bic": {+ term: msg`SWIFT / BIC`,+ definition: msg`The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead.`}} as const satisfies Record<string, GlossaryEntry>;diff --git a/packages/jobs/manifests/schema.json b/packages/jobs/manifests/schema.jsonindex eba201a011..8f7c043096 100644--- a/packages/jobs/manifests/schema.json+++ b/packages/jobs/manifests/schema.json@@ -1,11 +1,11 @@{"kind": "carbon-company-backup","version": 1,- "schemaVersion": "20260915192947",+ "schemaVersion": "20260916143022","sourceCompanyId": "schema-baseline","sourceCompanyGroupId": null,"sourceCompanyName": null,- "exportedAt": "2026-09-15T19:41:29.579Z",+ "exportedAt": "2026-09-17T06:52:25.706Z","exportedBy": "schema-baseline","label": "schema baseline","includeStorage": "none",@@ -14,107 +14,107 @@"name": "account","rows": 0,"columns": [- "incomeBalance",- "updatedAt",- "createdBy",- "number",- "consolidatedRate",- "id",- "active",- "isSystem",- "name",- "createdAt",- "companyGroupId",- "tags",+ "customFields","updatedBy","isGroup",- "customFields",- "accountType",+ "parentId","class",- "parentId"+ "accountType",+ "isSystem",+ "tags",+ "companyGroupId",+ "name",+ "createdAt",+ "active",+ "id",+ "consolidatedRate",+ "incomeBalance",+ "number",+ "createdBy",+ "updatedAt"]},{"name": "accountDefault","rows": 0,"columns": [- "laborAbsorptionAccount",- "updatedBy",- "salesReturnsAccount",- "laborAndMachineVarianceAccount",- "rawMaterialsAccount",- "workInProgressAccount",- "overheadAbsorptionAccount",- "purchaseTaxPayableAccount",- "salesTaxPayableAccount",- "deferredTaxLiabilityAccountId",- "inventoryAdjustmentVarianceAccount",- "deferredTaxExpenseAccountId",- "companyId",- "finishedGoodsAccount",- "assetLossOnDisposalAccount",- "materialVarianceAccount",- "bankForeignCurrencyAccount",- "accumulatedDepreciationOnDisposalAccount",- "realizedExchangeGainAccount",- "purchaseVarianceAccount",- "salesShippingRevenueAccount",+ "serviceChargeAccount",+ "supplierWriteOffAccount",+ "goodsReceivedNotInvoicedAccount",+ "retainedEarningsAccount",+ "maintenanceAccount",+ "salesAccount",+ "prepaymentAccount","overheadVarianceAccount",+ "salesShippingRevenueAccount","realizedExchangeLossAccount",- "prepaymentAccount",- "salesAccount",- "maintenanceAccount",- "retainedEarningsAccount",- "goodsReceivedNotInvoicedAccount",- "supplierWriteOffAccount",- "serviceChargeAccount",- "interestAccount",- "assetAquisitionCostAccount",- "supplierPrepaymentAccount",- "intercompanyPayablesAccount",- "lotSizeVarianceAccount",- "indirectCostAccount",- "bankCashAccount",- "roundingAccount",- "scrapAccount",- "assetAquisitionCostOnDisposalAccount",- "subcontractingVarianceAccount",- "bankLocalCurrencyAccount",- "receivablesAccount",- "payablesAccount",- "intercompanyReceivablesAccount",- "accumulatedDepreciationAccount",- "supplierPaymentDiscountAccount",- "reverseChargeSalesTaxPayableAccount",+ "purchaseVarianceAccount",+ "realizedExchangeGainAccount",+ "accumulatedDepreciationOnDisposalAccount",+ "bankForeignCurrencyAccount",+ "materialVarianceAccount",+ "inventoryAdjustmentVarianceAccount",+ "assetLossOnDisposalAccount",+ "finishedGoodsAccount",+ "companyId",+ "deferredTaxExpenseAccountId",+ "deferredTaxLiabilityAccountId",+ "salesTaxPayableAccount",+ "purchaseTaxPayableAccount",+ "overheadAbsorptionAccount",+ "rawMaterialsAccount",+ "laborAndMachineVarianceAccount",+ "salesReturnsAccount",+ "workInProgressAccount",+ "updatedBy",+ "laborAbsorptionAccount",+ "assetDepreciationExpenseAccount",+ "salesDiscountAccount",+ "costOfGoodsSoldAccount",+ "customerWriteOffAccount",+ "assetGainOnDisposalAccount","customerPaymentDiscountAccount","currencyTranslationAccount",- "assetGainOnDisposalAccount",- "customerWriteOffAccount",- "salesDiscountAccount",- "assetDepreciationExpenseAccount",- "costOfGoodsSoldAccount"+ "reverseChargeSalesTaxPayableAccount",+ "supplierPaymentDiscountAccount",+ "payablesAccount",+ "accumulatedDepreciationAccount",+ "intercompanyReceivablesAccount",+ "receivablesAccount",+ "bankLocalCurrencyAccount",+ "scrapAccount",+ "subcontractingVarianceAccount",+ "assetAquisitionCostOnDisposalAccount",+ "bankCashAccount",+ "indirectCostAccount",+ "roundingAccount",+ "lotSizeVarianceAccount",+ "intercompanyPayablesAccount",+ "supplierPrepaymentAccount",+ "assetAquisitionCostAccount",+ "interestAccount"]},{"name": "accountingPeriod","rows": 0,"columns": [- "status",- "periodNumber",- "endDate",- "closedBy",- "closeStatus",- "companyId",- "lockedAt",- "startDate",- "fiscalYear",- "lockedBy",- "updatedBy",- "createdBy",+ "closedAt","updatedAt","id","createdAt",- "closedAt"+ "updatedBy",+ "createdBy",+ "fiscalYear",+ "startDate",+ "lockedBy",+ "lockedAt",+ "companyId",+ "closeStatus",+ "closedBy",+ "status",+ "periodNumber",+ "endDate"]},{@@ -122,82 +122,82 @@"rows": 0,"columns": ["endingBalance",- "createdBy","accountingPeriodId","accountId",- "endingBalanceDate",+ "createdBy","updatedBy","id",- "createdAt",+ "endingBalanceDate",+ "companyId","updatedAt",- "companyId"+ "createdAt"]},{"name": "accountingSyncOperation","rows": 0,"columns": [- "trigger",+ "completedAt",+ "updatedAt",+ "entityId",+ "createdBy",+ "externalId","integration","errorMessage","entityType",- "updatedBy","createdAt",- "externalId",- "createdBy",- "entityId",- "completedAt",- "updatedAt",- "status",- "attemptCount",- "metadata",- "errorCode",- "companyId",- "direction",+ "updatedBy",+ "trigger","idempotencyKey","id",- "lastAttemptAt"+ "lastAttemptAt",+ "direction",+ "metadata",+ "companyId",+ "errorCode",+ "status",+ "attemptCount"]},{"name": "accountingSyncTieOut","rows": 0,"columns": [- "computedAt",- "createdAt",- "accountId",- "providerAmount",- "syncedAmount",- "updatedAt",- "updatedBy",- "accountingPeriodId",- "externalDelta",- "integration",- "carbonPostedAmount",- "blockedAmount",- "id",- "excludedAmount",- "pendingAmount","docBackedAmount",+ "pendingAmount",+ "createdBy","internalDelta","companyId",- "createdBy"+ "carbonPostedAmount",+ "excludedAmount",+ "id",+ "blockedAmount",+ "syncedAmount",+ "integration",+ "externalDelta",+ "accountingPeriodId",+ "updatedAt",+ "updatedBy",+ "computedAt",+ "createdAt",+ "accountId",+ "providerAmount"]},{"name": "address","rows": 0,"columns": [- "addressLine2",- "city",- "countryCode",- "stateProvince",- "addressLine1",- "companyId","phone",+ "companyId",+ "addressLine1",+ "postalCode","fax","id",- "postalCode"+ "countryCode",+ "addressLine2",+ "city",+ "stateProvince"]},{@@ -220,111 +220,111 @@"name": "agentMessage","rows": 0,"columns": [- "feedback",- "createdBy",- "id",- "inputTokens","outputTokens","finishReason","updatedBy","threadId",- "context",- "createdAt",+ "feedback",+ "createdBy",+ "id",+ "inputTokens","feedbackNote","role","companyId",- "updatedAt"+ "updatedAt",+ "context",+ "createdAt"]},{"name": "agentMessagePart","rows": 0,"columns": [- "toolOutput",- "id",- "toolCallId",- "textContent",+ "toolName",+ "updatedAt",+ "errorMessage",+ "companyId",+ "orderIndex",+ "updatedBy",+ "createdBy",+ "toolState",+ "type",+ "toolInput",+ "toolClassification","messageId","toolDurationMs","createdAt",- "toolInput",- "toolClassification",- "toolState",- "type",- "updatedBy",- "createdBy",- "updatedAt",- "orderIndex",- "companyId",- "errorMessage",- "toolName"+ "textContent",+ "toolOutput",+ "toolCallId",+ "id"]},{"name": "approvalRequest","rows": 0,"columns": [- "requestedAt",- "documentId",- "createdAt",- "status",- "updatedBy",- "companyId",- "amount","decisionAt",- "updatedAt","documentType","createdBy",+ "updatedAt","requestedBy",- "decisionBy",+ "decisionNotes","id",- "decisionNotes"+ "decisionBy",+ "requestedAt",+ "status",+ "documentId",+ "createdAt",+ "updatedBy",+ "companyId",+ "amount"]},{"name": "approvalRule","rows": 0,"columns": [- "documentType",- "createdAt",- "companyId",- "updatedBy",- "id",- "createdBy",- "lowerBoundAmount",- "approverGroupIds","enabled",+ "approverGroupIds","escalationDays",+ "updatedAt","defaultApproverId",- "updatedAt"+ "documentType",+ "companyId",+ "createdAt",+ "createdBy",+ "id",+ "updatedBy",+ "lowerBoundAmount"]},{"name": "auditLogArchive","rows": 0,"columns": [- "companyId",- "createdAt",- "id",- "rowCount",+ "sizeBytes","startDate","archivePath",- "sizeBytes",- "endDate"+ "endDate",+ "createdAt",+ "companyId",+ "rowCount",+ "id"]},{"name": "changeOrderRequiredAction","rows": 0,"columns": [- "updatedAt","companyId",- "createdAt",+ "updatedAt","id","customFields",- "updatedBy",+ "createdAt","active","name",+ "updatedBy","createdBy"]},@@ -332,207 +332,207 @@"name": "changeOrderType","rows": 0,"columns": [- "createdBy",- "createdAt","companyId",+ "createdAt","updatedBy",+ "createdBy",+ "name","id",- "updatedAt",- "name"+ "updatedAt"]},{"name": "companyAccountsPayableBillingAddress","rows": 0,"columns": [- "updatedAt",- "city",- "addressLine1",- "addressLine2",- "postalCode",+ "fax",+ "countryCode",+ "updatedBy",+ "name",+ "state","email","phone","id",- "state",- "name",- "updatedBy",- "fax",- "countryCode"+ "postalCode",+ "addressLine1",+ "addressLine2",+ "city",+ "updatedAt"]},{"name": "companyAccountsReceivableBillingAddress","rows": 0,"columns": [- "updatedAt",- "city","postalCode","addressLine2","addressLine1",+ "city",+ "updatedAt",+ "countryCode",+ "fax",+ "updatedBy",+ "name","state",- "email","id","phone",- "fax",- "countryCode",- "name",- "updatedBy"+ "email"]},{"name": "companySettings","rows": 0,"columns": [- "productLabelSize",- "showCustomerReadableId",- "plmReleaseControl",- "id",- "salesJobCompletedNotificationGroup",- "autoStartOperationTimer",- "enforceInspectionFourEyes",- "requireMfa",- "updateLeadTimesOnReceipt",- "accountsPayableEmail",- "useMetric",- "returnPickedMaterialTiming",- "accountingEnabled",- "accountsReceivableAddress",- "inventoryJobCompletedNotificationGroup",- "accountsPayableAddress",- "includeMaterialsOnTraveler",- "materialGeneratedIds",- "qualityIssueTarget",- "inventoryShelfLife",- "incompletePickingListPolicy",- "gaugeCalibrationExpiredNotificationGroup",- "digitalQuoteEnabled",- "consoleEnabled",- "assetTaxDepreciationEnabled",- "otherDispatchNotificationGroup",- "allowLowercaseItemIds",- "supplierQuoteNotificationGroup",- "assetTaxRate",- "defaultSupplierCc",- "rfqReadyNotificationGroup",- "operationsDispatchNotificationGroup",- "kanbanOutput",- "quoteLineCategoryMarkups",- "defaultCustomerCc",- "printing",- "showCurrencyTrailingZeros",- "shelfLabelSize",- "timeCardEnabled",- "accountsReceivableEmail",+ "autoSelectMaterialWithoutPickingList","digitalQuoteIncludesPurchaseOrders",- "purchasePriceUpdateTiming","digitalQuoteNotificationGroup",- "autoSelectMaterialWithoutPickingList",+ "purchasePriceUpdateTiming",+ "maintenanceDispatchNotificationGroup",+ "samplingStandard","showSupplierReadableId","qualityDispatchNotificationGroup",- "maintenanceDispatchNotificationGroup",- "samplingStandard"+ "accountsReceivableEmail",+ "showCurrencyTrailingZeros",+ "printing",+ "defaultCustomerCc",+ "shelfLabelSize",+ "timeCardEnabled",+ "defaultSupplierCc",+ "assetTaxRate",+ "operationsDispatchNotificationGroup",+ "kanbanOutput",+ "quoteLineCategoryMarkups",+ "rfqReadyNotificationGroup",+ "assetTaxDepreciationEnabled",+ "otherDispatchNotificationGroup",+ "supplierQuoteNotificationGroup",+ "allowLowercaseItemIds",+ "inventoryShelfLife",+ "incompletePickingListPolicy",+ "consoleEnabled",+ "digitalQuoteEnabled",+ "gaugeCalibrationExpiredNotificationGroup",+ "inventoryJobCompletedNotificationGroup",+ "accountsReceivableAddress",+ "accountsPayableAddress",+ "returnPickedMaterialTiming",+ "accountingEnabled",+ "materialGeneratedIds",+ "qualityIssueTarget",+ "includeMaterialsOnTraveler",+ "autoStartOperationTimer",+ "id",+ "plmReleaseControl",+ "salesJobCompletedNotificationGroup",+ "accountsPayableEmail",+ "useMetric",+ "requireMfa",+ "enforceInspectionFourEyes",+ "updateLeadTimesOnReceipt",+ "productLabelSize",+ "showCustomerReadableId"]},{"name": "companyUsage","rows": 0,"columns": [- "users",- "updatedAt",- "id",- "companyId","aiTokens","tasks","createdAt",- "nextResetDatetime"+ "nextResetDatetime",+ "users",+ "updatedAt",+ "id",+ "companyId"]},{"name": "consumable","rows": 0,"columns": [- "customFields",- "tags","approved","approvedBy","createdBy",+ "tags",+ "customFields",+ "updatedAt",+ "createdAt","updatedBy","id",- "companyId",- "updatedAt",- "createdAt"+ "companyId"]},{"name": "contact","rows": 0,"columns": [- "isCustomer",- "email",+ "homePhone",+ "fax",+ "firstName",+ "title",+ "id",+ "workPhone",+ "mobilePhone","lastName","companyId","notes",- "mobilePhone",- "workPhone",- "id",- "title",- "firstName",- "homePhone",- "fax"+ "isCustomer",+ "email"]},{"name": "costCenter","rows": 0,"columns": [- "createdBy",- "updatedBy",- "parentCostCenterId",- "companyId",- "createdAt","customFields","id",+ "createdAt",+ "name","ownerId","updatedAt",- "name"+ "createdBy",+ "parentCostCenterId",+ "companyId",+ "updatedBy"]},{"name": "currency","rows": 0,"columns": [- "updatedAt",- "companyGroupId",- "createdBy",- "active",+ "updatedBy",+ "tags",+ "historicalExchangeRate",+ "code",+ "customFields","createdAt","id","decimalPlaces",- "code",- "customFields",- "updatedBy",- "historicalExchangeRate",- "tags"+ "updatedAt",+ "companyGroupId",+ "createdBy",+ "active"]},{"name": "customField","rows": 0,"columns": [- "updatedBy","dataTypeId",- "active",- "sortOrder",- "required",+ "updatedBy","table",- "listOptions",- "createdAt",+ "required",+ "sortOrder",+ "active","id",+ "createdAt","updatedAt",- "companyId",- "createdBy",+ "listOptions",+ "tags","name",- "tags"+ "companyId",+ "createdBy"]},{@@ -540,62 +540,62 @@"rows": 0,"columns": ["createdBy",- "updatedAt","createdAt","companyId",- "updatedBy",+ "updatedAt","id","tags",- "customFields",- "name"+ "updatedBy",+ "name",+ "customFields"]},{"name": "customerType","rows": 0,"columns": [+ "updatedBy","companyId","protected",- "updatedBy","createdAt",- "name","tags","updatedAt",+ "name",+ "createdBy","id",- "customFields",- "createdBy"+ "customFields"]},{"name": "department","rows": 0,"columns": [- "createdBy",- "updatedBy",- "companyId",- "parentDepartmentId",- "createdAt",- "id",- "customFields","tags","updatedAt",- "name"+ "name",+ "createdAt",+ "customFields",+ "id",+ "updatedBy",+ "parentDepartmentId",+ "companyId",+ "createdBy"]},{"name": "depreciationRun","rows": 0,"columns": [- "createdBy",- "id",- "postedBy",- "depreciationRunId",- "updatedBy",- "createdAt",- "postedAt",- "periodEnd",+ "companyId","status",- "companyId"+ "periodEnd",+ "postedAt",+ "createdAt",+ "updatedBy",+ "depreciationRunId",+ "postedBy",+ "id",+ "createdBy"]},{@@ -603,82 +603,82 @@"rows": 0,"columns": ["active",- "companyGroupId",- "entityType","createdBy",- "id",- "updatedBy",+ "entityType",+ "companyGroupId","required",- "name",+ "updatedBy",+ "id",+ "updatedAt","createdAt",- "updatedAt"+ "name"]},{"name": "dimensionValue","rows": 0,"columns": [- "id",- "createdAt",- "dimensionId",- "updatedAt",- "createdBy",- "name",+ "updatedBy","companyGroupId",- "updatedBy"+ "name",+ "createdBy",+ "updatedAt",+ "dimensionId",+ "createdAt",+ "id"]},{"name": "document","rows": 0,"columns": [+ "path",+ "createdAt",+ "sourceDocument",+ "active",+ "readGroups",+ "companyId",+ "id",+ "writeGroups","description",- "name","updatedBy",+ "name","type","createdBy","size","sourceDocumentId",- "updatedAt",- "sourceDocument",- "path",- "createdAt",- "readGroups",- "active",- "id",- "writeGroups",- "companyId"+ "updatedAt"]},{"name": "documentExtraction","rows": 0,"columns": [- "createdAt","storagePath",- "status",- "sourceDocumentId",- "updatedAt",+ "createdAt","sourceDocument",- "documentType",- "createdBy",- "id",+ "updatedAt",+ "sourceDocumentId",+ "status","filteredData",- "error",- "extractedData",+ "id",+ "createdBy",+ "documentType",+ "updatedBy","companyId",- "updatedBy"+ "extractedData",+ "error"]},{"name": "documentFavorite","rows": 0,- "columns": ["documentId", "userId"]+ "columns": ["userId", "documentId"]},{"name": "documentLabel","rows": 0,- "columns": ["userId", "documentId", "companyId", "label"]+ "columns": ["userId", "documentId", "label", "companyId"]},{"name": "documentSection",@@ -700,149 +700,149 @@"name": "documentTemplate","rows": 0,"columns": [- "createdBy",- "headerSectionId",+ "formatVersion",+ "documentType",+ "settings",+ "updatedBy",+ "blocks","companyId","updatedAt",- "theme",- "createdAt",+ "headerSectionId",+ "createdBy","id","footerSectionId",- "settings",- "formatVersion",- "documentType",- "updatedBy",- "blocks"+ "createdAt",+ "theme"]},{"name": "documentTransaction","rows": 0,"columns": [+ "type",+ "userId",+ "createdAt","documentId","id",- "companyId",- "userId",- "type",- "createdAt"+ "companyId"]},{"name": "employeeType","rows": 0,"columns": [- "createdAt",- "companyId",- "protected","systemType",- "id",+ "protected",+ "companyId",+ "createdAt",+ "name","updatedAt",- "name"+ "id"]},{"name": "employee","rows": 0,- "columns": ["id", "companyId", "pin", "active", "employeeTypeId"]+ "columns": ["companyId", "id", "employeeTypeId", "active", "pin"]},{"name": "employeeTypePermission","rows": 0,"columns": [- "update",- "create",- "delete","createdAt",- "employeeTypeId",- "view",+ "delete",+ "create",+ "update",+ "updatedAt","module",- "updatedAt"+ "view",+ "employeeTypeId"]},{"name": "eventSystemSubscription","rows": 0,"columns": [- "id",- "createdAt",- "filter","name","config","active",- "operations",- "table",+ "id",+ "createdAt",+ "filter","companyId",- "handlerType"+ "table",+ "handlerType",+ "operations"]},{"name": "exchangeRateOverride","rows": 0,"columns": [- "rate",- "currencyCode",- "updatedBy",- "createdBy",- "companyId","updatedAt",+ "companyId",+ "createdAt","id",- "createdAt"+ "updatedBy",+ "rate",+ "currencyCode",+ "createdBy"]},{"name": "externalIntegrationMapping","rows": 0,"columns": [- "entityId",- "updatedBy",- "integration",- "metadata",- "createdBy",- "externalId",- "entityType",- "companyId",- "lastSyncedAt",- "createdAt",- "remoteUpdatedAt",+ "allowDuplicateExternalId","id",+ "remoteUpdatedAt","updatedAt",- "allowDuplicateExternalId"+ "lastSyncedAt",+ "createdAt",+ "entityType",+ "companyId",+ "createdBy",+ "externalId",+ "metadata",+ "integration",+ "entityId",+ "updatedBy"]},{"name": "fiscalYearSettings","rows": 0,- "columns": ["startMonth", "companyId", "taxStartMonth", "updatedBy"]+ "columns": ["taxStartMonth", "updatedBy", "startMonth", "companyId"]},{"name": "fixedAssetClass","rows": 0,"columns": [- "name",- "taxDepreciationMethod",- "macrsPropertyClass",- "writeOffAccountId",- "customFields",- "accumulatedDepreciationAccountId",- "writeDownAccountId",- "depreciationExpenseAccountId",- "id",- "gainOnDisposalAccountId",- "residualValuePercent",- "bonusDepreciationPercent",- "companyId",- "description",+ "updatedAt",+ "usefulLifeMonths",+ "lossOnDisposalAccountId",+ "createdAt",+ "taxResidualValuePercent",+ "createdBy",+ "macrsConvention","taxUsefulLifeMonths",+ "description","depreciationMethod",+ "companyId",+ "bonusDepreciationPercent","assetAccountId","updatedBy",- "lossOnDisposalAccountId",- "createdAt",- "usefulLifeMonths",- "updatedAt",- "macrsConvention",- "createdBy",- "taxResidualValuePercent"+ "depreciationExpenseAccountId",+ "id",+ "writeDownAccountId",+ "residualValuePercent",+ "gainOnDisposalAccountId",+ "macrsPropertyClass",+ "taxDepreciationMethod",+ "name",+ "accumulatedDepreciationAccountId",+ "customFields",+ "writeOffAccountId"]},{@@ -854,8 +854,8 @@"name","updatedBy","createdAt",- "customFields","companyId",+ "customFields","updatedAt"]},@@ -863,33 +863,33 @@"name": "group","rows": 0,"columns": [- "isCustomerOrgGroup",- "updatedAt",- "id",- "isSupplierOrgGroup",- "createdAt",- "isSupplierTypeGroup",- "name","isEmployeeTypeGroup",- "isCustomerTypeGroup",+ "companyId","isIdentityGroup",- "companyId"+ "isCustomerTypeGroup",+ "isSupplierOrgGroup",+ "id",+ "updatedAt",+ "isCustomerOrgGroup",+ "name",+ "isSupplierTypeGroup",+ "createdAt"]},{"name": "holiday",- "rows": 0,- "columns": [- "createdAt",- "date",- "companyId",- "customFields",+ "rows": 0,+ "columns": ["updatedBy",+ "customFields","name","createdBy",- "tags",+ "updatedAt","id",- "updatedAt"+ "tags",+ "createdAt",+ "date",+ "companyId"]},{@@ -911,292 +911,292 @@"name": "implementationFieldValue","rows": 0,"columns": [- "createdBy",- "value",- "fieldKey",- "updatedBy",- "id","createdAt",+ "id",+ "updatedAt","companyId",- "updatedAt"+ "createdBy",+ "updatedBy",+ "value",+ "fieldKey"]},{"name": "implementationRow","rows": 0,"columns": [+ "sortOrder",+ "createdAt",+ "collection",+ "payload","createdBy","updatedAt","id","updatedBy",- "companyId",- "sortOrder",- "createdAt",- "collection",- "payload"+ "companyId"]},{"name": "invite","rows": 0,"columns": [- "revokedAt",- "createdAt",- "attestedAt",- "code",+ "attestedBy",+ "role",+ "createdBy",+ "email",+ "permissions","companyId","updatedBy",- "id","acceptedAt",- "createdBy",- "permissions",- "email",- "role",- "attestedBy"+ "id",+ "revokedAt",+ "createdAt",+ "code",+ "attestedAt"]},{"name": "itarCertification","rows": 0,"columns": [- "fullLegalName",+ "docVersion",+ "userAgent",+ "createdAt",+ "updatedAt",+ "userId","type","createdBy",- "userId",- "updatedAt",- "createdAt",- "userAgent",- "docVersion",- "title",- "certifiedAt",+ "fullLegalName",+ "id",+ "complianceContact",+ "ipAddress",+ "docHash","updatedBy",- "companyId","expiresAt",- "docHash",- "complianceContact",- "id",- "ipAddress"+ "companyId",+ "title",+ "certifiedAt"]},{"name": "itemPostingGroup","rows": 0,"columns": [- "companyId",- "description","active",+ "description","createdAt",- "updatedAt",- "id",- "tags",- "createdBy",+ "companyId","name","updatedBy",- "customFields"+ "customFields",+ "id",+ "updatedAt",+ "tags",+ "createdBy"]},{"name": "itemStockQuantities","rows": 0,- "columns": ["itemId", "companyId", "quantityOnHand", "locationId"]+ "columns": ["locationId", "quantityOnHand", "itemId", "companyId"]},{"name": "journal","rows": 0,"columns": [- "postingDate",- "reversalOfId",- "postedBy",- "updatedAt",- "eliminationKind",- "updatedBy",+ "customFields","postedAt","accountingPeriodId","companyId",- "customFields",- "sourceType",+ "updatedBy",+ "eliminationKind",+ "updatedAt",+ "postedBy",+ "reversalOfId",+ "postingDate",+ "tags",+ "status",+ "createdBy",+ "description",+ "reversedById",+ "createdAt","journalEntryId","id",- "createdAt",- "reversedById",- "description",- "createdBy",- "status",- "tags"+ "sourceType"]},{"name": "journalLine","rows": 0,"columns": [- "documentId",- "journalLineReference",- "tags",- "companyId",- "journalId",- "quantity",- "id",- "externalDocumentId",- "documentLineReference",- "documentType",- "description",- "createdAt",- "updatedBy",- "updatedAt",+ "accountId","createdBy","customFields",- "accountId",- "amount",+ "accrual","intercompanyPartnerId",- "accrual"+ "amount",+ "documentType",+ "updatedAt",+ "updatedBy",+ "createdAt",+ "description",+ "quantity",+ "documentLineReference",+ "externalDocumentId",+ "id",+ "journalLineReference",+ "documentId",+ "journalId",+ "companyId",+ "tags"]},{"name": "intercompanyTransaction","rows": 0,"columns": [- "updatedAt","status","sourceJournalLineId",- "amount",+ "updatedAt",+ "targetCompanyId","sourceCompanyId","createdAt",- "targetCompanyId",- "targetJournalLineId",- "description",+ "amount","id",+ "description","documentId",- "currencyCode",- "documentType",+ "targetJournalLineId","companyGroupId",- "eliminationJournalId"+ "eliminationJournalId",+ "currencyCode",+ "documentType"]},{"name": "intercompanyEliminationLine","rows": 0,"columns": [- "quantity",- "id",- "createdAt",- "accountId",- "updatedAt",- "companyId","itemId","createdBy",- "journalLineId",- "updatedBy",- "intercompanyTransactionId",+ "updatedAt",+ "companyId",+ "accountId",+ "id",+ "quantity",+ "createdAt",+ "amount","role",- "amount"+ "intercompanyTransactionId",+ "journalLineId",+ "updatedBy"]},{"name": "journalLineDimension","rows": 0,"columns": [- "journalLineId",- "id","createdAt",- "valueId",+ "id",+ "journalLineId",+ "companyId","dimensionId",- "companyId"+ "valueId"]},{"name": "location","rows": 0,"columns": [+ "countryCode",+ "latitude","updatedAt","name","createdBy",- "countryCode",- "latitude",- "timezone",+ "stateProvince","id",+ "timezone","longitude",- "stateProvince",+ "postalCode",+ "addressLine2","addressLine1","createdAt",- "addressLine2","tags","code",- "postalCode",- "companyId",- "requiresStaffing",- "city","customFields",- "updatedBy"+ "updatedBy",+ "requiresStaffing",+ "companyId",+ "city"]},{"name": "fixedAsset","rows": 0,"columns": [- "depreciationMethod",- "updatedAt",- "createdBy",- "customFields",- "residualValuePercent",- "disposalDate",- "bonusDepreciationPercent",- "fixedAssetId",- "taxResidualValuePercent",- "serialNumber","disposalMethod",- "id",- "usefulLifeMonths",+ "serialNumber","companyId","taxDepreciationMethod",- "createdAt",- "locationId",- "status",- "notes",- "name",- "fixedAssetClassId",- "macrsPropertyClass",- "acquisitionDate",- "depreciationStartDate",- "saleProceeds",- "acquisitionCost",+ "id",+ "usefulLifeMonths",+ "disposalDate",+ "customFields",+ "residualValuePercent",+ "updatedAt",+ "depreciationMethod",+ "createdBy",+ "taxResidualValuePercent",+ "fixedAssetId",+ "bonusDepreciationPercent","macrsConvention","accumulatedTaxDepreciation",- "assetLifetimeUsage",+ "saleProceeds",+ "acquisitionCost",+ "description","accumulatedDepreciation","updatedBy","taxUsefulLifeMonths",- "description"+ "assetLifetimeUsage",+ "notes",+ "locationId",+ "status",+ "createdAt",+ "depreciationStartDate",+ "acquisitionDate",+ "name",+ "macrsPropertyClass",+ "fixedAssetClassId"]},{"name": "depreciationRunLine","rows": 0,"columns": [- "companyId",- "fixedAssetId",- "amount",- "taxAmount",- "depreciationRunId","journalId",- "id"+ "id",+ "depreciationRunId",+ "taxAmount",+ "companyId",+ "fixedAssetId",+ "amount"]},{"name": "fixedAssetDisposal","rows": 0,"columns": [- "netBookValueAtDisposal",- "companyId",- "id",- "createdBy",+ "gainLoss",+ "disposalDate",+ "disposalMethod",+ "updatedBy",+ "saleProceeds","journalId","createdAt","fixedAssetId",- "saleProceeds",- "updatedBy",- "gainLoss",- "disposalMethod",- "disposalDate"+ "netBookValueAtDisposal",+ "id",+ "companyId",+ "createdBy"]},{@@ -1204,50 +1204,50 @@"rows": 0,"columns": ["createdAt",- "periodEnd","periodStart",+ "periodEnd","unitsProduced","createdBy","fixedAssetId","companyId",- "id",- "updatedBy"+ "updatedBy",+ "id"]},{"name": "inventoryCount","rows": 0,"columns": [- "isBlind",+ "locationId",+ "updatedBy",+ "inventoryCountId",+ "scope",+ "createdBy",+ "status",+ "updatedAt",+ "companyId",+ "createdAt",+ "customFields",+ "postedBy",+ "snapshotAt","postedAt","id","notes",- "postedBy",- "snapshotAt",- "createdAt",- "companyId",- "customFields",- "updatedAt",- "status",- "createdBy",- "scope",- "locationId",- "inventoryCountId",- "updatedBy"+ "isBlind"]},{"name": "maintenanceFailureMode","rows": 0,"columns": [- "id",- "updatedBy",+ "companyId",+ "createdBy",+ "updatedAt",+ "createdAt","name","type",- "createdAt",- "createdBy",- "companyId",- "updatedAt"+ "id",+ "updatedBy"]},{@@ -1269,132 +1269,132 @@{"name": "materialDimension","rows": 0,- "columns": ["name", "isMetric", "companyId", "materialFormId", "id"]+ "columns": ["id", "materialFormId", "companyId", "name", "isMetric"]},{"name": "materialSubstance","rows": 0,"columns": [- "updatedBy",- "customFields",- "companyId",- "createdBy",- "code",- "updatedAt","name",- "createdAt",+ "updatedAt",+ "code",+ "tags","id",- "tags"+ "createdAt",+ "companyId",+ "customFields",+ "updatedBy",+ "createdBy"]},{"name": "materialFinish","rows": 0,- "columns": ["companyId", "materialSubstanceId", "name", "id"]+ "columns": ["name", "id", "companyId", "materialSubstanceId"]},{"name": "materialGrade","rows": 0,- "columns": ["companyId", "name", "id", "materialSubstanceId"]+ "columns": ["materialSubstanceId", "id", "name", "companyId"]},{"name": "materialType","rows": 0,"columns": [- "code",- "materialSubstanceId",- "materialFormId",- "name",+ "companyId","id",- "companyId"+ "name",+ "materialFormId",+ "materialSubstanceId",+ "code"]},{"name": "material","rows": 0,"columns": [- "companyId",- "approvedBy",- "id",- "createdAt",- "customFields",- "approved","createdBy","gradeId","tags",- "updatedAt","materialTypeId",+ "updatedAt","dimensionId","finishId","materialFormId","updatedBy",- "materialSubstanceId"+ "materialSubstanceId",+ "companyId",+ "approvedBy",+ "id",+ "createdAt",+ "customFields",+ "approved"]},{"name": "membership","rows": 0,- "columns": ["groupId", "id", "memberUserId", "memberGroupId"]+ "columns": ["memberGroupId", "memberUserId", "id", "groupId"]},{"name": "modelUpload","rows": 0,"columns": [+ "thumbnailPath",+ "name",+ "glbPath",+ "optimizedSize",+ "updatedAt",+ "createdAt",+ "updatedBy",+ "createdBy",+ "id",+ "originalSize",+ "processedAt",+ "componentCount",+ "processingStatus",+ "size",+ "modelPath",+ "companyId",+ "optimizedAt",+ "autodeskUrn",+ "optimizedModelPath",+ "optimizeError","processingError","optimizeStatus",- "originalPath","graphPath",- "optimizeError",- "autodeskUrn",- "optimizedModelPath",- "optimizedAt",- "companyId",- "modelPath",- "size",- "processingStatus",- "processedAt",- "componentCount",- "originalSize",- "id",- "createdBy",- "updatedBy",- "createdAt",- "optimizedSize",- "updatedAt",- "glbPath",- "thumbnailPath",- "name"+ "originalPath"]},{"name": "assemblyPlanJob","rows": 0,"columns": [- "planPath",- "error",- "status",- "kind",- "stats",+ "modelUploadId",+ "createdAt",+ "companyId",+ "updatedAt","id","createdBy",- "updatedAt",- "companyId",- "createdAt",- "modelUploadId"+ "stats",+ "status",+ "kind",+ "error",+ "planPath"]},{"name": "noQuoteReason","rows": 0,"columns": [- "createdBy","updatedAt","createdAt","companyId",- "updatedBy",- "id",+ "createdBy","customFields",- "name"+ "name",+ "updatedBy",+ "id"]},{@@ -1402,449 +1402,449 @@"rows": 0,"columns": ["createdAt",- "active",- "name","updatedAt",- "id",- "systemType",+ "name",+ "active","createdBy",- "companyId",- "updatedBy"+ "systemType",+ "id",+ "updatedBy",+ "companyId"]},{"name": "nonConformanceType","rows": 0,"columns": [- "name",- "customFields",- "id",- "updatedAt",+ "createdBy",+ "updatedBy","createdAt","companyId",- "updatedBy",- "createdBy"+ "updatedAt",+ "id",+ "customFields",+ "name"]},{"name": "nonConformanceWorkflow","rows": 0,"columns": [- "createdBy",- "description",- "content",- "requiredActionIds","priority","companyId","updatedAt",- "updatedBy",+ "requiredActionIds",+ "content",+ "description",+ "createdBy",+ "tags",+ "id",+ "approvalRequirements",+ "source","createdAt","name",- "active",- "approvalRequirements",- "id",- "tags",- "source"+ "updatedBy",+ "active"]},{"name": "nonConformance","rows": 0,"columns": [- "locationId",- "nonConformanceId",- "dueDate",- "createdAt",- "approvalRequirements",- "requiredActionIds",- "updatedBy",- "nonConformanceWorkflowId",- "id","createdBy","status",- "quantity",- "description",- "name",- "nonConformanceTypeId",- "companyId",- "priority",- "source",- "assignee",- "content",- "tags",- "openDate",- "customFields",- "updatedAt",- "closeDate"- ]- },- {- "name": "changeOrder",- "rows": 0,- "columns": [- "type",- "changeOrderTypeId",- "id",- "openDate",- "priority",- "nonConformanceId",+ "nonConformanceWorkflowId","updatedBy",- "sourceId",- "changeOrderId",- "requiredActionIds",- "assignee",- "sourceType",+ "id","createdAt",- "createdBy",+ "approvalRequirements",+ "requiredActionIds",+ "locationId",+ "nonConformanceId","dueDate",- "companyId",- "description",- "status",+ "customFields",+ "openDate",+ "closeDate","updatedAt",- "approvalRequirements",+ "source",+ "content",+ "assignee",+ "tags",+ "priority",+ "companyId",+ "quantity",+ "nonConformanceTypeId","name",- "reasonForChange",- "customFields",- "tags"+ "description"]},{- "name": "changeOrderActionTask",+ "name": "changeOrder","rows": 0,"columns": [- "createdAt",- "dueDate",- "updatedBy",- "updatedAt",+ "reasonForChange","name",+ "approvalRequirements",+ "customFields",+ "tags",+ "updatedAt","status",- "assignee",+ "createdBy","companyId",- "sortOrder",- "id",- "completedDate",+ "dueDate",+ "description",+ "assignee",+ "createdAt",+ "sourceType",+ "sourceId","changeOrderId",- "createdBy",- "actionTypeId",- "tags",- "notes"+ "requiredActionIds",+ "priority",+ "nonConformanceId",+ "updatedBy",+ "id",+ "changeOrderTypeId",+ "openDate",+ "type"]},{- "name": "nonConformanceApprovalTask",+ "name": "changeOrderActionTask","rows": 0,"columns": [+ "completedDate",+ "companyId",+ "id",+ "sortOrder",+ "tags",+ "notes",+ "createdBy",+ "changeOrderId",+ "actionTypeId","updatedBy","dueDate","createdAt","assignee","status","updatedAt",- "approvalType",- "completedDate",- "id",- "sortOrder",- "companyId",- "notes",- "tags",- "createdBy",- "nonConformanceId"+ "name"]},{- "name": "nonConformanceReviewer",+ "name": "nonConformanceApprovalTask","rows": 0,"columns": [- "status",- "nonConformanceId",- "companyId",- "completedDate","notes",- "title",- "createdAt",- "updatedAt",+ "tags",+ "nonConformanceId","createdBy",+ "completedDate",+ "sortOrder","id",+ "companyId",+ "assignee",+ "updatedAt",+ "approvalType",+ "status","updatedBy",- "assignee"+ "createdAt",+ "dueDate"]},{- "name": "note",+ "name": "nonConformanceReviewer","rows": 0,"columns": [- "documentId",- "updatedBy",- "createdBy","updatedAt",+ "createdAt",+ "title",+ "assignee",+ "updatedBy","id",+ "createdBy","companyId",- "note",+ "nonConformanceId",+ "status",+ "completedDate",+ "notes"+ ]+ },+ {+ "name": "note",+ "rows": 0,+ "columns": [+ "active","noteRichText",+ "note","createdAt",- "active"+ "id",+ "updatedAt",+ "companyId",+ "documentId",+ "updatedBy",+ "createdBy"]},{"name": "notification","rows": 0,"columns": [- "description",+ "documentType",+ "id",+ "payload",+ "title",+ "seenAt",+ "userId",+ "from",+ "documentId",+ "event",+ "readAt",+ "createdAt","digestedInto","companyId","topic",- "createdAt",- "readAt",- "event",- "from",- "documentId",- "userId",- "seenAt",- "title",- "documentType",- "id",- "payload"+ "description"]},{"name": "notificationDelivery","rows": 0,"columns": [- "lastDeliveryId",- "userId",- "event","documentId",- "lastDeliveredAt",- "companyId",- "successCount",+ "event",+ "userId",+ "lastDeliveryId",+ "id","createdAt",- "id"+ "successCount",+ "companyId",+ "lastDeliveredAt"]},{"name": "notificationPreference","rows": 0,"columns": [- "enabled",- "id",- "userId",- "topic","updatedAt","companyId",- "channel"+ "channel",+ "topic",+ "userId",+ "enabled",+ "id"]},{"name": "oauthCode","rows": 0,"columns": [- "redirectUri",- "id",- "codeChallenge",- "scope",+ "createdAt",+ "clientId",+ "userId",+ "companyId","expiresAt","codeChallengeMethod","code",- "companyId",- "createdAt",- "userId",- "clientId"+ "redirectUri",+ "codeChallenge",+ "id",+ "scope"]},{"name": "part","rows": 0,"columns": [- "companyId",- "createdAt",- "customFields",- "toDate",- "id","createdBy",+ "id","updatedBy",- "approvedBy",- "approved",- "tags",+ "toDate",+ "customFields",+ "companyId",+ "createdAt","fromDate",- "updatedAt"+ "updatedAt",+ "tags",+ "approved",+ "approvedBy"]},{"name": "paymentTerm","rows": 0,"columns": [- "active",- "tags",- "daysDue","daysDiscount",- "updatedBy",+ "daysDue",+ "tags",+ "active","discountPercentage",- "companyId",- "createdBy",- "name",+ "updatedBy","customFields",- "calculationMethod",- "createdAt",+ "name",+ "createdBy",+ "companyId",+ "updatedAt","id",- "updatedAt"+ "createdAt",+ "calculationMethod"]},{"name": "periodCloseTaskDefinition","rows": 0,"columns": [- "taskType",- "updatedBy",- "name",- "required",- "autoCheckKey",- "createdBy",- "updatedAt",- "customFields",- "createdAt",- "companyId","severity","isSystem",+ "customFields",+ "companyId",+ "createdAt",+ "sortOrder","id","active","defaultAssigneeId",- "sortOrder"+ "required",+ "taskType",+ "name",+ "updatedBy",+ "updatedAt",+ "createdBy",+ "autoCheckKey"]},{"name": "periodCloseTask","rows": 0,"columns": [+ "taskType","status","required","id",- "taskType",+ "severity",+ "sortOrder","completedBy","companyId","evidenceJournalId",- "severity",- "sortOrder",- "name",- "assigneeId",- "updatedBy","updatedAt","skippedReason","notes",+ "name",+ "assigneeId",+ "updatedBy",+ "autoCheckKey","createdAt","createdBy","completedAt","accountingPeriodId",- "definitionId",- "autoCheckKey"+ "definitionId"]},{"name": "pickingList","rows": 0,"columns": [- "notes",- "locationId",- "status",- "assignee",- "updatedAt",- "companyId","createdAt",+ "companyId","customFields","pickingListId","dueDate",+ "updatedBy","id","createdBy",- "updatedBy"+ "notes",+ "locationId",+ "status",+ "assignee",+ "updatedAt"]},{"name": "pricingRule","rows": 0,"columns": [+ "itemIds",+ "customerIds",+ "id",+ "priority",+ "validFrom",+ "name",+ "customerTypeIds",+ "maxQuantity",+ "amount","itemPostingGroupId","createdAt",- "amount","updatedAt",- "active","updatedBy",- "companyId",+ "active","createdBy",- "ruleType",+ "companyId","validTo",+ "ruleType","amountType",- "minQuantity",- "itemIds",- "customerIds",- "id",- "priority",- "name",- "validFrom",- "customerTypeIds",- "maxQuantity"+ "minQuantity"]},{"name": "printJob","rows": 0,"columns": [- "sourceDocumentId",- "description",- "updatedAt",- "companyId","attempts",- "printerUrl",- "id",- "sourceDocumentReadableId",+ "companyId",+ "updatedAt",+ "description",+ "sourceDocumentId","origin",- "sourceDocument",- "contentType",+ "sourceDocumentReadableId",+ "id",+ "printerUrl",+ "completedAt","status","createdBy",- "completedAt",- "updatedBy",- "createdAt",+ "contentType",+ "sourceDocument",+ "content","error",- "content"+ "createdAt",+ "updatedBy"]},{"name": "printerRoute","rows": 0,"columns": [+ "name",+ "locationId",+ "printerUrl",+ "format",+ "companyId","updatedAt","apiKey",- "companyId",- "mediaSizeId","templateId",- "createdAt","id",- "printerUrl",- "locationId",- "name",- "format"+ "createdAt",+ "mediaSizeId"]},{"name": "process","rows": 0,"columns": [- "active",- "name",- "batchType",- "processType",- "updatedBy",- "tags",- "updatedAt",- "id",- "createdBy",- "defaultStandardFactor",- "requiresAbility",- "companyId",- "createdAt",- "customFields","completeAllOnScan",+ "customFields",+ "batchRules","batchable",- "batchRules"+ "companyId",+ "requiresAbility",+ "defaultStandardFactor",+ "createdAt",+ "id",+ "updatedAt",+ "tags",+ "createdBy",+ "batchType",+ "name",+ "active",+ "updatedBy",+ "processType"]},{@@ -1853,235 +1853,235 @@"columns": ["active","recertifyEveryDays",- "createdAt","curve","shadowWeeks",- "companyId",+ "createdAt","updatedAt","id","processId",+ "companyId",+ "name","createdBy",- "updatedBy",- "name"+ "updatedBy"]},{"name": "employeeAbility","rows": 0,"columns": [- "companyId",- "employeeId","id","expiresAt",- "abilityId",- "lastTrainingDate"+ "companyId",+ "employeeId",+ "lastTrainingDate",+ "abilityId"]},{"name": "procedure","rows": 0,"columns": [- "id",- "companyId",- "createdBy",- "status",- "name",- "updatedBy",- "assignee",- "createdAt",- "updatedAt","version",- "description",+ "updatedAt",+ "content","processId","tags",- "content"+ "description",+ "status",+ "createdBy",+ "companyId",+ "id",+ "createdAt",+ "assignee",+ "updatedBy",+ "name"]},{"name": "procedureParameter","rows": 0,"columns": [- "id",- "updatedBy",- "createdAt",- "procedureId","updatedAt",- "companyId",- "value",+ "procedureId",+ "createdAt",+ "updatedBy",+ "id",+ "createdBy","key",- "createdBy"+ "value",+ "companyId"]},{"name": "purchasingRfq","rows": 0,"columns": [- "notes",- "id",- "assignee",- "rfqDate","updatedAt","customFields","rfqId","internalNotes","locationId",+ "notes",+ "id",+ "assignee",+ "rfqDate",+ "createdAt",+ "revisionId",+ "status",+ "expirationDate","employeeId","companyId","createdBy",- "updatedBy",- "revisionId",- "createdAt",- "status",- "expirationDate"+ "updatedBy"]},{"name": "purchasingRfqFavorite","rows": 0,- "columns": ["rfqId", "userId"]+ "columns": ["userId", "rfqId"]},{"name": "qualityDocument","rows": 0,"columns": [- "updatedBy",- "status","description","version","assignee",- "createdAt",- "id",- "updatedAt",- "content",- "name",+ "status",+ "updatedBy","tags",+ "name",+ "createdBy","companyId",- "createdBy"+ "updatedAt",+ "createdAt",+ "id",+ "content"]},{"name": "reportPin","rows": 0,"columns": [- "updatedBy",- "pinned","companyId",+ "pinned",+ "updatedBy","createdBy",- "updatedAt","userId",- "createdAt",- "reportKey"+ "updatedAt",+ "reportKey",+ "createdAt"]},{"name": "reportView","rows": 0,"columns": [- "visibility","id","updatedBy",- "createdAt",- "updatedAt",+ "visibility","companyId",+ "updatedAt",+ "createdAt","config",- "createdBy","name",- "reportKey"+ "reportKey",+ "createdBy"]},{"name": "returnReason","rows": 0,"columns": [- "name",+ "updatedBy",+ "inventoryValueZero",+ "companyId",+ "createdBy","updatedAt",- "id",- "customFields",+ "name","createdAt",- "companyId",- "inventoryValueZero",- "updatedBy",- "createdBy"+ "customFields",+ "id"]},{"name": "scrapReason","rows": 0,"columns": [- "updatedAt",- "companyId",- "createdAt",- "createdBy","customFields","name","updatedBy",- "id"+ "id",+ "updatedAt",+ "createdAt",+ "companyId",+ "createdBy"]},{"name": "searchIndexRegistry","rows": 0,- "columns": ["companyId", "createdAt", "lastRebuiltAt"]+ "columns": ["createdAt", "companyId", "lastRebuiltAt"]},{"name": "sequence","rows": 0,"columns": [- "suffix",- "size",- "name",- "prefix","next",- "updatedBy","companyId",- "updatedAt",+ "updatedBy","step",- "table"+ "updatedAt",+ "table",+ "suffix",+ "size",+ "prefix",+ "name"]},{"name": "service","rows": 0,"columns": [+ "approved",+ "updatedAt",+ "serviceType",+ "toDate","approvedBy","createdAt","tags",- "serviceType",- "updatedAt",- "approved",- "toDate",+ "updatedBy",+ "companyId","createdBy",- "customFields","id",- "fromDate",- "updatedBy",- "companyId"+ "customFields",+ "fromDate"]},{"name": "shift","rows": 0,"columns": [- "id",- "wednesday",- "friday",- "sunday",- "createdAt",- "name",- "active",- "tuesday",- "thursday","tags","saturday","locationId","updatedBy","createdBy","endTime",- "companyId","startTime",+ "companyId","updatedAt","customFields",- "monday"+ "monday",+ "id",+ "wednesday",+ "friday",+ "sunday",+ "createdAt",+ "name",+ "active",+ "tuesday",+ "thursday"]},{@@ -2089,17 +2089,17 @@"rows": 0,"columns": ["title",- "companyId",- "managerId","shiftId",- "startDate",+ "managerId",+ "companyId","departmentId",- "id","updatedBy",- "customFields",- "updatedAt",+ "id",+ "startDate","locationId",- "tags"+ "tags",+ "customFields",+ "updatedAt"]},{@@ -2112,11 +2112,11 @@"rows": 0,"columns": ["shiftId",- "date","employeeId",+ "date","createdBy",- "id","updatedBy",+ "id","note","companyId","createdAt",@@ -2127,34 +2127,34 @@"name": "shippingMethod","rows": 0,"columns": [- "createdAt",- "updatedAt",- "name",- "tags","active","createdBy","id","updatedBy",+ "createdAt",+ "updatedAt",+ "tags",+ "name",+ "trackingUrl",+ "customFields","companyId","carrier",- "carrierAccountId",- "customFields",- "trackingUrl"+ "carrierAccountId"]},{"name": "shippingTerm","rows": 0,"columns": [- "createdAt",- "updatedAt",- "companyId",- "active",+ "updatedBy",+ "name","createdBy",- "id","tags",- "updatedBy",- "name"+ "id",+ "updatedAt",+ "active",+ "companyId",+ "createdAt"]},{@@ -2177,471 +2177,471 @@"name": "ssoConnection","rows": 0,"columns": [+ "active","createdAt","id","updatedAt",- "active",- "companyId","createdBy","updatedBy",+ "companyId","metadataXml",+ "requireSso","providerId",- "metadataUrl",- "requireSso"+ "metadataUrl"]},{"name": "ssoDomain","rows": 0,"columns": [- "status",- "id",- "createdAt",- "updatedAt",+ "connectionId",+ "domain",+ "verifiedAt",+ "verificationToken",+ "companyId","createdBy","updatedBy",- "companyId",- "verificationToken",- "verifiedAt",- "domain",- "connectionId"+ "createdAt",+ "id",+ "updatedAt",+ "status"]},{"name": "stockTransfer","rows": 0,"columns": [- "notes",- "updatedAt",- "id",- "companyId",+ "status",+ "tags",+ "locationId",+ "createdAt",+ "completedAt",+ "assignee","customFields","stockTransferId",- "updatedBy","createdBy",- "completedAt",- "assignee",- "tags",- "locationId",- "status",- "createdAt"+ "updatedBy",+ "id",+ "updatedAt",+ "notes",+ "companyId"]},{"name": "storageRule","rows": 0,"columns": [- "conditionAst",- "filteredItemGroupIds",- "filteredItemMatchAll",- "description",- "customFields",- "name",- "filteredItemTypes",- "targetType",- "updatedBy",- "message",- "createdBy",- "surfaces",- "companyId",- "updatedAt",- "appliesToAll","severity",- "createdAt",+ "active","id",- "active"+ "createdAt",+ "surfaces",+ "createdBy",+ "appliesToAll",+ "updatedAt",+ "companyId",+ "targetType",+ "filteredItemTypes",+ "message",+ "updatedBy",+ "conditionAst",+ "name",+ "customFields",+ "description",+ "filteredItemMatchAll",+ "filteredItemGroupIds"]},{"name": "storageType","rows": 0,"columns": [+ "updatedAt","createdBy","companyId",- "updatedAt","createdAt",- "name","customFields",- "id",- "updatedBy"+ "name",+ "updatedBy",+ "id"]},{"name": "suggestion","rows": 0,"columns": [+ "attachmentPath",+ "emoji",+ "path",+ "userId","createdAt","id","tags","suggestion",- "companyId",- "attachmentPath",- "emoji",- "path",- "userId"+ "companyId"]},{"name": "supplierType","rows": 0,"columns": [- "createdAt","updatedBy","companyId","protected",- "createdBy",- "id",- "customFields",+ "createdAt","updatedAt","tags",- "name"+ "name",+ "createdBy",+ "id",+ "customFields"]},{"name": "tableView","rows": 0,"columns": [- "updatedBy",- "type",- "companyId",- "columnOrder","table","createdBy","description",- "sortOrder",+ "columnOrder",+ "companyId",+ "type",+ "updatedBy",+ "name",+ "createdAt",+ "filters",+ "columnPinning","sorts","columnVisibility","id",- "filters",- "columnPinning",- "createdAt",- "name"+ "sortOrder"]},{"name": "tag","rows": 0,"columns": [+ "name",+ "updatedBy",+ "table","createdBy",- "createdAt","companyId",- "updatedBy",- "name",- "table"+ "createdAt"]},{"name": "terms","rows": 0,"columns": [- "id",- "purchasingTerms",- "updatedBy","salesTerms",- "updatedAt"+ "updatedAt",+ "updatedBy",+ "purchasingTerms",+ "id"]},{"name": "timeCardEntry","rows": 0,"columns": [- "clockOut",- "autoCloseShiftId",- "clockIn",- "companyId",- "note",- "id","createdAt",+ "id","updatedAt",+ "note",+ "employeeId","createdBy","updatedBy",- "employeeId"+ "clockOut",+ "companyId",+ "clockIn",+ "autoCloseShiftId"]},{"name": "tool","rows": 0,"columns": [- "customFields",- "tags",- "approvedBy",- "approved",- "createdBy",- "id",+ "updatedAt",+ "createdAt","updatedBy",+ "id","companyId",- "createdAt",- "updatedAt"+ "approved",+ "approvedBy",+ "createdBy",+ "tags",+ "customFields"]},{"name": "trackedActivity","rows": 0,"columns": [- "companyId",+ "sourceDocumentReadableId","sourceDocumentId","sourceDocument",- "sourceDocumentReadableId",- "updatedBy",- "createdAt",- "type",- "attributes",+ "companyId","id",- "createdBy"+ "createdBy",+ "attributes",+ "type",+ "updatedBy",+ "createdAt"]},{"name": "training","rows": 0,"columns": [- "name",- "companyId",- "updatedAt",- "estimatedDuration",- "type",+ "status","tags","id","content",- "status",+ "estimatedDuration",+ "type",+ "name",+ "companyId",+ "updatedAt",+ "updatedBy",+ "createdBy",+ "assignee",+ "processId",+ "frequency","grantsAbilityId","version","description",- "createdAt",- "frequency",- "assignee",- "processId",- "updatedBy",- "createdBy"+ "createdAt"]},{"name": "trainingAssignment","rows": 0,"columns": [- "companyId",- "groupIds",- "updatedAt",- "createdAt","trainingId","updatedBy","id",- "createdBy"+ "createdBy",+ "companyId",+ "groupIds",+ "updatedAt",+ "createdAt"]},{"name": "trainingCompletion","rows": 0,"columns": [- "trainingAssignmentId",- "createdBy",- "updatedBy",+ "completedBy",+ "period","id","updatedAt",- "period",- "completedBy",- "companyId",- "employeeId",+ "updatedBy",+ "createdBy",+ "trainingAssignmentId",+ "completedAt","createdAt",- "completedAt"+ "companyId",+ "employeeId"]},{"name": "trainingQuestion","rows": 0,"columns": [+ "options","question","createdAt","type",- "options",- "sortOrder",- "tolerance","createdBy","updatedBy",+ "sortOrder",+ "tolerance",+ "matchingPairs",+ "correctAnswers","companyId","trainingId","updatedAt",- "matchingPairs",- "correctAnswers",+ "required","correctNumber","correctBoolean",- "id",- "required"+ "id"]},{"name": "unitOfMeasure","rows": 0,"columns": [- "code",- "customFields",+ "createdAt",+ "active",+ "name",+ "companyId","updatedBy",- "tags",+ "customFields",+ "code",+ "createdBy","id","updatedAt",- "createdBy",- "active",- "name",- "createdAt",- "companyId"+ "tags"]},{"name": "item","rows": 0,"columns": [- "notes",- "defaultMethodType",- "changeOrderId",- "description",- "name",- "createdBy",- "assignee",- "createdAt",- "revision",- "updatedAt","thumbnailPath","type",- "modelUploadId","revisionStatus",- "itemTrackingType",- "mpn",- "sourcingType",- "trackingMethod",- "active",+ "modelUploadId",+ "createdAt",+ "updatedAt",+ "revision",+ "createdBy",+ "name",+ "description",+ "assignee",+ "defaultMethodType",+ "notes",+ "changeOrderId",+ "unitOfMeasureCode",+ "id",+ "replenishmentSystem",+ "embedding","updatedBy","companyId","readableId",- "replenishmentSystem",- "embedding",- "id",- "unitOfMeasureCode"+ "sourcingType",+ "mpn",+ "itemTrackingType",+ "trackingMethod",+ "active"]},{"name": "assemblyComponentMapping","rows": 0,"columns": [- "updatedBy",+ "confidence",+ "itemId",+ "geometryHash",+ "createdBy","id",+ "updatedBy","companyId","modelUploadId","updatedAt",- "createdAt",- "confidence",- "geometryHash",- "itemId",- "createdBy"+ "createdAt"]},{"name": "assemblyInstruction","rows": 0,"columns": [- "status",- "customFields",- "settings",- "id","companyId","publishedAt",- "name","createdBy",+ "name","updatedAt",- "rootInstructionId",- "updatedBy",- "tags",- "assemblyPlanJobId",+ "status",+ "customFields",+ "id",+ "settings","version",+ "itemId","modelUploadId","createdAt",- "itemId"+ "updatedBy",+ "rootInstructionId",+ "assemblyPlanJobId",+ "tags"]},{"name": "assemblyInstructionStep","rows": 0,"columns": [- "sortOrder",- "parentStepId",- "fileTypes",- "camera",- "explode",- "updatedAt",- "durationSeconds",- "description",- "planConfidence",- "fastener",- "rootStepId",- "maxValue",- "title",- "createdAt","motion",- "notes",+ "createdAt","warnings",- "componentNodeIds",- "assemblyInstructionId",- "listValues",- "instructionText",- "buildWave",- "status",+ "notes",+ "maxValue",+ "rootStepId",+ "fastener",+ "title",+ "planConfidence",+ "updatedAt",+ "description",+ "durationSeconds",+ "camera",+ "explode",+ "fileTypes",+ "parentStepId",+ "sortOrder",+ "createdBy",+ "type",+ "minValue",+ "updatedBy",+ "required",+ "id","unitOfMeasureCode","companyId",- "id",- "required",- "updatedBy",- "minValue",- "type",- "createdBy"+ "status",+ "buildWave",+ "instructionText",+ "assemblyInstructionId",+ "listValues",+ "componentNodeIds"]},{"name": "assemblyInstructionStepMaterial","rows": 0,"columns": [- "id",- "updatedBy",+ "sortOrder",+ "createdBy",+ "itemId",+ "quantity","companyId",- "stepId",+ "updatedBy",+ "id","createdAt","updatedAt",- "sortOrder",- "quantity",- "itemId",- "createdBy"+ "stepId"]},{"name": "assemblyInstructionStepSlide","rows": 0,"columns": [- "stepId","updatedAt",- "createdBy",+ "stepId","annotations",- "createdAt",+ "createdBy","id","companyId",+ "createdAt","sortOrder","modelUploadId","imagePath","size",- "updatedBy",- "caption"+ "caption",+ "updatedBy"]},{"name": "assemblyInstructionStepTool","rows": 0,"columns": [- "stepId",+ "createdBy",+ "itemId",+ "quantity",+ "sortOrder","createdAt","updatedAt",- "id",- "updatedBy",+ "stepId","companyId",- "quantity",- "itemId",- "createdBy",- "sortOrder"+ "updatedBy",+ "id"]},{@@ -2665,101 +2665,83 @@"name": "batchProperty","rows": 0,"columns": [- "dataType",- "label",- "companyId",- "listOptions","itemId","createdAt","updatedAt","id","createdBy","updatedBy",- "sortOrder"+ "sortOrder",+ "dataType",+ "label",+ "companyId",+ "listOptions"]},{"name": "changeOrderSupersession","rows": 0,"columns": [- "changeOrderId",- "companyId","createdBy",+ "companyId",+ "changeOrderId",+ "discontinuationDate",+ "updatedAt","id","createdAt",- "updatedAt",- "discontinuationDate",+ "successorEffectivityDate","successorItemId","predecessorItemId",- "successorEffectivityDate",- "updatedBy",- "supersessionMode"+ "supersessionMode",+ "updatedBy"]},{"name": "configurationParameterGroup","rows": 0,"columns": [- "itemId",- "id","companyId",- "name",- "sortOrder",- "isUngrouped"- ]- },- {- "name": "configurationParameter",- "rows": 0,- "columns": [- "label",- "materialFormFilterId",- "key",- "configurationParameterGroupId",- "updatedAt",- "dataType",+ "id","itemId",- "updatedBy",+ "isUngrouped","sortOrder",- "createdAt",- "companyId",- "id",- "createdBy",- "listOptions"+ "name"]},{- "name": "configurationRule",+ "name": "configurationParameter","rows": 0,"columns": [- "updatedBy",+ "listOptions",+ "id",+ "companyId",+ "createdBy",+ "sortOrder",+ "createdAt","itemId",- "field",+ "updatedBy","updatedAt",- "companyId",- "code"+ "dataType",+ "configurationParameterGroupId",+ "key",+ "label",+ "materialFormFilterId"]},{- "name": "demandForecast",+ "name": "configurationRule","rows": 0,"columns": [- "updatedBy",- "forecastMethod",- "periodId",- "forecastQuantity",- "notes",- "createdBy",+ "field","itemId",- "updatedAt",- "confidence",- "locationId",+ "updatedBy","companyId",- "createdAt"+ "code",+ "updatedAt"]},{- "name": "demandProjection",+ "name": "demandForecast","rows": 0,"columns": ["confidence",@@ -2768,145 +2750,163 @@"updatedAt","companyId","createdAt",- "id","locationId",- "forecastMethod","updatedBy",+ "forecastMethod","notes","forecastQuantity","periodId"]},{- "name": "inspectionDocument",+ "name": "demandProjection","rows": 0,"columns": [- "drawingNumber",+ "notes",+ "forecastQuantity",+ "periodId",+ "forecastMethod","updatedBy",- "partId",- "samplingPercentage",- "samplingAql",- "fileName",- "samplingInspectionLevel",- "createdBy",- "version",- "samplingSampleSize",+ "createdAt",+ "companyId",+ "id",+ "locationId",+ "confidence","updatedAt",+ "itemId",+ "createdBy"+ ]+ },+ {+ "name": "inspectionDocument",+ "rows": 0,+ "columns": [+ "samplingSampleSize","samplingSeverity",- "samplingPlanType",+ "updatedAt",+ "createdBy",+ "samplingInspectionLevel",+ "version",+ "fileName",+ "samplingPercentage",+ "samplingAql",+ "updatedBy",+ "partId",+ "drawingNumber",+ "storagePath",+ "uploadedBy",+ "defaultPageWidth",+ "id",+ "defaultPageHeight",+ "pageCount","companyId","createdAt",- "pageCount",- "defaultPageHeight",- "id",- "defaultPageWidth",- "uploadedBy",- "storagePath"+ "samplingPlanType"]},{"name": "inspectionFeature","rows": 0,"columns": [- "description",- "toleranceMinus",- "id",- "createdBy",- "tolerancePlus",- "unit",- "samplingPlanType",- "updatedBy",- "inspectionDocumentId","type","samplingSeverity","samplingSampleSize","label",- "createdAt","samplingInspectionLevel",+ "createdAt","nominalValue",+ "samplingAql",+ "samplingPercentage",+ "pageNumber","updatedAt","companyId",- "pageNumber",- "samplingAql",- "samplingPercentage"+ "description",+ "createdBy",+ "id",+ "toleranceMinus",+ "unit",+ "tolerancePlus",+ "updatedBy",+ "inspectionDocumentId",+ "samplingPlanType"]},{"name": "balloon","rows": 0,"columns": [- "regionY",- "companyId",- "updatedBy",- "inspectionFeatureId",- "updatedAt",- "createdBy",- "pageNumber",+ "regionX",+ "regionHeight",+ "id",+ "yCoordinate","regionWidth","xCoordinate","inspectionDocumentId","createdAt",- "regionX",- "regionHeight",- "id",- "yCoordinate"+ "updatedAt",+ "createdBy",+ "pageNumber",+ "regionY",+ "updatedBy",+ "companyId",+ "inspectionFeatureId"]},{"name": "inventoryCountLine","rows": 0,"columns": [- "storageUnitId",- "systemQuantity","id",- "countedQuantity",- "readableId",- "countedAt",- "companyId",+ "systemQuantity",+ "storageUnitId","createdAt",- "createdBy",- "updatedBy",- "locationId",+ "companyId",+ "countedAt",+ "readableId",+ "countedQuantity","countedBy",- "trackedEntityId",- "customFields",- "updatedAt",+ "locationId",+ "updatedBy",+ "createdBy",+ "itemId","inventoryCountId","postedItemLedgerId",- "itemId"+ "updatedAt",+ "customFields",+ "trackedEntityId"]},{"name": "itemCost","rows": 0,"columns": [- "costIsAdjusted",- "updatedAt",- "itemId",- "createdAt",- "updatedBy",- "createdBy","itemPostingGroupId","tags",- "customFields",- "unitCost",- "companyId",+ "createdBy",+ "updatedBy",+ "itemId",+ "createdAt",+ "updatedAt",+ "costIsAdjusted","standardCost",- "costingMethod"+ "costingMethod",+ "companyId",+ "customFields",+ "unitCost"]},{"name": "itemInspectionDocumentAssignment","rows": 0,"columns": [- "createdBy",- "updatedBy","inspectionDocumentId","companyId",- "createdAt",- "itemId",+ "updatedBy",+ "createdBy",+ "usage","updatedAt",- "usage"+ "itemId",+ "createdAt"]},{@@ -2918,17 +2918,17 @@"minimumOrderQuantity","reorderPoint","demandAccumulationSafetyStock",- "demandAccumulationIncludesInventory","itemId",+ "demandAccumulationIncludesInventory","reorderQuantity","minimumReserveQuantity",+ "critical","maximumOrderQuantity","reorderingPolicy",- "critical","createdAt","updatedBy",- "demandAccumulationPeriod","maximumInventoryQuantity",+ "demandAccumulationPeriod","tags","updatedAt","createdBy",@@ -2942,63 +2942,57 @@"columns": ["updatedAt","suffix",+ "size","itemId","prefix",- "size",+ "next",+ "updatedBy","createdBy","id",- "updatedBy",- "next",- "companyId",+ "createdAt","step",- "createdAt"+ "companyId"]},{"name": "itemShelfLife","rows": 0,"columns": [- "createdBy",- "triggerProcessId",- "days",- "calculateFromBom","triggerTiming",- "updatedAt",- "createdAt",- "mode",- "companyId",- "customFields",+ "calculateFromBom",+ "days",+ "triggerProcessId",+ "createdBy",+ "updatedBy","itemId",- "updatedBy"+ "customFields",+ "companyId",+ "mode",+ "createdAt",+ "updatedAt"]},{"name": "itemSupersession","rows": 0,"columns": [- "companyId",- "updatedBy",- "createdBy",- "updatedAt",+ "successorEffectivityDate","createdAt","itemId",- "successorEffectivityDate",- "supersessionMode",- "successorItemId",+ "updatedAt",+ "createdBy",+ "updatedBy",+ "companyId",+ "discontinuationDate","conversionFactor",- "discontinuationDate"+ "supersessionMode",+ "successorItemId"]},{"name": "itemUnitSalePrice","rows": 0,"columns": [- "allowInvoiceDiscount",- "tags",- "currencyCode",- "salesUnitOfMeasureCode",- "salesBlocked",- "updatedAt","companyId","createdAt","customFields",@@ -3006,40 +3000,37 @@"priceIncludesTax","createdBy","itemId",- "updatedBy"+ "updatedBy",+ "allowInvoiceDiscount",+ "currencyCode",+ "tags",+ "salesUnitOfMeasureCode",+ "salesBlocked",+ "updatedAt"]},{"name": "makeMethod","rows": 0,"columns": [- "updatedBy",- "createdAt",- "companyId",- "createdBy",- "changeOrderId",- "customFields",- "version",- "itemId",- "updatedAt","id","tags",- "status"+ "status",+ "updatedAt",+ "itemId",+ "customFields",+ "version",+ "changeOrderId",+ "createdBy",+ "createdAt",+ "companyId",+ "updatedBy"]},{"name": "changeOrderAffectedItem","rows": 0,"columns": [- "updatedAt",- "changeOrderId",- "companyId",- "supersessionMode",- "successorEffectivityDate",- "discontinuationDate",- "id",- "newItemId",- "draftMakeMethodId","itemId","createdAt","sortOrder",@@ -3047,64 +3038,73 @@"changeSummary","changeType","updatedBy",- "createdBy"+ "createdBy",+ "changeOrderId",+ "companyId",+ "updatedAt",+ "successorEffectivityDate",+ "supersessionMode",+ "newItemId",+ "discontinuationDate",+ "id",+ "draftMakeMethodId"]},{"name": "nonConformanceItem","rows": 0,"columns": [- "createdAt",- "companyId",- "itemId",- "updatedAt",- "id","disposition",+ "id","createdBy","nonConformanceId","quantity",- "updatedBy"+ "updatedBy",+ "createdAt",+ "itemId",+ "companyId",+ "updatedAt"]},{"name": "procedureStep","rows": 0,"columns": [- "fileTypes",- "required",- "updatedBy",- "createdBy",- "createdAt",- "name",- "description",- "type",+ "listValues","minValue","id",- "listValues","sortOrder",- "updatedAt","procedureId","companyId",+ "updatedAt",+ "maxValue","unitOfMeasureCode",- "maxValue"+ "fileTypes",+ "required",+ "updatedBy",+ "createdBy",+ "description",+ "name",+ "createdAt",+ "type"]},{"name": "purchasingRfqLine","rows": 0,"columns": [- "updatedAt","purchasingRfqId","customFields",- "conversionFactor",+ "updatedAt","internalNotes",+ "conversionFactor",+ "externalNotes","id","order",- "externalNotes","purchaseUnitOfMeasureCode","description",- "createdAt","itemId",+ "createdAt","inventoryUnitOfMeasureCode","companyId","quantity",@@ -3116,94 +3116,94 @@"name": "qualityDocumentStep","rows": 0,"columns": [- "fileTypes",- "required",- "updatedBy",- "createdBy",- "description",- "createdAt",- "name",- "type",- "listValues","id","minValue",+ "listValues","sortOrder",- "qualityDocumentId",- "companyId","updatedAt",+ "companyId",+ "qualityDocumentId",+ "unitOfMeasureCode","maxValue",- "unitOfMeasureCode"+ "required",+ "fileTypes",+ "createdBy",+ "updatedBy",+ "description",+ "createdAt",+ "name",+ "type"]},{"name": "riskRegister","rows": 0,"columns": [- "description",- "updatedAt",- "title",- "severity",- "createdBy",- "source",- "updatedBy",- "notes",- "companyId",+ "assignee",+ "itemId",+ "id",+ "sourceId","createdAt",+ "companyId","type","status","likelihood",- "assignee",- "id",- "itemId",- "sourceId"+ "source",+ "createdBy",+ "notes",+ "updatedBy",+ "title",+ "updatedAt",+ "description",+ "severity"]},{"name": "storageRuleItemAssignment","rows": 0,"columns": [- "createdBy",- "companyId",- "createdAt","ruleId",+ "itemId","updatedBy",- "itemId"+ "companyId",+ "createdBy",+ "createdAt"]},{"name": "trackedEntity","rows": 0,"columns": [- "status",- "updatedBy",- "sourceDocument",- "attributes",- "itemId",- "sourceDocumentId",- "quantity",+ "id",+ "createdAt",+ "readableId",+ "sourceDocumentReadableId","expirationDate",- "createdBy",+ "quantity","companyId",- "readableId",- "createdAt",- "id",- "sourceDocumentReadableId"+ "createdBy",+ "sourceDocumentId",+ "itemId",+ "sourceDocument",+ "updatedBy",+ "status",+ "attributes"]},{"name": "nonConformanceItemTrackedEntity","rows": 0,"columns": [- "createdBy",- "updatedBy",- "nonConformanceItemId","companyId",- "id","updatedAt",+ "id",+ "updatedBy",+ "createdBy",+ "nonConformanceItemId",+ "quantity","createdAt",- "trackedEntityId","nonConformanceId",- "quantity"+ "trackedEntityId"]},{@@ -3224,12 +3224,12 @@"name": "trackedActivityInput","rows": 0,"columns": [- "updatedBy","trackedEntityId",- "createdAt",+ "updatedBy","trackedActivityId",- "createdBy",+ "createdAt","quantity",+ "createdBy","companyId"]},@@ -3237,268 +3237,268 @@"name": "trackedActivityOutput","rows": 0,"columns": [- "createdAt",+ "trackedEntityId",+ "createdBy",+ "trackedActivityId",+ "updatedBy","quantity","companyId",- "updatedBy",- "trackedActivityId",- "createdBy",- "trackedEntityId"+ "createdAt"]},{"name": "userAttributeCategory","rows": 0,"columns": [- "companyId",- "public",- "protected",- "createdAt",- "updatedAt","id",+ "updatedAt","emoji","active","name","createdBy",- "updatedBy"+ "updatedBy",+ "companyId",+ "protected",+ "public",+ "createdAt"]},{"name": "userAttribute","rows": 0,"columns": [+ "listOptions",+ "id",+ "createdAt",+ "updatedAt",+ "active",+ "createdBy",+ "name","updatedBy","attributeDataTypeId","canSelfManage",- "sortOrder","userAttributeCategoryId",- "listOptions",- "updatedAt",- "createdAt",- "id",- "createdBy",- "active",- "name"+ "sortOrder"]},{"name": "userAttributeValue","rows": 0,"columns": [- "valueBoolean",- "userId",- "valueText","valueDate","updatedBy",- "valueFile",- "userAttributeId",- "valueUser",- "createdBy",+ "valueText",+ "valueBoolean",+ "userId",+ "valueNumeric",+ "updatedAt","id","createdAt",- "updatedAt",- "valueNumeric"+ "createdBy",+ "valueUser",+ "valueFile",+ "userAttributeId"]},{"name": "userModulePreference","rows": 0,"columns": [- "companyId",- "module",- "updatedAt",- "position",- "userId","id",- "hidden"+ "hidden",+ "userId",+ "position",+ "module",+ "companyId",+ "updatedAt"]},{"name": "userToCompany","rows": 0,- "columns": ["userId", "companyId", "role"]+ "columns": ["companyId", "userId", "role"]},{"name": "warehouse","rows": 0,"columns": [- "createdBy",- "id",- "active",- "requiresBin",+ "updatedAt",+ "locationId",+ "requiresPick",+ "requiresReceive",+ "requiresPutAway",+ "createdAt","updatedBy","name",- "companyId","requiresShipment",- "requiresPutAway",- "createdAt",- "requiresPick",- "updatedAt",- "locationId",- "requiresReceive"+ "companyId",+ "active",+ "id",+ "createdBy",+ "requiresBin"]},{"name": "warehouseTransfer","rows": 0,"columns": [- "tags",- "transferId",- "updatedBy",- "notes",- "companyId",+ "createdBy","id","reference",- "createdBy","transferDate",- "toLocationId",- "fromLocationId",- "updatedAt",- "expectedReceiptDate",+ "transferId",+ "updatedBy",+ "tags",+ "companyId",+ "notes","createdAt","status",- "customFields"+ "customFields",+ "toLocationId",+ "updatedAt",+ "fromLocationId",+ "expectedReceiptDate"]},{"name": "workCenter","rows": 0,"columns": [- "companyId",- "requiredAbilityId",- "id",- "active",- "locationId",+ "updatedAt","createdBy","name",- "updatedAt",- "alwaysOn",- "updatedBy",- "machineRate",+ "locationId",+ "active",+ "requiredAbilityId",+ "id",+ "companyId",+ "description",+ "createdAt",+ "tags",+ "overheadRate",+ "defaultStandardFactor",+ "minimumBatchQuantity",+ "batchCapacity","laborRate","customFields","departmentId",- "batchCapacity",- "defaultStandardFactor",- "minimumBatchQuantity",- "tags",- "overheadRate",- "description",- "createdAt"+ "updatedBy",+ "alwaysOn",+ "machineRate"]},{"name": "jobOperationBatch","rows": 0,"columns": [- "processId",- "companyId","status",- "workCenterId",+ "companyId",+ "processId","updatedBy",- "updatedAt",- "readableId",- "createdBy",+ "workCenterId","notes",- "createdAt",- "id",+ "createdBy",+ "readableId",+ "updatedAt",+ "locationId","customFields",- "locationId"+ "id",+ "createdAt"]},{"name": "maintenanceSchedule","rows": 0,"columns": [- "updatedBy",- "description",- "workCenterId",- "thursday",- "wednesday","estimatedDuration","skipHolidays",- "sunday",- "frequency",- "createdBy",- "friday",- "updatedAt",+ "thursday",+ "wednesday",+ "description",+ "updatedBy",+ "workCenterId","saturday",+ "updatedAt","tuesday","takesWorkCenterOffline",- "monday",- "createdAt",- "name",- "active",+ "frequency",+ "createdBy",+ "friday",+ "sunday","locationId","nextDueAt",- "lastGeneratedAt",- "id",- "companyId",+ "active",+ "createdAt",+ "name",+ "monday",+ "procedureId","priority",- "procedureId"+ "companyId",+ "lastGeneratedAt",+ "id"]},{"name": "maintenanceDispatch","rows": 0,"columns": [- "actualEndTime",- "createdBy",- "nonConformanceId",- "createdAt",- "priority",- "companyId",- "plannedStartTime",- "updatedBy",- "locationId",- "status",- "actualStartTime",- "content",- "assignee",- "completedAt",- "source",- "oeeImpact",- "id",- "maintenanceScheduleId",- "severity",- "actualFailureModeId",- "takesWorkCenterOffline",- "workCenterId",+ "plannedEndTime",+ "maintenanceDispatchId","procedureId",+ "workCenterId",+ "takesWorkCenterOffline","updatedAt","suspectedFailureModeId",- "plannedEndTime",- "maintenanceDispatchId"+ "maintenanceScheduleId",+ "id",+ "actualFailureModeId",+ "severity",+ "source",+ "oeeImpact",+ "content",+ "actualStartTime",+ "status",+ "assignee",+ "completedAt",+ "updatedBy",+ "locationId",+ "createdAt",+ "priority",+ "plannedStartTime",+ "companyId",+ "actualEndTime",+ "createdBy",+ "nonConformanceId"]},{"name": "maintenanceDispatchComment","rows": 0,"columns": [- "updatedBy",- "companyId",- "comment","createdBy",- "updatedAt",- "maintenanceDispatchId",+ "comment",+ "companyId",+ "updatedBy",+ "id","createdAt",- "id"+ "maintenanceDispatchId",+ "updatedAt"]},{"name": "maintenanceDispatchEvent","rows": 0,"columns": [+ "createdBy","maintenanceDispatchId","updatedAt",- "createdBy",- "createdAt",+ "endTime","companyId","id",- "endTime",+ "createdAt",+ "notes","employeeId","workCenterId",- "notes","updatedBy","startTime"]@@ -3507,17 +3507,17 @@"name": "maintenanceDispatchItem","rows": 0,"columns": [- "itemId",- "quantity",- "unitOfMeasureCode",- "updatedAt","createdAt","companyId","maintenanceDispatchId","unitCost","updatedBy","createdBy",- "id"+ "id",+ "itemId",+ "quantity",+ "unitOfMeasureCode",+ "updatedAt"]},{@@ -3541,8 +3541,8 @@"columns": ["createdBy","updatedBy",- "companyId","workCenterId",+ "companyId","createdAt","id","updatedAt",@@ -3553,48 +3553,48 @@"name": "maintenanceScheduleItem","rows": 0,"columns": [- "quantity",- "itemId","createdBy",+ "itemId",+ "quantity","unitOfMeasureCode",- "maintenanceScheduleId",- "updatedAt","createdAt",- "id",+ "updatedAt",+ "maintenanceScheduleId",+ "companyId","updatedBy",- "companyId"+ "id"]},{"name": "peopleAssignment","rows": 0,"columns": [- "employeeId",- "updatedAt","shiftId","workCenterId","hours","locationId",+ "updatedAt",+ "employeeId",+ "note",+ "createdAt",+ "companyId",+ "overtimeHours","date",- "updatedBy","id","createdBy",- "createdAt",- "note",- "overtimeHours",- "companyId"+ "updatedBy"]},{"name": "storageRuleWorkCenterAssignment","rows": 0,"columns": [- "companyId",- "createdBy",- "createdAt",- "ruleId","workCenterId",- "updatedBy"+ "updatedBy",+ "ruleId",+ "createdAt",+ "companyId",+ "createdBy"]},{@@ -3608,275 +3608,302 @@"workCenterId","companyId","tags",- "updatedBy","customFields",- "isWorkCenterDefault",+ "updatedBy","parentId","locationId",+ "isWorkCenterDefault","createdBy",+ "name","updatedAt",- "id",- "name"+ "id"]},{"name": "itemLedger","rows": 0,"columns": [- "documentId",- "id",- "storageUnitId",- "itemId",- "scrapReasonId",- "locationId","documentLineId","companyId","entryNumber",- "createdBy",- "trackedEntityStatus",+ "itemId",+ "scrapReasonId",+ "locationId",+ "id",+ "storageUnitId",+ "documentId",+ "entryType",+ "postingDate",+ "createdAt",+ "trackedEntityId",+ "correctionOfItemLedgerId",+ "externalDocumentId","updatedBy","documentType","comment","quantity",- "correctionOfItemLedgerId",- "externalDocumentId",- "entryType",- "createdAt",- "postingDate",- "trackedEntityId"+ "trackedEntityStatus",+ "createdBy"]},{"name": "pickMethod","rows": 0,"columns": [- "locationId",- "updatedAt",- "sortMethod",+ "createdAt","customFields","itemId",- "createdAt",- "defaultStorageUnitId",- "companyId",+ "sortMethod",+ "updatedAt",+ "locationId",+ "createdBy","updatedBy",- "createdBy"+ "defaultStorageUnitId",+ "companyId"]},{"name": "warehouseTransferLine","rows": 0,"columns": [- "toStorageUnitId","fromStorageUnitId",- "companyId",- "transferId",+ "toStorageUnitId","updatedBy",+ "transferId",+ "companyId","receivedQuantity",- "unitOfMeasureCode",- "id","toLocationId",+ "id",+ "unitOfMeasureCode","fromLocationId",- "customFields",- "quantity",- "createdBy","itemId",- "createdAt",+ "createdBy",+ "quantity",+ "customFields","updatedAt",- "shippedQuantity",- "notes"+ "createdAt",+ "notes",+ "shippedQuantity"]},{"name": "workCenterProcess","rows": 0,"columns": [+ "processId","workCenterId","updatedBy",- "processId",- "createdAt",- "companyId","createdBy",- "updatedAt"+ "companyId",+ "updatedAt",+ "createdAt"]},{"name": "workCenterReplacementPart","rows": 0,"columns": [- "createdBy",- "itemId",- "quantity",- "unitOfMeasureCode",- "updatedAt",- "createdAt",- "workCenterId","companyId",+ "id","updatedBy",- "id"+ "createdAt",+ "updatedAt",+ "workCenterId",+ "unitOfMeasureCode",+ "createdBy",+ "quantity",+ "itemId"]},{"name": "workCenterShift","rows": 0,"columns": [- "updatedAt",- "companyId",- "createdAt",- "id",- "updatedBy",- "workCenterId",+ "createdBy","shiftId",- "createdBy"+ "workCenterId",+ "updatedBy",+ "id",+ "createdAt",+ "companyId",+ "updatedAt"]},{"name": "contractor","rows": 0,"columns": [- "customFields",- "id","createdAt",- "hoursPerWeek",- "updatedAt",+ "id",+ "customFields","tags",+ "updatedAt",+ "hoursPerWeek","createdBy",- "active",+ "updatedBy","companyId",- "updatedBy"+ "active"]},{"name": "contractorAbility","rows": 0,"columns": [- "companyId",- "createdBy","createdAt",+ "createdBy",+ "companyId",+ "abilityId","contractorId",- "updatedBy",- "abilityId"+ "updatedBy"]},{"name": "costLedger","rows": 0,"columns": [- "companyId",- "supplierId",- "costLedgerType",- "quantity","documentType",+ "itemLedgerType","postingDate","nominalCost",- "itemLedgerType",- "appliesToCostLedgerId","remainingQuantity",- "adjustment",- "externalDocumentId",- "id",+ "appliesToCostLedgerId",+ "supplierId",+ "companyId",+ "quantity",+ "costLedgerType","documentId","itemId","createdAt",+ "entryNumber","cost",- "entryNumber"+ "adjustment",+ "id",+ "externalDocumentId"]},{"name": "customer","rows": 0,"columns": [- "updatedBy",- "name",- "phone",- "createdAt",- "assignee",- "readableId",+ "fax",+ "currencyCode",+ "tags",+ "taxPercent",+ "updatedAt",+ "embedding",+ "salesContactId",+ "logo",+ "website",+ "customerStatusId",+ "customerTypeId",+ "customFields",+ "defaultCc",+ "accountManagerId","intercompanyCompanyId","createdBy","id","companyId",- "defaultCc",- "accountManagerId",- "website",- "customerStatusId",- "customFields",- "customerTypeId",- "salesContactId",- "logo",- "taxPercent",- "updatedAt",- "embedding",- "currencyCode",- "tags",- "fax"+ "createdAt",+ "assignee",+ "readableId",+ "name",+ "updatedBy",+ "phone"]},{"name": "customerAccount","rows": 0,- "columns": ["active", "companyId", "customerId", "id"]+ "columns": ["customerId", "id", "active", "companyId"]},{- "name": "customerItemPriceOverride",+ "name": "customerBankAccount","rows": 0,"columns": [- "active",+ "accountNumber",+ "countryCode",+ "isPrimary","companyId",- "customerId",- "updatedBy",- "validFrom",- "applyRulesOnTop",- "id","createdBy",+ "bankName",+ "bankCode",+ "currencyCode",+ "id",+ "bankAddress",+ "updatedAt",+ "updatedBy",+ "active",+ "customerId",+ "name",+ "notes",+ "tags",+ "createdAt",+ "accountHolderName",+ "swiftBic",+ "customFields"+ ]+ },+ {+ "name": "customerItemPriceOverride",+ "rows": 0,+ "columns": ["validTo",+ "itemId","updatedAt","customerTypeId",- "itemId",+ "notes","createdAt",- "notes"+ "companyId",+ "active",+ "updatedBy",+ "customerId",+ "validFrom",+ "createdBy",+ "id",+ "applyRulesOnTop"]},{"name": "customerItemPriceOverrideBreak","rows": 0,"columns": [- "createdBy",- "quantity",- "overridePrice",- "active",+ "companyId",+ "id",+ "updatedBy","createdAt","updatedAt","customerItemPriceOverrideId",- "companyId",- "updatedBy",- "id"+ "active",+ "createdBy",+ "overridePrice",+ "quantity"]},{"name": "customerLocation","rows": 0,"columns": [- "name",- "addressId",- "customFields",+ "customerId",+ "companyId","id","tags",- "customerId",- "companyId"+ "customFields",+ "addressId",+ "name"]},{"name": "customerContact","rows": 0,"columns": [- "userId",- "customerLocationId","contactId",+ "customerLocationId","tags",- "id",- "customFields",+ "userId","customerId",- "companyId"+ "companyId",+ "id",+ "customFields"]},{@@ -3886,8 +3913,8 @@"customerPartId","customerId","id",- "itemId","customerPartRevision",+ "itemId","companyId"]},@@ -3909,32 +3936,32 @@"name": "customerShipping","rows": 0,"columns": [- "updatedAt",- "incoterm",- "shippingCustomerId",- "shippingMethodId",- "customerId",- "updatedBy","incotermLocation",- "companyId",- "shippingCustomerContactId",+ "updatedBy",+ "customerId",+ "shippingMethodId",+ "shippingCustomerId",+ "incoterm",+ "updatedAt",+ "shippingTermId","shippingCustomerLocationId",- "shippingTermId"+ "shippingCustomerContactId",+ "companyId"]},{"name": "customerTax","rows": 0,"columns": [- "eori","vatNumber",+ "eori","taxExemptionCertificateNumber","taxExempt","taxId","taxExemptionCertificatePath","updatedAt",- "customerId","companyId",+ "customerId","updatedBy","taxExemptionReason"]@@ -3943,32 +3970,32 @@"name": "fixture","rows": 0,"columns": [- "createdBy",- "updatedBy",- "tags",- "itemId",- "customFields",+ "approvedBy",+ "customerId",+ "approved",+ "companyId","createdAt","id","updatedAt",- "companyId",- "customerId",- "approved",- "approvedBy"+ "customFields",+ "itemId",+ "tags",+ "createdBy",+ "updatedBy"]},{"name": "nonConformanceCustomer","rows": 0,"columns": [- "customerId",- "companyId",- "updatedAt",- "createdAt",- "nonConformanceId",- "updatedBy",+ "createdBy","id",- "createdBy"+ "updatedBy",+ "nonConformanceId",+ "createdAt",+ "updatedAt",+ "customerId",+ "companyId"]},{@@ -3986,35 +4013,35 @@"name": "salesOrder","rows": 0,"columns": [- "customFields",- "companyId",- "salesOrderId",- "completedDate",- "customerEngineeringContactId",- "customerId",- "externalNotes",- "customerContactId",- "customerLocationId",- "id",- "customerReference",- "sentCompleteDate",- "internalNotes",- "closedAt",+ "createdBy",+ "updatedAt","revisionId",+ "closedAt","status",- "updatedAt",- "createdBy",+ "opportunityId","currencyCode","exchangeRateUpdatedAt",- "opportunityId",- "exchangeRate",- "orderDate","assignee","updatedBy",- "locationId",- "closedBy",+ "orderDate",+ "exchangeRate","createdAt",- "salesPersonId"+ "salesPersonId",+ "closedBy",+ "locationId",+ "salesOrderId",+ "companyId",+ "customFields",+ "customerContactId",+ "externalNotes",+ "completedDate",+ "customerId",+ "customerEngineeringContactId",+ "customerReference",+ "sentCompleteDate",+ "customerLocationId",+ "id",+ "internalNotes"]},{@@ -4026,177 +4053,170 @@"name": "salesOrderLine","rows": 0,"columns": [- "taxPercent",- "priceTrace",+ "storageUnitId",+ "updatedBy",+ "pricingRuleId",+ "unitOfMeasureCode",+ "addOnCost",+ "invoicedComplete",+ "companyId",+ "methodType",+ "status",+ "assetId",+ "nonTaxableAddOnCost",+ "createdAt",+ "shippingCost",+ "setupPrice",+ "internalNotes",+ "sentComplete",+ "salesOrderLineType",+ "unitPrice",+ "itemId",+ "updatedAt","quantitySent",+ "priceTrace","customFields",+ "taxPercent","saleQuantity","id","sortOrder",- "updatedAt",- "externalNotes",- "quantityInvoiced",- "salesOrderId",- "locationId",- "sentDate",- "createdBy","exchangeRate",- "accountId",+ "createdBy",+ "sentDate","modelUploadId",- "promisedDate","description",- "addOnCost",- "invoicedComplete",- "companyId",- "unitOfMeasureCode",- "pricingRuleId",- "storageUnitId",- "updatedBy",- "sentComplete",- "internalNotes",- "setupPrice",- "unitPrice",- "salesOrderLineType",- "itemId",- "methodType",- "assetId",- "shippingCost",- "createdAt",- "nonTaxableAddOnCost",- "status"+ "promisedDate",+ "accountId",+ "salesOrderId",+ "quantityInvoiced",+ "externalNotes",+ "locationId"]},{"name": "nonConformanceSalesOrderLine","rows": 0,"columns": [- "salesOrderReadableId",- "createdAt",- "salesOrderId",- "salesOrderLineId","companyId",- "id","updatedAt",- "createdBy",+ "id","updatedBy",- "nonConformanceId"+ "createdBy",+ "nonConformanceId",+ "salesOrderReadableId",+ "createdAt",+ "salesOrderLineId",+ "salesOrderId"]},{"name": "salesOrderPayment","rows": 0,"columns": [- "invoiceCustomerId",- "updatedBy",+ "invoiceCustomerContactId",+ "invoiceCustomerLocationId",+ "paymentTermId","companyId",- "customFields",+ "updatedBy",+ "invoiceCustomerId",+ "paymentComplete","id","updatedAt",- "paymentComplete",- "invoiceCustomerContactId",- "invoiceCustomerLocationId",- "paymentTermId"+ "customFields"]},{"name": "salesOrderShipment","rows": 0,"columns": [- "deliveryDate",- "shippingTermId",- "shippingMethodId",- "supplierLocationId",- "assignee",- "customFields",+ "receiptPromisedDate",+ "customerId",+ "trackingNumber",+ "id",+ "dropShipment",+ "notes",+ "locationId",+ "supplierId",+ "updatedBy",+ "updatedAt","companyId","incoterm",- "updatedAt",- "incotermLocation",- "receiptRequestedDate",- "shippingCost","customerLocationId",- "notes",- "dropShipment",- "updatedBy",- "supplierId",- "locationId",- "receiptPromisedDate",- "id",- "trackingNumber",- "customerId"+ "shippingCost",+ "receiptRequestedDate",+ "incotermLocation",+ "deliveryDate",+ "customFields",+ "assignee",+ "supplierLocationId",+ "shippingMethodId",+ "shippingTermId"]},{"name": "salesOrderStatusHistory","rows": 0,"columns": [- "salesOrderId",- "id",- "companyId",- "status","createdAt",+ "status","updatedBy",- "createdBy"+ "createdBy",+ "salesOrderId",+ "id",+ "companyId"]},{"name": "salesOrderTransaction","rows": 0,"columns": [- "createdAt","type","userId",- "companyId",+ "createdAt",+ "salesOrderId","id",- "salesOrderId"+ "companyId"]},{"name": "salesReturnOrder","rows": 0,"columns": [- "customerReference",- "customFields",- "createdBy",- "companyId",- "expirationDate",- "status",- "customerId",- "internalNotes",- "updatedBy",- "assignee",- "customerLocationId",+ "currencyCode",+ "salesOrderId",+ "id",+ "customerContactId",+ "salesReturnOrderId",+ "orderDate",+ "externalNotes",+ "replacementSalesOrderId",+ "locationId","exchangeRate","createdAt",+ "customerLocationId","updatedAt",- "replacementSalesOrderId",- "locationId",- "orderDate",- "salesReturnOrderId",- "externalNotes",- "customerContactId",- "currencyCode",- "salesOrderId",- "id"+ "assignee",+ "updatedBy",+ "internalNotes",+ "companyId",+ "createdBy",+ "status",+ "expirationDate",+ "customerId",+ "customerReference",+ "customFields"]},{"name": "salesRfq","rows": 0,"columns": [- "customerEngineeringContactId",- "customerReference",- "completedDate",- "internalNotes",- "expirationDate",- "customFields",- "locationId",- "rfqId",- "customerId",- "salesPersonId",- "id",- "rfqDate",- "noQuoteReasonId",+ "companyId",+ "customerLocationId",+ "tags",+ "createdAt",+ "employeeId",+ "updatedBy","externalNotes","customerContactId","opportunityId",@@ -4205,12 +4225,19 @@"revisionId","updatedAt","createdBy",- "companyId",- "customerLocationId",- "tags",- "createdAt",- "employeeId",- "updatedBy"+ "customerId",+ "salesPersonId",+ "id",+ "rfqDate",+ "noQuoteReasonId",+ "customerEngineeringContactId",+ "customerReference",+ "completedDate",+ "internalNotes",+ "expirationDate",+ "customFields",+ "locationId",+ "rfqId"]},{@@ -4222,145 +4249,145 @@"name": "salesRfqLine","rows": 0,"columns": [+ "description",+ "order",+ "id",+ "externalNotes","unitOfMeasureCode","internalNotes","updatedAt","salesRfqId","customFields",- "description",- "id",- "order",- "externalNotes",- "quantity",- "createdAt",- "modelUploadId",- "customerPartId","updatedBy",- "tags","createdBy",- "customerPartRevision",+ "tags","companyId",- "itemId"+ "customerPartRevision",+ "itemId",+ "quantity",+ "createdAt",+ "modelUploadId",+ "customerPartId"]},{"name": "externalLink","rows": 0,"columns": [- "createdAt","companyId",- "customerId","documentId",- "expiresAt",- "id",+ "customerId",+ "createdAt","supplierId",- "documentType"+ "documentType",+ "expiresAt",+ "id"]},{"name": "quote","rows": 0,"columns": [- "customerId","exchangeRateUpdatedAt",- "salesPersonId",+ "customerId","id",+ "salesPersonId","currencyCode","expirationDate",- "quoteId",- "opportunityId","customerContactId",+ "opportunityId",+ "quoteId","assignee",- "digitalQuoteRejectedByEmail",- "estimatorId","internalNotes",- "digitalQuoteAcceptedBy",+ "estimatorId",+ "digitalQuoteRejectedByEmail","digitalQuoteAcceptedByEmail",- "tags",- "customerLocationId",- "createdBy",+ "digitalQuoteAcceptedBy","dueDate",+ "createdBy",+ "customerLocationId",+ "tags","updatedBy",- "customFields",- "exchangeRate",- "locationId","updatedAt",- "companyId",+ "locationId",+ "exchangeRate",+ "customFields","createdAt",- "customerReference",+ "companyId","revisionId",+ "customerReference","digitalQuoteRejectedBy",- "externalLinkId",- "completedDate",- "status",+ "externalNotes","customerEngineeringContactId",- "externalNotes"+ "status",+ "completedDate",+ "externalLinkId"]},{"name": "job","rows": 0,"columns": [- "createdBy",- "salesOrderLineId",- "notes",- "quantityReceivedToInventory",- "assignee",- "modelUploadId",- "releasedDate",- "customerId",- "updatedBy",- "startDate",+ "completedDate","customFields",+ "startDate","status",- "completedDate",+ "updatedBy",+ "quoteLineId",+ "quoteId",+ "projectedCompletionAt","unitOfMeasureCode","itemId","quantityShipped",- "quoteId",- "projectedCompletionAt",- "quoteLineId",- "scheduleOutdatedAt",- "locationId",- "createdAt",- "id",- "deadlineType",- "updatedAt",- "scrapQuantity",- "priority",- "storageUnitId",+ "notes",+ "quantityReceivedToInventory",+ "createdBy",+ "salesOrderLineId",+ "customerId",+ "modelUploadId",+ "releasedDate",+ "assignee",+ "companyId",+ "quantity",+ "estimatedTime","dueDate","configuration","tags",- "quantity",- "estimatedTime",- "companyId",- "salesOrderId",+ "quantityComplete",+ "scheduleOutdatedReason","actualTime","jobId",- "quantityComplete",- "scheduleOutdatedReason"+ "salesOrderId",+ "createdAt",+ "scheduleOutdatedAt",+ "locationId",+ "priority",+ "storageUnitId",+ "updatedAt",+ "scrapQuantity",+ "id",+ "deadlineType"]},{"name": "fulfillment","rows": 0,"columns": [- "companyId",- "updatedBy",- "id",- "createdBy",- "salesOrderLineId",- "jobId",- "createdAt",+ "quantity","type",- "quantity"+ "createdAt",+ "jobId",+ "salesOrderLineId",+ "createdBy",+ "id",+ "updatedBy",+ "companyId"]},{"name": "jobFavorite","rows": 0,- "columns": ["jobId", "userId"]+ "columns": ["userId", "jobId"]},{"name": "quoteFavorite",@@ -4371,58 +4398,58 @@"name": "quoteLine","rows": 0,"columns": [- "taxPercent",- "itemId","unitPricePrecision","customerPartRevision","id","description",+ "taxPercent",+ "itemId",+ "unitOfMeasureCode",+ "quoteId",+ "createdBy","noQuoteReason","customerPartId",- "itemType","pricingRuleId",+ "itemType","configuration",- "unitOfMeasureCode",- "quoteId",- "createdBy",- "quantity",- "companyId",- "tags",- "updatedAt","estimatorId","modelUploadId",- "methodType","priceTrace",+ "methodType","additionalCharges",- "sortOrder",- "locationId",- "externalNotes",+ "companyId",+ "quantity",+ "tags",+ "updatedAt","customFields","updatedBy","status",+ "internalNotes","quoteRevisionId",- "internalNotes"+ "sortOrder",+ "locationId",+ "externalNotes"]},{"name": "quoteLinePrice","rows": 0,"columns": [+ "shippingCost",+ "exchangeRate",+ "updatedAt",+ "discountPercent",+ "unitPrice",+ "quoteLineId",+ "quantity",+ "categoryMarkups",+ "leadTime",+ "createdBy","priceSource","createdAt","companyId","updatedBy",- "quoteId",- "categoryMarkups",- "leadTime",- "createdBy",- "discountPercent",- "quantity",- "unitPrice",- "quoteLineId",- "shippingCost",- "exchangeRate",- "updatedAt"+ "quoteId"]},{@@ -4432,11 +4459,11 @@"updatedAt","customFields","invoiceCustomerId",- "id","updatedBy",+ "id","companyId",- "invoiceCustomerContactId","invoiceCustomerLocationId",+ "invoiceCustomerContactId","paymentTermId"]},@@ -4444,70 +4471,70 @@"name": "quoteShipment","rows": 0,"columns": [- "updatedBy",- "shippingTermId",- "shippingMethodId","incotermLocation","receiptRequestedDate",- "updatedAt",- "locationId",- "companyId",- "incoterm",+ "shippingTermId",+ "shippingMethodId",+ "updatedBy","id",- "shippingCost"+ "shippingCost",+ "incoterm",+ "companyId",+ "locationId",+ "updatedAt"]},{"name": "capacityReservation","rows": 0,"columns": [- "endAt",- "createdBy",- "workHours","updatedAt","companyId",- "jobId",- "id",- "scenarioId",+ "workHours",+ "createdBy",+ "endAt","createdAt",- "startAt",- "resourceId",- "resourceKind",- "earliestStartAt",+ "scenarioId",+ "id",+ "jobId","jobOperationBatchId",- "scheduleNote",- "isPlaceholder",+ "earliestStartAt",+ "resourceKind",+ "resourceId",+ "startAt","operationId",- "updatedBy"+ "updatedBy",+ "scheduleNote",+ "isPlaceholder"]},{"name": "gauge","rows": 0,"columns": [- "updatedBy",- "serialNumber",- "calibrationIntervalInMonths",- "createdBy",- "locationId",- "updatedAt",- "companyId",- "supplierId",+ "storageUnitId",+ "gaugeId",+ "lastCalibrationDate",+ "gaugeTypeId",+ "gaugeStatus",+ "gaugeCalibrationStatus",+ "id",+ "gaugeRole",+ "description","nextCalibrationDate",+ "supplierId","modelNumber",- "createdAt","customFields",+ "createdAt","dateAcquired","lastCalibrationStatus",- "gaugeCalibrationStatus",- "id",- "gaugeRole",- "description",- "storageUnitId",- "lastCalibrationDate",- "gaugeId",- "gaugeTypeId",- "gaugeStatus"+ "updatedBy",+ "calibrationIntervalInMonths",+ "createdBy",+ "serialNumber",+ "companyId",+ "locationId",+ "updatedAt"]},{@@ -4519,20 +4546,20 @@"createdAt","requiresAdjustment","temperature",- "updatedAt","gaugeId",+ "updatedAt","notes","companyId",- "requiresAction","createdBy","calibrationAttempts",- "supplierId",+ "requiresAction","humidity",+ "supplierId","dateCalibrated","updatedBy","inspectionStatus",- "measurementStandard","approvedBy",+ "measurementStandard","requiresRepair"]},@@ -4540,89 +4567,89 @@"name": "inspection","rows": 0,"columns": [- "companyId",- "acceptanceNumber",- "sourceDocumentReadableId",- "dispositionedBy",- "itemId",+ "updatedAt",+ "itemReadableId",+ "sampleSize",+ "inspectionDocumentId",+ "samplingStandard",+ "id",+ "samplingPlanType",+ "createdBy",+ "sourceDocumentId",+ "lotSize",+ "sourceDocumentLineId",+ "inspectionId",+ "rejectionNumber",+ "severity","codeLetter","updatedBy",- "dispositionedAt","inspectionLevel",- "aql",- "status",- "notes",+ "dispositionedAt",+ "sourceDocumentReadableId",+ "acceptanceNumber",+ "dispositionedBy",+ "itemId",+ "companyId","sourceDocument","supplierId","createdAt",- "samplingStandard",- "id",- "sampleSize",- "inspectionDocumentId",- "itemReadableId",- "updatedAt",- "severity",- "inspectionId",- "rejectionNumber",- "sourceDocumentId",- "lotSize",- "sourceDocumentLineId",- "samplingPlanType",- "createdBy"+ "status",+ "notes",+ "aql"]},{"name": "inspectionSample","rows": 0,"columns": [+ "notes",+ "updatedBy",+ "inspectedAt",+ "status",+ "trackedEntityId","inspectedBy","updatedAt",- "createdAt","id",+ "createdAt","createdBy","companyId",- "inspectionId",- "notes",- "updatedBy",- "inspectedAt",- "trackedEntityId",- "status"+ "inspectionId"]},{"name": "inspectionMeasurement","rows": 0,"columns": [- "value","createdAt",- "notes",+ "value","inspectionFeatureId","inspectionSampleId","updatedAt",- "status",+ "notes","createdBy","id","inspectedAt",- "companyId",- "inspectedBy",+ "status",+ "inspectionId","updatedBy",- "inspectionId"+ "companyId",+ "inspectedBy"]},{"name": "inspectionSamplingPlan","rows": 0,"columns": [- "createdAt","companyId",+ "createdAt","inspectionId","rejectionNumber",- "updatedBy",- "id","createdBy",+ "id",+ "updatedBy","codeLetter",- "sampleSize","inspectionFeatureId",+ "sampleSize","acceptanceNumber","updatedAt"]@@ -4631,312 +4658,312 @@"name": "nonConformanceInspection","rows": 0,"columns": [+ "createdBy",+ "id",+ "nonConformanceId","createdAt",- "companyId",- "inspectionId","updatedBy",- "id",- "createdBy",- "nonConformanceId"+ "companyId",+ "inspectionId"]},{"name": "inspectionHistory","rows": 0,"columns": [- "inspectionId",- "companyId",- "updatedBy",- "sampleSize",- "aql",- "defectsFound",- "lotSize",- "id","severity",- "createdAt",- "itemId",- "supplierId",- "inspectionLevel",- "outcome",+ "id",+ "lotSize",+ "defectsFound",+ "aql",+ "sampleSize",+ "updatedBy",+ "companyId",+ "inspectionId",+ "createdBy","samplingStandard",- "createdBy"+ "outcome",+ "inspectionLevel",+ "supplierId",+ "createdAt",+ "itemId"]},{"name": "itemReplenishment","rows": 0,"columns": [+ "leadTime",+ "tags","purchasingUnitOfMeasureCode","updatedBy",- "tags",- "leadTime",- "scrapPercentage",- "updatedAt",- "createdBy","conversionFactor",- "manufacturingBlocked",- "lotSize",- "customFields",- "preferredSupplierId",+ "createdBy",+ "updatedAt",+ "scrapPercentage","createdAt",- "purchasingBlocked",+ "preferredSupplierId",+ "customFields",+ "lotSize",+ "manufacturingBlocked",+ "companyId","itemId","requiresConfiguration",- "companyId"+ "purchasingBlocked"]},{"name": "jobMakeMethod","rows": 0,"columns": [- "version",- "trackedEntityId",- "quantityPerParent","createdAt",- "itemId","parentMaterialId","requiresBatchTracking",- "companyId",- "id",- "updatedAt",- "customFields",+ "itemId",+ "version",+ "trackedEntityId",+ "quantityPerParent","createdBy","updatedBy","itemScrapPercentage","jobId",- "requiresSerialTracking"+ "requiresSerialTracking",+ "companyId",+ "updatedAt",+ "id",+ "customFields"]},{"name": "jobMaterial","rows": 0,"columns": [- "estimatedQuantity",- "itemScrapPercentage",- "unitOfMeasureCode",- "jobMakeMethodId",- "itemType",+ "quantityIssued",+ "methodType",+ "id",+ "quantity",+ "scrapQuantity",+ "substitutionFactor",+ "storageUnitId",+ "description",+ "kit",+ "requiresBatchTracking",+ "jobId",+ "unitCost",+ "createdBy","updatedAt",- "createdAt","jobOperationId",- "companyId",- "itemId",- "updatedBy",- "customFields",+ "createdAt",+ "jobMakeMethodId",+ "unitOfMeasureCode",+ "itemScrapPercentage",+ "itemType",+ "estimatedQuantity",+ "substitutedFromItemId","requiresSerialTracking",- "order","defaultStorageUnit",- "substitutedFromItemId",- "quantity",- "id",- "methodType",- "quantityIssued",- "createdBy",- "jobId",- "unitCost",- "requiresBatchTracking",- "kit",- "description",- "substitutionFactor",- "scrapQuantity",- "storageUnitId"+ "order",+ "updatedBy",+ "customFields",+ "itemId",+ "companyId"]},{"name": "stockTransferLine","rows": 0,"columns": [- "stockTransferId",- "requiresSerialTracking",- "createdBy",- "quantity",- "trackedEntityId",- "id",- "pickedQuantity",- "fromStorageUnitId",- "updatedBy",- "jobMaterialId",- "companyId",- "jobId",- "toStorageUnitId",- "requiresBatchTracking","itemId",+ "requiresBatchTracking",+ "createdAt","updatedAt",- "createdAt"+ "jobId",+ "companyId",+ "jobMaterialId",+ "updatedBy",+ "toStorageUnitId",+ "pickedQuantity",+ "id",+ "trackedEntityId",+ "fromStorageUnitId",+ "createdBy",+ "requiresSerialTracking",+ "stockTransferId",+ "quantity"]},{"name": "jobMaterialStep","rows": 0,- "columns": ["quantity", "jobOperationStepId", "jobMaterialId"]+ "columns": ["quantity", "jobMaterialId", "jobOperationStepId"]},{"name": "jobOperation","rows": 0,"columns": [- "hasConflict",- "workCenterId",- "createdAt",- "readyAt",- "inspectionDocumentId",- "id",- "projectedCompletionAt",- "setupUnit",- "updatedAt",- "laborUnit",- "tags",- "procedureId","setupTime","operationQuantity","customFields","targetQuantity",- "quantityReworked","laborTime",+ "quantityReworked","companyId","conflictReason","overheadRate","status","jobId",- "dueDate","machineUnit",- "manuallyScheduled",- "createdBy",- "machineRate",- "laborRate",- "operationUnitCost",- "operationSupplierProcessId",- "reworkId",- "operationLeadTime",- "quantityComplete",- "machineTime",- "processId",+ "dueDate",+ "hasConflict",+ "workCenterId",+ "createdAt",+ "readyAt",+ "inspectionDocumentId",+ "id",+ "projectedCompletionAt",+ "setupUnit",+ "updatedAt",+ "laborUnit",+ "procedureId",+ "tags","updatedBy","assignee","workInstruction",- "priority","description",+ "priority","quantityScrapped","jobOperationBatchId","order","jobMakeMethodId","operationOrder",- "startDate","operationType",+ "startDate","assemblyInstructionId",- "operationMinimumCost"+ "operationMinimumCost",+ "manuallyScheduled",+ "createdBy",+ "machineRate",+ "operationUnitCost",+ "laborRate",+ "operationSupplierProcessId",+ "reworkId",+ "operationLeadTime",+ "machineTime",+ "quantityComplete",+ "processId"]},{"name": "jobOperationDependency","rows": 0,"columns": [+ "operationId",+ "dependsOnId","createdAt","jobId",- "companyId",- "operationId",- "dependsOnId"+ "companyId"]},{"name": "jobOperationParameter","rows": 0,"columns": [- "operationId",- "value",- "createdBy",- "companyId",+ "updatedBy",+ "id",+ "createdAt","key","updatedAt",- "id",- "updatedBy",- "createdAt"+ "companyId",+ "value",+ "operationId",+ "createdBy"]},{"name": "jobOperationTool","rows": 0,"columns": [- "updatedBy",- "id",- "createdAt",+ "quantity",+ "toolId",+ "createdBy",+ "companyId","operationId","updatedAt",- "companyId",- "toolId",- "quantity",- "createdBy"+ "id",+ "updatedBy",+ "createdAt"]},{"name": "nonConformanceJobOperation","rows": 0,"columns": [+ "jobReadableId","createdAt","jobOperationId","jobId",- "jobReadableId",- "updatedBy",- "createdBy",- "nonConformanceId","companyId","updatedAt",- "id"+ "id",+ "updatedBy",+ "createdBy",+ "nonConformanceId"]},{"name": "pickingListLine","rows": 0,"columns": [- "id",- "toStorageUnitId",- "itemId",- "updatedBy",- "pickingListId",- "companyId",- "quantityPicked",- "storageUnitId",- "status","jobOperationId",- "updatedAt",+ "status","createdAt",+ "updatedAt",+ "quantityReturned",+ "customFields","jobId","createdBy","jobMaterialId",- "customFields",- "quantityReturned",- "quantityToPick"+ "quantityToPick",+ "toStorageUnitId",+ "id",+ "itemId",+ "companyId",+ "pickingListId",+ "updatedBy",+ "storageUnitId",+ "quantityPicked"]},{"name": "pickingListLineTrackedEntity","rows": 0,"columns": [- "trackedEntityId","pickingListLineId",- "quantity",+ "trackedEntityId",+ "companyId","quantityPicked",- "companyId"+ "quantity"]},{"name": "productionEvent","rows": 0,"columns": [- "createdAt",- "workCenterId",- "updatedBy",- "jobOperationId","postedToGL",- "createdBy",+ "jobOperationId",+ "updatedBy",+ "workCenterId",+ "createdAt","companyId","id",- "employeeId",+ "createdBy","type","startTime",- "notes",- "jobOperationBatchId",+ "employeeId",+ "updatedAt","endTime",- "updatedAt"+ "jobOperationBatchId",+ "notes"]},{@@ -4965,101 +4992,101 @@"name": "jobOperationNote","rows": 0,"columns": [- "createdAt","companyId","note","updatedBy",+ "createdAt",+ "jobOperationId",+ "updatedAt","id","productionQuantityId",- "createdBy",- "jobOperationId",- "updatedAt"+ "createdBy"]},{"name": "rework","rows": 0,"columns": [- "reason",- "updatedAt","targetJobOperationId","triggeredAtJobOperationId",+ "updatedAt",+ "reason",+ "companyId",+ "requestedById",+ "jobId","quantity","createdAt","id",- "completedAt",- "companyId",- "requestedById",- "jobId"+ "completedAt"]},{"name": "jobOperationStep","rows": 0,"columns": [- "updatedAt",- "companyId",- "name",- "minValue",- "listValues",- "id",- "maxValue",- "fileTypes",- "type",+ "createdBy",+ "assemblyInstructionStepId",+ "updatedBy",+ "sortOrder",+ "nonConformanceInvestigationId",+ "operationId",+ "unitOfMeasureCode","required","createdAt","nonConformanceActionId","description",- "unitOfMeasureCode",- "sortOrder",- "nonConformanceInvestigationId",- "operationId",- "assemblyInstructionStepId",- "createdBy",- "updatedBy"+ "type",+ "id",+ "maxValue",+ "fileTypes",+ "minValue",+ "listValues",+ "updatedAt",+ "companyId",+ "name"]},{"name": "jobOperationStepRecord","rows": 0,"columns": [- "userValue",- "index",- "booleanValue",- "numericValue",- "createdAt",+ "companyId","jobOperationStepId","updatedAt","id",- "companyId",- "value","createdBy",- "updatedBy"+ "updatedBy",+ "value",+ "index",+ "userValue",+ "createdAt",+ "booleanValue",+ "numericValue"]},{"name": "jobOperationStepSlide","rows": 0,"columns": [- "size",- "updatedBy",- "id",- "companyId",+ "caption",+ "imagePath",+ "createdBy",+ "sortOrder",+ "annotations","modelUploadId","stepId","updatedAt","createdAt",- "sortOrder",- "annotations",- "imagePath",- "caption",- "createdBy"+ "size",+ "id",+ "updatedBy",+ "companyId"]},{"name": "jobOperationToolStep","rows": 0,- "columns": ["jobOperationToolId", "jobOperationStepId"]+ "columns": ["jobOperationStepId", "jobOperationToolId"]},{"name": "kanban",@@ -5072,13 +5099,13 @@"supplierId","fromStorageUnitId","jobId",- "replenishmentSystem",- "updatedAt","quantity",+ "updatedAt",+ "replenishmentSystem","storageUnitId","companyId",- "conversionFactor","id",+ "conversionFactor","autoRelease","purchaseUnitOfMeasureCode","createdBy",@@ -5090,27 +5117,27 @@"name": "methodMaterial","rows": 0,"columns": [+ "tags",+ "order",+ "itemType",+ "updatedAt","kit","quantity",- "methodOperationId","scrapQuantity",+ "methodOperationId","materialMakeMethodId","methodType","customFields",- "order",- "tags",- "updatedAt",- "itemType",- "createdAt",- "storageUnitIds",- "unitOfMeasureCode",- "makeMethodId",- "updatedBy","sourcingType","itemId","createdBy","id",- "companyId"+ "companyId",+ "storageUnitIds",+ "createdAt",+ "unitOfMeasureCode",+ "updatedBy",+ "makeMethodId"]},{@@ -5122,108 +5149,108 @@"name": "methodOperation","rows": 0,"columns": [- "customFields",- "createdBy",- "inspectionDocumentId",- "makeMethodId",+ "operationType",+ "id",+ "workInstruction",+ "companyId","operationMinimumCost","procedureId","machineUnit","assemblyInstructionId",- "id",- "workInstruction",- "companyId",- "operationType",- "operationOrder",- "order",- "updatedAt",- "setupTime",- "workCenterId",+ "customFields",+ "createdBy",+ "inspectionDocumentId",+ "makeMethodId",+ "updatedBy",+ "laborTime",+ "operationSupplierProcessId",+ "processId",+ "laborUnit",+ "setupUnit",+ "operationLeadTime",+ "createdAt","machineTime","description","tags","operationUnitCost",- "laborUnit",- "setupUnit",- "createdAt",- "operationLeadTime",- "laborTime",- "updatedBy",- "operationSupplierProcessId",- "processId"+ "operationOrder",+ "order",+ "updatedAt",+ "setupTime",+ "workCenterId"]},{"name": "methodOperationParameter","rows": 0,"columns": [- "value",- "operationId",- "createdBy",- "companyId",- "key",- "updatedAt",+ "createdAt","updatedBy","id",- "createdAt"+ "updatedAt",+ "key",+ "companyId",+ "createdBy",+ "value",+ "operationId"]},{"name": "methodOperationStep","rows": 0,"columns": [- "sortOrder",- "operationId",- "createdBy",- "updatedBy",- "assemblyInstructionStepId",- "description",- "createdAt",- "required",- "unitOfMeasureCode",- "fileTypes","maxValue","id",+ "fileTypes","type",- "companyId",- "name","updatedAt",+ "name",+ "companyId",+ "minValue","listValues",- "minValue"+ "operationId",+ "sortOrder",+ "updatedBy",+ "createdBy",+ "createdAt",+ "required",+ "description",+ "assemblyInstructionStepId",+ "unitOfMeasureCode"]},{"name": "methodOperationStepSlide","rows": 0,"columns": [- "sortOrder",- "annotations",- "caption",- "imagePath","createdBy",- "id",- "updatedBy",- "size",- "companyId",- "modelUploadId",- "stepId",+ "imagePath",+ "caption",+ "annotations",+ "sortOrder",+ "updatedAt","createdAt",- "updatedAt"+ "stepId",+ "modelUploadId",+ "companyId",+ "size",+ "updatedBy",+ "id"]},{"name": "methodOperationTool","rows": 0,"columns": [- "createdBy",- "quantity","toolId",+ "quantity",+ "createdBy","companyId",- "updatedAt","operationId",- "createdAt",+ "updatedAt",+ "updatedBy","id",- "updatedBy"+ "createdAt"]},{@@ -5235,53 +5262,53 @@"name": "nonConformanceActionProcess","rows": 0,"columns": [- "createdAt",- "updatedAt",- "companyId",- "processId","createdBy","id","updatedBy",- "actionTaskId"+ "actionTaskId",+ "createdAt",+ "updatedAt",+ "companyId",+ "processId"]},{"name": "nonConformanceActionTask","rows": 0,"columns": [- "assignee",- "status",- "updatedAt",- "supplierId",- "updatedBy",- "createdAt",- "dueDate",- "tags",- "notes",- "nonConformanceId","createdBy",+ "nonConformanceId","actionTypeId",- "completedDate",+ "tags",+ "notes","companyId",+ "sortOrder","id",- "sortOrder"+ "completedDate",+ "updatedAt",+ "status",+ "assignee",+ "dueDate",+ "createdAt",+ "updatedBy",+ "supplierId"]},{"name": "nonConformancePurchaseReturnOrderLine","rows": 0,"columns": [- "purchaseReturnOrderId",- "purchaseReturnOrderLineId",- "companyId","purchaseReturnOrderReadableId",- "nonConformanceId",- "updatedAt",- "createdAt",+ "companyId",+ "purchaseReturnOrderLineId",+ "purchaseReturnOrderId",+ "quantity","updatedBy",- "id","createdBy",- "quantity"+ "id",+ "updatedAt",+ "createdAt",+ "nonConformanceId"]},{@@ -5296,99 +5323,108 @@"updatedAt","companyId","nonConformanceId",- "updatedBy",- "createdBy"+ "createdBy",+ "updatedBy"]},{"name": "nonConformanceSupplier","rows": 0,"columns": [- "nonConformanceId",- "updatedBy",- "id",- "externalLinkId",- "createdBy",+ "createdAt",+ "updatedAt","companyId","supplierId",- "updatedAt",- "createdAt"+ "createdBy",+ "id",+ "externalLinkId",+ "updatedBy",+ "nonConformanceId"]},{"name": "partner","rows": 0,"columns": [- "companyId",- "createdAt","abilityId","active",- "createdBy",+ "createdAt",+ "companyId",+ "hoursPerWeek",+ "updatedBy",+ "customFields","updatedAt","id","tags",- "updatedBy",- "customFields",- "hoursPerWeek"+ "createdBy"]},{"name": "payment","rows": 0,"columns": [- "postedAt",- "reference",- "paymentId","postingDate",- "updatedAt","exchangeRate",- "id",- "currencyCode",- "totalAmount",+ "updatedAt",+ "postedAt",+ "paymentId",+ "reference","supplierId","customFields",- "status",+ "currencyCode",+ "id",+ "totalAmount",+ "paymentDate",+ "updatedBy","memo","paymentType",- "voidedBy",+ "status","voidedAt",- "updatedBy",- "paymentDate",+ "voidedBy",+ "postedBy",+ "journalId",+ "createdBy","createdAt",- "customerId",- "companyId","bankAccount",- "createdBy",- "journalId",- "postedBy"+ "companyId",+ "customerId"]},{"name": "purchaseInvoiceDelivery","rows": 0,"columns": [- "updatedBy",+ "supplierShippingCost","shippingTermId","shippingMethodId",- "supplierShippingCost",- "updatedAt",- "incoterm",- "locationId",- "companyId",+ "updatedBy",+ "incotermLocation","id","customFields",- "incotermLocation"+ "companyId",+ "locationId",+ "incoterm",+ "updatedAt"]},{"name": "purchaseInvoiceStatusHistory","rows": 0,- "columns": ["createdAt", "companyId", "invoiceId", "id", "status"]+ "columns": ["invoiceId", "status", "id", "companyId", "createdAt"]},{"name": "purchaseOrderDelivery","rows": 0,"columns": [+ "receiptPromisedDate",+ "customerId",+ "trackingNumber",+ "id",+ "dropShipment",+ "notes",+ "companyId",+ "locationId",+ "customFields","updatedAt","tags","receiptRequestedDate",@@ -5399,16 +5435,7 @@"supplierShippingCost","updatedBy","shippingMethodId",- "shippingTermId",- "receiptPromisedDate",- "customerId",- "trackingNumber",- "id",- "dropShipment",- "notes",- "companyId",- "locationId",- "customFields"+ "shippingTermId"]},{@@ -5420,90 +5447,90 @@"name": "purchaseOrderLine","rows": 0,"columns": [- "conversionFactor",- "receivedDate",- "tags",- "description",- "externalNotes",- "createdAt",- "purchaseUnitOfMeasureCode",- "purchaseOrderId",- "exchangeRate",- "jobId",- "ownerId",- "quantityInvoiced",- "modelUploadId",- "supplierTaxAmount",- "accountId",- "supplierPartId",- "requiredDate",- "createdBy",- "purchaseQuantity",- "id",- "quantityReceived",- "updatedBy",- "supplierShippingCost",- "sortOrder",- "customFields",- "assetId",- "companyId",- "internalNotes",- "promisedDate",- "supplierUnitPrice",- "purchaseOrderLineType",- "itemId",- "storageUnitId",- "setupPrice",- "locationId","updatedAt",- "quantityShipped",- "taxPercent",- "invoicedComplete",+ "locationId","costCenterId","inventoryUnitOfMeasureCode",+ "invoicedComplete",+ "taxPercent",+ "quantityShipped",+ "receivedComplete","jobOperationId",- "receivedComplete"+ "internalNotes",+ "customFields",+ "sortOrder",+ "companyId",+ "assetId",+ "storageUnitId",+ "setupPrice",+ "promisedDate",+ "itemId",+ "purchaseOrderLineType",+ "supplierUnitPrice",+ "createdBy",+ "supplierPartId",+ "accountId",+ "supplierTaxAmount",+ "requiredDate",+ "updatedBy",+ "quantityReceived",+ "supplierShippingCost",+ "id",+ "purchaseQuantity",+ "externalNotes",+ "createdAt",+ "description",+ "tags",+ "receivedDate",+ "conversionFactor",+ "jobId",+ "exchangeRate",+ "purchaseOrderId",+ "modelUploadId",+ "quantityInvoiced",+ "ownerId",+ "purchaseUnitOfMeasureCode"]},{"name": "nonConformancePurchaseOrderLine","rows": 0,"columns": [+ "purchaseOrderReadableId",+ "createdAt",+ "purchaseOrderId",+ "purchaseOrderLineId","companyId","id","updatedAt",- "createdBy","updatedBy",- "nonConformanceId",- "purchaseOrderReadableId",- "createdAt",- "purchaseOrderId",- "purchaseOrderLineId"+ "createdBy",+ "nonConformanceId"]},{"name": "purchaseOrderStatusHistory","rows": 0,"columns": [+ "id",+ "companyId",+ "purchaseOrderId","createdBy","createdAt","status",- "updatedBy",- "id",- "companyId",- "purchaseOrderId"+ "updatedBy"]},{"name": "purchaseOrderTransaction","rows": 0,"columns": [- "id",- "companyId","purchaseOrderId",- "createdAt",+ "companyId",+ "id",+ "type","userId",- "type"+ "createdAt"]},{@@ -5511,13 +5538,13 @@"rows": 0,"columns": ["createdBy",+ "updatedBy","companyId","quantity",- "updatedBy",- "purchaseReturnOrderLineId","createdAt",- "trackedEntityId",- "updatedAt"+ "purchaseReturnOrderLineId",+ "updatedAt",+ "trackedEntityId"]},{@@ -5526,8 +5553,8 @@"columns": ["createdAt","updatedBy",- "companyId","supplierId",+ "companyId","createdBy","id","purchasingRfqId"@@ -5541,172 +5568,172 @@{"name": "purchasingRfqToSupplierQuote","rows": 0,- "columns": ["companyId", "purchasingRfqId", "supplierQuoteId"]+ "columns": ["supplierQuoteId", "purchasingRfqId", "companyId"]},{"name": "quoteMakeMethod","rows": 0,"columns": [- "parentMaterialId",+ "itemId",+ "customFields","quoteLineId","version",+ "parentMaterialId","companyId",- "itemId",- "customFields",+ "createdBy",+ "id",+ "updatedBy",+ "quantityPerParent","tags","quoteId","createdAt",- "updatedAt",- "id",- "createdBy",- "updatedBy",- "quantityPerParent"+ "updatedAt"]},{"name": "quoteMaterial","rows": 0,"columns": [- "quoteLineId",- "createdAt",+ "createdBy",+ "scrapQuantity",+ "storageUnitId",+ "updatedBy",+ "quoteOperationId",+ "unitCost",+ "tags",+ "methodType",+ "unitCostSource","itemId",- "customFields",+ "createdAt",+ "quoteLineId","quoteMakeMethodId",- "unitCostSource",- "methodType",- "tags",- "unitCost",- "quoteOperationId",- "updatedBy",- "storageUnitId",- "scrapQuantity",- "createdBy",- "updatedAt",- "quoteId",- "companyId",- "order",- "quantity",- "description",+ "customFields",+ "itemType",+ "kit","id",+ "description","unitOfMeasureCode",- "itemType",- "kit"+ "order",+ "quantity",+ "updatedAt",+ "companyId",+ "quoteId"]},{"name": "quoteMaterialStep","rows": 0,- "columns": ["quantity", "quoteOperationStepId", "quoteMaterialId"]+ "columns": ["quoteMaterialId", "quoteOperationStepId", "quantity"]},{"name": "quoteOperation","rows": 0,"columns": [- "quoteMakeMethodId",- "quoteLineId",- "laborRate",- "assemblyInstructionId",- "createdBy",- "updatedAt",- "machineTime",+ "customFields",+ "overheadRate",+ "laborTime",+ "createdAt",+ "processId",+ "order",+ "updatedBy",+ "operationOrder",+ "operationType","workCenterId","workInstruction","operationSupplierProcessId",+ "machineTime","operationMinimumCost",- "processId",- "updatedBy",- "operationType",- "operationOrder",- "order",- "laborTime",- "createdAt",- "overheadRate",- "customFields",- "companyId",- "operationUnitCost",- "quoteId",- "inspectionDocumentId",- "description",+ "quoteMakeMethodId",+ "laborRate",+ "quoteLineId",+ "updatedAt",+ "createdBy",+ "assemblyInstructionId",+ "setupUnit",+ "id",+ "procedureId",+ "tags",+ "laborUnit","machineRate",+ "description","machineUnit",- "operationLeadTime","setupTime",- "id",- "laborUnit",- "tags",- "procedureId",- "setupUnit"+ "operationLeadTime",+ "companyId",+ "inspectionDocumentId",+ "quoteId",+ "operationUnitCost"]},{"name": "quoteOperationParameter","rows": 0,"columns": [- "updatedAt",+ "operationId",+ "value",+ "createdBy",+ "companyId","key",- "createdAt",+ "updatedAt","id","updatedBy",- "createdBy",- "operationId",- "value",- "companyId"+ "createdAt"]},{"name": "quoteOperationStep","rows": 0,"columns": [- "unitOfMeasureCode",- "description",- "required",- "createdAt",- "updatedBy",- "createdBy",- "operationId",- "sortOrder",- "listValues",- "minValue",+ "fileTypes",+ "id",+ "maxValue",+ "type","name","companyId","updatedAt",- "type",- "fileTypes",- "id",- "maxValue"+ "listValues",+ "minValue",+ "operationId",+ "sortOrder",+ "updatedBy",+ "createdBy",+ "description",+ "required",+ "createdAt",+ "unitOfMeasureCode"]},{"name": "quoteOperationStepSlide","rows": 0,"columns": [- "imagePath",- "caption","createdBy",+ "caption",+ "imagePath","annotations","sortOrder",- "stepId",- "modelUploadId","updatedAt","createdAt",+ "stepId",+ "modelUploadId",+ "companyId","size",- "updatedBy","id",- "companyId"+ "updatedBy"]},{"name": "quoteOperationTool","rows": 0,"columns": [- "operationId","updatedAt",+ "operationId",+ "createdAt","id","updatedBy",- "createdAt",+ "createdBy","quantity","toolId",- "createdBy","companyId"]},@@ -5719,309 +5746,336 @@"name": "receiptFixedAssetLine","rows": 0,"columns": [- "updatedAt",- "id","companyId",- "receiptId",+ "id",+ "updatedAt","createdAt","updatedBy",+ "receiptId","serialNumber",- "purchaseOrderLineId",+ "createdBy","received",- "createdBy"+ "purchaseOrderLineId"]},{"name": "receiptLine","rows": 0,"columns": [- "receiptId",- "companyId",- "updatedAt",- "storageUnitId",- "receivedQuantity",- "unitOfMeasure",- "id",- "locationId",- "orderQuantity",- "conversionFactor",+ "requiresBatchTracking",+ "unitPrice",+ "createdBy",+ "updatedBy","requiresSerialTracking",+ "conversionFactor","itemId",- "createdAt","lineId",+ "createdAt","outstandingQuantity",- "requiresBatchTracking",- "unitPrice",- "updatedBy",- "createdBy"+ "unitOfMeasure",+ "id",+ "locationId",+ "orderQuantity",+ "companyId",+ "receiptId",+ "updatedAt",+ "storageUnitId",+ "receivedQuantity"]},{"name": "nonConformanceReceiptLine","rows": 0,"columns": [- "createdAt",- "receiptLineId",- "receiptId",- "receiptReadableId","createdBy","updatedBy","nonConformanceId","companyId",+ "id","updatedAt",- "id"+ "createdAt",+ "receiptId",+ "receiptLineId",+ "receiptReadableId"]},{"name": "salesInvoice","rows": 0,"columns": [- "locationId",- "status",- "customerId",- "totalTax",- "totalAmount",- "invoiceCustomerLocationId",- "opportunityId",- "internalNotes",- "createdBy",- "exchangeRateUpdatedAt",+ "dateIssued",+ "customFields",+ "paymentTermId",+ "id",+ "assignee",+ "invoiceCustomerId",+ "datePaid",+ "updatedBy",+ "invoiceId",+ "subtotal",+ "shipmentId",+ "updatedAt",+ "postingDate",+ "externalNotes",+ "invoiceCustomerContactId",+ "tags","customerReference",- "dateDue","createdAt",- "exchangeRate",+ "dateDue",+ "exchangeRateUpdatedAt","currencyCode",+ "exchangeRate","totalDiscount","companyId",- "subtotal",- "datePaid",- "invoiceId",- "updatedBy",- "externalNotes",- "tags",- "invoiceCustomerContactId",- "shipmentId",- "postingDate",- "updatedAt",- "paymentTermId",- "id",- "dateIssued",- "customFields",- "invoiceCustomerId",- "assignee"+ "totalTax",+ "totalAmount",+ "status",+ "locationId",+ "customerId",+ "createdBy",+ "invoiceCustomerLocationId",+ "opportunityId",+ "internalNotes"]},{"name": "salesInvoiceLine","rows": 0,"columns": [- "methodType",- "internalNotes",- "id",- "assetId",- "opportunityId",- "unitOfMeasureCode",- "nonTaxableAddOnCost",- "customFields",- "salesOrderLineId",- "quantity",- "createdBy",- "externalNotes",- "setupPrice",- "updatedAt",- "invoiceId",- "storageUnitId",- "modelUploadId","addOnCost",+ "modelUploadId","unitPrice",- "locationId","companyId",+ "locationId","itemId",+ "createdAt","salesOrderId",- "accountId","updatedBy",- "createdAt",- "description",+ "accountId",+ "sortOrder",+ "shippingCost",+ "taxPercent","invoiceLineType","exchangeRate",- "shippingCost",- "sortOrder",- "taxPercent"+ "description",+ "internalNotes",+ "methodType",+ "unitOfMeasureCode",+ "opportunityId",+ "nonTaxableAddOnCost",+ "assetId",+ "id",+ "createdBy",+ "quantity",+ "externalNotes",+ "salesOrderLineId",+ "customFields",+ "updatedAt",+ "invoiceId",+ "storageUnitId",+ "setupPrice"]},{"name": "salesInvoiceShipment","rows": 0,"columns": [+ "incoterm",+ "shippingTermId","companyId","locationId","shippingMethodId",- "incoterm",- "shippingTermId",- "createdAt",- "updatedAt",- "shippingCost",- "incotermLocation","customFields","createdBy","id",- "updatedBy"+ "updatedBy",+ "createdAt",+ "updatedAt",+ "shippingCost",+ "incotermLocation"]},{"name": "salesReturnOrderLine","rows": 0,"columns": [- "returnReasonId",- "unitPrice",- "salesReturnOrderId",- "salesInvoiceLineId",- "companyId",- "quantityReceived",- "salesOrderLineId",- "restockFeePercent",- "id",- "unitOfMeasureCode",- "createdAt","updatedBy",- "lineNumber",+ "createdAt","disposition",+ "lineNumber","itemId",- "createdBy",- "customFields",- "closedComplete",+ "unitOfMeasureCode",+ "quantity","shipmentLineId","updatedAt",- "quantity"+ "closedComplete",+ "customFields",+ "createdBy",+ "salesInvoiceLineId",+ "salesReturnOrderId",+ "companyId",+ "returnReasonId",+ "unitPrice",+ "salesOrderLineId",+ "restockFeePercent",+ "id",+ "quantityReceived"]},{"name": "salesReturnOrderLineTrackedEntity","rows": 0,"columns": [- "salesReturnOrderLineId",- "createdAt",- "trackedEntityId",- "updatedAt",- "createdBy",+ "updatedBy","quantity","companyId",- "updatedBy"+ "createdBy",+ "updatedAt",+ "trackedEntityId",+ "createdAt",+ "salesReturnOrderLineId"]},{"name": "salesReturnOrderCreditLine","rows": 0,"columns": [- "unitPrice",+ "companyId","quantity","salesReturnOrderLineId",- "companyId",- "updatedAt",+ "unitPrice",+ "createdBy",+ "updatedBy",+ "memoId",+ "restockFee","id","createdAt",- "restockFee",- "memoId",- "updatedBy",- "createdBy"+ "updatedAt"]},{"name": "shipmentFixedAssetLine","rows": 0,"columns": [- "serialNumber","createdBy","salesOrderLineId","shipped",+ "serialNumber",+ "updatedBy",+ "createdAt",+ "shipmentId","companyId","updatedAt",- "id",- "createdAt",- "updatedBy",- "shipmentId"+ "id"]},{"name": "shipmentLine","rows": 0,"columns": [- "shippedQuantity",- "storageUnitId",- "createdAt",- "requiresSerialTracking",- "shipmentId",- "orderQuantity",- "locationId",- "id",- "unitOfMeasure",- "outstandingQuantity","requiresBatchTracking","lineId","itemId",- "updatedBy","updatedAt",- "companyId",- "createdBy",+ "updatedBy",+ "outstandingQuantity","unitPrice",- "fulfillmentId"+ "fulfillmentId",+ "createdBy",+ "companyId",+ "createdAt",+ "shipmentId",+ "requiresSerialTracking",+ "shippedQuantity",+ "storageUnitId",+ "locationId",+ "id",+ "unitOfMeasure",+ "orderQuantity"]},{"name": "nonConformanceShipmentLine","rows": 0,"columns": [+ "shipmentLineId",+ "shipmentId",+ "createdAt",+ "shipmentReadableId",+ "nonConformanceId","createdBy","updatedBy",- "nonConformanceId",- "companyId",- "id","updatedAt",- "createdAt",- "shipmentId",- "shipmentLineId",- "shipmentReadableId"+ "id",+ "companyId"]},{"name": "supplier","rows": 0,"columns": [- "website",- "supplierTypeId",- "customFields",- "intercompanyCompanyId",- "purchasingContactId",- "logo",- "tags",- "updatedAt",- "embedding",- "fax",- "taxPercent",- "currencyCode",- "name",- "updatedBy",- "phone",+ "defaultCc",+ "accountManagerId",+ "createdBy",+ "supplierStatus",+ "companyId",+ "id","createdAt","assignee","readableId",- "supplierStatus",- "createdBy",- "id",- "companyId",- "defaultCc",- "accountManagerId"+ "updatedBy",+ "name",+ "phone",+ "taxPercent",+ "currencyCode",+ "fax",+ "updatedAt",+ "tags",+ "embedding",+ "logo",+ "purchasingContactId",+ "intercompanyCompanyId",+ "website",+ "supplierTypeId",+ "customFields"]},{"name": "supplierAccount","rows": 0,- "columns": ["active", "companyId", "id", "supplierId"]+ "columns": ["active", "companyId", "supplierId", "id"]+ },+ {+ "name": "supplierBankAccount",+ "rows": 0,+ "columns": [+ "bankAddress",+ "updatedBy",+ "updatedAt",+ "name",+ "active",+ "supplierId",+ "createdAt",+ "tags",+ "notes",+ "customFields",+ "swiftBic",+ "accountHolderName",+ "accountNumber",+ "countryCode",+ "companyId",+ "isPrimary",+ "createdBy",+ "bankName",+ "bankCode",+ "id",+ "currencyCode"+ ]},{"name": "supplierInteraction","rows": 0,- "columns": ["supplierId", "id", "companyId"]+ "columns": ["companyId", "supplierId", "id"]},{"name": "receipt",@@ -6030,482 +6084,482 @@"supplierId","postingDate","updatedAt",- "companyId","receiptId",+ "companyId","sourceDocumentReadableId",- "status","id",+ "status","invoiced","externalDocumentId",- "createdAt",- "locationId","sourceDocument",- "tags",+ "locationId",+ "createdAt","customFields",+ "tags",+ "updatedBy","createdBy","supplierInteractionId",- "updatedBy","postedBy",- "sourceDocumentId",+ "internalNotes","assignee",- "internalNotes"+ "sourceDocumentId"]},{"name": "shipment","rows": 0,"columns": [- "customerId",- "id",- "postingDate",- "externalDocumentId",- "sourceDocumentReadableId",- "supplierId",- "externalNotes",- "invoiced",- "shipmentId",- "trackingNumber",- "customFields",- "status",- "updatedBy",- "sourceDocumentId",- "postedBy",- "createdBy",- "internalNotes",- "updatedAt",- "opportunityId",- "supplierInteractionId",+ "sourceDocument","locationId","assignee",- "sourceDocument",- "createdAt","companyId",+ "createdAt",+ "tags","shippingMethodId",- "tags"+ "updatedBy",+ "createdBy",+ "postedBy",+ "sourceDocumentId",+ "supplierInteractionId",+ "opportunityId",+ "internalNotes",+ "updatedAt",+ "externalNotes",+ "shipmentId",+ "invoiced",+ "trackingNumber",+ "status",+ "customFields",+ "id",+ "customerId",+ "externalDocumentId",+ "postingDate",+ "sourceDocumentReadableId",+ "supplierId"]},{"name": "supplierLedger","rows": 0,"columns": [- "documentId",- "postingDate",- "documentType",- "supplierId",+ "entryNumber",+ "createdAt",+ "amount","companyId","id","externalDocumentId",- "entryNumber",- "amount",- "createdAt"+ "postingDate",+ "documentType",+ "supplierId",+ "documentId"]},{"name": "supplierLocation","rows": 0,"columns": [- "name",- "customFields",- "addressId","tags","id","companyId",- "supplierId"+ "supplierId",+ "name",+ "addressId",+ "customFields"]},{"name": "supplierContact","rows": 0,"columns": [- "id",- "customFields","supplierId","companyId",- "userId",- "supplierLocationId",+ "id",+ "customFields","contactId",- "tags"+ "supplierLocationId",+ "tags",+ "userId"]},{"name": "purchaseInvoice","rows": 0,"columns": [- "invoiceSupplierContactId",- "internalNotes",- "supplierInteractionId",- "createdBy",- "currencyCode",- "subtotal",- "dateIssued",- "status",- "invoiceId",- "invoiceSupplierId","createdAt",- "id",- "paymentTermId",+ "invoiceSupplierId","updatedAt","exchangeRate",- "customFields",- "invoiceSupplierLocationId",- "tags",- "locationId",- "supplierId",- "dateDue",- "totalTax",- "totalAmount",- "datePaid",- "assignee",+ "id",+ "paymentTermId",+ "currencyCode",+ "createdBy",+ "internalNotes",+ "invoiceSupplierContactId",+ "supplierInteractionId",+ "invoiceId",+ "status",+ "dateIssued",+ "subtotal","updatedBy","totalDiscount",- "companyId",- "supplierReference",+ "assignee",+ "datePaid",+ "postingDate","exchangeRateUpdatedAt",- "postingDate"+ "supplierReference",+ "companyId",+ "locationId",+ "tags",+ "customFields",+ "invoiceSupplierLocationId",+ "totalAmount",+ "totalTax",+ "supplierId",+ "dateDue"]},{"name": "purchaseOrder","rows": 0,"columns": [- "currencyCode",- "closedBy",- "createdAt",- "externalNotes",- "status",- "assignee",- "updatedBy",- "exchangeRate",- "exchangeRateUpdatedAt",- "purchaseOrderType",- "updatedAt",- "createdBy",- "revisionId",- "closedAt","internalNotes","orderDate","supplierReference","supplierInteractionId","supplierLocationId","id",- "tags","supplierContactId",+ "tags","jobId","supplierId","jobReadableId",- "companyId","purchaseOrderId",- "customFields"+ "companyId",+ "customFields",+ "createdAt",+ "externalNotes",+ "closedBy",+ "currencyCode",+ "assignee",+ "updatedBy",+ "status",+ "exchangeRate",+ "purchaseOrderType",+ "exchangeRateUpdatedAt",+ "createdBy",+ "updatedAt",+ "revisionId",+ "closedAt"]},{"name": "purchaseInvoiceLine","rows": 0,"columns": [- "costCenterId",- "invoiceLineType",- "quantity",- "purchaseOrderId",- "exchangeRate",- "sortOrder",- "inventoryUnitOfMeasureCode","tags","modelUploadId","createdAt","supplierTaxAmount",- "taxPercent",- "createdBy",- "assetId",- "purchaseUnitOfMeasureCode",- "purchaseOrderLineId",- "jobOperationId",+ "exchangeRate",+ "sortOrder",+ "inventoryUnitOfMeasureCode",+ "costCenterId",+ "invoiceLineType",+ "quantity",+ "purchaseOrderId","ownerId","customFields","accountId",- "supplierUnitPrice","companyId",- "requiredDate",- "invoiceId",- "description",- "internalNotes",- "serviceId",- "supplierShippingCost",+ "supplierUnitPrice",+ "jobOperationId",+ "assetId",+ "purchaseUnitOfMeasureCode",+ "purchaseOrderLineId",+ "taxPercent",+ "createdBy","storageUnitId",+ "supplierShippingCost","updatedBy",- "locationId",- "id",- "conversionFactor",+ "internalNotes",+ "serviceId",+ "invoiceId",+ "description",+ "requiredDate",+ "updatedAt","itemId",- "updatedAt"+ "conversionFactor",+ "locationId",+ "id"]},{"name": "purchaseInvoicePriceChange","rows": 0,"columns": [- "updatedBy",- "invoiceId",- "previousQuantity",- "companyId",- "id",- "newQuantity",+ "newPrice","invoiceLineId","previousPrice",- "newPrice"+ "newQuantity",+ "companyId",+ "id",+ "previousQuantity",+ "invoiceId",+ "updatedBy"]},{"name": "purchaseOrderPayment","rows": 0,"columns": [- "invoiceSupplierLocationId",- "invoiceSupplierContactId","paymentTermId","tags",- "invoiceSupplierId",- "updatedBy",- "companyId",- "customFields",- "updatedAt",+ "invoiceSupplierContactId",+ "invoiceSupplierLocationId",+ "paymentComplete","id",- "paymentComplete"+ "updatedAt",+ "customFields",+ "companyId",+ "updatedBy",+ "invoiceSupplierId"]},{"name": "purchaseReturnOrder","rows": 0,"columns": [- "updatedBy",- "internalNotes",- "assignee",- "updatedAt",+ "currencyCode",+ "purchaseOrderId",+ "id",+ "supplierContactId",+ "orderDate",+ "purchaseReturnOrderId",+ "externalNotes",+ "replacementPurchaseOrderId",+ "locationId","supplierLocationId","exchangeRate","createdAt",- "supplierReference",- "customFields",+ "updatedAt",+ "updatedBy",+ "internalNotes",+ "assignee",+ "createdBy",+ "companyId","status","expirationDate","supplierId",- "createdBy",- "companyId",- "supplierContactId",- "purchaseOrderId",- "id",- "currencyCode",- "locationId",- "replacementPurchaseOrderId",- "externalNotes",- "orderDate",- "purchaseReturnOrderId"+ "supplierReference",+ "customFields"]},{"name": "memo","rows": 0,"columns": [- "postedAt",- "memoId",- "reference",- "postingDate",- "exchangeRate",- "updatedAt",- "currencyCode",- "id",- "amount",- "purchaseReturnOrderId",- "supplierId",- "customFields",- "direction",- "notes",- "status",- "voidedAt","voidedBy",- "memoDate",+ "voidedAt",+ "status",+ "notes",+ "direction","updatedBy",- "createdAt",- "reasonAccount",- "companyId",+ "memoDate","customerId",- "postedBy",- "salesReturnOrderId",+ "companyId",+ "reasonAccount",+ "createdAt","journalId",- "createdBy"+ "createdBy",+ "salesReturnOrderId",+ "postedBy",+ "reference",+ "memoId",+ "postedAt",+ "updatedAt",+ "exchangeRate",+ "postingDate",+ "purchaseReturnOrderId",+ "amount",+ "id",+ "currencyCode",+ "customFields",+ "supplierId"]},{"name": "invoiceSettlement","rows": 0,"columns": [- "targetExchangeRate",- "id",- "writeOffAmount",- "targetMemoId",+ "discountAmount",+ "sourceExchangeRate",+ "createdAt","appliedDate","paymentId",- "createdAt",- "sourceExchangeRate",- "discountAmount",- "targetPurchaseInvoiceId",- "sourceAmount",- "fxGainLossAmount",- "createdBy",- "appliedViaPaymentId",- "sourcePaymentId",- "updatedBy",+ "targetMemoId",+ "id",+ "writeOffAmount",+ "targetExchangeRate",+ "appliedAmount","targetSalesInvoiceId",- "memoId","companyId",- "appliedAmount"+ "memoId",+ "sourcePaymentId",+ "updatedBy",+ "createdBy",+ "appliedViaPaymentId",+ "targetPurchaseInvoiceId",+ "sourceAmount",+ "fxGainLossAmount"]},{"name": "purchaseReturnOrderLine","rows": 0,"columns": [+ "returnReasonId",+ "unitPrice",+ "purchaseReturnOrderId",+ "purchaseInvoiceLineId",+ "createdBy",+ "quantityShipped",+ "purchaseOrderLineId","id","restockFeePercent",- "purchaseOrderLineId",- "quantityShipped",- "createdBy",- "purchaseInvoiceLineId",- "purchaseReturnOrderId",- "unitPrice",- "returnReasonId",- "quantity",- "customFields",- "receiptLineId",- "companyId",- "createdAt",+ "unitOfMeasureCode",+ "updatedBy",+ "updatedAt","itemId",- "closedComplete","lineNumber",- "updatedAt",- "updatedBy",- "unitOfMeasureCode"+ "closedComplete",+ "createdAt",+ "companyId",+ "customFields",+ "receiptLineId",+ "quantity"]},{"name": "purchaseReturnOrderCreditLine","rows": 0,"columns": [+ "unitPrice",+ "companyId","quantity","purchaseReturnOrderLineId",- "companyId",- "unitPrice",- "memoId",- "createdBy",- "updatedBy",+ "restockFee","id","createdAt","updatedAt",- "restockFee"+ "createdBy",+ "updatedBy",+ "memoId"]},{"name": "supplierPart","rows": 0,"columns": [- "supplierId",- "customFields",- "supplierPartId",- "conversionFactor",- "supplierUnitOfMeasureCode","updatedBy",- "unitPrice",+ "supplierUnitOfMeasureCode","orderMultiple",- "tags",- "updatedAt",+ "unitPrice",+ "supplierPartId",+ "customFields",+ "supplierId",+ "conversionFactor",+ "createdAt",+ "id",+ "companyId",+ "minimumOrderQuantity","itemId",- "active",+ "updatedAt",+ "tags","createdBy",- "companyId",- "id",- "createdAt",- "minimumOrderQuantity"+ "active"]},{"name": "supplierPartPrice","rows": 0,"columns": [+ "sourceType",+ "unitPrice",+ "createdBy",+ "sourceDocumentId","quantity","updatedAt","createdAt","leadTime",- "updatedBy","supplierPartId",- "companyId",- "unitPrice",- "sourceType",- "createdBy",- "sourceDocumentId"+ "updatedBy",+ "companyId"]},{"name": "supplierPayment","rows": 0,"columns": [- "paymentTermId",- "invoiceSupplierContactId",- "invoiceSupplierLocationId",- "companyId",- "supplierId",- "updatedBy",- "tags","invoiceSupplierId",+ "customFields","updatedAt",- "customFields"+ "tags",+ "updatedBy",+ "supplierId",+ "invoiceSupplierLocationId",+ "invoiceSupplierContactId",+ "companyId",+ "paymentTermId"]},{"name": "supplierProcess","rows": 0,"columns": [- "supplierId",- "tags",- "createdAt",- "customFields",- "updatedBy","createdBy","id",+ "updatedBy","leadTime",+ "tags",+ "supplierId",+ "customFields",+ "createdAt",+ "updatedAt","processId","minimumCost",- "companyId",- "updatedAt"+ "companyId"]},{"name": "supplierQuote","rows": 0,"columns": [- "tags",- "customFields",- "quotedDate",- "currencyCode",- "revisionId",+ "externalNotes",+ "supplierLocationId",+ "supplierInteractionId",+ "exchangeRateUpdatedAt",+ "supplierQuoteId",+ "assignee",+ "status",+ "supplierQuoteType",+ "id",+ "supplierId",+ "supplierContactId","updatedBy","internalNotes",- "expirationDate",- "createdAt",- "supplierReference",- "updatedAt",- "createdBy",- "exchangeRate",+ "quotedDate",+ "revisionId",+ "currencyCode",+ "customFields",+ "tags","externalLinkId","companyId",- "assignee",- "supplierQuoteId",- "exchangeRateUpdatedAt",- "supplierInteractionId",- "supplierLocationId",- "externalNotes",- "supplierContactId",- "id",- "supplierId",- "supplierQuoteType",- "status"+ "createdBy",+ "exchangeRate",+ "updatedAt",+ "createdAt",+ "supplierReference",+ "expirationDate"]},{@@ -6517,188 +6571,188 @@"name": "supplierQuoteLine","rows": 0,"columns": [- "purchaseUnitOfMeasureCode",- "ownerId",- "supplierPartRevision",- "id",- "supplierQuoteLineType",- "supplierQuoteId",- "createdBy",- "inventoryUnitOfMeasureCode",- "accountId",- "supplierPartId",+ "supplierQuoteRevisionId",+ "quantity",+ "updatedBy",+ "customFields",+ "sortOrder",+ "description",+ "costCenterId",+ "externalNotes","conversionFactor","tags","itemId",- "externalNotes","updatedAt","requiredDate","internalNotes","companyId",- "updatedBy",- "customFields",- "supplierQuoteRevisionId",- "quantity",- "sortOrder",- "description",- "costCenterId"+ "createdBy",+ "supplierQuoteId",+ "supplierPartId",+ "inventoryUnitOfMeasureCode",+ "accountId",+ "supplierPartRevision",+ "id",+ "purchaseUnitOfMeasureCode",+ "ownerId",+ "supplierQuoteLineType"]},{"name": "supplierQuoteLinePrice","rows": 0,"columns": [+ "supplierUnitPrice",+ "createdAt",+ "updatedBy","leadTime","quantity","updatedAt",- "createdAt",- "supplierUnitPrice",- "updatedBy",- "supplierQuoteLineId",- "createdBy",+ "supplierQuoteId",+ "taxPercent",+ "exchangeRate","supplierTaxAmount",- "supplierShippingCost",+ "createdBy",+ "supplierQuoteLineId","companyId",- "taxPercent",- "supplierQuoteId",- "exchangeRate"+ "supplierShippingCost"]},{"name": "supplierShipping","rows": 0,"columns": [- "supplierId",- "updatedBy",- "tags",- "shippingMethodId",+ "shippingSupplierLocationId",+ "shippingSupplierContactId",+ "companyId",+ "shippingTermId",+ "incoterm","incotermLocation","shippingSupplierId",- "updatedAt","customFields",- "shippingTermId",- "incoterm",- "shippingSupplierContactId",- "shippingSupplierLocationId",- "companyId"+ "updatedAt",+ "tags",+ "updatedBy",+ "supplierId",+ "shippingMethodId"]},{"name": "supplierTax","rows": 0,"columns": [- "taxExempt",- "taxExemptionCertificateNumber",- "eori",- "vatNumber","taxExemptionReason",+ "updatedBy","supplierId","companyId",- "updatedBy",- "taxExemptionCertificatePath","updatedAt",- "taxId"+ "taxExemptionCertificatePath",+ "taxId",+ "taxExempt",+ "taxExemptionCertificateNumber",+ "eori",+ "vatNumber"]},{"name": "workflow","rows": 0,"columns": [+ "companyId",+ "updatedAt","nextRunAt","createdBy",- "updatedAt",- "companyId",- "id","canvasState",+ "id","createdAt",- "publishedVersionId",- "description","name",- "ownerId",- "updatedBy"+ "description",+ "publishedVersionId",+ "updatedBy",+ "ownerId"]},{"name": "workflowVersion","rows": 0,"columns": [- "createdBy",- "updatedBy",- "companyId",- "nodes",- "id",- "createdAt",- "updatedAt",+ "formatVersion","edges",- "versionNumber","workflowId",- "formatVersion"+ "versionNumber",+ "nodes",+ "updatedAt",+ "createdAt",+ "id",+ "updatedBy",+ "createdBy",+ "companyId"]},{"name": "workflowRun","rows": 0,"columns": [- "path",- "rootRunId",- "companyId",- "triggerRecordId",- "status",- "ownerId",- "id",- "statusReason",- "sourceEventId",+ "workflowVersionId","workflowId","causedByRunId",- "workflowVersionId",- "durationMs","completedAt",+ "durationMs","triggerTable","createdAt",- "eventId",- "isTest","error",- "compactedAt",+ "isTest",+ "eventId",+ "startedAt","depth",- "startedAt"+ "compactedAt",+ "path",+ "companyId",+ "rootRunId",+ "triggerRecordId",+ "status",+ "id",+ "ownerId",+ "statusReason",+ "sourceEventId"]},{"name": "workflowStepRun","rows": 0,"columns": [- "output",- "id",- "statusReason",- "nodeType",- "startedAt",- "companyId",- "error",- "input",- "status",- "nodeId",+ "completedAt",+ "runId",+ "sequence",+ "createdAt",+ "detail",+ "itemKey","branchTaken",- "durationMs",+ "nodeId","compactedAt",- "detail",- "createdAt",- "sequence",- "runId",- "completedAt",- "itemKey"+ "durationMs",+ "error",+ "companyId",+ "startedAt",+ "status",+ "input",+ "statusReason",+ "id",+ "output",+ "nodeType"]},{"name": "workflowTriggerEvent","rows": 0,"columns": [- "origin","id",+ "origin","companyId","eventId",- "createdAt","workflowId",- "workflowVersionId"+ "workflowVersionId",+ "createdAt"]}],diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 86cb3d25ef..d2c1aa2894 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} Berechtigungen"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} ausgewählt"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total} Phasen, um Ihr Unternehmen auf Carbon live zu schalten. Jede endet an einem Checkpoint."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} Phasen bis zur Live-Schaltung"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} Ergebnisse"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# Einheit} other {# Einheiten}}"@@ -1009,6 +1009,9 @@ msgstr "Ein Werkzeug ist ein physischer Artikel, der zur Herstellung eines Teilsmsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "Ein Benutzer erfasst das Verfallsdatum für jede Charge oder Seriennummer, wenn die Waren eingehen. Verwenden Sie dies, wenn Lieferanten Chargen mit unterschiedlichen Verfallsdaten versenden."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "qualifikationen"@@ -1082,6 +1085,9 @@ msgstr "Konten Sie für die Entsorgungskosten von Anlagevermögen."msgid "Account for the purchase cost of fixed assets"msgstr "Konten Sie für die Anschaffungskosten von Anlagevermögen."+msgid "Account Holder"+msgstr "Kontoinhaber"+msgid "Account manager"msgstr "Kundenbetreuer"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "Aus Bibliothek hinzufügen…"msgid "Add from receipt"-msgstr ""+msgstr "Aus Wareneingang hinzufügen"msgid "Add from shipment"-msgstr ""+msgstr "Aus Lieferung hinzufügen"msgid "Add Group"msgstr "Gruppe hinzufügen"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "Linien aus Dokument hinzufügen"msgid "Add manually"-msgstr ""+msgstr "Manuell hinzufügen"msgid "Add match"msgstr "Übereinstimmung hinzufügen"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "Alle Mitglieder der ausgewählten Gruppen und ausgewählten Personen können Anfragen genehmigen"msgid "All returnable lines"-msgstr ""+msgstr "Alle rückgabefähigen Positionen"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "Alle Zeilen importiert — {inserted} eingefügt, {updated} aktualisiert."@@ -1739,6 +1745,9 @@ msgstr "Eine HTTPS-Anfrage, die Carbon an Ihr System sendet, wenn ein Workflow dmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Eine Integration oder eine benutzerdefinierte Änderung — der kleine Teil, der tatsächlich benutzerdefiniert ist."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "Eine Internationale Bankkontonummer: eine Zeichenkette, die Land, Bank, Filiale und Konto mit zwei Prüfziffern enthält. Da diese die Bank bereits identifiziert, benötigen Länder, die sie nutzen, keinen separaten Routing-Code."+msgid "An invitation is pending. They become active once they accept it."msgstr "Eine Einladung steht aus. Sie werden aktiv, sobald sie diese annehmen."@@ -2358,6 +2367,9 @@ msgstr "Sind Sie sicher, dass Sie den Webhook löschen möchten: {0}? Dies kannmsgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "Sind Sie sicher, dass Sie diese Genehmigungsregel löschen möchten? Dies kann nicht rückgängig gemacht werden."+msgid "Are you sure you want to delete this bank account?"+msgstr "Möchten Sie dieses Bankkonto wirklich löschen?"+msgid "Are you sure you want to delete this change notice?"msgstr "Sind Sie sicher, dass Sie diese Änderungsmitteilung löschen möchten?"@@ -2433,6 +2445,9 @@ msgstr "Sind Sie sicher, dass Sie {0} dauerhaft löschen möchten?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "Sind Sie sicher, dass Sie das Lieferantenverfahren dauerhaft löschen möchten?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "Möchten Sie dieses Bankkonto wirklich dauerhaft löschen?"+msgid "Are you sure you want to post this receipt?"msgstr "Sind Sie sicher, dass Sie diesen Beleg buchen möchten?"@@ -2828,9 +2843,21 @@ msgstr "Bankkonto, das auf eine Fremdwährung lautet."msgid "Bank account denominated in the local currency"msgstr "Bankkonto in Landeswährung lautet."+msgid "Bank Accounts"+msgstr "Bankkonten"++msgid "Bank Address"+msgstr "Bankadresse"+msgid "Bank and financial service charge expenses"msgstr "Aufwendungen für Bank- und Finanzservicegebühren"+msgid "Bank Code"+msgstr "Bankleitzahl"++msgid "Bank Name"+msgstr "Bankname"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "Balken zeigen den wöchentlichen Fluss: <0>Deckung</0> erhöht den Bestand, <1>Bedarf</1> senkt ihn. Die <2>Linie</2> ist Ihr geplanter verfügbarer Bestand — wenn er unter <3>Sicherheitsbestand</3> fällt, sind Sie gefährdet, und unter Null ist ein <4>Fehlbestand</4>."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "Batches"msgid "Batches to return"-msgstr ""+msgstr "Rückzugebende Lose"msgid "Batching"msgstr "Losbildung"@@ -3040,6 +3067,9 @@ msgstr "Bibliothek durchsuchen"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Durchsuchen Sie die veröffentlichte Version schreibgeschützt. Sie können die Schritte weiterhin neu anordnen, um das Layout zu ordnen."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Bucket"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "Wählen Sie eine andere Datei"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "Wählen Sie, wie Sie Positionen zu dieser Rückgabe hinzufügen möchten."msgid "Choose what appears on the printed job traveler."msgstr "Wählen Sie, was auf der gedruckten Laufkarte erscheint."@@ -6254,6 +6284,9 @@ msgstr "Attribut bearbeiten"msgid "Edit Attribute Category"msgstr "Attributkategorie bearbeiten"+msgid "Edit Bank Account"+msgstr "Bankkonto bearbeiten"+msgid "Edit Category"msgstr "Kategorie bearbeiten"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "Geben Sie eine Menge zwischen 1 und {0} ein."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "Geben Sie einen Artikel und eine Menge selbst ein."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "Erfassen und genehmigen Sie Lieferantenrechnungen gegen eine Bestellung (Dreiwege-Abgleich)"@@ -8182,6 +8215,9 @@ msgstr "Hilfe"msgid "Hide"msgstr "Verbergen"+msgid "Hide account number"+msgstr "Kontonummer verbergen"+msgid "Hide raw"msgstr "Roh ausblenden"@@ -8407,6 +8443,9 @@ msgstr "Ich habe einen angemessenen Grund zu der Annahme, dass diese Person gemmsgid "I'm Still Working"msgstr "Ich arbeite noch"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "ID"@@ -8458,6 +8497,12 @@ msgstr "Wenn etwas aus dem Ruder läuft"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "Wenn Sie die Teilenummern ändern möchten, klicken Sie bitte Abbrechen und weisen Sie manuell die Teile für jede Position zu, bevor Sie konvertieren."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "IFSC-Code"+msgid "Ignore"msgstr "Ignorieren"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "Zeilen"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "Positionen erscheinen hier, nachdem ein Wareneingang einer Bestellung gebucht wurde, und nur für Mengen, die nicht bereits durch eine andere Rückgabe autorisiert wurden. Verwenden Sie Position hinzufügen für blinde Rückgaben."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "Positionen erscheinen hier, nachdem eine Lieferung eines Kundenauftrags gebucht wurde, und nur für Mengen, die nicht bereits durch ein anderes RMA autorisiert wurden. Verwenden Sie Position hinzufügen für blinde Rückgaben."msgid "Lines need internal part numbers"msgstr "Zeilen benötigen interne Teilenummern"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "Morgen, {name}."msgid "Most recent — search to find more"-msgstr ""+msgstr "Neueste — suchen, um mehr zu finden"msgid "Most things get caught and resolved here. Name it plainly."msgstr "Die meisten Dinge werden hier erkannt und gelöst. Benennen Sie es deutlich."@@ -10515,6 +10560,9 @@ msgstr "Neues Attribut"msgid "New Attribute Category"msgstr "Neue Attributkategorie"+msgid "New Bank Account"+msgstr "Neues Bankkonto"+msgid "New Batch"msgstr "Neuer Batch"@@ -10915,11 +10963,14 @@ msgstr "Keine verfügbaren Filter"msgid "No available tracked entities found"msgstr "Keine verfügbaren verfolgten Entitäten gefunden"+msgid "No bank accounts have been added yet."+msgstr "Bisher wurden keine Bankkonten hinzugefügt."+msgid "No batches"msgstr "Keine Lose"msgid "No batches selected yet."-msgstr ""+msgstr "Noch keine Lose ausgewählt."msgid "No BOM input has a shelf-life policy"msgstr "Keine BOM-Eingabe hat eine Shelf-Life-Richtlinie"@@ -10978,6 +11029,9 @@ msgstr "Keine Dimensions-Slots konfiguriert"msgid "No dimension values mapped yet"msgstr "Noch keine Dimensionswerte zugeordnet"+msgid "No documents"+msgstr "Keine Dokumente"+msgid "No draft make method for this item yet."msgstr "Noch kein Fertigungsmethoden-Entwurf für diesen Artikel."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "Keine Ergebnisse gefunden"msgid "No returnable lines for this customer"-msgstr ""+msgstr "Keine rückgabefähigen Positionen für diesen Kunden"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "Keine rückgabefähigen Positionen für diesen Lieferanten"msgid "No returnable lines match your search"-msgstr ""+msgstr "Keine rückgabefähigen Positionen entsprechen Ihrer Suche"msgid "No rows here."msgstr "Hier sind keine Zeilen."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "Keine eingeplante Arbeit in diesem Zeitfenster"msgid "No serial numbers selected yet."-msgstr ""+msgstr "Noch keine Seriennummern ausgewählt."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Keine Schichten konfiguriert — angenommen Mo–Fr, 8h Tage"@@ -11660,6 +11714,12 @@ msgstr "Nur Verfahrensanweisungen im Entwurf sind bearbeitbar. Erstellen Sie einmsgid "Only empty, open periods can be deleted."msgstr "Nur leere, offene Perioden können gelöscht werden."+msgid "Only if it differs from the customer name"+msgstr "Nur falls abweichend vom Kundennamen"++msgid "Only if it differs from the supplier name"+msgstr "Nur falls abweichend vom Lieferantennamen"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Nur qualifizierte Mitarbeiter können für diesen Prozess eingeplant werden und diesen ausführen"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "Seriennummern/Chargen zur Rückgabe auswählen"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "Wählen Sie die verfügbaren Lose aus, die von diesem Lieferanten eingegangen sind."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "Wählen Sie den Lagerplatz mit Bestandsbedarf aus, dann die Lagerplätze, von denen Sie ihn entnehmen möchten."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "Wählen Sie die verfügbaren Seriennummern aus, die von diesem Lieferanten eingegangen sind."msgid "Pick tracked item"msgstr "Verfolgtes Element auswählen"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "Kaufmenge"msgid "Purchase Return"-msgstr ""+msgstr "Rückgabe"msgid "Purchase Tax Payable"msgstr "Umsatzsteuer Verbindlichkeiten (Standard)"@@ -14243,6 +14303,9 @@ msgstr "Gibt zurück:"msgid "Rev {revision}"msgstr "Rev {revision}"+msgid "Reveal account number"+msgstr "Kontonummer anzeigen"+msgid "Revenue"msgstr "Umsatzerlöse"@@ -14431,6 +14494,9 @@ msgstr "Leiten Sie alle Debitorenrechnungen an eine Adresse (z. B. Unternehmenszmsgid "Routing"msgstr "Arbeitsplan"+msgid "Routing Number (ABA)"+msgstr "Routing-Nummer (ABA)"+msgid "rows"msgstr "Zeilen"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "Verkäufer"msgid "Sales Return"-msgstr ""+msgstr "Rücklieferung"msgid "Sales Revenue"msgstr "Umsatzerlöse"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Nach Linear-Issue-Titel suchen..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "Nach Wareneingang, Bestellung oder Artikel suchen"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "Nach Lieferung, Kundenauftrag oder Artikel suchen"msgid "Search customers and types..."msgstr "Kunden und Typen durchsuchen..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "Operationen auswählen"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "Gebuchte Wareneingangspositionen dieses Lieferanten zur Rückgabe auswählen."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "Gebuchte Lieferpositionen an diesen Kunden zur Rückgabe auswählen."msgid "Select Printer"msgstr "Drucker auswählen"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "Eingelagerte Seriennummern"msgid "Serial numbers to return"-msgstr ""+msgstr "Seriennummern zur Rückgabe"msgid "Serial or Batch Tracking Required"msgstr "Serien- oder Chargenverfolgung erforderlich"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "Sitzung gesperrt"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "Wählen Sie einen Kunden für diese Rückgabe aus, um Positionen von einer Lieferung hinzuzufügen."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "Wählen Sie einen Lieferanten für diese Rückgabe aus, um Positionen von einem Wareneingang hinzuzufügen."msgid "Set a target"msgstr "Ziel festlegen"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "Zeigen Sie eine lesbare Lieferanten-ID-Spalte in der Lieferantenliste, Lieferantenformularen und Dropdowns an. Lieferanten werden intern in jedem Fall identifiziert."msgid "Show available batch numbers"-msgstr ""+msgstr "Verfügbare Losnummern anzeigen"msgid "Show available tracking numbers"-msgstr ""+msgstr "Verfügbare Verfolgungsnummern anzeigen"msgid "Show Customer IDs"msgstr "Kundenkennung anzeigen"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "Dauern anzeigen"msgid "Show more"-msgstr ""+msgstr "Mehr anzeigen"msgid "Show one inventory number the floor and office both trust"msgstr "Zeige eine Bestandsnummer an, der Werkstatt und Büro beide vertrauen"@@ -15841,6 +15907,9 @@ msgstr "Aufsteigend sortieren"msgid "Sort by"msgstr "Sortieren nach"+msgid "Sort Code"+msgstr "Sortiercode"+msgid "Sort Descending"msgstr "Absteigend sortieren"@@ -16489,6 +16558,12 @@ msgstr "Oberflächen"msgid "Suspected Failure Mode"msgstr "Vermuteter Fehlermodus"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Wechseln"@@ -16847,6 +16922,9 @@ msgstr "Die Kategorie, zu der dieser Lieferant gehört (Rohstoff, Dienstleistungmsgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "Der auf der Kanban-Karte gedruckte Code, den Werker scannen, um den Fertigungsauftrag als abgeschlossen zu markieren; wird automatisch generiert, wenn leer gelassen."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "Der Code, der eine Bank international identifiziert, 8 oder 11 Zeichen lang. Eine grenzüberschreitende Zahlung kann ohne ihn nicht weitergeleitet werden, während eine inländische Überweisung normalerweise über den lokalen Routing-Code abläuft."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "Die erwartete wöchentliche Verfügbarkeit des externen Mitarbeiters; die Planung verwendet dies als Obergrenze, wenn dieser externe Mitarbeiter über die Woche hinweg Arbeitsgängen zugewiesen wird."@@ -18226,6 +18304,12 @@ msgstr "Übertragen Sie das Eigentum dieses Unternehmens auf einen anderen Benutmsgid "Transfer To"msgstr "Übertragung zu"+msgid "Transit"+msgstr "Transit"++msgid "Transit & Institution"+msgstr "Transit & Institution"+msgid "Trash"msgstr "Papierkorb"@@ -18921,6 +19005,9 @@ msgstr "Verlauf anzeigen"msgid "View in Academy"msgstr "Im Academy anzeigen"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "Im Projektplan anzeigen"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 3411e2f6ec..97a89df020 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -1009,6 +1009,9 @@ msgstr "A tool is a physical item used to make a part that can be used across mumsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "abilities"@@ -1082,6 +1085,9 @@ msgstr "Account for the cost of fixed assets when disposed"msgid "Account for the purchase cost of fixed assets"msgstr "Account for the purchase cost of fixed assets"+msgid "Account Holder"+msgstr "Account Holder"+msgid "Account manager"msgstr "Account manager"@@ -1739,6 +1745,9 @@ msgstr "An https request Carbon sends to a system of yours when a workflow reachmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "An integration or a custom change — the small slice that's actually custom."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgid "An invitation is pending. They become active once they accept it."msgstr "An invitation is pending. They become active once they accept it."@@ -2358,6 +2367,9 @@ msgstr "Are you sure you want to delete the webhook: {0}? This cannot be undone.msgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "Are you sure you want to delete this approval rule? This cannot be undone."+msgid "Are you sure you want to delete this bank account?"+msgstr "Are you sure you want to delete this bank account?"+msgid "Are you sure you want to delete this change notice?"msgstr "Are you sure you want to delete this change notice?"@@ -2433,6 +2445,9 @@ msgstr "Are you sure you want to permanently delete {0}?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "Are you sure you want to permanently delete the supplier process?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "Are you sure you want to permanently delete this bank account?"+msgid "Are you sure you want to post this receipt?"msgstr "Are you sure you want to post this receipt?"@@ -2828,9 +2843,21 @@ msgstr "Bank account denominated in a foreign currency"msgid "Bank account denominated in the local currency"msgstr "Bank account denominated in the local currency"+msgid "Bank Accounts"+msgstr "Bank Accounts"++msgid "Bank Address"+msgstr "Bank Address"+msgid "Bank and financial service charge expenses"msgstr "Bank and financial service charge expenses"+msgid "Bank Code"+msgstr "Bank Code"++msgid "Bank Name"+msgstr "Bank Name"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."@@ -3040,6 +3067,9 @@ msgstr "Browse library"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Browse the published version read-only. You can still rearrange steps to tidy the layout."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Bucket"@@ -6254,6 +6284,9 @@ msgstr "Edit Attribute"msgid "Edit Attribute Category"msgstr "Edit Attribute Category"+msgid "Edit Bank Account"+msgstr "Edit Bank Account"+msgid "Edit Category"msgstr "Edit Category"@@ -8182,6 +8215,9 @@ msgstr "Help"msgid "Hide"msgstr "Hide"+msgid "Hide account number"+msgstr "Hide account number"+msgid "Hide raw"msgstr "Hide raw"@@ -8407,6 +8443,9 @@ msgstr "I have a reasonable basis to believe this individual is a U.S. person asmsgid "I'm Still Working"msgstr "I'm Still Working"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "Id"@@ -8458,6 +8497,12 @@ msgstr "If something is off track"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "IFSC Code"+msgid "Ignore"msgstr "Ignore"@@ -10515,6 +10560,9 @@ msgstr "New Attribute"msgid "New Attribute Category"msgstr "New Attribute Category"+msgid "New Bank Account"+msgstr "New Bank Account"+msgid "New Batch"msgstr "New Batch"@@ -10915,6 +10963,9 @@ msgstr "No available filters"msgid "No available tracked entities found"msgstr "No available tracked entities found"+msgid "No bank accounts have been added yet."+msgstr "No bank accounts have been added yet."+msgid "No batches"msgstr "No batches"@@ -10978,6 +11029,9 @@ msgstr "No dimension slots configured"msgid "No dimension values mapped yet"msgstr "No dimension values mapped yet"+msgid "No documents"+msgstr "No documents"+msgid "No draft make method for this item yet."msgstr "No draft make method for this item yet."@@ -11660,6 +11714,12 @@ msgstr "Only Draft procedures are editable. Create a new version to change an Acmsgid "Only empty, open periods can be deleted."msgstr "Only empty, open periods can be deleted."+msgid "Only if it differs from the customer name"+msgstr "Only if it differs from the customer name"++msgid "Only if it differs from the supplier name"+msgstr "Only if it differs from the supplier name"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Only qualified employees can be scheduled for and run this process"@@ -14243,6 +14303,9 @@ msgstr "Returns:"msgid "Rev {revision}"msgstr "Rev {revision}"+msgid "Reveal account number"+msgstr "Reveal account number"+msgid "Revenue"msgstr "Revenue"@@ -14431,6 +14494,9 @@ msgstr "Route all AR invoices to one address (e.g. corporate headquarters) instemsgid "Routing"msgstr "Routing"+msgid "Routing Number (ABA)"+msgstr "Routing Number (ABA)"+msgid "rows"msgstr "rows"@@ -15841,6 +15907,9 @@ msgstr "Sort Ascending"msgid "Sort by"msgstr "Sort by"+msgid "Sort Code"+msgstr "Sort Code"+msgid "Sort Descending"msgstr "Sort Descending"@@ -16489,6 +16558,12 @@ msgstr "Surfaces"msgid "Suspected Failure Mode"msgstr "Suspected Failure Mode"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Switch"@@ -16847,6 +16922,9 @@ msgstr "The category this supplier belongs to (raw-material, services, contract-msgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."@@ -18226,6 +18304,12 @@ msgstr "Transfer ownership of this company to another user"msgid "Transfer To"msgstr "Transfer To"+msgid "Transit"+msgstr "Transit"++msgid "Transit & Institution"+msgstr "Transit & Institution"+msgid "Trash"msgstr "Trash"@@ -18921,6 +19005,9 @@ msgstr "View History"msgid "View in Academy"msgstr "View in Academy"+msgid "View in new tab"+msgstr "View in new tab"+msgid "View in project plan"msgstr "View in project plan"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex a01028996f..b87b01cfa9 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} permisos"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} seleccionados"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total} fases para poner tu empresa en vivo en Carbon. Cada una termina en un punto de control."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} fases para activar"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} resultados"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# unidad} other {# unidades}}"@@ -1009,6 +1009,9 @@ msgstr "Una herramienta es un artículo físico utilizado para fabricar una piezmsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "Un usuario registra la fecha de caducidad en cada lote de producción o serie cuando se reciben los bienes. Usar cuando los proveedores envían lotes con diferentes fechas de caducidad."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "habilidades"@@ -1082,6 +1085,9 @@ msgstr "Contabilice el costo de los activos fijos cuando se desechan."msgid "Account for the purchase cost of fixed assets"msgstr "Contabilice el costo de adquisición de activos fijos."+msgid "Account Holder"+msgstr "Titular de la cuenta"+msgid "Account manager"msgstr "Gerente de cuenta"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "Agregar de la biblioteca…"msgid "Add from receipt"-msgstr ""+msgstr "Agregar desde recepción"msgid "Add from shipment"-msgstr ""+msgstr "Agregar desde envío"msgid "Add Group"msgstr "Agregar grupo"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "Agregar líneas desde documento"msgid "Add manually"-msgstr ""+msgstr "Agregar manualmente"msgid "Add match"msgstr "Agregar coincidencia"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "Todos los miembros de los grupos seleccionados e individuos seleccionados podrán aprobar solicitudes"msgid "All returnable lines"-msgstr ""+msgstr "Todas las líneas retornables"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "Todas las filas importadas — {inserted} insertadas, {updated} actualizadas."@@ -1739,6 +1745,9 @@ msgstr "Una solicitud https que Carbon envía a un sistema tuyo cuando un flujomsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Una integración o un cambio personalizado — la pequeña parte que es realmente personalizada."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "Un Número de Cuenta Bancaria Internacional: una cadena que contiene el país, banco, sucursal y cuenta, con dos dígitos de verificación. Como ya identifica el banco, los países que lo utilizan no necesitan un código de enrutamiento separado."+msgid "An invitation is pending. They become active once they accept it."msgstr "Una invitación está pendiente. Se hacen activas una vez que la aceptan."@@ -2358,6 +2367,9 @@ msgstr "¿Estás seguro de que deseas eliminar el webhook: {0}? Esto no se puedemsgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "¿Está seguro de que desea eliminar esta regla de aprobación? Esto no se puede deshacer."+msgid "Are you sure you want to delete this bank account?"+msgstr "¿Está seguro de que desea eliminar esta cuenta bancaria?"+msgid "Are you sure you want to delete this change notice?"msgstr "¿Está seguro de que desea eliminar este aviso de cambio?"@@ -2433,6 +2445,9 @@ msgstr "¿Estás seguro de que deseas eliminar permanentemente {0}?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "¿Estás seguro de que deseas eliminar permanentemente el proceso del proveedor?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "¿Está seguro de que desea eliminar permanentemente esta cuenta bancaria?"+msgid "Are you sure you want to post this receipt?"msgstr "¿Estás seguro de que deseas publicar este recibo?"@@ -2828,9 +2843,21 @@ msgstr "Cuenta bancaria denominada en una moneda extranjera."msgid "Bank account denominated in the local currency"msgstr "Cuenta bancaria denominada en la moneda local."+msgid "Bank Accounts"+msgstr "Cuentas bancarias"++msgid "Bank Address"+msgstr "Dirección del banco"+msgid "Bank and financial service charge expenses"msgstr "Gastos de bancos y cargos de servicio financiero"+msgid "Bank Code"+msgstr "Código bancario"++msgid "Bank Name"+msgstr "Nombre del banco"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "Las barras muestran el flujo de cada semana: <0>suministro</0> empuja el inventario hacia arriba, <1>demanda</1> lo tira hacia abajo. La <2>línea</2> es tu inventario disponible proyectado — cuando desciende por debajo de <3>stock de seguridad</3> estás en riesgo, y por debajo de cero es una <4>rotura de stock</4>."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "Lotes"msgid "Batches to return"-msgstr ""+msgstr "Lotes de producción a retornar"msgid "Batching"msgstr "Lote de producción"@@ -3040,6 +3067,9 @@ msgstr "Examinar biblioteca"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Explore la versión publicada de solo lectura. Aún puede reorganizar pasos para ordenar el diseño."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Depósito"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "Elegir otro archivo"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "Elija cómo agregar líneas a esta devolución."msgid "Choose what appears on the printed job traveler."msgstr "Elija qué aparece en la hoja viajera de la orden de trabajo impresa."@@ -6254,6 +6284,9 @@ msgstr "Editar Atributo"msgid "Edit Attribute Category"msgstr "Editar Categoría de Atributo"+msgid "Edit Bank Account"+msgstr "Editar cuenta bancaria"+msgid "Edit Category"msgstr "Editar Categoría"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "Ingrese una cantidad entre 1 y {0}."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "Ingrese un artículo y cantidad usted mismo."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "Ingrese y apruebe facturas de proveedores contra una Orden de compra (conciliación de tres vías)"@@ -8182,6 +8215,9 @@ msgstr "Ayuda"msgid "Hide"msgstr "Ocultar"+msgid "Hide account number"+msgstr "Ocultar número de cuenta"+msgid "Hide raw"msgstr "Ocultar sin procesar"@@ -8407,6 +8443,9 @@ msgstr "Tengo una base razonable para creer que este individuo es una persona esmsgid "I'm Still Working"msgstr "Todavía estoy trabajando"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "Id"@@ -8458,6 +8497,12 @@ msgstr "Si algo se desvía del plan"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "Si desea cambiar los números de pieza, haga clic en Cancelar y Asigne manualmente las Piezas para cada Línea de Artículo antes de convertir."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "Código IFSC"+msgid "Ignore"msgstr "Ignorar"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "Líneas"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "Las líneas aparecen aquí una vez que se ha contabilizado una recepción de orden de compra, y solo para cantidades no autorizadas en otra devolución de proveedor. Use Agregar artículo de línea para una devolución a ciegas."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "Las líneas aparecen aquí una vez que se ha contabilizado un envío de pedido de venta, y solo para cantidades no autorizadas en otro RMA. Use Agregar artículo de línea para una devolución a ciegas."msgid "Lines need internal part numbers"msgstr "Las líneas necesitan números de parte internos"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "Mañana, {name}."msgid "Most recent — search to find more"-msgstr ""+msgstr "Más reciente — buscar para encontrar más"msgid "Most things get caught and resolved here. Name it plainly."msgstr "La mayoría de las cosas se detectan y resuelven aquí. Nómbralo claramente."@@ -10515,6 +10560,9 @@ msgstr "Nuevo Atributo"msgid "New Attribute Category"msgstr "Nueva Categoría de Atributo"+msgid "New Bank Account"+msgstr "Nueva cuenta bancaria"+msgid "New Batch"msgstr "Nuevo Lote"@@ -10915,11 +10963,14 @@ msgstr "No hay filtros disponibles"msgid "No available tracked entities found"msgstr "No se encontraron entidades rastreadas disponibles"+msgid "No bank accounts have been added yet."+msgstr "Aún no se han agregado cuentas bancarias."+msgid "No batches"msgstr "Sin lotes"msgid "No batches selected yet."-msgstr ""+msgstr "Aún no hay lotes de producción seleccionados."msgid "No BOM input has a shelf-life policy"msgstr "Ninguna entrada de BOM tiene una política de vida útil"@@ -10978,6 +11029,9 @@ msgstr "No hay espacios de dimensión configurados"msgid "No dimension values mapped yet"msgstr "Aún no hay valores de dimensión mapeados"+msgid "No documents"+msgstr "Sin documentos"+msgid "No draft make method for this item yet."msgstr "Sin método de fabricación en borrador para este elemento aún."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "No se encontraron resultados"msgid "No returnable lines for this customer"-msgstr ""+msgstr "Sin líneas retornables para este cliente"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "Sin líneas retornables para este proveedor"msgid "No returnable lines match your search"-msgstr ""+msgstr "Ninguna línea retornable coincide con su búsqueda"msgid "No rows here."msgstr "No hay filas aquí."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "Sin trabajo programado en esta ventana"msgid "No serial numbers selected yet."-msgstr ""+msgstr "Aún no hay números de serie seleccionados."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Sin turnos configurados — asumiendo lun–vie, días de 8h"@@ -11660,6 +11714,12 @@ msgstr "Solo se pueden editar los procedimientos en Borrador. Crear una nueva vemsgid "Only empty, open periods can be deleted."msgstr "Solo se pueden eliminar los períodos vacíos y abiertos."+msgid "Only if it differs from the customer name"+msgstr "Solo si difiere del nombre del cliente"++msgid "Only if it differs from the supplier name"+msgstr "Solo si difiere del nombre del proveedor"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Solo los empleados calificados pueden ser programados y ejecutar este proceso"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "Seleccionar números de serie/lotes a devolver"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "Seleccione los lotes de producción disponibles que fueron recibidos de este proveedor."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "Elija el contenedor que necesita stock, luego elija los contenedores de los que extraerlo."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "Seleccione los números de serie disponibles que fueron recibidos de este proveedor."msgid "Pick tracked item"msgstr "Seleccionar artículo rastreado"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "Cantidad de Compra"msgid "Purchase Return"-msgstr ""+msgstr "Devolución de compra"msgid "Purchase Tax Payable"msgstr "Impuesto de Compra por Pagar (predeterminado)"@@ -14243,6 +14303,9 @@ msgstr "Retorna:"msgid "Rev {revision}"msgstr "Rev {revision}"+msgid "Reveal account number"+msgstr "Revelar número de cuenta"+msgid "Revenue"msgstr "Ingresos por ventas"@@ -14431,6 +14494,9 @@ msgstr "Enrutar todas las facturas de Cuentas por cobrar a una dirección (p. ejmsgid "Routing"msgstr "Ruta de fabricación"+msgid "Routing Number (ABA)"+msgstr "Número de ruta (ABA)"+msgid "rows"msgstr "filas"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "Persona de Ventas"msgid "Sales Return"-msgstr ""+msgstr "Devolución de venta"msgid "Sales Revenue"msgstr "Ingresos por ventas"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Buscar por título de problema de Linear..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "Buscar por recepción, orden de compra, o artículo"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "Buscar por envío, pedido de venta, o artículo"msgid "Search customers and types..."msgstr "Buscar clientes y tipos..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "Seleccionar operaciones"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "Seleccionar líneas de recepción contabilizadas de este proveedor para devolver."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "Seleccionar líneas de envío contabilizadas a este cliente para devolver."msgid "Select Printer"msgstr "Seleccionar Impresora"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "Números de serie recibidos"msgid "Serial numbers to return"-msgstr ""+msgstr "Números de serie a devolver"msgid "Serial or Batch Tracking Required"msgstr "Seguimiento Serial o por Lote Requerido"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "Sesión bloqueada"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "Establecer un cliente en esta devolución para agregar desde un envío."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "Establecer un proveedor en esta devolución para agregar desde una recepción."msgid "Set a target"msgstr "Establecer un objetivo"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "Mostrar una columna de ID de Proveedor legible en la lista de proveedores, formularios de proveedores y menús desplegables. Los proveedores se identifican internamente de cualquier forma."msgid "Show available batch numbers"-msgstr ""+msgstr "Mostrar números de lote de producción disponibles"msgid "Show available tracking numbers"-msgstr ""+msgstr "Mostrar números de seguimiento disponibles"msgid "Show Customer IDs"msgstr "Mostrar IDs de Cliente"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "Mostrar duraciones"msgid "Show more"-msgstr ""+msgstr "Mostrar más"msgid "Show one inventory number the floor and office both trust"msgstr "Mostrar un único número de inventario en el que confíen tanto el piso como la oficina"@@ -15841,6 +15907,9 @@ msgstr "Ordenar ascendente"msgid "Sort by"msgstr "Ordenar por"+msgid "Sort Code"+msgstr "Código de clasificación"+msgid "Sort Descending"msgstr "Ordenar descendente"@@ -16489,6 +16558,12 @@ msgstr "Superficies"msgid "Suspected Failure Mode"msgstr "Modo de Falla Sospechado"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Cambiar"@@ -16847,6 +16922,9 @@ msgstr "La categoría a la que pertenece este proveedor (materia prima, serviciomsgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "El código impreso en la tarjeta kanban que los operadores escanean para marcar el trabajo como completo; se genera automáticamente si se deja en blanco."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "El código que identifica un banco internacionalmente, con 8 u 11 caracteres. Un pago transfronterizo no será encaminado sin él, mientras que una transferencia doméstica generalmente viaja en el código de ruta local en su lugar."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "La disponibilidad semanal esperada del contratista; la programación usa esto como límite superior al asignar este contratista a operaciones durante la semana."@@ -18226,6 +18304,12 @@ msgstr "Transferir la propiedad de esta empresa a otro usuario"msgid "Transfer To"msgstr "Transferir a"+msgid "Transit"+msgstr "Tránsito"++msgid "Transit & Institution"+msgstr "Tránsito e institución"+msgid "Trash"msgstr "Papelera"@@ -18921,6 +19005,9 @@ msgstr "Ver Historial"msgid "View in Academy"msgstr "Ver en Academy"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "Ver en plan del proyecto"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex c07f56fb50..9d13e491a5 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} autorisations"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} sélectionnés"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total} phases pour mettre votre société en direct sur Carbon. Chacune se termine à un point de contrôle."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} phases pour être en direct"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} résultats"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# unité} other {# unités}}"@@ -1009,6 +1009,9 @@ msgstr "Un Outil est un Article physique utilisé pour fabriquer une Pièce quimsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "Un Utilisateur enregistre la date de Péremption pour chaque Lot de production ou numéro de série quand les marchandises sont reçues. À utiliser quand les Fournisseurs expédient des Lots avec différentes dates de péremption."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "Compétences"@@ -1082,6 +1085,9 @@ msgstr "Comptabilisez le coût des immobilisations corporelles lors de leur alimsgid "Account for the purchase cost of fixed assets"msgstr "Comptabilisez le coût d'acquisition des immobilisations corporelles."+msgid "Account Holder"+msgstr "Titulaire du compte"+msgid "Account manager"msgstr "Responsable de compte"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "Ajouter à partir de la bibliothèque…"msgid "Add from receipt"-msgstr ""+msgstr "Ajouter depuis la réception"msgid "Add from shipment"-msgstr ""+msgstr "Ajouter depuis l'expédition"msgid "Add Group"msgstr "Ajouter un groupe"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "Ajouter des lignes du document"msgid "Add manually"-msgstr ""+msgstr "Ajouter manuellement"msgid "Add match"msgstr "Ajouter une correspondance"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "Tous les membres des groupes sélectionnés et les individus sélectionnés pourront approuver les demandes"msgid "All returnable lines"-msgstr ""+msgstr "Toutes les lignes retournables"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "Toutes les lignes importées — {inserted} insérées, {updated} mises à jour."@@ -1739,6 +1745,9 @@ msgstr "Une requête https que Carbon envoie à l'un de vos systèmes lorsqu'unmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Une intégration ou une modification personnalisée — la petite partie qui est réellement personnalisée."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "Un numéro de compte bancaire international : une chaîne de caractères contenant le pays, la banque, la succursale et le compte, avec deux chiffres de contrôle. Parce qu'il identifie déjà la banque, les pays qui l'utilisent n'ont pas besoin de code de routage séparé."+msgid "An invitation is pending. They become active once they accept it."msgstr "Une invitation est en attente. Elle devient active une fois qu'elle est acceptée."@@ -2358,6 +2367,9 @@ msgstr "Êtes-vous sûr de vouloir supprimer le webhook : {0} ? Cette action nemsgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "Êtes-vous sûr de vouloir supprimer cette règle d'approbation ? Cette action ne peut pas être annulée."+msgid "Are you sure you want to delete this bank account?"+msgstr "Êtes-vous sûr de vouloir supprimer ce compte bancaire ?"+msgid "Are you sure you want to delete this change notice?"msgstr "Êtes-vous sûr de vouloir supprimer cet avis de modification ?"@@ -2433,6 +2445,9 @@ msgstr "Êtes-vous sûr de vouloir supprimer définitivement {0} ?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "Êtes-vous sûr de vouloir supprimer définitivement le processus fournisseur ?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "Êtes-vous sûr de vouloir supprimer définitivement ce compte bancaire ?"+msgid "Are you sure you want to post this receipt?"msgstr "Êtes-vous sûr de vouloir valider ce reçu ?"@@ -2828,9 +2843,21 @@ msgstr "Compte bancaire libellé en devise étrangère"msgid "Bank account denominated in the local currency"msgstr "Compte bancaire libellé en devise locale"+msgid "Bank Accounts"+msgstr "Comptes bancaires"++msgid "Bank Address"+msgstr "Adresse bancaire"+msgid "Bank and financial service charge expenses"msgstr "Dépenses de frais bancaires et de services financiers"+msgid "Bank Code"+msgstr "Code bancaire"++msgid "Bank Name"+msgstr "Nom de la banque"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "Les barres montrent le flux de chaque semaine : <0>l'approvisionnement</0> augmente les stocks, <1>les besoins</1> les diminuent. La <2>ligne</2> est votre inventaire prévu en main — quand elle descend en dessous du <3>stock de sécurité</3>, vous êtes à risque, et en dessous de zéro c'est une <4>rupture de stock</4>."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "Lots"msgid "Batches to return"-msgstr ""+msgstr "Lots de production à retourner"msgid "Batching"msgstr "Regroupement en lots"@@ -3040,6 +3067,9 @@ msgstr "Parcourir la bibliothèque"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Parcourez la version publiée en lecture seule. Vous pouvez toujours réarranger les étapes pour nettoyer la mise en page."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Compartiment"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "Choisir un autre fichier"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "Choisissez comment ajouter des lignes à ce retour."msgid "Choose what appears on the printed job traveler."msgstr "Choisir ce qui apparaît sur la fiche suiveuse d'ordre de fabrication imprimée."@@ -6254,6 +6284,9 @@ msgstr "Modifier l'attribut"msgid "Edit Attribute Category"msgstr "Modifier la catégorie d'attribut"+msgid "Edit Bank Account"+msgstr "Modifier le compte bancaire"+msgid "Edit Category"msgstr "Modifier la catégorie"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "Entrez une quantité entre 1 et {0}."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "Entrez un article et une quantité vous-même."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "Entrer et approuver les factures fournisseurs par rapport à un bon de commande (rapprochement à trois voies)"@@ -8182,6 +8215,9 @@ msgstr "Aide"msgid "Hide"msgstr "Masquer"+msgid "Hide account number"+msgstr "Masquer le numéro de compte"+msgid "Hide raw"msgstr "Masquer le brut"@@ -8407,6 +8443,9 @@ msgstr "J'ai une base raisonnable de croire que cet individu est une personne demsgid "I'm Still Working"msgstr "Je travaille toujours"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "Id"@@ -8458,6 +8497,12 @@ msgstr "Si quelque chose déraille"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "Si vous souhaitez modifier les numéros de pièce, veuillez cliquer sur Annuler et attribuer manuellement les pièces pour chaque ligne avant la conversion."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "Code IFSC"+msgid "Ignore"msgstr "Ignorer"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "Lignes"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "Les lignes apparaissent ici une fois qu'une réception de bon de commande a été comptabilisée, et uniquement pour les quantités non déjà autorisées sur un autre retour fournisseur. Utilisez Ajouter article de ligne pour un retour en aveugle."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "Les lignes apparaissent ici une fois qu'une expédition de commande client a été comptabilisée, et uniquement pour les quantités non déjà autorisées sur un autre RMA. Utilisez Ajouter article de ligne pour un retour en aveugle."msgid "Lines need internal part numbers"msgstr "Les lignes ont besoin de numéros de pièces internes"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "Bon matin, {name}."msgid "Most recent — search to find more"-msgstr ""+msgstr "Les plus récents — recherchez pour en trouver d'autres"msgid "Most things get caught and resolved here. Name it plainly."msgstr "La plupart des choses sont détectées et résolues ici. Nommez-les clairement."@@ -10515,6 +10560,9 @@ msgstr "Nouvel Attribut"msgid "New Attribute Category"msgstr "Nouvelle Catégorie d'Attribut"+msgid "New Bank Account"+msgstr "Nouveau compte bancaire"+msgid "New Batch"msgstr "Nouveau lot"@@ -10915,11 +10963,14 @@ msgstr "Aucun filtre disponible"msgid "No available tracked entities found"msgstr "Aucune entité suivie disponible trouvée"+msgid "No bank accounts have been added yet."+msgstr "Aucun compte bancaire n'a été ajouté pour l'instant."+msgid "No batches"msgstr "Aucun lot de production"msgid "No batches selected yet."-msgstr ""+msgstr "Aucun lot de production sélectionné pour l'instant."msgid "No BOM input has a shelf-life policy"msgstr "Aucune entrée du BOM n'a de politique de durée de vie"@@ -10978,6 +11029,9 @@ msgstr "Aucun emplacement d'axe analytique configuré"msgid "No dimension values mapped yet"msgstr "Aucune valeur d'axe analytique mappée jusqu'à présent"+msgid "No documents"+msgstr "Aucun document"+msgid "No draft make method for this item yet."msgstr "Aucune méthode de fabrication de brouillon pour cet article pour le moment."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "Aucun résultat trouvé"msgid "No returnable lines for this customer"-msgstr ""+msgstr "Aucune ligne retournable pour ce client"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "Aucune ligne retournable pour ce fournisseur"msgid "No returnable lines match your search"-msgstr ""+msgstr "Aucune ligne retournable ne correspond à votre recherche"msgid "No rows here."msgstr "Pas de lignes ici."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "Aucun travail prévu dans cette fenêtre"msgid "No serial numbers selected yet."-msgstr ""+msgstr "Aucun numéro de série sélectionné pour l'instant."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Aucun quart configuré — hypothèse lun–ven, jours de 8h"@@ -11660,6 +11714,12 @@ msgstr "Seules les procédures en brouillon sont modifiables. Créez une nouvellmsgid "Only empty, open periods can be deleted."msgstr "Seules les périodes vides et ouvertes peuvent être supprimées."+msgid "Only if it differs from the customer name"+msgstr "Uniquement s'il diffère du nom du client"++msgid "Only if it differs from the supplier name"+msgstr "Uniquement s'il diffère du nom du fournisseur"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Seuls les employés qualifiés peuvent être planifiés pour et exécuter ce processus"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "Sélectionner les numéros de série/lots à retourner"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "Sélectionnez les lots de production disponibles qui ont été reçus de ce fournisseur."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "Prélever le casier qui a besoin de stock, puis les casiers à prélever."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "Sélectionnez les numéros de série disponibles qui ont été reçus de ce fournisseur."msgid "Pick tracked item"msgstr "Sélectionner un article suivi"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "Quantité d'achat"msgid "Purchase Return"-msgstr ""+msgstr "Retour d'achat"msgid "Purchase Tax Payable"msgstr "Taxe d'Achat à Payer (par défaut)"@@ -14243,6 +14303,9 @@ msgstr "Retours :"msgid "Rev {revision}"msgstr "Rév {revision}"+msgid "Reveal account number"+msgstr "Afficher le numéro de compte"+msgid "Revenue"msgstr "Revenu"@@ -14431,6 +14494,9 @@ msgstr "Router toutes les factures des comptes clients vers une adresse (p. ex.msgid "Routing"msgstr "Gamme opératoire"+msgid "Routing Number (ABA)"+msgstr "Numéro d'acheminement (ABA)"+msgid "rows"msgstr "lignes"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "Vendeur"msgid "Sales Return"-msgstr ""+msgstr "Retour de vente"msgid "Sales Revenue"msgstr "Revenus des ventes"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Rechercher par titre de problème linear..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "Rechercher par réception, bon de commande ou article"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "Rechercher par expédition, commande client ou article"msgid "Search customers and types..."msgstr "Rechercher les clients et les types..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "Sélectionner les opérations"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "Sélectionner les lignes de réception comptabilisées de ce fournisseur à retourner."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "Sélectionner les lignes d'expédition comptabilisées vers ce client à retourner."msgid "Select Printer"msgstr "Sélectionner l'imprimante"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "Numéros de série réceptionnés"msgid "Serial numbers to return"-msgstr ""+msgstr "Numéros de série à retourner"msgid "Serial or Batch Tracking Required"msgstr "Suivi en série ou par lot requis"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "Session verrouillée"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "Définir un client sur ce retour pour ajouter à partir d'une expédition."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "Définir un fournisseur sur ce retour pour ajouter à partir d'une réception."msgid "Set a target"msgstr "Définir un objectif"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "Afficher une colonne ID Fournisseur lisible sur la liste des fournisseurs, les formulaires de fournisseur et les listes déroulantes. Les fournisseurs sont toujours identifiés en interne de toute façon."msgid "Show available batch numbers"-msgstr ""+msgstr "Afficher les numéros de lot disponibles"msgid "Show available tracking numbers"-msgstr ""+msgstr "Afficher les numéros de suivi disponibles"msgid "Show Customer IDs"msgstr "Afficher les ID clients"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "Afficher les durées"msgid "Show more"-msgstr ""+msgstr "Afficher plus"msgid "Show one inventory number the floor and office both trust"msgstr "Afficher un seul numéro d'inventaire en lequel l'atelier et le bureau ont confiance"@@ -15841,6 +15907,9 @@ msgstr "Trier par ordre croissant"msgid "Sort by"msgstr "Trier par"+msgid "Sort Code"+msgstr "Code de tri"+msgid "Sort Descending"msgstr "Trier par ordre décroissant"@@ -16489,6 +16558,12 @@ msgstr "Surfaces"msgid "Suspected Failure Mode"msgstr "Mode de défaillance suspecté"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Basculer"@@ -16847,6 +16922,9 @@ msgstr "La catégorie à laquelle appartient ce fournisseur (matière première,msgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "Le code imprimé sur la carte kanban que les opérateurs scannent pour marquer le travail comme terminé; généré automatiquement s'il est laissé vide."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "Le code qui identifie une banque au niveau international, 8 ou 11 caractères. Un paiement transfrontalier ne s'acheminera pas sans lui, tandis qu'un transfert national voyage généralement selon le code d'acheminement local à la place."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "La disponibilité hebdomadaire attendue du prestataire ; la planification l'utilise comme limite supérieure lors de l'attribution de ce prestataire aux opérations de la semaine."@@ -18226,6 +18304,12 @@ msgstr "Transférer la propriété de cette société à un autre utilisateur."msgid "Transfer To"msgstr "Transférer vers"+msgid "Transit"+msgstr "Transit"++msgid "Transit & Institution"+msgstr "Transit et institution"+msgid "Trash"msgstr "Corbeille"@@ -18921,6 +19005,9 @@ msgstr "Afficher l'historique"msgid "View in Academy"msgstr "Voir dans Academy"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "Afficher dans le plan du projet"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 241b7429c2..6f7f953075 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} अनुमतियाँ"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} चयनित"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "आपकी कंपनी को Carbon पर लाइव करने के लिए {total} चरण। प्रत्येक एक चेकपॉइंट पर समाप्त होता है।"@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} चरण लाइव होने के लिए"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} परिणाम"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# इकाई} other {# इकाइयाँ}}"@@ -1009,6 +1009,9 @@ msgstr "एक टूल एक भौतिक आइटम है जिसकmsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "एक उपयोगकर्ता प्रत्येक बैच या सीरीज पर समाप्ति तिथि दर्ज करता है जब माल प्राप्त होता है। जब आपूर्तिकर्ता विभिन्न समाप्ति तिथियों के साथ लॉट भेजते हैं तो इसका उपयोग करें।"+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "कौशल"@@ -1082,6 +1085,9 @@ msgstr "निपटान के समय अचल संपत्तियmsgid "Account for the purchase cost of fixed assets"msgstr "अचल संपत्तियों की अधिग्रहण लागत के लिए खाता।"+msgid "Account Holder"+msgstr "खाता धारक"+msgid "Account manager"msgstr "खाता प्रबंधक"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "लाइब्रेरी से जोड़ें…"msgid "Add from receipt"-msgstr ""+msgstr "प्राप्ति से जोड़ें"msgid "Add from shipment"-msgstr ""+msgstr "शिपमेंट से जोड़ें"msgid "Add Group"msgstr "समूह जोड़ें"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "दस्तावेज़ से लाइनें जोड़ें"msgid "Add manually"-msgstr ""+msgstr "मैन्युअल रूप से जोड़ें"msgid "Add match"msgstr "मिलान जोड़ें"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "सभी चुने गए समूहों के सदस्य और चुने गए व्यक्ति अनुरोधों को अनुमोदित कर सकेंगे"msgid "All returnable lines"-msgstr ""+msgstr "सभी रिटर्न योग्य पंक्तियाँ"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "सभी पंक्तियाँ आयात की गईं — {inserted} डाली गईं, {updated} अपडेट की गईं।"@@ -1739,6 +1745,9 @@ msgstr "एक HTTPS अनुरोध जो कार्बन आपकेmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "एक एकीकरण या एक कस्टम परिवर्तन — वह छोटा हिस्सा जो वास्तव में कस्टम है।"+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "एक अंतर्राष्ट्रीय बैंक खाता संख्या: एक स्ट्रिंग जो देश, बैंक, शाखा और खाते को धारण करती है, दो जांच अंकों के साथ। क्योंकि यह पहले से ही बैंक की पहचान करती है, जो देश इसका उपयोग करते हैं उन्हें कोई अलग रूटिंग कोड की आवश्यकता नहीं है।"+msgid "An invitation is pending. They become active once they accept it."msgstr "एक आमंत्रण लंबित है। वे सक्रिय हो जाते हैं एक बार जब वे इसे स्वीकार कर लेते हैं।"@@ -2358,6 +2367,9 @@ msgstr "क्या आप वेबहुक {0} को हटाना चाmsgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "क्या आप इस अनुमोदन नियम को हटाना चाहते हैं? यह वापस नहीं किया जा सकता।"+msgid "Are you sure you want to delete this bank account?"+msgstr "क्या आप वाकई इस बैंक खाते को हटाना चाहते हैं?"+msgid "Are you sure you want to delete this change notice?"msgstr "क्या आप इस परिवर्तन सूचना को हटाना चाहते हैं?"@@ -2433,6 +2445,9 @@ msgstr "क्या आप {0} को स्थायी रूप से हmsgid "Are you sure you want to permanently delete the supplier process?"msgstr "क्या आप आपूर्तिकर्ता प्रक्रिया को स्थायी रूप से हटाना चाहते हैं?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "क्या आप वाकई इस बैंक खाते को स्थायी रूप से हटाना चाहते हैं?"+msgid "Are you sure you want to post this receipt?"msgstr "क्या आप सुनिश्चित हैं कि आप इस रसीद को पोस्ट करना चाहते हैं?"@@ -2828,9 +2843,21 @@ msgstr "बैंक खाता एक विदेशी मुद्राmsgid "Bank account denominated in the local currency"msgstr "बैंक खाता स्थानीय मुद्रा में मूल्यवर्गित।"+msgid "Bank Accounts"+msgstr "बैंक खाते"++msgid "Bank Address"+msgstr "बैंक का पता"+msgid "Bank and financial service charge expenses"msgstr "बैंक और वित्तीय सेवा शुल्क व्यय।"+msgid "Bank Code"+msgstr "बैंक कोड"++msgid "Bank Name"+msgstr "बैंक का नाम"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "बार प्रत्येक सप्ताह के प्रवाह को दिखाते हैं: <0>आपूर्ति</0> इन्वेंटरी को ऊपर धकेलती है, <1>मांग</1> इसे नीचे खींचती है। <2>लाइन</2> आपकी अनुमानित उपलब्ध इन्वेंटरी है — जब यह <3>सुरक्षा स्टॉक</3> के नीचे गिरती है तो आप जोखिम में हैं, और शून्य से नीचे एक <4>स्टॉकआउट</4> है।"@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "बैच"msgid "Batches to return"-msgstr ""+msgstr "वापस करने के लिए बैच"msgid "Batching"msgstr "बैचिंग"@@ -3040,6 +3067,9 @@ msgstr "लाइब्रेरी ब्राउज़ करें"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "प्रकाशित संस्करण को केवल पढ़ने के लिए ब्राउज़ करें। आप अभी भी लेआउट को साफ करने के लिए चरणों को पुनर्व्यवस्थित कर सकते हैं।"+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "बकेट"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "दूसरी फ़ाइल चुनें"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "इस रिटर्न में पंक्तियाँ कैसे जोड़ें, यह चुनें।"msgid "Choose what appears on the printed job traveler."msgstr "मुद्रित जॉब ट्रैवलर पर क्या दिखाई दे, इसे चुनें।"@@ -6254,6 +6284,9 @@ msgstr "विशेषता संपादित करें"msgid "Edit Attribute Category"msgstr "विशेषता श्रेणी संपादित करें"+msgid "Edit Bank Account"+msgstr "बैंक खाते को संपादित करें"+msgid "Edit Category"msgstr "श्रेणी संपादित करें"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "1 और {0} के बीच मात्रा दर्ज करें।"msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "आइटम और मात्रा स्वयं दर्ज करें।"msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "PO के विरुद्ध विक्रेता बिलों को दर्ज करें और अनुमोदित करें (थ्री-वे मिलान)"@@ -8182,6 +8215,9 @@ msgstr "मदद"msgid "Hide"msgstr "छिपाएं"+msgid "Hide account number"+msgstr "खाता संख्या छिपाएँ"+msgid "Hide raw"msgstr "कच्चे को छुपाएं"@@ -8407,6 +8443,9 @@ msgstr "मेरे पास यह मानने का उचित आधmsgid "I'm Still Working"msgstr "मैं अभी भी काम कर रहा हूँ"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "आईडी"@@ -8458,6 +8497,12 @@ msgstr "अगर कुछ गलत रास्ते पर है"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "यदि आप पार्ट नंबर बदलना चाहते हैं, तो कृपया रद्द करें पर क्लिक करें और परिवर्तित करने से पहले प्रत्येक पंक्ति आइटम के लिए पार्ट्स को मैन्युअल रूप से असाइन करें।"+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "IFSC कोड"+msgid "Ignore"msgstr "अनदेखा करें"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "पंक्तियाँ"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "पंक्तियाँ यहाँ दिखाई देती हैं जब क्रय आदेश की प्राप्ति पोस्ट की जाती है, और केवल उन मात्राओं के लिए जो पहले से किसी अन्य आपूर्तिकर्ता रिटर्न पर अधिकृत नहीं हैं। एक अंधी रिटर्न के लिए पंक्ति मद जोड़ें का उपयोग करें।"msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "पंक्तियाँ यहाँ दिखाई देती हैं जब विक्रय आदेश की शिपमेंट पोस्ट की जाती है, और केवल उन मात्राओं के लिए जो पहले से किसी अन्य RMA पर अधिकृत नहीं हैं। एक अंधी रिटर्न के लिए पंक्ति मद जोड़ें का उपयोग करें।"msgid "Lines need internal part numbers"msgstr "लाइनों को आंतरिक भाग संख्याओं की आवश्यकता है"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "सुबह, {name}।"msgid "Most recent — search to find more"-msgstr ""+msgstr "सबसे हाल ही की — अधिक खोजने के लिए खोजें"msgid "Most things get caught and resolved here. Name it plainly."msgstr "अधिकांश चीजें यहां पकड़ी जाती हैं और हल की जाती हैं। इसे स्पष्ट रूप से नाम दें।"@@ -10515,6 +10560,9 @@ msgstr "नई विशेषता"msgid "New Attribute Category"msgstr "नई विशेषता श्रेणी"+msgid "New Bank Account"+msgstr "नया बैंक खाता"+msgid "New Batch"msgstr "नया बैच"@@ -10915,11 +10963,14 @@ msgstr "कोई उपलब्ध फ़िल्टर नहीं"msgid "No available tracked entities found"msgstr "कोई उपलब्ध ट्रैक किए गए इकाइयां नहीं मिलीं"+msgid "No bank accounts have been added yet."+msgstr "अभी तक कोई बैंक खाता जोड़ा नहीं गया है।"+msgid "No batches"msgstr "कोई बैच नहीं"msgid "No batches selected yet."-msgstr ""+msgstr "अभी तक कोई बैच चयनित नहीं।"msgid "No BOM input has a shelf-life policy"msgstr "कोई BOM इनपुट शेल्फ-लाइफ नीति नहीं है"@@ -10978,6 +11029,9 @@ msgstr "कोई आयाम स्लॉट कॉन्फ़िगर नmsgid "No dimension values mapped yet"msgstr "अभी तक कोई आयाम मान मैप नहीं किया गया"+msgid "No documents"+msgstr "कोई दस्तावेज़ नहीं"+msgid "No draft make method for this item yet."msgstr "इस आइटम के लिए अभी तक कोई ड्राफ्ट निर्माण विधि नहीं है।"@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "कोई परिणाम नहीं मिला"msgid "No returnable lines for this customer"-msgstr ""+msgstr "इस ग्राहक के लिए कोई रिटर्न योग्य पंक्तियाँ नहीं"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "इस आपूर्तिकर्ता के लिए कोई रिटर्न योग्य पंक्तियाँ नहीं"msgid "No returnable lines match your search"-msgstr ""+msgstr "कोई रिटर्न योग्य पंक्तियाँ आपकी खोज से मेल नहीं खाती"msgid "No rows here."msgstr "यहाँ कोई पंक्तियाँ नहीं हैं।"@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "इस विंडो में कोई शेड्यूल किया हुआ काम नहीं"msgid "No serial numbers selected yet."-msgstr ""+msgstr "अभी तक कोई सीरियल नंबर चयनित नहीं।"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "कोई पारियाँ कॉन्फ़िगर नहीं — सोमवार–शुक्रवार, 8 घंटे की दिन मानी जा रही है"@@ -11660,6 +11714,12 @@ msgstr "केवल ड्राफ्ट कार्यविधियाँmsgid "Only empty, open periods can be deleted."msgstr "केवल खाली, खुली अवधियों को हटाया जा सकता है।"+msgid "Only if it differs from the customer name"+msgstr "केवल यदि यह ग्राहक के नाम से भिन्न हो"++msgid "Only if it differs from the supplier name"+msgstr "केवल यदि यह आपूर्तिकर्ता के नाम से भिन्न हो"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "केवल योग्य कर्मचारी ही इस प्रक्रिया के लिए अनुसूचित और चलाए जा सकते हैं"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "रिटर्न करने के लिए सीरीज/बैच चुनें"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "इस आपूर्तिकर्ता से प्राप्त हाथ पर मौजूद बैच चुनें।"msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "स्टॉक की जरूरत वाली बिन को चुनें, फिर उन बिन को चुनें जहां से स्टॉक खींचना है।"msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "इस आपूर्तिकर्ता से प्राप्त हाथ पर मौजूद सीरियल नंबर चुनें।"msgid "Pick tracked item"msgstr "ट्रैक किए गए आइटम को चुनें"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "खरीद मात्रा"msgid "Purchase Return"-msgstr ""+msgstr "क्रय रिटर्न"msgid "Purchase Tax Payable"msgstr "खरीद कर देय (डिफ़ॉल्ट)"@@ -14243,6 +14303,9 @@ msgstr "रिटर्न:"msgid "Rev {revision}"msgstr "Rev {revision}"+msgid "Reveal account number"+msgstr "खाता संख्या दिखाएँ"+msgid "Revenue"msgstr "राजस्व"@@ -14431,6 +14494,9 @@ msgstr "सभी प्राप्य खाते चालानों कmsgid "Routing"msgstr "रूटिंग"+msgid "Routing Number (ABA)"+msgstr "रूटिंग संख्या (ABA)"+msgid "rows"msgstr "पंक्तियाँ"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "विक्रय प्रतिनिधि"msgid "Sales Return"-msgstr ""+msgstr "विक्रय रिटर्न"msgid "Sales Revenue"msgstr "बिक्रय राजस्व"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Linear समस्या शीर्षक द्वारा खोजें..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "प्राप्ति, PO, या आइटम के अनुसार खोजें"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "शिपमेंट, विक्रय आदेश, या आइटम के अनुसार खोजें"msgid "Search customers and types..."msgstr "ग्राहकों और प्रकारों को खोजें..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "संचालन चुनें"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "इस आपूर्तिकर्ता से पोस्ट की गई प्राप्ति पंक्तियों को रिटर्न के लिए चुनें।"msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "इस ग्राहक को भेजी गई शिपमेंट पंक्तियों को रिटर्न के लिए चुनें।"msgid "Select Printer"msgstr "प्रिंटर चुनें"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "प्राप्त सीरियल नंबर"msgid "Serial numbers to return"-msgstr ""+msgstr "रिटर्न के लिए सीरियल नंबर"msgid "Serial or Batch Tracking Required"msgstr "सीरियल या बैच ट्रैकिंग आवश्यक है"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "सत्र लॉक किया गया"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "शिपमेंट से जोड़ने के लिए इस रिटर्न पर एक ग्राहक सेट करें।"msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "प्राप्ति से जोड़ने के लिए इस रिटर्न पर एक आपूर्तिकर्ता सेट करें।"msgid "Set a target"msgstr "लक्ष्य निर्धारित करें"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "आपूर्तिकर्ता सूची, आपूर्तिकर्ता फॉर्म और ड्रॉपडाउन पर एक पठनीय आपूर्तिकर्ता ID कॉलम दिखाएं। आपूर्तिकर्ता अभी भी किसी भी तरह से आंतरिक रूप से पहचाने जाते हैं।"msgid "Show available batch numbers"-msgstr ""+msgstr "उपलब्ध बैच संख्याएँ दिखाएँ"msgid "Show available tracking numbers"-msgstr ""+msgstr "उपलब्ध ट्रैकिंग संख्याएँ दिखाएँ"msgid "Show Customer IDs"msgstr "ग्राहक आईडी दिखाएं"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "अवधि दिखाएं"msgid "Show more"-msgstr ""+msgstr "और दिखाएँ"msgid "Show one inventory number the floor and office both trust"msgstr "एक इन्वेंटरी नंबर दिखाएं जिस पर फ्लोर और ऑफिस दोनों को विश्वास है"@@ -15841,6 +15907,9 @@ msgstr "आरोही क्रम में सॉर्ट करें"msgid "Sort by"msgstr "द्वारा क्रमबद्ध करें"+msgid "Sort Code"+msgstr "सॉर्ट कोड"+msgid "Sort Descending"msgstr "अवरोही क्रम में सॉर्ट करें"@@ -16489,6 +16558,12 @@ msgstr "सतहें"msgid "Suspected Failure Mode"msgstr "संदिग्ध विफलता मोड"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "स्विच करें"@@ -16847,6 +16922,9 @@ msgstr "वह श्रेणी जिससे यह आपूर्तिmsgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "कानबान कार्ड पर मुद्रित कोड जिसे ऑपरेटर जॉब को पूर्ण करने के लिए स्कैन करते हैं; खाली छोड़ने पर स्वचालित रूप से उत्पन्न।"+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "यह कोड अंतर्राष्ट्रीय स्तर पर एक बैंक को पहचानता है, 8 या 11 वर्ण। एक अंतर्राष्ट्रीय भुगतान इसके बिना रूट नहीं होगा, जबकि एक घरेलू स्थानांतरण आमतौर पर स्थानीय रूटिंग कोड का उपयोग करता है।"+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "ठेकेदार की अपेक्षित साप्ताहिक उपलब्धता; शेड्यूलिंग इसे इस सप्ताह भर में इस ठेकेदार को ऑपरेशन के लिए असाइन करते समय ऊपरी सीमा के रूप में उपयोग करती है।"@@ -18226,6 +18304,12 @@ msgstr "इस कंपनी की स्वामित्व किसीmsgid "Transfer To"msgstr "को स्थानांतरित करें"+msgid "Transit"+msgstr "ट्रांजिट"++msgid "Transit & Institution"+msgstr "ट्रांजिट और संस्था"+msgid "Trash"msgstr "ट्रैश"@@ -18921,6 +19005,9 @@ msgstr "इतिहास देखें"msgid "View in Academy"msgstr "अकादमी में देखें"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "प्रोजेक्ट प्लान में देखें"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 173beec5a0..9796c9b132 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} autorizzazioni"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} selezionati"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total} fasi per mettere la tua azienda online su Carbon. Ognuna termina a un checkpoint."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} fasi per andare live"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} risultati"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# unità} other {# unità}}"@@ -1009,6 +1009,9 @@ msgstr "Un utensile è un articolo fisico usato per fare un componente che puòmsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "Un utente registra la data di scadenza su ogni lotto o numero seriale quando i beni vengono ricevuti. Utilizzare quando i fornitori spediscono lotti con date di scadenza diverse."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "Competenze"@@ -1082,6 +1085,9 @@ msgstr "Contabilizzate il costo dei cespiti quando ceduti."msgid "Account for the purchase cost of fixed assets"msgstr "Contabilizzate il costo di acquisizione dei cespiti."+msgid "Account Holder"+msgstr "Titolare del conto"+msgid "Account manager"msgstr "Responsabile account"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "Aggiungi dalla libreria…"msgid "Add from receipt"-msgstr ""+msgstr "Aggiungi da entrata merci"msgid "Add from shipment"-msgstr ""+msgstr "Aggiungi da spedizione"msgid "Add Group"msgstr "Aggiungi Gruppo"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "Aggiungi righe dal documento"msgid "Add manually"-msgstr ""+msgstr "Aggiungi manualmente"msgid "Add match"msgstr "Aggiungi corrispondenza"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "Tutti i membri dei gruppi selezionati e gli individui selezionati potranno approvare le richieste"msgid "All returnable lines"-msgstr ""+msgstr "Tutte le righe restituibili"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "Tutte le righe importate — {inserted} inserite, {updated} aggiornate."@@ -1739,6 +1745,9 @@ msgstr "Una richiesta https che Carbon invia a un tuo sistema quando un flusso dmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Un'integrazione o una modifica personalizzata — la piccola parte che è effettivamente personalizzata."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "Un numero di conto bancario internazionale: una stringa che contiene il paese, la banca, la filiale e il conto, con due cifre di controllo. Poiché identifica già la banca, i paesi che lo utilizzano non hanno bisogno di un codice di instradamento separato."+msgid "An invitation is pending. They become active once they accept it."msgstr "Un invito è in attesa. Diventano attivi una volta che l'accettano."@@ -2358,6 +2367,9 @@ msgstr "Sei sicuro di voler eliminare il webhook: {0}? Questa azione non può esmsgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "Sei sicuro di voler eliminare questa regola di approvazione? Questa azione non può essere annullata."+msgid "Are you sure you want to delete this bank account?"+msgstr "Sei sicuro di voler eliminare questo conto bancario?"+msgid "Are you sure you want to delete this change notice?"msgstr "Sei sicuro di voler eliminare questo avviso di modifica?"@@ -2433,6 +2445,9 @@ msgstr "Sei sicuro di voler eliminare permanentemente {0}?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "Sei sicuro di voler eliminare permanentemente il processo del fornitore?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "Sei sicuro di voler eliminare definitivamente questo conto bancario?"+msgid "Are you sure you want to post this receipt?"msgstr "Sei sicuro di voler registrare questa ricevuta?"@@ -2828,9 +2843,21 @@ msgstr "Conto bancario denominato in una valuta estera."msgid "Bank account denominated in the local currency"msgstr "Conto bancario denominato nella valuta locale."+msgid "Bank Accounts"+msgstr "Conti bancari"++msgid "Bank Address"+msgstr "Indirizzo della banca"+msgid "Bank and financial service charge expenses"msgstr "Spese per commissioni di servizi bancari e finanziari."+msgid "Bank Code"+msgstr "Codice bancario"++msgid "Bank Name"+msgstr "Nome della banca"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "I grafici mostrano il flusso di ogni settimana: <0>copertura</0> spinge il magazzino verso l'alto, <1>fabbisogno</1> lo tira verso il basso. La <2>riga</2> è il tuo magazzino disponibile previsto — quando scende al di sotto della <3>scorta di sicurezza</3> sei a rischio, e al di sotto di zero è una <4>rottura di stock</4>."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "Lotti"msgid "Batches to return"-msgstr ""+msgstr "Lotti di produzione da restituire"msgid "Batching"msgstr "Raggruppamento in Lotti"@@ -3040,6 +3067,9 @@ msgstr "Sfoglia libreria"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Visualizza la versione pubblicata in sola lettura. Puoi comunque riorganizzare i passi per ordinare il layout."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Bucket"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "Scegli un altro file"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "Scegli come aggiungere righe a questo reso."msgid "Choose what appears on the printed job traveler."msgstr "Scegli cosa appare sul cartellino di produzione stampato."@@ -6254,6 +6284,9 @@ msgstr "Modifica Attributo"msgid "Edit Attribute Category"msgstr "Modifica Categoria Attributo"+msgid "Edit Bank Account"+msgstr "Modifica conto bancario"+msgid "Edit Category"msgstr "Modifica Categoria"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "Inserisci una quantità tra 1 e {0}."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "Inserisci un articolo e una quantità tu stesso."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "Inserire e Approvare Fatture di acquisto in base a un Ordine di acquisto (Riscontro a tre vie)"@@ -8182,6 +8215,9 @@ msgstr "Aiuto"msgid "Hide"msgstr "Nascondi"+msgid "Hide account number"+msgstr "Nascondi il numero di conto"+msgid "Hide raw"msgstr "Nascondi raw"@@ -8407,6 +8443,9 @@ msgstr "Ho una ragionevole base per credere che questo individuo sia una personamsgid "I'm Still Working"msgstr "Sto ancora lavorando"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "ID"@@ -8458,6 +8497,12 @@ msgstr "Se qualcosa non è in linea"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "Se desideri modificare i numeri dei componenti, fai clic su Annulla e assegna manualmente i componenti per ogni riga prima della conversione."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "Codice IFSC"+msgid "Ignore"msgstr "Ignora"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "Righe"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "Le righe appariranno qui una volta che l'entrata merci dell'ordine di acquisto è stata registrata, e solo per le quantità non già autorizzate su un altro reso del fornitore. Utilizza Aggiungi riga articolo per un reso cieco."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "Le righe appariranno qui una volta che la spedizione dell'ordine di vendita è stata registrata, e solo per le quantità non già autorizzate su un altro RMA. Utilizza Aggiungi riga articolo per un reso cieco."msgid "Lines need internal part numbers"msgstr "Le righe necessitano di numeri di parte interni"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "Mattino, {name}."msgid "Most recent — search to find more"-msgstr ""+msgstr "Più recente — cerca per trovarne altri"msgid "Most things get caught and resolved here. Name it plainly."msgstr "La maggior parte dei problemi viene identificata e risolta qui. Nominala chiaramente."@@ -10515,6 +10560,9 @@ msgstr "Nuovo Attributo"msgid "New Attribute Category"msgstr "Nuova Categoria Attributo"+msgid "New Bank Account"+msgstr "Nuovo conto bancario"+msgid "New Batch"msgstr "Nuovo Batch"@@ -10915,11 +10963,14 @@ msgstr "Nessun filtro disponibile"msgid "No available tracked entities found"msgstr "Nessuna entità tracciata disponibile trovata"+msgid "No bank accounts have been added yet."+msgstr "Nessun conto bancario aggiunto ancora."+msgid "No batches"msgstr "Nessun lotto di produzione"msgid "No batches selected yet."-msgstr ""+msgstr "Nessun lotto di produzione selezionato ancora."msgid "No BOM input has a shelf-life policy"msgstr "Nessun articolo di ingresso BOM ha una politica di shelf-life"@@ -10978,6 +11029,9 @@ msgstr "Nessuno slot dimensionale configurato"msgid "No dimension values mapped yet"msgstr "Nessun valore di dimensione mappato ancora"+msgid "No documents"+msgstr "Nessun documento"+msgid "No draft make method for this item yet."msgstr "Ancora nessun metodo di produzione in bozza per questo articolo."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "Nessun risultato trovato"msgid "No returnable lines for this customer"-msgstr ""+msgstr "Nessuna riga restituibile per questo cliente"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "Nessuna riga restituibile per questo fornitore"msgid "No returnable lines match your search"-msgstr ""+msgstr "Nessuna riga restituibile corrisponde alla tua ricerca"msgid "No rows here."msgstr "Nessuna riga qui."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "Nessun lavoro programmato in questo intervallo"msgid "No serial numbers selected yet."-msgstr ""+msgstr "Nessun numero di serie selezionato ancora."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Nessun turno configurato — presupponendo giorni lun–ven, 8h"@@ -11660,6 +11714,12 @@ msgstr "Solo le procedure in bozza sono modificabili. Crea una nuova versione pemsgid "Only empty, open periods can be deleted."msgstr "Solo i periodi aperti e vuoti possono essere eliminati."+msgid "Only if it differs from the customer name"+msgstr "Solo se diverso dal nome del cliente"++msgid "Only if it differs from the supplier name"+msgstr "Solo se diverso dal nome del fornitore"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Solo i dipendenti qualificati possono essere programmati e eseguire questo processo"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "Seleziona i numeri di serie/lotti da restituire"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "Seleziona i lotti di produzione disponibili che sono stati ricevuti da questo fornitore."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "Scegli il contenitore che ha bisogno di stock, quindi scegli i contenitori da cui prelevarlo."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "Seleziona i numeri di serie disponibili che sono stati ricevuti da questo fornitore."msgid "Pick tracked item"msgstr "Seleziona articolo tracciato"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "Quantità Acquisto"msgid "Purchase Return"-msgstr ""+msgstr "Reso di acquisto"msgid "Purchase Tax Payable"msgstr "Imposta di Acquisto Pagabile (predefinita)"@@ -14243,6 +14303,9 @@ msgstr "Restituisce:"msgid "Rev {revision}"msgstr "Rev {revision}"+msgid "Reveal account number"+msgstr "Rivela numero di conto"+msgid "Revenue"msgstr "Ricavi"@@ -14431,6 +14494,9 @@ msgstr "Instrada tutte le fatture di vendita a un indirizzo (ad es. sede centralmsgid "Routing"msgstr "Ciclo di lavorazione"+msgid "Routing Number (ABA)"+msgstr "Numero di instradamento (ABA)"+msgid "rows"msgstr "righe"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "Addetto alle vendite"msgid "Sales Return"-msgstr ""+msgstr "Reso di vendita"msgid "Sales Revenue"msgstr "Ricavi di vendita"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Cerca per titolo problema linear..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "Cerca per entrata merci, ordine acquisto, o articolo"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "Cerca per spedizione, ordine di vendita, o articolo"msgid "Search customers and types..."msgstr "Cerca clienti e tipi..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "Seleziona operazioni"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "Seleziona righe di entrata merci registrate da questo fornitore da restituire."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "Seleziona righe di spedizione registrate a questo cliente da restituire."msgid "Select Printer"msgstr "Seleziona Stampante"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "Numeri di serie ricevuti"msgid "Serial numbers to return"-msgstr ""+msgstr "Numeri di serie da restituire"msgid "Serial or Batch Tracking Required"msgstr "Tracciamento Seriale o Batch Richiesto"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "Sessione bloccata"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "Imposta un cliente su questo reso per aggiungere da una spedizione."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "Imposta un fornitore su questo reso per aggiungere da un'entrata merci."msgid "Set a target"msgstr "Imposta un obiettivo"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "Mostra una colonna ID Fornitore leggibile nell'elenco dei fornitori, nei moduli fornitori e nei menu a discesa. I fornitori sono comunque identificati internamente in entrambi i casi."msgid "Show available batch numbers"-msgstr ""+msgstr "Mostra numeri di lotto di produzione disponibili"msgid "Show available tracking numbers"-msgstr ""+msgstr "Mostra numeri di tracciamento disponibili"msgid "Show Customer IDs"msgstr "Mostra ID Cliente"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "Mostra durate"msgid "Show more"-msgstr ""+msgstr "Mostra di più"msgid "Show one inventory number the floor and office both trust"msgstr "Mostra un numero di inventario unico in cui sia il reparto che l'ufficio si fidano"@@ -15841,6 +15907,9 @@ msgstr "Ordina crescente"msgid "Sort by"msgstr "Ordina per"+msgid "Sort Code"+msgstr "Codice di ordinamento"+msgid "Sort Descending"msgstr "Ordina decrescente"@@ -16489,6 +16558,12 @@ msgstr "Superfici"msgid "Suspected Failure Mode"msgstr "Modalità di guasto sospetta"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Cambia"@@ -16847,6 +16922,9 @@ msgstr "La categoria a cui appartiene questo fornitore (materia prima, servizi,msgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "Il codice stampato sulla scheda kanban che gli operatori scansionano per contrassegnare il lavoro come completo; generato automaticamente se lasciato vuoto."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "Il codice che identifica una banca a livello internazionale, 8 o 11 caratteri. Un pagamento transfrontaliero non instrada senza di esso, mentre un trasferimento nazionale di solito viaggia sul codice di instradamento locale."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "La disponibilità settimanale prevista del collaboratore esterno; la programmazione utilizza questo come limite superiore quando assegna questo collaboratore esterno alle operazioni durante la settimana."@@ -18226,6 +18304,12 @@ msgstr "Trasferisci la proprietà di questa azienda a un altro utente"msgid "Transfer To"msgstr "Trasferisci A"+msgid "Transit"+msgstr "Transito"++msgid "Transit & Institution"+msgstr "Transito e Istituzione"+msgid "Trash"msgstr "Cestino"@@ -18921,6 +19005,9 @@ msgstr "Visualizza Cronologia"msgid "View in Academy"msgstr "Visualizza in Academy"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "Visualizza nel piano del progetto"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 4a7d6ddad4..a4654af21a 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} 個の権限"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} 件が選択されています"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total}つのフェーズでご利用開始までご案内します。各フェーズはチェックポイントで終了します。"@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total}個のフェーズをライブにする"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} 件の検索結果"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# 個} other {# 個}}"@@ -1009,6 +1009,9 @@ msgstr "工具は部品を製造するために使用され、複数の製造指msgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "ユーザーは商品受取時に各バッチまたはシリアルの使用期限を記録します。仕入先が異なる使用期限のロットを出荷する場合に使用します。"+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "スキル"@@ -1082,6 +1085,9 @@ msgstr "固定資産を除却する際の原価を会計処理する"msgid "Account for the purchase cost of fixed assets"msgstr "固定資産の購入原価を会計処理する"+msgid "Account Holder"+msgstr "口座名義人"+msgid "Account manager"msgstr "アカウント マネージャー"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "ライブラリから追加…"msgid "Add from receipt"-msgstr ""+msgstr "入荷から追加"msgid "Add from shipment"-msgstr ""+msgstr "出荷から追加"msgid "Add Group"msgstr "グループを追加"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "ドキュメントから行を追加"msgid "Add manually"-msgstr ""+msgstr "手動で追加"msgid "Add match"msgstr "マッチを追加"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "選択されたグループのすべてのメンバーと選択された個人が承認リクエストを承認できます"msgid "All returnable lines"-msgstr ""+msgstr "すべての返品対象明細"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "すべての行をインポート—{inserted}行挿入、{updated}行更新。"@@ -1739,6 +1745,9 @@ msgstr "ワークフローがそのステップに到達したときに、Carbonmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "連携またはカスタム変更 — 実際にカスタムされている小さなスライス。"+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "国際銀行口座番号(IBAN):国、銀行、支店、口座を1つの文字列に含み、2つのチェックディジットが付く。既に銀行を識別するため、これを使用する国では別のルーティングコードが不要です。"+msgid "An invitation is pending. They become active once they accept it."msgstr "招待待機中。承諾後に有効になります。"@@ -2358,6 +2367,9 @@ msgstr "Webhook: {0} を削除してもよろしいですか?これは元に戻msgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "このアプリケーション承認ルールを削除してもよろしいですか?この操作は取り消せません。"+msgid "Are you sure you want to delete this bank account?"+msgstr "この銀行口座を削除してもよろしいですか?"+msgid "Are you sure you want to delete this change notice?"msgstr "この変更通知を削除してもよろしいですか?"@@ -2433,6 +2445,9 @@ msgstr "{0}を完全に削除してもよろしいですか?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "仕入先工法を完全に削除してもよろしいですか?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "この銀行口座を完全に削除してもよろしいですか?"+msgid "Are you sure you want to post this receipt?"msgstr "このレシートを転記してもよろしいですか?"@@ -2828,9 +2843,21 @@ msgstr "外国通貨で表示される銀行口座"msgid "Bank account denominated in the local currency"msgstr "地元通貨で示された銀行口座。"+msgid "Bank Accounts"+msgstr "銀行口座"++msgid "Bank Address"+msgstr "銀行住所"+msgid "Bank and financial service charge expenses"msgstr "銀行およびサービス料費用"+msgid "Bank Code"+msgstr "銀行コード"++msgid "Bank Name"+msgstr "銀行名"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "棒グラフは毎週の流れを表示します:<0>供給</0>は在庫を増加させ、<1>所要量</1>は減少させます。<2>線</2>は予測在庫です。<3>安全在庫</3>を下回る場合はリスク状態であり、ゼロを下回る場合は<4>欠品</4>です。"@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "バッチ"msgid "Batches to return"-msgstr ""+msgstr "返品するバッチ"msgid "Batching"msgstr "バッチ処理"@@ -3040,6 +3067,9 @@ msgstr "ライブラリを参照"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "公開済バージョンを読み取り専用で閲覧できます。レイアウトを整理するためにステップを並び替えることもできます。"+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "バケット"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "別のファイルを選択"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "この返品に明細を追加する方法を選択してください。"msgid "Choose what appears on the printed job traveler."msgstr "印刷された製造指図現品票に表示される内容を選択します。"@@ -6254,6 +6284,9 @@ msgstr "属性を編集"msgid "Edit Attribute Category"msgstr "属性カテゴリを編集"+msgid "Edit Bank Account"+msgstr "銀行口座を編集"+msgid "Edit Category"msgstr "カテゴリを編集"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "1~{0}の数量を入力してください。"msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "品目と数量を手動で入力してください。"msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "発注書に対する仕入先請求書を入力して承認します(三点照合)"@@ -8182,6 +8215,9 @@ msgstr "ヘルプ"msgid "Hide"msgstr "非表示"+msgid "Hide account number"+msgstr "口座番号を隠す"+msgid "Hide raw"msgstr "生データを非表示"@@ -8407,6 +8443,9 @@ msgstr "この個人は22 CFR 120.62で定義されている米国人であるmsgid "I'm Still Working"msgstr "まだ働いています"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "ID"@@ -8458,6 +8497,12 @@ msgstr "何か問題が生じた場合"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "部品番号を変更したい場合は、[キャンセル]をクリックして、変換する前に各行アイテムの部品を手動で割り当ててください。"+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "IFSC コード"+msgid "Ignore"msgstr "無視"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "行"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "購買発注の入荷が転記された後に、他の仕入先返品で既に認可されていない数量のみが表示されます。目隠し返品の場合は「明細を追加」を使用してください。"msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "受注出荷が転記された後に、別のRMAで既に認可されていない数量のみが表示されます。目隠し返品の場合は「明細を追加」を使用してください。"msgid "Lines need internal part numbers"msgstr "明細には社内部品番号が必要です"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "朝、{name}さん。"msgid "Most recent — search to find more"-msgstr ""+msgstr "最新のもの — さらに検索して見つける"msgid "Most things get caught and resolved here. Name it plainly."msgstr "ほとんどのことはここで発見され、解決されます。明確に名前を付けてください。"@@ -10515,6 +10560,9 @@ msgstr "新しい属性"msgid "New Attribute Category"msgstr "新しい属性カテゴリ"+msgid "New Bank Account"+msgstr "新規銀行口座"+msgid "New Batch"msgstr "新規バッチ"@@ -10915,11 +10963,14 @@ msgstr "利用可能な絞り込みはありません"msgid "No available tracked entities found"msgstr "利用可能な追跡対象エンティティが見つかりません"+msgid "No bank accounts have been added yet."+msgstr "銀行口座がまだ追加されていません。"+msgid "No batches"msgstr "バッチなし"msgid "No batches selected yet."-msgstr ""+msgstr "バッチがまだ選択されていません。"msgid "No BOM input has a shelf-life policy"msgstr "BOMインプットに棚卸資産有効期限ポリシーがありません"@@ -10978,6 +11029,9 @@ msgstr "ディメンションスロットが構成されていません"msgid "No dimension values mapped yet"msgstr "まだディメンション値がマップされていません"+msgid "No documents"+msgstr "ドキュメントがありません"+msgid "No draft make method for this item yet."msgstr "この品目の下書き製造方法はまだありません。"@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "検索結果が見つかりません"msgid "No returnable lines for this customer"-msgstr ""+msgstr "この得意先に返品対象の明細がありません。"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "この仕入先に返品対象の明細がありません。"msgid "No returnable lines match your search"-msgstr ""+msgstr "検索条件に一致する返品対象の明細がありません。"msgid "No rows here."msgstr "ここに行はありません。"@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "このウィンドウにはスケジュール済みの作業がありません"msgid "No serial numbers selected yet."-msgstr ""+msgstr "シリアル番号がまだ選択されていません。"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "シフトが構成されていません — 月~金、8時間営業を想定"@@ -11660,6 +11714,12 @@ msgstr "下書きの手順書のみが編集可能です。有効またはアーmsgid "Only empty, open periods can be deleted."msgstr "空のオープン期間のみ削除できます。"+msgid "Only if it differs from the customer name"+msgstr "得意先名と異なる場合のみ"++msgid "Only if it differs from the supplier name"+msgstr "仕入先名と異なる場合のみ"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "資格のある従業員のみがこのプロセスをスケジュールして実行できます"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "返品するシリアル/バッチを選択"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "この仕入先から受け取ったバッチをピッキングしてください。"msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "在庫が必要なビンを選択してから、引き出すビンを選択します。"msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "この仕入先から受け取ったシリアル番号をピッキングしてください。"msgid "Pick tracked item"msgstr "追跡品目をピック"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "購入数量"msgid "Purchase Return"-msgstr ""+msgstr "購買返品"msgid "Purchase Tax Payable"msgstr "仕入税金支払い(デフォルト)"@@ -14243,6 +14303,9 @@ msgstr "返す:"msgid "Rev {revision}"msgstr "Rev {revision}"+msgid "Reveal account number"+msgstr "銀行口座番号を表示"+msgid "Revenue"msgstr "売上高"@@ -14431,6 +14494,9 @@ msgstr "すべての売掛金請求書を、個別の拠点の代わりに、1msgid "Routing"msgstr "工順"+msgid "Routing Number (ABA)"+msgstr "ルーティング番号(ABA)"+msgid "rows"msgstr "行"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "営業担当者"msgid "Sales Return"-msgstr ""+msgstr "販売返品"msgid "Sales Revenue"msgstr "販売売上高"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Linear イシュータイトルで検索..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "入荷、発注、または品目で検索"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "出荷、受注、または品目で検索"msgid "Search customers and types..."msgstr "得意先とタイプを検索..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "作業を選択"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "この仕入先からの転記済入荷明細を選択して返品する"msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "この得意先への転記済出荷明細を選択して返品する"msgid "Select Printer"msgstr "プリンターを選択"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "受け入れたシリアル番号"msgid "Serial numbers to return"-msgstr ""+msgstr "返品するシリアル番号"msgid "Serial or Batch Tracking Required"msgstr "シリアルまたはバッチ追跡が必要です"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "セッションがロック中"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "この返品に得意先を設定して出荷から追加"msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "この返品に仕入先を設定して入荷から追加"msgid "Set a target"msgstr "ターゲットを設定"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "仕入先リスト、仕入先フォーム、ドロップダウンで読みやすい仕入先IDカラムを表示します。仕入先はどちらの方法でも内部的に識別されます。"msgid "Show available batch numbers"-msgstr ""+msgstr "利用可能なバッチ番号を表示"msgid "Show available tracking numbers"-msgstr ""+msgstr "利用可能な追跡番号を表示"msgid "Show Customer IDs"msgstr "得意先IDを表示"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "期間を表示"msgid "Show more"-msgstr ""+msgstr "さらに表示"msgid "Show one inventory number the floor and office both trust"msgstr "床と事務所の両方が信頼できる1つの在庫番号を表示する"@@ -15841,6 +15907,9 @@ msgstr "昇順でソート"msgid "Sort by"msgstr "並べ替え"+msgid "Sort Code"+msgstr "ソートコード"+msgid "Sort Descending"msgstr "降順でソート"@@ -16489,6 +16558,12 @@ msgstr "サーフェス"msgid "Suspected Failure Mode"msgstr "疑わしい故障モード"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "切り替え"@@ -16847,6 +16922,9 @@ msgstr "この仕入先が属するカテゴリ(原材料、サービス、請msgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "かんばんカードに印刷されるコード。作業者がスキャンして製造指図を完了するとマークします。空白の場合は自動生成されます。"+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "銀行を国際的に識別するコード(8文字または11文字)。国際送金はこれなしではルーティングされません。一方、国内振替は通常、ローカルルーティングコードで行われます。"+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "外部作業者の期待される毎週の利用可能性。スケジューリングはこれを、週間を通じてこの外部作業者を工程に割り当てる際の上限として使用します。"@@ -18226,6 +18304,12 @@ msgstr "この会社の所有権を別のユーザーに転送します。"msgid "Transfer To"msgstr "転送先"+msgid "Transit"+msgstr "トランジット"++msgid "Transit & Institution"+msgstr "トランジット・機関番号"+msgid "Trash"msgstr "ゴミ箱"@@ -18921,6 +19005,9 @@ msgstr "履歴を表示"msgid "View in Academy"msgstr "アカデミーで表示"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "プロジェクトプランで表示"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 717f975f80..3d1dca036f 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "권한 {scopeCount}개"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount}개 선택됨"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "회사를 Carbon에 가동시키기 위한 {total}개 단계. 각 단계는 체크포인트에서 종료됩니다."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "도입까지 {total}단계"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount}개 결과"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# 단위} other {# 단위}}"@@ -1009,6 +1009,9 @@ msgstr "공구는 여러 작업 지시에 걸쳐 사용될 수 있는 부품을msgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "사용자는 상품을 수령할 때 각 배치 또는 시리얼의 유통기한을 기록합니다. 공급업체가 다른 유통기한을 가진 로트로 배송할 때 사용합니다."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "역량"@@ -1082,6 +1085,9 @@ msgstr "고정자산 처분 시 원가 계정"msgid "Account for the purchase cost of fixed assets"msgstr "고정자산 구매 원가 계정"+msgid "Account Holder"+msgstr "계좌 소유자"+msgid "Account manager"msgstr "계정 관리자"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "라이브러리에서 추가…"msgid "Add from receipt"-msgstr ""+msgstr "입고에서 추가"msgid "Add from shipment"-msgstr ""+msgstr "출하에서 추가"msgid "Add Group"msgstr "그룹 추가"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "문서에서 라인 추가"msgid "Add manually"-msgstr ""+msgstr "수동으로 추가"msgid "Add match"msgstr "일치 추가"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "선택한 그룹의 모든 구성원과 선택한 개인이 요청을 승인할 수 있습니다"msgid "All returnable lines"-msgstr ""+msgstr "모든 반품 가능 라인"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "모든 행을 가져왔습니다 — {inserted}개 추가, {updated}개 업데이트."@@ -1739,6 +1745,9 @@ msgstr "워크플로우가 해당 단계에 도달할 때 Carbon이 귀사의msgid "An integration or a custom change — the small slice that's actually custom."msgstr "연동이나 커스텀 변경 — 실제로 커스텀인 작은 부분."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "국제 은행 계좌 번호: 국가, 은행, 지점 및 계좌를 포함하는 하나의 문자열이며 두 개의 검증 숫자가 있습니다. 이미 은행을 식별하므로 이를 사용하는 국가는 별도의 라우팅 코드가 필요하지 않습니다."+msgid "An invitation is pending. They become active once they accept it."msgstr "초대가 대기 중입니다. 초대를 수락하면 활성화됩니다."@@ -2358,6 +2367,9 @@ msgstr "웹훅 {0}을(를) 삭제하시겠습니까? 이 작업은 되돌릴 수msgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "이 승인 규칙을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다."+msgid "Are you sure you want to delete this bank account?"+msgstr "이 은행 계좌를 삭제하시겠습니까?"+msgid "Are you sure you want to delete this change notice?"msgstr "이 변경 통지를 삭제하시겠습니까?"@@ -2433,6 +2445,9 @@ msgstr "{0}을(를) 영구적으로 삭제하시겠습니까?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "공급업체 공법을 영구적으로 삭제하시겠습니까?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "이 은행 계좌를 영구 삭제하시겠습니까?"+msgid "Are you sure you want to post this receipt?"msgstr "이 입고를 전기하시겠습니까?"@@ -2828,9 +2843,21 @@ msgstr "외화로 표시된 은행 계좌"msgid "Bank account denominated in the local currency"msgstr "자국통화로 표시된 은행 계좌"+msgid "Bank Accounts"+msgstr "은행 계좌"++msgid "Bank Address"+msgstr "은행 주소"+msgid "Bank and financial service charge expenses"msgstr "은행 및 금융 서비스 요금 비용"+msgid "Bank Code"+msgstr "은행 코드"++msgid "Bank Name"+msgstr "은행명"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "막대는 매주의 흐름을 보여줍니다: <0>공급</0>은 재고를 올리고, <1>소요량</1>은 내립니다. <2>라인</2>은 예상 현재고 — <3>안전 재고</3> 아래로 떨어지면 위험에 처해 있고, 0 아래는 <4>재고 부족</4>입니다."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "배치"msgid "Batches to return"-msgstr ""+msgstr "반품할 배치"msgid "Batching"msgstr "배치 처리"@@ -3040,6 +3067,9 @@ msgstr "라이브러리 둘러보기"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "게시된 버전을 읽기 전용으로 찾아봅니다. 여전히 단계를 재정렬하여 레이아웃을 정돈할 수 있습니다."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "버킷"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "다른 파일을 선택하세요"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "이 반품에 라인을 추가하는 방법을 선택하세요."msgid "Choose what appears on the printed job traveler."msgstr "인쇄된 작업 이동표에 나타날 내용을 선택하십시오."@@ -6254,6 +6284,9 @@ msgstr "속성 편집"msgid "Edit Attribute Category"msgstr "속성 카테고리 편집"+msgid "Edit Bank Account"+msgstr "은행 계좌 편집"+msgid "Edit Category"msgstr "카테고리 편집"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "1과 {0} 사이의 수량을 입력하세요."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "품목과 수량을 직접 입력하세요."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "PO에 대한 공급업체 청구서를 입력하고 승인하세요 (3자 대사)."@@ -8182,6 +8215,9 @@ msgstr "도움말"msgid "Hide"msgstr "숨기기"+msgid "Hide account number"+msgstr "계좌 번호 숨기기"+msgid "Hide raw"msgstr "원본 숨기기"@@ -8407,6 +8443,9 @@ msgstr "나는 이 개인이 22 CFR 120.62에서 정의한 미국인이라고msgid "I'm Still Working"msgstr "아직 작업 중입니다"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "Id"@@ -8458,6 +8497,12 @@ msgstr "일정에서 벗어난 경우"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "부품 번호를 변경하려면 취소를 클릭하고 변환 전에 각 라인의 부품을 수동으로 할당하세요."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "IFSC 코드"+msgid "Ignore"msgstr "무시"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "라인"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "발주서 입고가 전기된 후 라인이 여기에 나타나며, 다른 공급업체 반품에서 이미 승인되지 않은 수량만 나타납니다. 맹목적 반품의 경우 「라인 항목 추가」를 사용하세요."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "수주 출하가 전기된 후 라인이 여기에 나타나며, 다른 RMA에서 이미 승인되지 않은 수량만 나타납니다. 맹목적 반품의 경우 「라인 항목 추가」를 사용하세요."msgid "Lines need internal part numbers"msgstr "내부 품번이 필요한 라인"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "{name}님, 아침이군요."msgid "Most recent — search to find more"-msgstr ""+msgstr "최신 — 검색하여 더 찾기"msgid "Most things get caught and resolved here. Name it plainly."msgstr "대부분의 문제는 여기서 발견되고 해결됩니다. 명확하게 이름을 붙이세요."@@ -10515,6 +10560,9 @@ msgstr "신규 속성"msgid "New Attribute Category"msgstr "신규 속성 카테고리"+msgid "New Bank Account"+msgstr "새 은행 계좌"+msgid "New Batch"msgstr "새 배치"@@ -10915,11 +10963,14 @@ msgstr "사용 가능한 필터가 없습니다."msgid "No available tracked entities found"msgstr "추적 가능한 항목을 찾을 수 없습니다."+msgid "No bank accounts have been added yet."+msgstr "아직 추가된 은행 계좌가 없습니다."+msgid "No batches"msgstr "배치 없음"msgid "No batches selected yet."-msgstr ""+msgstr "아직 선택된 배치가 없습니다."msgid "No BOM input has a shelf-life policy"msgstr "BOM 투입 항목 중 유효기간 정책이 설정된 항목이 없습니다"@@ -10978,6 +11029,9 @@ msgstr "구성된 차원 슬롯이 없습니다"msgid "No dimension values mapped yet"msgstr "아직 매핑된 차원 값이 없습니다"+msgid "No documents"+msgstr "문서 없음"+msgid "No draft make method for this item yet."msgstr "이 품목에 대한 초안 생산 방법이 아직 없습니다."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "결과가 없습니다"msgid "No returnable lines for this customer"-msgstr ""+msgstr "이 고객에 대해 반품 가능한 라인이 없습니다."msgid "No returnable lines for this supplier"-msgstr ""+msgstr "이 공급업체에 대해 반품 가능한 라인이 없습니다."msgid "No returnable lines match your search"-msgstr ""+msgstr "검색과 일치하는 반품 가능한 라인이 없습니다."msgid "No rows here."msgstr "행이 없습니다."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "이 시간대에 스케줄된 작업이 없습니다"msgid "No serial numbers selected yet."-msgstr ""+msgstr "아직 선택된 시리얼 번호가 없습니다."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "교대근무 구성 없음 — 월–금, 8시간 근무일 가정"@@ -11660,6 +11714,12 @@ msgstr "초안 절차서만 편집 가능합니다. 활성 또는 보관됨 절msgid "Only empty, open periods can be deleted."msgstr "비어있는 열린 기간만 삭제할 수 있습니다."+msgid "Only if it differs from the customer name"+msgstr "고객명과 다른 경우에만"++msgid "Only if it differs from the supplier name"+msgstr "공급업체명과 다른 경우에만"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "자격이 있는 직원만 이 프로세스를 예약하고 실행할 수 있습니다."@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "반품할 일련번호/배치 선택"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "이 공급업체에서 받은 현재 보유한 배치를 피킹하세요."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "재고가 필요한 빈을 선택한 다음, 재고를 가져올 빈을 선택합니다."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "이 공급업체에서 받은 현재 보유한 시리얼 번호를 피킹하세요."msgid "Pick tracked item"msgstr "추적 품목 선택"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "구매 수량"msgid "Purchase Return"-msgstr ""+msgstr "구매 반품"msgid "Purchase Tax Payable"msgstr "매입 세금 미지급"@@ -14243,6 +14303,9 @@ msgstr "반환 값:"msgid "Rev {revision}"msgstr "Rev {revision}"+msgid "Reveal account number"+msgstr "계좌번호 표시"+msgid "Revenue"msgstr "매출"@@ -14431,6 +14494,9 @@ msgstr "모든 매출채권 송장을 개별 사업장 대신 한 주소(예:msgid "Routing"msgstr "라우팅"+msgid "Routing Number (ABA)"+msgstr "라우팅 번호(ABA)"+msgid "rows"msgstr "행"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "영업 담당자"msgid "Sales Return"-msgstr ""+msgstr "판매 반품"msgid "Sales Revenue"msgstr "매출"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "linear 이슈 제목으로 검색..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "입고, PO, 또는 품목으로 검색"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "출하, 수주, 또는 품목으로 검색"msgid "Search customers and types..."msgstr "고객 및 유형 검색..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "작업 선택"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "이 공급업체의 전기된 입고 라인을 선택하여 반품하세요."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "이 고객의 전기된 출하 라인을 선택하여 반품하세요."msgid "Select Printer"msgstr "프린터 선택"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "입고된 시리얼 번호"msgid "Serial numbers to return"-msgstr ""+msgstr "반품할 시리얼 번호"msgid "Serial or Batch Tracking Required"msgstr "일련번호 또는 배치 추적 필요"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "세션 잠김"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "이 반품에 고객을 지정하여 출하에서 추가하세요."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "이 반품에 공급업체를 지정하여 입고에서 추가하세요."msgid "Set a target"msgstr "목표 설정"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "공급업체 목록, 공급업체 양식, 드롭다운에 읽기 쉬운 공급업체 ID 열을 표시합니다. 어느 쪽이든 공급업체는 내부적으로 동일하게 식별됩니다."msgid "Show available batch numbers"-msgstr ""+msgstr "가용 배치 번호 표시"msgid "Show available tracking numbers"-msgstr ""+msgstr "가용 추적 번호 표시"msgid "Show Customer IDs"msgstr "고객 ID 표시"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "소요 시간 표시"msgid "Show more"-msgstr ""+msgstr "더보기"msgid "Show one inventory number the floor and office both trust"msgstr "현장과 사무실이 모두 신뢰할 수 있는 하나의 재고 수치를 보여주세요"@@ -15841,6 +15907,9 @@ msgstr "오름차순 정렬"msgid "Sort by"msgstr "정렬 기준"+msgid "Sort Code"+msgstr "소팅 코드"+msgid "Sort Descending"msgstr "내림차순 정렬"@@ -16489,6 +16558,12 @@ msgstr "표면"msgid "Suspected Failure Mode"msgstr "의심되는 고장 모드"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "전환"@@ -16847,6 +16922,9 @@ msgstr "이 공급업체가 속하는 카테고리(원자재, 서비스, 위탁msgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "칸반 카드에 인쇄되는 코드로, 작업자가 스캔하여 작업 완료를 표시합니다. 비워두면 자동으로 생성됩니다."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "국제적으로 은행을 식별하는 코드이며 8자리 또는 11자리입니다. 국경간 지불은 이것 없이는 라우팅되지 않으며, 국내 이송은 보통 로컬 라우팅 코드로 전달됩니다."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "외주 인력의 예상 주간 가용성으로, 스케줄링이 이를 주 전체에서 공정에 외주 인력을 할당할 때의 상한으로 사용합니다."@@ -18226,6 +18304,12 @@ msgstr "이 회사의 소유권을 다른 사용자에게 이전"msgid "Transfer To"msgstr "이동 도착지"+msgid "Transit"+msgstr "운송"++msgid "Transit & Institution"+msgstr "운송 및 기관"+msgid "Trash"msgstr "휴지통"@@ -18921,6 +19005,9 @@ msgstr "이력 보기"msgid "View in Academy"msgstr "아카데미에서 보기"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "프로젝트 계획에서 보기"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex d540592ace..492281e0fc 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} uprawnień"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} zaznaczonych"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total} faz do uruchomienia Twojej firmy na Carbon. Każda kończy się punktem kontrolnym."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} faz do uruchomienia"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} wyników"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# jednostka} other {# jednostek}}"@@ -1009,6 +1009,9 @@ msgstr "Narzędzie to rzeczywisty artykuł używany do produkcji części, którmsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "Użytkownik notuje termin ważności dla każdej partii produkcyjnej lub serii, gdy towary są odbierane. Użyj, gdy dostawcy wysyłają partie z różnymi terminami ważności."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "umiejętności"@@ -1082,6 +1085,9 @@ msgstr "Rozliczaj koszt środków trwałych podczas ich zbycia."msgid "Account for the purchase cost of fixed assets"msgstr "Rozliczaj koszt nabycia środków trwałych."+msgid "Account Holder"+msgstr "Posiadacz konta"+msgid "Account manager"msgstr "Menedżer konta"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "Dodaj z biblioteki…"msgid "Add from receipt"-msgstr ""+msgstr "Dodaj z przyjęcia"msgid "Add from shipment"-msgstr ""+msgstr "Dodaj z wysyłki"msgid "Add Group"msgstr "Dodaj grupę"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "Dodaj wiersze z dokumentu"msgid "Add manually"-msgstr ""+msgstr "Dodaj ręcznie"msgid "Add match"msgstr "Dodaj dopasowanie"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "Wszyscy członkowie wybranych grup i wybrane osoby będą mogły zatwierdzać żądania"msgid "All returnable lines"-msgstr ""+msgstr "Wszystkie pozycje do zwrotu"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "Wszystkie wiersze zaimportowane — {inserted} wstawiono, {updated} zaktualizowano."@@ -1739,6 +1745,9 @@ msgstr "Żądanie https, które Carbon wysyła do Twojego systemu, gdy przepływmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Integracja lub zmiana niestandardowa — mała część, która jest faktycznie niestandardowa."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "Międzynarodowy numer konta bankowego: jeden ciąg zawierający kraj, bank, oddział i konto z dwoma cyframi kontrolnymi. Ponieważ już identyfikuje bank, kraje go używające nie potrzebują oddzielnego kodu marszruty."+msgid "An invitation is pending. They become active once they accept it."msgstr "Zaproszenie czeka na odpowiedź. Staną się aktywne, gdy je zaakceptują."@@ -2358,6 +2367,9 @@ msgstr "Czy na pewno chcesz usunąć webhook: {0}? Tej czynności nie można cofmsgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "Czy na pewno chcesz usunąć tę regułę zatwierdzania? Tej operacji nie można cofnąć."+msgid "Are you sure you want to delete this bank account?"+msgstr "Czy na pewno chcesz usunąć to konto bankowe?"+msgid "Are you sure you want to delete this change notice?"msgstr "Czy chcesz usunąć to zawiadomienie o zmianie?"@@ -2433,6 +2445,9 @@ msgstr "Czy na pewno chcesz trwale usunąć {0}?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "Czy na pewno chcesz trwale usunąć proces dostawcy?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "Czy na pewno chcesz na stałe usunąć to konto bankowe?"+msgid "Are you sure you want to post this receipt?"msgstr "Czy na pewno chcesz zaksięgować ten dokument przyjęcia?"@@ -2828,9 +2843,21 @@ msgstr "Rachunek bankowy denominowany w walucie obcej."msgid "Bank account denominated in the local currency"msgstr "Rachunek bankowy denominowany w walucie lokalnej."+msgid "Bank Accounts"+msgstr "Konta bankowe"++msgid "Bank Address"+msgstr "Adres banku"+msgid "Bank and financial service charge expenses"msgstr "Wydatki na opłaty bankowe i usługi finansowe."+msgid "Bank Code"+msgstr "Kod banku"++msgid "Bank Name"+msgstr "Nazwa banku"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "Paski pokazują przepływ każdego tygodnia: <0>pokrycie</0> zwiększa zapasy, <1>zapotrzebowanie</1> je zmniejsza. <2>Linia</2> to twoje prognozowane zapasy w magazynie — gdy spadną poniżej <3>zapasu bezpieczeństwa</3>, jesteś zagrożony, a poniżej zera to <4>brak zapasu</4>."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "Partie"msgid "Batches to return"-msgstr ""+msgstr "Partie do zwrotu"msgid "Batching"msgstr "Tworzenie Partii Produkcyjnych"@@ -3040,6 +3067,9 @@ msgstr "Przeglądaj bibliotekę"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Przeglądaj opublikowaną wersję w trybie tylko do odczytu. Nadal możesz zmienić kolejność kroków, aby uporządkować układ."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Zasobnik"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "Wybierz inny plik"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "Wybierz sposób dodania pozycji do tego zwrotu."msgid "Choose what appears on the printed job traveler."msgstr "Wybierz, co pojawia się na drukowanym przewodniku zlecenia produkcyjnego."@@ -6254,6 +6284,9 @@ msgstr "Edytuj atrybut"msgid "Edit Attribute Category"msgstr "Edytuj kategorię atrybutu"+msgid "Edit Bank Account"+msgstr "Edytuj konto bankowe"+msgid "Edit Category"msgstr "Edytuj kategorię"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "Wprowadź ilość między 1 a {0}."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "Wpisz artykuł i ilość samodzielnie."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "Wprowadź i zatwierdź faktury od dostawców względem zamówienia zakupu (uzgodnienie trójstronne)"@@ -8182,6 +8215,9 @@ msgstr "Pomoc"msgid "Hide"msgstr "Ukryj"+msgid "Hide account number"+msgstr "Ukryj numer konta"+msgid "Hide raw"msgstr "Ukryj surowe"@@ -8407,6 +8443,9 @@ msgstr "Mam uzasadnioną podstawę, aby wierzyć, że ta osoba jest osobą ze Stmsgid "I'm Still Working"msgstr "Wciąż pracuję"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "Id"@@ -8458,6 +8497,12 @@ msgstr "Jeśli coś nie przebiega prawidłowo"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "Jeśli chcesz zmienić numery części, kliknij Anuluj i ręcznie przypisz części dla każdej pozycji wiersza przed konwersją."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "Kod IFSC"+msgid "Ignore"msgstr "Ignoruj"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "Linie"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "Pozycje pojawiają się tutaj po zaksięgowaniu przyjęcia zamówienia zakupu i tylko dla ilości, które nie zostały już autoryzowane w innym zwrocie od dostawcy. Użyj opcji Dodaj pozycję dla zwrotu ślepego."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "Pozycje pojawiają się tutaj po zaksięgowaniu wysyłki zamówienia sprzedaży i tylko dla ilości, które nie zostały już autoryzowane w innym RMA. Użyj opcji Dodaj pozycję dla zwrotu ślepego."msgid "Lines need internal part numbers"msgstr "Linie wymagają wewnętrznych numerów części"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "Poranek, {name}."msgid "Most recent — search to find more"-msgstr ""+msgstr "Najnowsze — szukaj, aby znaleźć więcej"msgid "Most things get caught and resolved here. Name it plainly."msgstr "Większość rzeczy zostaje tutaj wychwycona i rozwiązana. Nazwij to jasno."@@ -10515,6 +10560,9 @@ msgstr "Nowy atrybut"msgid "New Attribute Category"msgstr "Nowa Kategoria Atrybutu"+msgid "New Bank Account"+msgstr "Nowe konto bankowe"+msgid "New Batch"msgstr "Nowy wsad"@@ -10915,11 +10963,14 @@ msgstr "Brak dostępnych filtrów"msgid "No available tracked entities found"msgstr "Nie znaleziono dostępnych śledzonych jednostek"+msgid "No bank accounts have been added yet."+msgstr "Brak dodanych kont bankowych."+msgid "No batches"msgstr "Brak partii produkcyjnych"msgid "No batches selected yet."-msgstr ""+msgstr "Żadne partie nie zostały jeszcze zaznaczone."msgid "No BOM input has a shelf-life policy"msgstr "Żadne wejście BOM nie ma polityki przydatności do spożycia"@@ -10978,6 +11029,9 @@ msgstr "Brak skonfigurowanych slotów wymiarów"msgid "No dimension values mapped yet"msgstr "Nie ma jeszcze zmapowanych wartości wymiarów"+msgid "No documents"+msgstr "Brak dokumentów"+msgid "No draft make method for this item yet."msgstr "Brak wersji roboczej metody produkcji dla tego artykułu."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "Nie znaleziono wyników"msgid "No returnable lines for this customer"-msgstr ""+msgstr "Brak pozycji do zwrotu dla tego klienta"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "Brak pozycji do zwrotu dla tego dostawcy"msgid "No returnable lines match your search"-msgstr ""+msgstr "Żadne pozycje do zwrotu nie pasują do Twojego wyszukiwania"msgid "No rows here."msgstr "Brak wierszy tutaj."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "Brak zaplanowanych prac w tym oknie czasowym"msgid "No serial numbers selected yet."-msgstr ""+msgstr "Żadne numery seryjne nie zostały jeszcze zaznaczone."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Brak skonfigurowanych zmian — założenie pon–pt, dni po 8 godz."@@ -11660,6 +11714,12 @@ msgstr "Edytowalne są tylko procedury w wersji roboczej. Utwórz nową wersję,msgid "Only empty, open periods can be deleted."msgstr "Usunięte mogą być tylko puste, otwarte okresy."+msgid "Only if it differs from the customer name"+msgstr "Tylko jeśli różni się od nazwy klienta"++msgid "Only if it differs from the supplier name"+msgstr "Tylko jeśli różni się od nazwy dostawcy"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Tylko wykwalifikowani pracownicy mogą być zaplanowani i uruchamiać ten proces"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "Wybierz numery seryjne/partie do zwrotu"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "Wybierz partie dostępne na magazynie, które zostały odebrane od tego dostawcy."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "Wybierz pojemnik, który potrzebuje zapasów, a następnie wybierz pojemniki, z których je pobrać."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "Wybierz numery seryjne dostępne na magazynie, które zostały odebrane od tego dostawcy."msgid "Pick tracked item"msgstr "Wybierz śledzony element"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "Ilość zakupu"msgid "Purchase Return"-msgstr ""+msgstr "Zwrot zakupu"msgid "Purchase Tax Payable"msgstr "Podatek od Zakupów do Zapłacenia (domyślnie)"@@ -14243,6 +14303,9 @@ msgstr "Zwraca:"msgid "Rev {revision}"msgstr "Wer. {revision}"+msgid "Reveal account number"+msgstr "Odsłoń numer konta"+msgid "Revenue"msgstr "Przychody ze sprzedaży"@@ -14431,6 +14494,9 @@ msgstr "Kieruj wszystkie faktury należności na jeden adres (np. siedzibę korpmsgid "Routing"msgstr "Marszruta"+msgid "Routing Number (ABA)"+msgstr "Numer routingu (ABA)"+msgid "rows"msgstr "wiersze"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "Pracownik sprzedaży"msgid "Sales Return"-msgstr ""+msgstr "Zwrot ze sprzedaży"msgid "Sales Revenue"msgstr "Przychód ze sprzedaży"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Szukaj po tytule problemu Linear..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "Szukaj po przyjęciu, PO lub artykule"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "Szukaj po wysyłce, zamówieniu sprzedaży lub artykule"msgid "Search customers and types..."msgstr "Wyszukaj klientów i typy..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "Wybierz operacje"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "Wybierz zaksięgowane pozycje przyjęcia od tego dostawcy do zwrotu."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "Wybierz zaksięgowane pozycje wysyłki do tego klienta do zwrotu."msgid "Select Printer"msgstr "Wybierz drukarkę"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "Przyjęte numery seryjne"msgid "Serial numbers to return"-msgstr ""+msgstr "Numery seryjne do zwrotu"msgid "Serial or Batch Tracking Required"msgstr "Wymagane śledzenie seryjne lub partyjne"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "Sesja zablokowana"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "Ustaw klienta w tym zwrocie, aby dodać z wysyłki."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "Ustaw dostawcę w tym zwrocie, aby dodać z przyjęcia."msgid "Set a target"msgstr "Ustaw cel"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "Pokaż kolumnę czytelnego identyfikatora dostawcy na liście dostawców, formularzach dostawcy i listach rozwijanych. Dostawcy są nadal identyfikowani wewnętrznie w każdym przypadku."msgid "Show available batch numbers"-msgstr ""+msgstr "Pokaż dostępne numery partii produkcyjnej"msgid "Show available tracking numbers"-msgstr ""+msgstr "Pokaż dostępne numery śledzenia"msgid "Show Customer IDs"msgstr "Pokaż identyfikatory klientów"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "Pokaż czasy trwania"msgid "Show more"-msgstr ""+msgstr "Pokaż więcej"msgid "Show one inventory number the floor and office both trust"msgstr "Wyświetl jeden numer inwentaryzacji, któremu ufają zarówno hala, jak i biuro"@@ -15841,6 +15907,9 @@ msgstr "Sortuj rosnąco"msgid "Sort by"msgstr "Sortuj według"+msgid "Sort Code"+msgstr "Kod sortowania"+msgid "Sort Descending"msgstr "Sortuj malejąco"@@ -16489,6 +16558,12 @@ msgstr "Powierzchnie"msgid "Suspected Failure Mode"msgstr "Podejrzewany tryb awarii"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Przełącz"@@ -16847,6 +16922,9 @@ msgstr "Kategoria, do której należy ten dostawca (surowiec, usługi, producentmsgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "Kod drukowany na karcie kanban, który operatorzy skanują, aby oznaczyć zadanie jako ukończone; generowany automatycznie, jeśli pozostawiony pusty."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "Kod identyfikujący bank na arenie międzynarodowej, 8 lub 11 znaków. Płatność międzynarodowa nie będzie routowana bez niego, natomiast przesunięcie krajowe zwykle podróżuje lokalnym kodem routingu zamiast tego."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "Oczekiwana dostępność pracownika zewnętrznego co tydzień; planowanie używa tego jako górnego limitu podczas przydzielania pracownika do operacji w ciągu tygodnia."@@ -18226,6 +18304,12 @@ msgstr "Przenieś własność tej firmy na innego użytkownika"msgid "Transfer To"msgstr "Przenieś do"+msgid "Transit"+msgstr "Tranzyt"++msgid "Transit & Institution"+msgstr "Tranzyt i Instytucja"+msgid "Trash"msgstr "Kosz"@@ -18921,6 +19005,9 @@ msgstr "Wyświetl historię"msgid "View in Academy"msgstr "Wyświetl w Academy"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "Wyświetl w planie projektu"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 08b89ae733..697fbcac2d 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} permissões"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} selecionados"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total} fases para colocar sua empresa ao vivo no Carbon. Cada uma termina em um checkpoint."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} fases para entrar em produção"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} resultados"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# unidade} other {# unidades}}"@@ -1009,6 +1009,9 @@ msgstr "Uma ferramenta é um item físico usado para fabricar uma peça que podemsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "Um usuário registra a validade em cada lote de produção ou serial quando as mercadorias são recebidas. Use quando fornecedores enviam lotes com datas de validade diferentes."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "habilidades"@@ -1082,6 +1085,9 @@ msgstr "Contabilizar o custo dos ativos fixos quando descartados."msgid "Account for the purchase cost of fixed assets"msgstr "Contabilizar o custo de aquisição de ativos fixos."+msgid "Account Holder"+msgstr "Titular da conta"+msgid "Account manager"msgstr "Gerenciador de conta"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "Adicionar da biblioteca…"msgid "Add from receipt"-msgstr ""+msgstr "Adicionar do recebimento"msgid "Add from shipment"-msgstr ""+msgstr "Adicionar da remessa"msgid "Add Group"msgstr "Adicionar Grupo"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "Adicionar linhas do documento"msgid "Add manually"-msgstr ""+msgstr "Adicionar manualmente"msgid "Add match"msgstr "Adicionar correspondência"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "Todos os membros dos grupos selecionados e indivíduos selecionados poderão aprovar solicitações"msgid "All returnable lines"-msgstr ""+msgstr "Todas as linhas devolvíveis"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "Todas as linhas importadas — {inserted} inseridas, {updated} atualizadas."@@ -1739,6 +1745,9 @@ msgstr "Uma solicitação https que o Carbon envia para um sistema seu quando ummsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Uma integração ou uma mudança personalizada — a pequena parte que é realmente personalizada."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "Um Número Internacional de Conta Bancária: uma string contendo o país, banco, agência e conta, com dois dígitos de verificação. Como já identifica o banco, países que o utilizam não precisam de um código de roteamento separado."+msgid "An invitation is pending. They become active once they accept it."msgstr "Um convite está pendente. Eles se tornam ativos assim que aceitarem."@@ -2358,6 +2367,9 @@ msgstr "Tem certeza de que deseja excluir o webhook: {0}? Isso não pode ser desmsgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "Tem certeza de que deseja excluir esta regra de aprovação? Isso não pode ser desfeito."+msgid "Are you sure you want to delete this bank account?"+msgstr "Tem certeza de que deseja excluir esta conta bancária?"+msgid "Are you sure you want to delete this change notice?"msgstr "Tem certeza de que deseja excluir este aviso de alteração?"@@ -2433,6 +2445,9 @@ msgstr "Tem certeza de que deseja excluir permanentemente {0}?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "Tem certeza de que deseja excluir permanentemente o processo do fornecedor?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "Tem certeza de que deseja excluir permanentemente esta conta bancária?"+msgid "Are you sure you want to post this receipt?"msgstr "Tem a certeza de que deseja publicar este recibo?"@@ -2828,9 +2843,21 @@ msgstr "Conta bancária denominada em moeda estrangeira."msgid "Bank account denominated in the local currency"msgstr "Conta bancária denominada na moeda local."+msgid "Bank Accounts"+msgstr "Contas bancárias"++msgid "Bank Address"+msgstr "Endereço do banco"+msgid "Bank and financial service charge expenses"msgstr "Despesas de taxas de serviços bancários e financeiros."+msgid "Bank Code"+msgstr "Código do banco"++msgid "Bank Name"+msgstr "Nome do banco"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "Os gráficos mostram o fluxo de cada semana: <0>suprimento</0> aumenta o inventário, <1>demanda</1> o reduz. A <2>linha</2> é seu inventário disponível projetado — quando cai abaixo do <3>estoque de segurança</3> você está em risco, e abaixo de zero é uma <4>ruptura de estoque</4>."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "Lotes"msgid "Batches to return"-msgstr ""+msgstr "Lotes de produção a devolver"msgid "Batching"msgstr "Lotes de Produção"@@ -3040,6 +3067,9 @@ msgstr "Procurar biblioteca"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Navegue pela versão publicada somente leitura. Você ainda pode reorganizar etapas para limpar o layout."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Bucket"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "Escolher outro arquivo"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "Escolha como adicionar linhas a esta devolução."msgid "Choose what appears on the printed job traveler."msgstr "Escolha o que aparece na ficha de acompanhamento impressa."@@ -6254,6 +6284,9 @@ msgstr "Editar Atributo"msgid "Edit Attribute Category"msgstr "Editar Categoria de Atributo"+msgid "Edit Bank Account"+msgstr "Editar conta bancária"+msgid "Edit Category"msgstr "Editar Categoria"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "Digite uma quantidade entre 1 e {0}."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "Digite um item e quantidade você mesmo."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "Insira e aprove faturas de fornecedores em relação a um pedido de compra (conciliação de três vias)"@@ -8182,6 +8215,9 @@ msgstr "Ajuda"msgid "Hide"msgstr "Ocultar"+msgid "Hide account number"+msgstr "Ocultar número da conta"+msgid "Hide raw"msgstr "Ocultar bruto"@@ -8407,6 +8443,9 @@ msgstr "Tenho uma base razoável para acreditar que este indivíduo é uma pessomsgid "I'm Still Working"msgstr "Ainda estou trabalhando"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "Id"@@ -8458,6 +8497,12 @@ msgstr "Se algo estiver fora do caminho"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "Se deseja alterar os números das peças, clique em Cancelar e atribua manualmente as peças para cada item de linha antes de converter."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "Código IFSC"+msgid "Ignore"msgstr "Ignorar"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "Linhas"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "As linhas aparecem aqui uma vez que um recebimento de pedido de compra tenha sido contabilizado, e apenas para quantidades não já autorizadas em outra devolução de fornecedor. Use Adicionar Item de Linha para uma devolução cega."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "As linhas aparecem aqui uma vez que uma remessa de pedido de venda tenha sido contabilizada, e apenas para quantidades não já autorizadas em outro RMA. Use Adicionar Item de Linha para uma devolução cega."msgid "Lines need internal part numbers"msgstr "As linhas precisam de números de peça internos"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "Bom dia, {name}."msgid "Most recent — search to find more"-msgstr ""+msgstr "Mais recentes — pesquisar para encontrar mais"msgid "Most things get caught and resolved here. Name it plainly."msgstr "A maioria das coisas é detectada e resolvida aqui. Nomeie-a claramente."@@ -10515,6 +10560,9 @@ msgstr "Novo Atributo"msgid "New Attribute Category"msgstr "Nova Categoria de Atributo"+msgid "New Bank Account"+msgstr "Nova conta bancária"+msgid "New Batch"msgstr "Novo Lote"@@ -10915,11 +10963,14 @@ msgstr "Nenhum filtro disponível"msgid "No available tracked entities found"msgstr "Nenhuma entidade rastreada disponível encontrada"+msgid "No bank accounts have been added yet."+msgstr "Nenhuma conta bancária foi adicionada ainda."+msgid "No batches"msgstr "Nenhum lote de produção"msgid "No batches selected yet."-msgstr ""+msgstr "Nenhum lote de produção selecionado ainda."msgid "No BOM input has a shelf-life policy"msgstr "Nenhuma entrada de BOM tem uma política de vida útil"@@ -10978,6 +11029,9 @@ msgstr "Nenhum slot de dimensão configurado"msgid "No dimension values mapped yet"msgstr "Nenhum valor de dimensão mapeado ainda"+msgid "No documents"+msgstr "Nenhum documento"+msgid "No draft make method for this item yet."msgstr "Nenhum método de fabricação de rascunho para este item ainda."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "Nenhum resultado encontrado"msgid "No returnable lines for this customer"-msgstr ""+msgstr "Nenhuma linha devolvível para este cliente"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "Nenhuma linha devolvível para este fornecedor"msgid "No returnable lines match your search"-msgstr ""+msgstr "Nenhuma linha devolvível corresponde à sua pesquisa"msgid "No rows here."msgstr "Nenhuma linha aqui."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "Nenhum trabalho programado nesta janela"msgid "No serial numbers selected yet."-msgstr ""+msgstr "Nenhum número de série selecionado ainda."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Nenhum turno configurado — assumindo segunda–sexta, dias de 8h"@@ -11660,6 +11714,12 @@ msgstr "Apenas os procedimentos em Rascunho são editáveis. Crie uma nova versmsgid "Only empty, open periods can be deleted."msgstr "Apenas períodos vazios e abertos podem ser deletados."+msgid "Only if it differs from the customer name"+msgstr "Somente se diferir do nome do cliente"++msgid "Only if it differs from the supplier name"+msgstr "Somente se diferir do nome do fornecedor"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Apenas funcionários qualificados podem ser agendados e executar este processo"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "Selecione números de série/lotes para devolver"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "Separe os lotes de produção disponíveis que foram recebidos deste fornecedor."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "Separe o compartimento que precisa de estoque, depois separe os compartimentos para puxar o estoque deles."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "Separe os números de série disponíveis que foram recebidos deste fornecedor."msgid "Pick tracked item"msgstr "Selecionar item rastreado"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "Qtd. de Compra"msgid "Purchase Return"-msgstr ""+msgstr "Devolução de compra"msgid "Purchase Tax Payable"msgstr "Imposto de Compra a Pagar (padrão)"@@ -14243,6 +14303,9 @@ msgstr "Retorna:"msgid "Rev {revision}"msgstr "Rev {revision}"+msgid "Reveal account number"+msgstr "Revelar número da conta"+msgid "Revenue"msgstr "Receita"@@ -14431,6 +14494,9 @@ msgstr "Encaminhe todas as faturas de contas a receber para um endereço (p.ex.msgid "Routing"msgstr "Roteiro de produção"+msgid "Routing Number (ABA)"+msgstr "Número de roteamento (ABA)"+msgid "rows"msgstr "linhas"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "Pessoa de Vendas"msgid "Sales Return"-msgstr ""+msgstr "Devolução de venda"msgid "Sales Revenue"msgstr "Receita de Vendas"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Pesquisar por título do problema Linear..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "Pesquisar por recebimento, pedido de compra ou item"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "Pesquisar por remessa, pedido de venda ou item"msgid "Search customers and types..."msgstr "Pesquisar clientes e tipos..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "Selecionar operações"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "Selecionar linhas de recebimento contabilizado deste fornecedor para devolver."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "Selecionar linhas de remessa contabilizada para este cliente para devolver."msgid "Select Printer"msgstr "Selecionar Impressora"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "Números de série recebidos"msgid "Serial numbers to return"-msgstr ""+msgstr "Números de série para devolver"msgid "Serial or Batch Tracking Required"msgstr "Rastreamento Serial ou em Lote Obrigatório"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "Sessão bloqueada"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "Defina um cliente nesta devolução para adicionar de uma remessa."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "Defina um fornecedor nesta devolução para adicionar de um recebimento."msgid "Set a target"msgstr "Defina uma meta"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "Mostrar uma coluna de ID de Fornecedor legível na lista de fornecedores, formulários de fornecedor e menus suspensos. Os fornecedores ainda são identificados internamente de qualquer forma."msgid "Show available batch numbers"-msgstr ""+msgstr "Mostrar números de lote de produção disponíveis"msgid "Show available tracking numbers"-msgstr ""+msgstr "Mostrar números de rastreamento disponíveis"msgid "Show Customer IDs"msgstr "Mostrar IDs de Cliente"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "Mostrar Durações"msgid "Show more"-msgstr ""+msgstr "Mostrar mais"msgid "Show one inventory number the floor and office both trust"msgstr "Mostrar um número de inventário que o chão de fábrica e o escritório confiam"@@ -15841,6 +15907,9 @@ msgstr "Ordenar Ascendente"msgid "Sort by"msgstr "Ordenar por"+msgid "Sort Code"+msgstr "Código de ordenação"+msgid "Sort Descending"msgstr "Ordenar Descendente"@@ -16489,6 +16558,12 @@ msgstr "Superfícies"msgid "Suspected Failure Mode"msgstr "Modo de Falha Suspeito"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Alternar"@@ -16847,6 +16922,9 @@ msgstr "A categoria a que este fornecedor pertence (matéria-prima, serviços, fmsgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "O código impresso no cartão kanban que os operadores escaneiam para marcar a ordem de produção como concluída; gerado automaticamente quando deixado em branco."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "O código que identifica um banco internacionalmente, com 8 ou 11 caracteres. Um pagamento transfronteiriço não será roteado sem ele, enquanto uma transferência doméstica geralmente usa o código de roteamento local em vez disso."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "A disponibilidade semanal esperada do terceirizado; o agendamento usa isso como o limite superior ao atribuir este terceirizado a operações ao longo da semana."@@ -18226,6 +18304,12 @@ msgstr "Transferir a propriedade desta empresa para outro usuário"msgid "Transfer To"msgstr "Transferir Para"+msgid "Transit"+msgstr "Trânsito"++msgid "Transit & Institution"+msgstr "Trânsito e Instituição"+msgid "Trash"msgstr "Lixo"@@ -18921,6 +19005,9 @@ msgstr "Ver Histórico"msgid "View in Academy"msgstr "Ver na Academia"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "Ver no plano do projeto"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 06fc7b454f..957e79ac26 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} прав доступа"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} выбрано"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total} этапов для запуска вашей организации на Carbon. Каждый завершается контрольной точкой."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} этапов до запуска"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} результатов"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# единица} other {# единиц}}"@@ -1009,6 +1009,9 @@ msgstr "Инструмент — это физический предмет, иmsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "Пользователь записывает срок годности для каждой серии при получении товара. Используется, когда поставщики отправляют партии с разными датами окончания срока годности."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "навыки"@@ -1082,6 +1085,9 @@ msgstr "Учесть себестоимость основного средстmsgid "Account for the purchase cost of fixed assets"msgstr "Учесть себестоимость приобретения основного средства"+msgid "Account Holder"+msgstr "Владелец счёта"+msgid "Account manager"msgstr "Менеджер счета"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "Добавить из библиотеки…"msgid "Add from receipt"-msgstr ""+msgstr "Добавить из поступления"msgid "Add from shipment"-msgstr ""+msgstr "Добавить из отгрузки"msgid "Add Group"msgstr "Добавить группу"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "Добавить строки из документа"msgid "Add manually"-msgstr ""+msgstr "Добавить вручную"msgid "Add match"msgstr "Добавить совпадение"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "Все члены выбранных групп и выбранные лица смогут утвердить запросы"msgid "All returnable lines"-msgstr ""+msgstr "Все возвратные строки"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "Все строки импортированы — {inserted} вставлено, {updated} обновлено."@@ -1739,6 +1745,9 @@ msgstr "HTTPS-запрос, который Carbon отправляет в вашmsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Интеграция или пользовательское изменение — небольшая часть, которая действительно является пользовательской."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "Международный номер банковского счёта: одна строка, содержащая страну, банк, отделение и счёт, с двумя контрольными цифрами. Поскольку он уже идентифицирует банк, страны, которые его используют, не нуждаются в отдельном коде маршрутизации."+msgid "An invitation is pending. They become active once they accept it."msgstr "Приглашение ожидает подтверждения. Они станут активными после его принятия."@@ -2358,6 +2367,9 @@ msgstr "Вы уверены, что хотите удалить вебхук: {0msgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "Вы уверены, что хотите удалить это правило утверждения? Это действие невозможно отменить."+msgid "Are you sure you want to delete this bank account?"+msgstr "Вы уверены, что хотите удалить этот банковский счёт?"+msgid "Are you sure you want to delete this change notice?"msgstr "Вы уверены, что хотите удалить это извещение об изменении?"@@ -2433,6 +2445,9 @@ msgstr "Вы уверены, что хотите окончательно удаmsgid "Are you sure you want to permanently delete the supplier process?"msgstr "Вы уверены, что хотите окончательно удалить процесс поставщика?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "Вы уверены, что хотите навсегда удалить этот банковский счёт?"+msgid "Are you sure you want to post this receipt?"msgstr "Вы уверены, что хотите провести этот приходный ордер?"@@ -2828,9 +2843,21 @@ msgstr "Банковский счет в иностранной валюте."msgid "Bank account denominated in the local currency"msgstr "Банковский счет в местной валюте."+msgid "Bank Accounts"+msgstr "Банковские счета"++msgid "Bank Address"+msgstr "Адрес банка"+msgid "Bank and financial service charge expenses"msgstr "Расходы банка и сервисного сбора финансовых услуг"+msgid "Bank Code"+msgstr "Банковский код"++msgid "Bank Name"+msgstr "Название банка"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "Столбцы показывают поток каждой недели: <0>обеспечение</0> увеличивает запасы, <1>потребность</1> снижает их. <2>Строка</2> — это ваши прогнозируемые запасы на складе — когда она падает ниже <3>страхового запаса</3>, вы в зоне риска, а ниже нуля — <4>дефицит</4>."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "Партии"msgid "Batches to return"-msgstr ""+msgstr "Серии для возврата"msgid "Batching"msgstr "Объединение в серии"@@ -3040,6 +3067,9 @@ msgstr "Обзор библиотеки"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Просмотрите опубликованную версию в режиме только для чтения. Вы все еще можете переставлять шаги для очистки макета."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Хранилище"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "Выбрать другой файл"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "Выберите, как добавить строки в этот возврат."msgid "Choose what appears on the printed job traveler."msgstr "Выбрать, что отображается на распечатанном маршрутном листе работы."@@ -6254,6 +6284,9 @@ msgstr "Изменить атрибут"msgid "Edit Attribute Category"msgstr "Изменить категорию атрибутов"+msgid "Edit Bank Account"+msgstr "Изменить банковский счёт"+msgid "Edit Category"msgstr "Изменить категорию"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "Введите количество от 1 до {0}."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "Введите номенклатуру и количество самостоятельно."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "Введите и утвердите счета от поставщиков по заказу на покупку (трехстороннее сопоставление)"@@ -8182,6 +8215,9 @@ msgstr "Справка"msgid "Hide"msgstr "Скрыть"+msgid "Hide account number"+msgstr "Скрыть номер счёта"+msgid "Hide raw"msgstr "Скрыть исходное"@@ -8407,6 +8443,9 @@ msgstr "У меня есть разумные основания полагатmsgid "I'm Still Working"msgstr "Я всё ещё работаю"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "ID"@@ -8458,6 +8497,12 @@ msgstr "Если что-то идет не по плану"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "Если вы хотите изменить номера деталей, нажмите Отмена и вручную назначьте детали для каждого элемента строки перед преобразованием."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "Код IFSC"+msgid "Ignore"msgstr "Игнорировать"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "Строки"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "Строки появляются здесь после проведения поступления от поставщика, и только для количеств, не авторизованных на другой возврат поставщику. Используйте функцию «Добавить строку» для слепого возврата."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "Строки появляются здесь после проведения отгрузки, и только для количеств, не авторизованных на другой RMA. Используйте функцию «Добавить строку» для слепого возврата."msgid "Lines need internal part numbers"msgstr "Строки требуют внутренние номера деталей"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "Доброе утро, {name}."msgid "Most recent — search to find more"-msgstr ""+msgstr "Последние — используйте поиск для поиска других"msgid "Most things get caught and resolved here. Name it plainly."msgstr "Большинство проблем выявляются и решаются здесь. Называйте их четко."@@ -10515,6 +10560,9 @@ msgstr "Новый атрибут"msgid "New Attribute Category"msgstr "Новая категория атрибутов"+msgid "New Bank Account"+msgstr "Новый банковский счёт"+msgid "New Batch"msgstr "Новый пакет"@@ -10915,11 +10963,14 @@ msgstr "Нет доступных фильтров"msgid "No available tracked entities found"msgstr "Не найдено доступных отслеживаемых объектов"+msgid "No bank accounts have been added yet."+msgstr "Банковские счета ещё не добавлены."+msgid "No batches"msgstr "Нет серий"msgid "No batches selected yet."-msgstr ""+msgstr "Серии ещё не выбраны."msgid "No BOM input has a shelf-life policy"msgstr "Ни один вход BOM не имеет политики срока хранения"@@ -10978,6 +11029,9 @@ msgstr "Слоты измерений не настроены"msgid "No dimension values mapped yet"msgstr "Значения измерений еще не сопоставлены"+msgid "No documents"+msgstr "Нет документов"+msgid "No draft make method for this item yet."msgstr "Пока нет чернового метода производства для этого элемента."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "Результатов не найдено"msgid "No returnable lines for this customer"-msgstr ""+msgstr "Нет возвратных строк для этого покупателя"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "Нет возвратных строк для этого поставщика"msgid "No returnable lines match your search"-msgstr ""+msgstr "Никакие возвратные строки не соответствуют вашему поиску"msgid "No rows here."msgstr "Нет строк здесь."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "Нет запланированной работы в этом окне"msgid "No serial numbers selected yet."-msgstr ""+msgstr "Серийные номера ещё не выбраны."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Смены не настроены — предполагается Пн–Пт, 8ч дни"@@ -11660,6 +11714,12 @@ msgstr "Редактировать можно только процедуры вmsgid "Only empty, open periods can be deleted."msgstr "Удалять можно только пустые открытые периоды."+msgid "Only if it differs from the customer name"+msgstr "Только если отличается от имени покупателя"++msgid "Only if it differs from the supplier name"+msgstr "Только если отличается от имени поставщика"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Только квалифицированные сотрудники могут быть запланированы и выполнить этот процесс"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "Выбрать серийные номера/партии для возврата"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "Отберите серии в наличии, полученные от этого поставщика."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "Выберите ячейку, которой нужен запас, затем выберите ячейки, из которых его извлечь."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "Отберите серийные номера в наличии, полученные от этого поставщика."msgid "Pick tracked item"msgstr "Выбрать отслеживаемый товар"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "Кол-во покупки"msgid "Purchase Return"-msgstr ""+msgstr "Возврат товара"msgid "Purchase Tax Payable"msgstr "Налог на покупку подлежащий уплате (по умолчанию)"@@ -14243,6 +14303,9 @@ msgstr "Возвращает:"msgid "Rev {revision}"msgstr "Ред. {revision}"+msgid "Reveal account number"+msgstr "Раскрыть номер счета"+msgid "Revenue"msgstr "Выручка"@@ -14431,6 +14494,9 @@ msgstr "Маршрутизируйте все счета-фактуры дебиmsgid "Routing"msgstr "Маршрут операций"+msgid "Routing Number (ABA)"+msgstr "Маршрутный номер (ABA)"+msgid "rows"msgstr "строк"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "Менеджер по продажам"msgid "Sales Return"-msgstr ""+msgstr "Возврат продажи"msgid "Sales Revenue"msgstr "Выручка от продаж"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Поиск по названию задачи Linear..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "Поиск по поступлению, ПО или номенклатуре"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "Поиск по отгрузке, заказу покупателя или номенклатуре"msgid "Search customers and types..."msgstr "Поиск покупателей и типов..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "Выберите операции"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "Выберите проведённые строки поступления от этого поставщика для возврата."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "Выберите проведённые строки отгрузки этому покупателю для возврата."msgid "Select Printer"msgstr "Выберите принтер"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "Принятые серийные номера"msgid "Serial numbers to return"-msgstr ""+msgstr "Серийные номера для возврата"msgid "Serial or Batch Tracking Required"msgstr "Требуется отслеживание по серийному номеру или партии"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "Сеанс заблокирован"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "Установите покупателя для этого возврата, чтобы добавить из отгрузки."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "Установите поставщика для этого возврата, чтобы добавить из поступления."msgid "Set a target"msgstr "Установить цель"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "Показать читаемый столбец ID поставщика в списке поставщиков, формах поставщиков и раскрывающихся списках. Поставщики по-прежнему идентифицируются внутри системы в любом случае."msgid "Show available batch numbers"-msgstr ""+msgstr "Показать доступные номера серии"msgid "Show available tracking numbers"-msgstr ""+msgstr "Показать доступные номера отслеживания"msgid "Show Customer IDs"msgstr "Показывать ID Покупателей"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "Показать длительность"msgid "Show more"-msgstr ""+msgstr "Показать ещё"msgid "Show one inventory number the floor and office both trust"msgstr "Показать один номер инвентаря, которому доверяют и цех, и офис"@@ -15841,6 +15907,9 @@ msgstr "Сортировать по возрастанию"msgid "Sort by"msgstr "Сортировать по"+msgid "Sort Code"+msgstr "Сортировочный код"+msgid "Sort Descending"msgstr "Сортировка по убыванию"@@ -16489,6 +16558,12 @@ msgstr "Поверхности"msgid "Suspected Failure Mode"msgstr "Предполагаемый режим отказа"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Переключить"@@ -16847,6 +16922,9 @@ msgstr "Категория, к которой принадлежит этот пmsgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "Код, напечатанный на карточке канбан, который операторы сканируют, чтобы отметить производственный заказ завершенным; автоматически генерируется, если оставить пустым."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "Код, идентифицирующий банк на международном уровне, 8 или 11 символов. Международный платеж не будет маршрутизирован без него, тогда как внутренний денежный перевод обычно проходит по местному маршрутному коду."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "Ожидаемая еженедельная доступность подрядчика; планирование использует это как верхний предел при назначении подрядчика операциям в течение недели."@@ -18226,6 +18304,12 @@ msgstr "Передайте право собственности на эту оmsgid "Transfer To"msgstr "Передать в"+msgid "Transit"+msgstr "Транзит"++msgid "Transit & Institution"+msgstr "Транзит и учреждение"+msgid "Trash"msgstr "Корзина"@@ -18921,6 +19005,9 @@ msgstr "Просмотр истории"msgid "View in Academy"msgstr "Просмотреть в Academy"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "Просмотреть в плане проекта"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 7784693bfd..0ddfdfe123 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} izinleri"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} seçildi"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total} aşama şirketinizi Carbon'da canlı hale getirmek için. Her biri bir kontrol noktasında sona erer."@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total} aşama canlı yayına alınacak"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} sonuç"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# birim} other {# birimler}}"@@ -1009,6 +1009,9 @@ msgstr "Takım, birden fazla iş emri arasında kullanılabilen bir parça yapmamsgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "Kullanıcı, mallar alındığında her parti veya seri için son kullanma tarihini kaydeder. Tedarikçiler farklı son kullanma tarihlerine sahip partiler gönderdiğinde kullanılır."+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "yetkinlikler"@@ -1082,6 +1085,9 @@ msgstr "Elden çıkarıldığında sabit kıymetlerin maliyetini hesaba kat"msgid "Account for the purchase cost of fixed assets"msgstr "Sabit kıymetlerin satın alma maliyetini hesaba kat"+msgid "Account Holder"+msgstr "Hesap Sahibi"+msgid "Account manager"msgstr "Hesap yöneticisi"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "Kütüphaneden ekle…"msgid "Add from receipt"-msgstr ""+msgstr "Mal kabulünden ekle"msgid "Add from shipment"-msgstr ""+msgstr "Sevkiyattan ekle"msgid "Add Group"msgstr "Grup Ekle"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "Belgeden satır ekle"msgid "Add manually"-msgstr ""+msgstr "Manuel olarak ekle"msgid "Add match"msgstr "Eşleştirme ekle"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "Seçilen gruplardaki ve bireylerdeki tüm üyeler talepleri onaylayabilecektir"msgid "All returnable lines"-msgstr ""+msgstr "Tüm iade edilebilir satırlar"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "{inserted} eklendi, {updated} güncellendi — tüm satırlar içe aktarıldı."@@ -1739,6 +1745,9 @@ msgstr "Bir iş akışı bu adıma ulaştığında Carbon'un sisteminize göndermsgid "An integration or a custom change — the small slice that's actually custom."msgstr "Bir entegrasyon veya özel bir değişiklik — aslında özel olan küçük dilim."+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "Uluslararası Banka Hesap Numarası: ülke, banka, şube ve hesabı tutan bir dize, iki kontrol basamağı ile. Zaten bankayı tanımladığından, kullandığı ülkelerin ayrı bir yönlendirme kodu gerekmez."+msgid "An invitation is pending. They become active once they accept it."msgstr "Bir davet beklemede. Kabul ettikleri zaman aktif hale gelirler."@@ -2358,6 +2367,9 @@ msgstr "Webhook'u silmek istediğinizden emin misiniz: {0}? Bu geri alınamaz."msgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "Bu onay kuralını silmek istediğinizden emin misiniz? Bu geri alınamaz."+msgid "Are you sure you want to delete this bank account?"+msgstr "Bu banka hesabını silmek istediğinizden emin misiniz?"+msgid "Are you sure you want to delete this change notice?"msgstr "Bu değişiklik bildirisini silmek istediğinizden emin misiniz?"@@ -2433,6 +2445,9 @@ msgstr "{0} öğesini kalıcı olarak silmek istediğinizden emin misiniz?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "Tedarikçi prosesini kalıcı olarak silmek istediğinizden emin misiniz?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "Bu banka hesabını kalıcı olarak silmek istediğinizden emin misiniz?"+msgid "Are you sure you want to post this receipt?"msgstr "Bu makbuzu yayınlamak istediğinizden emin misiniz?"@@ -2828,9 +2843,21 @@ msgstr "Yabancı para biriminde yapılandırılmış banka hesabı"msgid "Bank account denominated in the local currency"msgstr "Yerel para biriminde yapılandırılmış banka hesabı"+msgid "Bank Accounts"+msgstr "Banka Hesapları"++msgid "Bank Address"+msgstr "Banka Adresi"+msgid "Bank and financial service charge expenses"msgstr "Banka ve mali hizmet bedeli giderleri"+msgid "Bank Code"+msgstr "Banka Kodu"++msgid "Bank Name"+msgstr "Banka Adı"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "Çubuklar her haftanın akışını gösterir: <0>arz</0> envanteri yukarı iter, <1>talep</1> onu aşağı çeker. <2>Satır</2> tahmini eldeki envanterdir — <3>emniyet stoku</3> altına düştüğünde risk altındasın ve sıfırın altı bir <4>stoksuzluk</4>."@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "Partiler"msgid "Batches to return"-msgstr ""+msgstr "İade edilecek partiler"msgid "Batching"msgstr "Partileme"@@ -3040,6 +3067,9 @@ msgstr "Kütüphaneyi göz at"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "Yayınlanan sürümü salt okunur şekilde inceleyin. Düzeni düzenlemek için adımları yine de yeniden düzenleyebilirsiniz."+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "Kova"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "Başka bir dosya seç"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "Bu iade için satırları nasıl ekleyeceğinizi seçin."msgid "Choose what appears on the printed job traveler."msgstr "Yazdırılan İş takip kartında neyin görüneceğini seçin."@@ -6254,6 +6284,9 @@ msgstr "Özniteliği Düzenle"msgid "Edit Attribute Category"msgstr "Öznitelik Kategorisini Düzenle"+msgid "Edit Bank Account"+msgstr "Banka Hesabını Düzenle"+msgid "Edit Category"msgstr "Kategoriyi Düzenle"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "1 ile {0} arasında bir miktar girin."msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "Bir stok kartı ve miktar kendiniz girin."msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "Bir satın alma siparişine (PO) karşı satıcı faturalarını girin ve onaylayın (üçlü eşleştirme)"@@ -8182,6 +8215,9 @@ msgstr "Yardım"msgid "Hide"msgstr "Gizle"+msgid "Hide account number"+msgstr "Hesap numarasını gizle"+msgid "Hide raw"msgstr "Ham verileri gizle"@@ -8407,6 +8443,9 @@ msgstr "Bu kişinin 22 CFR 120.62'de tanımlanan şekilde ABD vatandaşı olduğmsgid "I'm Still Working"msgstr "Hala Çalışıyorum"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "Id"@@ -8458,6 +8497,12 @@ msgstr "Bir şey yolunda değilse"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "Parça numaralarını değiştirmek isterseniz, lütfen iptal'e tıklayın ve dönüştürmeden önce her bir satır öğesi için parçaları manuel olarak atayın."+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "IFSC Kodu"+msgid "Ignore"msgstr "Yoksay"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "Satırlar"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "Satırlar, bir satın alma siparişi mal kabul muhasebeleştirildiğinde burada görünür ve yalnızca başka bir tedarikçi iadesi üzerinde zaten yetkilendirilmemiş miktarlar için. Kör iade için satırı ekle kullanın."msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "Satırlar, bir satış siparişi sevkiyatı muhasebeleştirildiğinde burada görünür ve yalnızca başka bir RMA üzerinde zaten yetkilendirilmemiş miktarlar için. Kör iade için satırı ekle kullanın."msgid "Lines need internal part numbers"msgstr "Satırlar dahili parça numaralarına ihtiyaç duyuyor"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "Sabah, {name}."msgid "Most recent — search to find more"-msgstr ""+msgstr "En son — daha fazlasını bulmak için ara"msgid "Most things get caught and resolved here. Name it plainly."msgstr "Çoğu şey burada yakalanır ve çözülür. Açıkça adlandırın."@@ -10515,6 +10560,9 @@ msgstr "Yeni Öznitelik"msgid "New Attribute Category"msgstr "Yeni Öznitelik Kategorisi"+msgid "New Bank Account"+msgstr "Yeni Banka Hesabı"+msgid "New Batch"msgstr "Yeni Toplu İş"@@ -10915,11 +10963,14 @@ msgstr "Kullanılabilir filtre yok"msgid "No available tracked entities found"msgstr "Kullanılabilir izlenen varlık bulunamadı"+msgid "No bank accounts have been added yet."+msgstr "Henüz hiçbir banka hesabı eklenmemiştir."+msgid "No batches"msgstr "Parti yok"msgid "No batches selected yet."-msgstr ""+msgstr "Henüz hiçbir parti seçilmemiştir."msgid "No BOM input has a shelf-life policy"msgstr "Hiçbir BOM girdisi raf ömrü politikasına sahip değil"@@ -10978,6 +11029,9 @@ msgstr "Yapılandırılmış boyut yuvası yok"msgid "No dimension values mapped yet"msgstr "Henüz hiçbir boyut değeri eşlenmedi"+msgid "No documents"+msgstr "Belge yok"+msgid "No draft make method for this item yet."msgstr "Bu stok kartı için henüz taslak üretim yöntemi yok."@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "Sonuç bulunamadı"msgid "No returnable lines for this customer"-msgstr ""+msgstr "Bu müşteri için iade edilebilir satır yok"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "Bu tedarikçi için iade edilebilir satır yok"msgid "No returnable lines match your search"-msgstr ""+msgstr "Aramanızla eşleşen iade edilebilir satır yok"msgid "No rows here."msgstr "Burada satır yok."@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "Bu zaman penceresinde planlanmış iş yok"msgid "No serial numbers selected yet."-msgstr ""+msgstr "Henüz hiçbir seri numarası seçilmemiştir."msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "Vardiya yapılandırılmadı — Pzt–Cum, 8s günler varsayılıyor"@@ -11660,6 +11714,12 @@ msgstr "Yalnızca Taslak prosedürler düzenlenebilir. Aktif veya Arşivlenmişmsgid "Only empty, open periods can be deleted."msgstr "Yalnızca boş, açık dönemler silinebilir."+msgid "Only if it differs from the customer name"+msgstr "Yalnızca müşteri adından farklıysa"++msgid "Only if it differs from the supplier name"+msgstr "Yalnızca tedarikçi adından farklıysa"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "Yalnızca nitelikli çalışanlar bu işlem için planlanabilir ve çalıştırılabilir"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "İade edilecek seri numaraları/partileri seç"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "Bu tedarikçiden alınan eldeki partileri seçin."msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "Stok ihtiyacı olan gözü seçin, ardından stoku çekeceğiniz gözleri seçin."msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "Bu tedarikçiden alınan eldeki seri numaralarını seçin."msgid "Pick tracked item"msgstr "Takip edilen öğeyi seç"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "Satın Alma Miktarı"msgid "Purchase Return"-msgstr ""+msgstr "Satın alma iadesi"msgid "Purchase Tax Payable"msgstr "Satın Alma Vergisi Ödenecek (varsayılan)"@@ -14243,6 +14303,9 @@ msgstr "Döndürür:"msgid "Rev {revision}"msgstr "Sürüm {revision}"+msgid "Reveal account number"+msgstr "Hesap numarasını göster"+msgid "Revenue"msgstr "Hasılat"@@ -14431,6 +14494,9 @@ msgstr "Tüm Alacak hesapları faturalarını tek bir adrese (örneğin kurumsalmsgid "Routing"msgstr "Operasyon rotası"+msgid "Routing Number (ABA)"+msgstr "Yönlendirme numarası (ABA)"+msgid "rows"msgstr "satırlar"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "Satış Temsilcisi"msgid "Sales Return"-msgstr ""+msgstr "Satış İadesi"msgid "Sales Revenue"msgstr "Satış Hasılat"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "Linear sorunu başlığı ile ara..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "Mal kabul, satın alma siparişi veya stok kartı ile ara"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "Sevkiyat, satış siparişi veya stok kartı ile ara"msgid "Search customers and types..."msgstr "Müşterileri ve türleri ara..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "Operasyon seç"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "Bu tedarikçiden muhasebeleştirilmiş mal kabul satırlarını iade etmek için seçin."msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "Bu müşteriye muhasebeleştirilmiş sevkiyat satırlarını iade etmek için seçin."msgid "Select Printer"msgstr "Yazıcı Seçin"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "Teslim alınan seri numaraları"msgid "Serial numbers to return"-msgstr ""+msgstr "İade edilecek seri numaraları"msgid "Serial or Batch Tracking Required"msgstr "Seri veya Parti Takibi Gerekli"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "Oturum Kilitli"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "Sevkiyattan eklemek için bu iade kaydında bir müşteri belirleyin."msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "Mal kabulünden eklemek için bu iade kaydında bir tedarikçi belirleyin."msgid "Set a target"msgstr "Hedef belirle"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "Tedarikçi listesinde, tedarikçi formlarında ve açılır menülerde okunabilir bir Tedarikçi Kimliği sütunu gösterir. Tedarikçiler her iki durumda da dahili olarak tanımlanmaya devam eder."msgid "Show available batch numbers"-msgstr ""+msgstr "Kullanılabilir parti numaralarını göster"msgid "Show available tracking numbers"-msgstr ""+msgstr "Kullanılabilir izleme numaralarını göster"msgid "Show Customer IDs"msgstr "Müşteri Kimliklerini Göster"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "Süreleri Göster"msgid "Show more"-msgstr ""+msgstr "Daha fazla göster"msgid "Show one inventory number the floor and office both trust"msgstr "Tüm tarafların güvendiği tek bir envanter numarası göster"@@ -15841,6 +15907,9 @@ msgstr "Artan Sırala"msgid "Sort by"msgstr "Sırala"+msgid "Sort Code"+msgstr "Sıralama kodu"+msgid "Sort Descending"msgstr "Azalan Sıra"@@ -16489,6 +16558,12 @@ msgstr "Yüzeyler"msgid "Suspected Failure Mode"msgstr "Şüpheli Arıza Modu"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "Değiştir"@@ -16847,6 +16922,9 @@ msgstr "Bu tedarikçinin ait olduğu kategori (hammadde, hizmetler, sözleşmelimsgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "Operatörlerin işi tamamlandı olarak işaretlemek için taradığı kanban kartına basılan kod; boş bırakılırsa otomatik olarak oluşturulur."+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "Bir bankayı uluslararası olarak tanımlayan kod, 8 veya 11 karakter. Sınırlar arası bir ödeme bunu olmadan yönlendirilmeyecek, ancak yurtiçi havale genellikle yerel yönlendirme kodu yerine hareket eder."+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "Taşeronun beklenen haftalık kullanılabilirliği; planlama bu taşeronun haftasındaki operasyonlara atanırken bunu üst sınır olarak kullanır."@@ -18226,6 +18304,12 @@ msgstr "Bu şirketin sahipliğini başka bir kullanıcıya aktarın"msgid "Transfer To"msgstr "Aktarılacak Lokasyon"+msgid "Transit"+msgstr "Geçiş"++msgid "Transit & Institution"+msgstr "Geçiş ve Kurum"+msgid "Trash"msgstr "Çöp Kutusu"@@ -18921,6 +19005,9 @@ msgstr "Geçmişi Görüntüle"msgid "View in Academy"msgstr "Akademi'de Görüntüle"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "Proje planında görüntüle"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 044bd30840..a0237676fa 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -353,7 +353,7 @@ msgid "{scopeCount} permissions"msgstr "{scopeCount} 个权限"msgid "{selectedCount} selected"-msgstr ""+msgstr "{selectedCount} 已选择"msgid "{total} phases to get your company live on Carbon. Each one ends at a checkpoint."msgstr "{total}个阶段使贵公司在Carbon中正式启用。每个阶段都在一个检查点处结束。"@@ -362,7 +362,7 @@ msgid "{total} phases to go live"msgstr "{total}个阶段即可正式运行"msgid "{totalCount} results"-msgstr ""+msgstr "{totalCount} 个结果"msgid "{totalQuantity, plural, one {# unit} other {# units}}"msgstr "{totalQuantity, plural, one {# 件} other {# 件}}"@@ -1009,6 +1009,9 @@ msgstr "刀具是用于制造零件的物理物料,可在多个工单中使用msgid "A user records the expiry date on each batch or serial when the goods are received. Use when suppliers ship lots with different expiry dates."msgstr "用户在收货时记录每个生产批次或序列号的有效期。当供应商发运具有不同有效期的批次时使用。"+msgid "ABA"+msgstr "ABA"+msgid "abilities"msgstr "技能"@@ -1082,6 +1085,9 @@ msgstr "处置固定资产时计入其成本"msgid "Account for the purchase cost of fixed assets"msgstr "固定资产的收购成本计账。"+msgid "Account Holder"+msgstr "账户持有人"+msgid "Account manager"msgstr "账户经理"@@ -1357,10 +1363,10 @@ msgid "Add from library…"msgstr "从库中添加…"msgid "Add from receipt"-msgstr ""+msgstr "从收货中添加"msgid "Add from shipment"-msgstr ""+msgstr "从发货中添加"msgid "Add Group"msgstr "添加组"@@ -1384,7 +1390,7 @@ msgid "Add lines from document"msgstr "从文档添加行"msgid "Add manually"-msgstr ""+msgstr "手动添加"msgid "Add match"msgstr "添加匹配"@@ -1640,7 +1646,7 @@ msgid "All members of selected groups and selected individuals will be able to amsgstr "所选组的所有成员和所选个人都将能够审批请求"msgid "All returnable lines"-msgstr ""+msgstr "所有可退货的行"msgid "All rows imported — {inserted} inserted, {updated} updated."msgstr "所有行已导入—{inserted}行插入,{updated}行更新。"@@ -1739,6 +1745,9 @@ msgstr "当工作流到达该步骤时,Carbon向您的系统发送的HTTPS请msgid "An integration or a custom change — the small slice that's actually custom."msgstr "一个集成或自定义更改——实际上是自定义的小部分。"+msgid "An International Bank Account Number: one string holding the country, bank, branch, and account, with two check digits. Because it already identifies the bank, countries that use it need no separate routing code."+msgstr "国际银行账户号码:包含国家、银行、支行和账户的一串数字,附加两位校验位。因为它已经标识银行,使用它的国家不需要单独的路由代码。"+msgid "An invitation is pending. They become active once they accept it."msgstr "邀请待处理。他们接受后就会启用"@@ -2358,6 +2367,9 @@ msgstr "您确定要删除webhook: {0}吗?此操作无法撤销。"msgid "Are you sure you want to delete this approval rule? This cannot be undone."msgstr "你确定要删除此审批规则吗?此操作无法撤销。"+msgid "Are you sure you want to delete this bank account?"+msgstr "您确定要删除此银行账户吗?"+msgid "Are you sure you want to delete this change notice?"msgstr "确定要删除此变更通知吗?"@@ -2433,6 +2445,9 @@ msgstr "您确定要永久删除 {0} 吗?"msgid "Are you sure you want to permanently delete the supplier process?"msgstr "确定要永久删除供应商工艺吗?"+msgid "Are you sure you want to permanently delete this bank account?"+msgstr "您确定要永久删除此银行账户吗?"+msgid "Are you sure you want to post this receipt?"msgstr "你确定要过账此收据吗?"@@ -2828,9 +2843,21 @@ msgstr "以外币计价的银行账户"msgid "Bank account denominated in the local currency"msgstr "以本地货币计价的银行账户。"+msgid "Bank Accounts"+msgstr "银行账户"++msgid "Bank Address"+msgstr "银行地址"+msgid "Bank and financial service charge expenses"msgstr "银行和金融服务费用。"+msgid "Bank Code"+msgstr "银行代码"++msgid "Bank Name"+msgstr "银行名称"+msgid "Bars show each week's flow: <0>supply</0> pushes inventory up, <1>demand</1> pulls it down. The <2>line</2> is your projected on-hand inventory — when it dips below <3>safety stock</3> you're at risk, and below zero is a <4>stockout</4>."msgstr "柱状图显示每周的流向:<0>供应</0>推高库存,<1>需求</1>拉低库存。<2>线</2>表示您的预计现有库存 — 当它跌破<3>安全库存</3>时,您面临风险;跌破零则是<4>缺货</4>。"@@ -2895,7 +2922,7 @@ msgid "Batches"msgstr "批次"msgid "Batches to return"-msgstr ""+msgstr "待退货的生产批次"msgid "Batching"msgstr "分批"@@ -3040,6 +3067,9 @@ msgstr "浏览库"msgid "Browse the published version read-only. You can still rearrange steps to tidy the layout."msgstr "浏览已发布版本(只读)。您仍然可以重新排列步骤来整理布局。"+msgid "BSB"+msgstr "BSB"+msgid "Bucket"msgstr "存储桶"@@ -3518,7 +3548,7 @@ msgid "Choose another file"msgstr "选择另一个文件"msgid "Choose how to add lines to this return."-msgstr ""+msgstr "选择如何向此退货添加行。"msgid "Choose what appears on the printed job traveler."msgstr "选择打印工单流转卡上显示的内容。"@@ -6254,6 +6284,9 @@ msgstr "编辑属性"msgid "Edit Attribute Category"msgstr "编辑属性类别"+msgid "Edit Bank Account"+msgstr "编辑银行账户"+msgid "Edit Category"msgstr "编辑分类"@@ -6716,7 +6749,7 @@ msgid "Enter a quantity between 1 and {0}."msgstr "请输入 1 至 {0} 之间的数量。"msgid "Enter an item and quantity yourself."-msgstr ""+msgstr "自己输入物料和数量。"msgid "Enter and approve vendor bills against a PO (three-way match)"msgstr "输入和审批供应商账单与采购单进行三单匹配"@@ -8182,6 +8215,9 @@ msgstr "帮助"msgid "Hide"msgstr "隐藏"+msgid "Hide account number"+msgstr "隐藏账户号码"+msgid "Hide raw"msgstr "隐藏原始内容"@@ -8407,6 +8443,9 @@ msgstr "我有合理的理由相信该个人是根据 22 CFR 120.62 定义的美msgid "I'm Still Working"msgstr "我仍在工作"+msgid "IBAN"+msgstr "IBAN"+msgid "Id"msgstr "ID"@@ -8458,6 +8497,12 @@ msgstr "如果有什么偏离轨道"msgid "If you wish to change the part numbers, please click Cancel and manually assign the parts for each line item before converting."msgstr "如果您希望更改零件号,请点击\"取消\"并在转换前为每个行项目手动分配零件。"+msgid "IFSC"+msgstr "IFSC"++msgid "IFSC Code"+msgstr "IFSC代码"+msgid "Ignore"msgstr "忽略"@@ -9492,10 +9537,10 @@ msgid "Lines"msgstr "行"msgid "Lines appear here once a purchase order receipt has been posted, and only for quantities not already authorized on another supplier return. Use Add Line Item for a blind return."-msgstr ""+msgstr "采购订单收货已过账后,行将显示在此处,仅适用于尚未在另一个供应商退货中授权的数量。对于盲目退货,请使用添加行项目。"msgid "Lines appear here once a sales order shipment has been posted, and only for quantities not already authorized on another RMA. Use Add Line Item for a blind return."-msgstr ""+msgstr "销售订单发货已过账后,行将显示在此处,仅适用于尚未在另一个RMA中授权的数量。对于盲目退货,请使用添加行项目。"msgid "Lines need internal part numbers"msgstr "行需要内部零件号"@@ -10349,7 +10394,7 @@ msgid "Morning, {name}."msgstr "早上,{name}。"msgid "Most recent — search to find more"-msgstr ""+msgstr "最近 — 搜索查找更多"msgid "Most things get caught and resolved here. Name it plainly."msgstr "大多数问题在这里都会被发现和解决。直言不讳地说出来。"@@ -10515,6 +10560,9 @@ msgstr "新属性"msgid "New Attribute Category"msgstr "新属性类别"+msgid "New Bank Account"+msgstr "新银行账户"+msgid "New Batch"msgstr "新批次"@@ -10915,11 +10963,14 @@ msgstr "没有可用的筛选器"msgid "No available tracked entities found"msgstr "未找到可用的追踪实体"+msgid "No bank accounts have been added yet."+msgstr "尚未添加银行账户。"+msgid "No batches"msgstr "无生产批次"msgid "No batches selected yet."-msgstr ""+msgstr "尚未选择生产批次。"msgid "No BOM input has a shelf-life policy"msgstr "没有 BOM 输入具有保质期策略"@@ -10978,6 +11029,9 @@ msgstr "未配置维度插槽"msgid "No dimension values mapped yet"msgstr "尚未映射维度值"+msgid "No documents"+msgstr "没有文档"+msgid "No draft make method for this item yet."msgstr "此项目还没有草稿制造方法。"@@ -11252,13 +11306,13 @@ msgid "No results found"msgstr "未找到结果"msgid "No returnable lines for this customer"-msgstr ""+msgstr "此客户没有可退货的行"msgid "No returnable lines for this supplier"-msgstr ""+msgstr "此供应商没有可退货的行"msgid "No returnable lines match your search"-msgstr ""+msgstr "没有可退货的行与您的搜索匹配"msgid "No rows here."msgstr "这里没有行。"@@ -11270,7 +11324,7 @@ msgid "No scheduled work in this window"msgstr "此时间窗内无排程工作"msgid "No serial numbers selected yet."-msgstr ""+msgstr "尚未选择序列号。"msgid "No shifts configured — assuming Mon–Fri, 8h days"msgstr "未配置班次——假定周一至周五,每天8小时"@@ -11660,6 +11714,12 @@ msgstr "仅草稿程序文件可编辑。创建新版本以更改启用或已归msgid "Only empty, open periods can be deleted."msgstr "仅可删除空的、未结会计期间。"+msgid "Only if it differs from the customer name"+msgstr "仅当与客户名称不同时"++msgid "Only if it differs from the supplier name"+msgstr "仅当与供应商名称不同时"+msgid "Only qualified employees can be scheduled for and run this process"msgstr "只有合格的员工才能被安排和运行此流程"@@ -12442,13 +12502,13 @@ msgid "Pick serials/batches to return"msgstr "选择要退货的序列号/批次"msgid "Pick the batches on hand that were received from this supplier."-msgstr ""+msgstr "从此供应商收到的现有生产批次中拣货。"msgid "Pick the bin that needs stock, then pick the bins to pull it from."msgstr "选择需要库存的料箱,然后选择要从中拣货的料箱。"msgid "Pick the serial numbers on hand that were received from this supplier."-msgstr ""+msgstr "从此供应商收到的现有序列号中拣货。"msgid "Pick tracked item"msgstr "拣货追踪物料"@@ -13136,7 +13196,7 @@ msgid "Purchase Qty"msgstr "采购数量"msgid "Purchase Return"-msgstr ""+msgstr "采购退货"msgid "Purchase Tax Payable"msgstr "应付采购税(默认)"@@ -14243,6 +14303,9 @@ msgstr "返回:"msgid "Rev {revision}"msgstr "修订版 {revision}"+msgid "Reveal account number"+msgstr "显示账户号码"+msgid "Revenue"msgstr "收入"@@ -14431,6 +14494,9 @@ msgstr "将所有应收账款发票路由到一个地址(例如公司总部)msgid "Routing"msgstr "工艺路线"+msgid "Routing Number (ABA)"+msgstr "ABA路由号码"+msgid "rows"msgstr "行"@@ -14637,7 +14703,7 @@ msgid "Sales Person"msgstr "销售人员"msgid "Sales Return"-msgstr ""+msgstr "销售退货"msgid "Sales Revenue"msgstr "销售收入"@@ -14884,10 +14950,10 @@ msgid "Search by linear issue title..."msgstr "按线性问题标题搜索..."msgid "Search by receipt, PO, or item"-msgstr ""+msgstr "按收货、PO或物料搜索"msgid "Search by shipment, sales order, or item"-msgstr ""+msgstr "按发货、销售订单或物料搜索"msgid "Search customers and types..."msgstr "搜索客户和类型..."@@ -15134,10 +15200,10 @@ msgid "Select operations"msgstr "选择工序"msgid "Select posted receipt lines from this supplier to return."-msgstr ""+msgstr "从该供应商的已过账收货行中选择要退货的"msgid "Select posted shipment lines to this customer to return."-msgstr ""+msgstr "从该客户的已过账发货行中选择要退货的"msgid "Select Printer"msgstr "选择打印机"@@ -15276,7 +15342,7 @@ msgid "Serial numbers received"msgstr "已接收的序列号"msgid "Serial numbers to return"-msgstr ""+msgstr "要退货的序列号"msgid "Serial or Batch Tracking Required"msgstr "序列号或批次跟踪必需"@@ -15333,10 +15399,10 @@ msgid "Session locked"msgstr "会话已锁定"msgid "Set a customer on this return to add from a shipment."-msgstr ""+msgstr "为此退货指定客户以从其发货中添加"msgid "Set a supplier on this return to add from a receipt."-msgstr ""+msgstr "为此退货指定供应商以从其收货中添加"msgid "Set a target"msgstr "设置目标"@@ -15639,10 +15705,10 @@ msgid "Show a readable Supplier ID column on the supplier list, supplier forms,msgstr "在供应商列表、供应商表单和下拉菜单上显示可读的供应商 ID 列。无论哪种方式,供应商在内部仍然可以被识别。"msgid "Show available batch numbers"-msgstr ""+msgstr "显示可用的生产批次号"msgid "Show available tracking numbers"-msgstr ""+msgstr "显示可用的跟踪号码"msgid "Show Customer IDs"msgstr "显示客户ID"@@ -15651,7 +15717,7 @@ msgid "Show Durations"msgstr "显示时长"msgid "Show more"-msgstr ""+msgstr "显示更多"msgid "Show one inventory number the floor and office both trust"msgstr "显示一个楼层和办公室都信任的库存数字"@@ -15841,6 +15907,9 @@ msgstr "升序排列"msgid "Sort by"msgstr "按排序"+msgid "Sort Code"+msgstr "分行号"+msgid "Sort Descending"msgstr "按降序排序"@@ -16489,6 +16558,12 @@ msgstr "表面"msgid "Suspected Failure Mode"msgstr "疑似故障模式"+msgid "SWIFT"+msgstr "SWIFT"++msgid "SWIFT / BIC"+msgstr "SWIFT / BIC"+msgid "Switch"msgstr "切换"@@ -16847,6 +16922,9 @@ msgstr "此供应商所属的类别(原材料、服务、合同制造商);msgid "The code printed on the kanban card that operators scan to mark the job complete; auto-generated when left blank."msgstr "打印在看板卡上的代码,操作员扫码以标记工单完成;留空时自动生成。"+msgid "The code that identifies a bank internationally, 8 or 11 characters. A cross-border payment will not route without it, while a domestic transfer usually travels on the local routing code instead."+msgstr "用于在国际范围内识别银行的代码,包含8个或11个字符。没有该代码,跨境付款将无法正确路由,而国内转账通常使用本地路由代码进行。"+msgid "The contractor's expected weekly availability; scheduling uses this as the upper bound when assigning this contractor to operations across the week."msgstr "外协人员的预期每周可用性;排程在整周将此外协人员分配给工序时使用此作为上限。"@@ -18226,6 +18304,12 @@ msgstr "将此公司的所有权转移给另一个用户"msgid "Transfer To"msgstr "转移至"+msgid "Transit"+msgstr "中转号"++msgid "Transit & Institution"+msgstr "中转与机构"+msgid "Trash"msgstr "垃圾桶"@@ -18921,6 +19005,9 @@ msgstr "查看历史记录"msgid "View in Academy"msgstr "在学院中查看"+msgid "View in new tab"+msgstr ""+msgid "View in project plan"msgstr "在项目计划中查看"diff --git a/packages/utils/src/bank.test.ts b/packages/utils/src/bank.test.tsnew file mode 100644index 0000000000..5ccf732c29--- /dev/null+++ b/packages/utils/src/bank.test.ts@@ -0,0 +1,260 @@+import { describe, expect, it } from "vitest";+import {+ bicMatchesCountry,+ getBankFieldConfig,+ isValidAbaRouting,+ isValidBsb,+ isValidCanadianRouting,+ isValidIban,+ isValidIfsc,+ isValidInAccountNumber,+ isValidSortCode,+ isValidSwiftBic,+ isValidUkAccountNumber,+ isValidUsAccountNumber,+ maskAccountNumber+} from "./bank";++describe("isValidIban", () => {+ it("accepts published valid IBANs", () => {+ // Examples from the ISO 13616 registry / national bank publications.+ expect(isValidIban("GB82WEST12345698765432")).toBe(true);+ expect(isValidIban("DE89370400440532013000")).toBe(true);+ expect(isValidIban("FR1420041010050500013M02606")).toBe(true);+ expect(isValidIban("NL91ABNA0417164300")).toBe(true);+ });++ it("ignores whitespace and case", () => {+ expect(isValidIban("gb82 west 1234 5698 7654 32")).toBe(true);+ });++ it("rejects a value whose check digits are wrong", () => {+ // Same as the valid GB example with one digit changed.+ expect(isValidIban("GB82WEST12345698765433")).toBe(false);+ });++ it("rejects structurally invalid values", () => {+ expect(isValidIban("")).toBe(false);+ expect(isValidIban("GB82")).toBe(false);+ expect(isValidIban("1234567890")).toBe(false);+ expect(isValidIban("GBXXWEST12345698765432")).toBe(false);+ });+});++describe("isValidAbaRouting", () => {+ it("accepts real routing numbers", () => {+ expect(isValidAbaRouting("011000015")).toBe(true); // FRB Boston+ expect(isValidAbaRouting("121000248")).toBe(true); // Wells Fargo+ });++ it("rejects a wrong checksum", () => {+ expect(isValidAbaRouting("011000016")).toBe(false);+ });++ it("rejects wrong lengths and non-digits", () => {+ expect(isValidAbaRouting("")).toBe(false);+ expect(isValidAbaRouting("01100001")).toBe(false);+ expect(isValidAbaRouting("0110000155")).toBe(false);+ expect(isValidAbaRouting("01100001X")).toBe(false);+ });+});++describe("isValidSwiftBic", () => {+ it("accepts 8 and 11 character codes", () => {+ expect(isValidSwiftBic("DEUTDEFF")).toBe(true);+ expect(isValidSwiftBic("DEUTDEFF500")).toBe(true);+ expect(isValidSwiftBic("deutdeff")).toBe(true);+ });++ it("rejects other lengths and bad prefixes", () => {+ expect(isValidSwiftBic("")).toBe(false);+ expect(isValidSwiftBic("DEUTDEF")).toBe(false);+ expect(isValidSwiftBic("DEUTDEFF5000")).toBe(false);+ expect(isValidSwiftBic("1EUTDEFF")).toBe(false);+ });+});++describe("maskAccountNumber", () => {+ it("shows only the last four characters", () => {+ expect(maskAccountNumber("123456789")).toBe("••••6789");+ expect(maskAccountNumber("GB82WEST12345698765432")).toBe("••••5432");+ });++ it("fully masks values too short to partially reveal", () => {+ expect(maskAccountNumber("1234")).toBe("••••");+ expect(maskAccountNumber("12")).toBe("••••");+ });++ it("returns an empty string for missing values", () => {+ expect(maskAccountNumber(null)).toBe("");+ expect(maskAccountNumber(undefined)).toBe("");+ expect(maskAccountNumber("")).toBe("");+ });+});++describe("country-specific bank code validators", () => {+ it("validates UK sort codes, ignoring the conventional hyphens", () => {+ expect(isValidSortCode("12-34-56")).toBe(true);+ expect(isValidSortCode("123456")).toBe(true);+ expect(isValidSortCode("12345")).toBe(false);+ expect(isValidSortCode("12-34-5A")).toBe(false);+ });++ it("validates Australian BSBs", () => {+ expect(isValidBsb("082-039")).toBe(true);+ expect(isValidBsb("082039")).toBe(true);+ expect(isValidBsb("08203")).toBe(false);+ });++ it("validates Indian IFSC codes", () => {+ expect(isValidIfsc("HDFC0001234")).toBe(true);+ expect(isValidIfsc("hdfc0001234")).toBe(true);+ // Fifth character must be a literal zero.+ expect(isValidIfsc("HDFC1001234")).toBe(false);+ expect(isValidIfsc("HDF0001234")).toBe(false);+ });++ it("validates Canadian transit + institution numbers", () => {+ expect(isValidCanadianRouting("00012345")).toBe(true);+ expect(isValidCanadianRouting("0001-2345")).toBe(true);+ expect(isValidCanadianRouting("0001234")).toBe(false);+ });+});++describe("getBankFieldConfig", () => {+ it("gives the US an ABA-validated bank code", () => {+ const config = getBankFieldConfig("US");+ expect(config.accountLabel).toBe("accountNumber");+ expect(config.bankCodeLabel).toBe("aba");+ expect(config.validateBankCode?.("011000015")).toBe(true);+ expect(config.validateBankCode?.("011000016")).toBe(false);+ });++ it("gives SEPA countries an IBAN account and no bank code", () => {+ const config = getBankFieldConfig("DE");+ expect(config.accountLabel).toBe("iban");+ // The IBAN already carries the bank identifier.+ expect(config.bankCodeLabel).toBeNull();+ expect(config.validateAccount?.("DE89370400440532013000")).toBe(true);+ });++ it("labels the UK bank code a sort code", () => {+ expect(getBankFieldConfig("GB").bankCodeLabel).toBe("sortCode");+ });++ it("is case-insensitive on the country code", () => {+ expect(getBankFieldConfig("gb").bankCodeLabel).toBe("sortCode");+ });++ it("falls back to a permissive default for unlisted or missing countries", () => {+ // An unlisted country must still be enterable — format checks only.+ for (const code of ["ZZ", "", null, undefined]) {+ const config = getBankFieldConfig(code);+ expect(config.accountLabel).toBe("accountNumber");+ expect(config.bankCodeLabel).toBe("bankCode");+ expect(config.validateAccount).toBeUndefined();+ expect(config.validateBankCode).toBeUndefined();+ }+ });+});++describe("requiresSwift", () => {+ it("is set for SEPA and the permissive default, not for domestic-code countries", () => {+ // A cross-border payment will not route without a BIC.+ expect(getBankFieldConfig("FR").requiresSwift).toBe(true);+ expect(getBankFieldConfig("ZZ").requiresSwift).toBe(true);+ // The US routes domestically on the ABA, so a BIC is optional.+ expect(getBankFieldConfig("US").requiresSwift).toBeUndefined();+ });+});++describe("real-world French bank account", () => {+ // The exact values from a supplier onboarding form: Crédit Agricole, EUR.+ const iban = "FR76 1820 6000 8465 1157 7476 437";+ const bic = "AGRIFRPP882";++ it("accepts the IBAN as written, spaces included", () => {+ expect(isValidIban(iban)).toBe(true);+ });++ it("accepts the 11-character BIC", () => {+ expect(isValidSwiftBic(bic)).toBe(true);+ });++ it("labels the account an IBAN and asks for no bank code", () => {+ const config = getBankFieldConfig("FR");+ expect(config.accountLabel).toBe("iban");+ expect(config.bankCodeLabel).toBeNull();+ expect(config.validateAccount?.(iban)).toBe(true);+ expect(config.requiresSwift).toBe(true);+ });++ it("masks the IBAN down to its last four digits", () => {+ expect(maskAccountNumber(iban)).toBe("••••6437");+ });+});++describe("country-specific account number validators", () => {+ it("rejects letters in a US account number", () => {+ // The gap this closes: any string used to pass for the US.+ expect(isValidUsAccountNumber("HELLO WORLD")).toBe(false);+ expect(isValidUsAccountNumber("1234567890")).toBe(true);+ });++ it("enforces US length bounds", () => {+ expect(isValidUsAccountNumber("123")).toBe(false);+ expect(isValidUsAccountNumber("1".repeat(18))).toBe(false);+ expect(isValidUsAccountNumber("1234")).toBe(true);+ });++ it("requires exactly 8 digits in the UK", () => {+ expect(isValidUkAccountNumber("12345678")).toBe(true);+ expect(isValidUkAccountNumber("1234567")).toBe(false);+ });++ it("allows letters in Indian account numbers but not punctuation", () => {+ // Some Indian banks genuinely issue alphanumeric account numbers.+ expect(isValidInAccountNumber("50100ABC12345")).toBe(true);+ expect(isValidInAccountNumber("5010!1234567")).toBe(false);+ });++ it("wires the validators into the country config", () => {+ expect(getBankFieldConfig("US").validateAccount?.("NOTANUMBER")).toBe(+ false+ );+ expect(getBankFieldConfig("GB").validateAccount?.("12345678")).toBe(true);+ });+});++describe("bicMatchesCountry", () => {+ it("accepts a BIC whose country matches the account", () => {+ expect(bicMatchesCountry("AGRIFRPP882", "FR")).toBe(true);+ expect(bicMatchesCountry("agrifrpp882", "fr")).toBe(true);+ });++ it("rejects a BIC from a different country", () => {+ // A German BIC on a French account — invisible to a format check.+ expect(bicMatchesCountry("DEUTDEFF", "FR")).toBe(false);+ });++ it("defers to the other validators when a value is absent or malformed", () => {+ expect(bicMatchesCountry(null, "FR")).toBe(true);+ expect(bicMatchesCountry("AGRIFRPP882", null)).toBe(true);+ expect(bicMatchesCountry("GARBAGE!", "FR")).toBe(true);+ });+});++describe("India requires both identifiers", () => {+ it("asks for a SWIFT/BIC alongside the IFSC", () => {+ // The IFSC routes domestically; the BIC gets the money into the country.+ const config = getBankFieldConfig("IN");+ expect(config.bankCodeLabel).toBe("ifsc");+ expect(config.requiresSwift).toBe(true);+ });++ it("accepts a real IFSC and an Indian BIC together", () => {+ const config = getBankFieldConfig("IN");+ expect(config.validateBankCode?.("HDFC0001234")).toBe(true);+ expect(bicMatchesCountry("HDFCINBB", "IN")).toBe(true);+ });+});diff --git a/packages/utils/src/bank.ts b/packages/utils/src/bank.tsnew file mode 100644index 0000000000..e478420f2c--- /dev/null+++ b/packages/utils/src/bank.ts@@ -0,0 +1,250 @@+/**+ * Validation for counterparty bank identifiers.+ *+ * These are format/checksum checks only — they prove a value is well-formed,+ * not that the account exists or belongs to the supplier. Confirming that is+ * an out-of-band process (a phone call to a known number), not a regex.+ */++/**+ * ISO 13616 IBAN check: move the first four characters to the end, expand+ * letters to digits (A=10 … Z=35), then the whole number mod 97 must equal 1.+ */+export function isValidIban(raw: string): boolean {+ const iban = raw.replace(/\s+/g, "").toUpperCase();+ if (!/^[A-Z]{2}[0-9]{2}[A-Z0-9]{1,30}$/.test(iban)) return false;++ const rearranged = iban.slice(4) + iban.slice(0, 4);+ const expanded = rearranged.replace(/[A-Z]/g, (c) =>+ (c.charCodeAt(0) - 55).toString()+ );++ // The expanded value exceeds Number.MAX_SAFE_INTEGER, so fold digit by digit+ // rather than parsing it as a single number.+ let remainder = 0;+ for (const digit of expanded) {+ remainder = (remainder * 10 + Number(digit)) % 97;+ }++ return remainder === 1;+}++/**+ * ABA routing transit number check: exactly 9 digits, and the 3-7-1 weighted+ * sum must be divisible by 10.+ */+export function isValidAbaRouting(raw: string): boolean {+ const digits = raw.replace(/\s+/g, "");+ if (!/^[0-9]{9}$/.test(digits)) return false;++ const weights = [3, 7, 1, 3, 7, 1, 3, 7, 1] as const;+ const sum = digits+ .split("")+ .reduce((acc, digit, i) => acc + Number(digit) * (weights[i] ?? 0), 0);++ return sum % 10 === 0;+}++/** ISO 9362 BIC: 8 or 11 characters — 6 letters, then 2 alphanumerics, then an optional 3-character branch. */+export function isValidSwiftBic(raw: string): boolean {+ const bic = raw.replace(/\s+/g, "").toUpperCase();+ return /^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/.test(bic);+}++/**+ * Characters 5-6 of a BIC are its ISO 3166 country code, so a BIC can be checked+ * against the account's own country: a German BIC on a French account is a+ * mistake the format check alone cannot see.+ *+ * Returns true when either value is absent or the BIC is malformed — this+ * answers only "do these disagree?", leaving presence and format to their own+ * validators so one bad field raises one error.+ */+export function bicMatchesCountry(+ bic: string | null | undefined,+ countryCode: string | null | undefined+): boolean {+ if (!bic || !countryCode) return true;+ const normalized = bic.replace(/\s+/g, "").toUpperCase();+ if (!isValidSwiftBic(normalized)) return true;+ return normalized.slice(4, 6) === countryCode.toUpperCase();+}++/**+ * Last four characters of an account identifier, for display.+ * Returns "••••" when the value is too short to partially mask.+ */+export function maskAccountNumber(value: string | null | undefined): string {+ if (!value) return "";+ const trimmed = value.replace(/\s+/g, "");+ if (trimmed.length <= 4) return "••••";+ return `••••${trimmed.slice(-4)}`;+}++/**+ * Per-country bank field configuration.+ *+ * Countries differ in what the account identifier is called (IBAN, account+ * number) and whether they use a routing identifier at all (ABA, sort code,+ * BSB, IFSC, transit number). Rather than one column per scheme — which needs a+ * migration per country — `accountNumber` and `bankCode` are generic, and this+ * map decides how each is labelled and validated. Adding a country is an entry+ * here, not a schema change.+ *+ * A country with no entry falls back to DEFAULT_BANK_FIELDS: both fields+ * present, format-checked only. That is deliberate — an unlisted country must+ * still be enterable.+ */+export type AccountLabelKey = "accountNumber" | "iban";+export type BankCodeLabelKey =+ | "aba"+ | "sortCode"+ | "bsb"+ | "ifsc"+ | "transit"+ | "bankCode";++export type BankFieldConfig = {+ /**+ * Label KEYS, not display strings — @carbon/utils has no Lingui runtime, and+ * a hardcoded English label here would be untranslatable. The form maps these+ * to `t` messages.+ */+ accountLabel: AccountLabelKey;+ /** Routing identifier label key, or null when the country has none. */+ bankCodeLabel: BankCodeLabelKey | null;+ /** Validator for the account identifier; undefined = format check only. */+ validateAccount?: (value: string) => boolean;+ /** Validator for the routing identifier. */+ validateBankCode?: (value: string) => boolean;+ /** True when SWIFT/BIC is expected for cross-border payment. */+ requiresSwift?: boolean;+};++/** UK sort code: six digits, conventionally written 00-00-00. */+export function isValidSortCode(raw: string): boolean {+ return /^[0-9]{6}$/.test(raw.replace(/[\s-]/g, ""));+}++/** Australian BSB: six digits, conventionally written 000-000. */+export function isValidBsb(raw: string): boolean {+ return /^[0-9]{6}$/.test(raw.replace(/[\s-]/g, ""));+}++/** Indian IFSC: four letters, a zero, then six alphanumerics. */+export function isValidIfsc(raw: string): boolean {+ return /^[A-Z]{4}0[A-Z0-9]{6}$/.test(raw.replace(/\s/g, "").toUpperCase());+}++/** Canadian routing: five-digit transit plus three-digit institution. */+export function isValidCanadianRouting(raw: string): boolean {+ return /^[0-9]{8}$/.test(raw.replace(/[\s-]/g, ""));+}++function stripSeparators(raw: string): string {+ return raw.replace(/[\s-]/g, "");+}++/**+ * US account number: 4-17 digits. Domestic account numbers carry no checksum —+ * unlike an IBAN or an ABA there is no offline way to prove one is real, so+ * these validators check only the alphabet and length the scheme allows. That+ * still catches the common case: a letter in a US account number is a typo.+ * There is no ACH-wide length standard; this range is the practical one.+ */+export function isValidUsAccountNumber(raw: string): boolean {+ return /^[0-9]{4,17}$/.test(stripSeparators(raw));+}++/** UK: exactly 8 digits. */+export function isValidUkAccountNumber(raw: string): boolean {+ return /^[0-9]{8}$/.test(stripSeparators(raw));+}++/** Australia: 5-10 digits. */+export function isValidAuAccountNumber(raw: string): boolean {+ return /^[0-9]{5,10}$/.test(stripSeparators(raw));+}++/** Canada: 7-12 digits. */+export function isValidCaAccountNumber(raw: string): boolean {+ return /^[0-9]{7,12}$/.test(stripSeparators(raw));+}++/**+ * India: 9-18 characters. Alphanumeric on purpose — a few Indian banks really+ * do issue account numbers containing letters, so this checks length and+ * rejects punctuation rather than forcing digits.+ */+export function isValidInAccountNumber(raw: string): boolean {+ return /^[A-Z0-9]{9,18}$/.test(stripSeparators(raw).toUpperCase());+}++const IBAN_COUNTRY: BankFieldConfig = {+ accountLabel: "iban",+ bankCodeLabel: null,+ validateAccount: isValidIban,+ requiresSwift: true+};++const BANK_FIELDS: Record<string, BankFieldConfig> = {+ US: {+ accountLabel: "accountNumber",+ validateAccount: isValidUsAccountNumber,+ bankCodeLabel: "aba",+ validateBankCode: isValidAbaRouting+ },+ GB: {+ accountLabel: "accountNumber",+ validateAccount: isValidUkAccountNumber,+ bankCodeLabel: "sortCode",+ validateBankCode: isValidSortCode+ },+ AU: {+ accountLabel: "accountNumber",+ validateAccount: isValidAuAccountNumber,+ bankCodeLabel: "bsb",+ validateBankCode: isValidBsb+ },+ // India needs BOTH: the IFSC routes the payment domestically once it lands,+ // the BIC gets it into the country. Neither substitutes for the other.+ IN: {+ accountLabel: "accountNumber",+ validateAccount: isValidInAccountNumber,+ bankCodeLabel: "ifsc",+ validateBankCode: isValidIfsc,+ requiresSwift: true+ },+ CA: {+ accountLabel: "accountNumber",+ validateAccount: isValidCaAccountNumber,+ bankCodeLabel: "transit",+ validateBankCode: isValidCanadianRouting+ },+ // SEPA: the IBAN carries the bank identifier, so there is no separate code.+ AT: IBAN_COUNTRY,+ BE: IBAN_COUNTRY,+ DE: IBAN_COUNTRY,+ ES: IBAN_COUNTRY,+ FI: IBAN_COUNTRY,+ FR: IBAN_COUNTRY,+ IE: IBAN_COUNTRY,+ IT: IBAN_COUNTRY,+ NL: IBAN_COUNTRY,+ PL: IBAN_COUNTRY,+ PT: IBAN_COUNTRY,+ SE: IBAN_COUNTRY+};++export const DEFAULT_BANK_FIELDS: BankFieldConfig = {+ accountLabel: "accountNumber",+ bankCodeLabel: "bankCode",+ requiresSwift: true+};++export function getBankFieldConfig(+ countryCode: string | null | undefined+): BankFieldConfig {+ if (!countryCode) return DEFAULT_BANK_FIELDS;+ return BANK_FIELDS[countryCode.toUpperCase()] ?? DEFAULT_BANK_FIELDS;+}diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.tsindex 0f8ed0bbab..3b0cd3e79b 100644--- a/packages/utils/src/index.ts+++ b/packages/utils/src/index.ts@@ -5,6 +5,7 @@ export * from "./address";export * from "./all";export * from "./arrays";export * from "./assembly-units";+export * from "./bank";export * from "./batch-compatibility";export * from "./batch-duration";export * from "./batch-time-split";