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
Fix upper bound for pricing approval
Gaurav Bhatt16a939071c26
diff --git a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleCard.tsx b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleCard.tsxindex 3cb05cd3d5..f09dad4cc6 100644--- a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleCard.tsx+++ b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleCard.tsx@@ -33,10 +33,11 @@ import ApprovalRuleDetails from "./ApprovalRuleDetails";type ApprovalRuleCardProps = {rule: ApprovalRule & { approverGroupNames?: string[] };documentType: ApprovalDocumentType;+ upperBound?: number | null;};const ApprovalRuleCard = memo(- ({ rule, documentType }: ApprovalRuleCardProps) => {+ ({ rule, documentType, upperBound = null }: ApprovalRuleCardProps) => {const { t } = useLingui();const [params] = useUrlParams();const navigate = useNavigate();@@ -78,8 +79,8 @@ const ApprovalRuleCard = memo({approvalDocumentTypesWithAmounts.includes(documentType) &&- (rule.upperBoundAmount != null- ? ` ${currencyFormatter.format(rule.lowerBoundAmount ?? 0)} – ${currencyFormatter.format(rule.upperBoundAmount)}`+ (upperBound != null+ ? ` ${currencyFormatter.format(rule.lowerBoundAmount ?? 0)} – ${currencyFormatter.format(upperBound)}`: ` over ${currencyFormatter.format(rule.lowerBoundAmount ?? 0)}`)}</Heading><Statusdiff --git a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleDetails.tsx b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleDetails.tsxindex c04b9fe0d5..36e6c871e8 100644--- a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleDetails.tsx+++ b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleDetails.tsx@@ -59,15 +59,6 @@ const ApprovalRuleDetails = memo(</FieldItem>)}- {documentType === "purchaseOrder" &&- rule.upperBoundAmount != null && (- <FieldItem icon={LuDollarSign} label={t`Maximum Amount`}>- <p className="text-sm font-semibold text-foreground leading-relaxed">- {currencyFormatter.format(rule.upperBoundAmount)}- </p>- </FieldItem>- )}-{/* Approver Groups */}<FieldItem icon={LuUsers} label={t`Who Can Approve`}>{rule.approverGroupIds && rule.approverGroupIds.length > 0 ? (diff --git a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleForm.tsx b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleForm.tsxindex 75e0d3d68c..6c2bc4c15c 100644--- a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleForm.tsx+++ b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleForm.tsx@@ -56,7 +56,6 @@ const ApprovalRuleForm = ({: [],defaultApproverId: rule.defaultApproverId ?? undefined,lowerBoundAmount: rule.lowerBoundAmount ?? 0,- upperBoundAmount: rule.upperBoundAmount ?? undefined,escalationDays: rule.escalationDays ?? undefined}: {@@ -65,7 +64,6 @@ const ApprovalRuleForm = ({enabled: true,approverGroupIds: [],lowerBoundAmount: 0,- upperBoundAmount: undefined,escalationDays: undefined};@@ -105,25 +103,15 @@ const ApprovalRuleForm = ({approvalDocumentTypesWithAmounts.includes(effectiveDocumentType) && (- <>- <FormNumber- name="lowerBoundAmount"- label={t`Minimum Amount`}- formatOptions={{- style: "currency",- currency: baseCurrencyCode- }}- />- <FormNumber- name="upperBoundAmount"- label={t`Maximum Amount`}- helperText={t`Leave empty for no upper limit`}- formatOptions={{- style: "currency",- currency: baseCurrencyCode- }}- />- </>+ <FormNumber+ name="lowerBoundAmount"+ label={t`Minimum Amount`}+ helperText={t`Approval is required at or above this amount, up to the next rule's minimum`}+ formatOptions={{+ style: "currency",+ currency: baseCurrencyCode+ }}+ />)}<Usersdiff --git a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRules.tsx b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRules.tsxindex 2a227d48ee..850193a369 100644--- a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRules.tsx+++ b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRules.tsx@@ -1,7 +1,4 @@import {- Alert,- AlertDescription,- AlertTitle,Button,Card,CardContent,@@ -14,15 +11,14 @@ import {} from "@carbon/react";import { Trans } from "@lingui/react/macro";import { memo, useMemo } from "react";-import { LuPlus, LuTriangleAlert } from "react-icons/lu";+import { LuPlus } from "react-icons/lu";import { Link } from "react-router";import { Empty } from "~/components";-import { useCurrencyFormatter, usePermissions } from "~/hooks";+import { usePermissions } from "~/hooks";import {type ApprovalRule,approvalDocumentTypesWithAmounts} from "~/modules/shared";-import { topTierExplicitMax } from "~/modules/shared/approval-rules.coverage";import { path } from "~/utils/path";import ApprovalRuleCard from "./ApprovalRuleCard";@@ -36,11 +32,15 @@ const ApprovalRules = memo(({ poRules, qdRules, supplierRules }: ApprovalRulesProps) => {const permissions = usePermissions();const canCreate = permissions.can("update", "settings");- const currencyFormatter = useCurrencyFormatter();- const poTopTierGap = useMemo(- () => topTierExplicitMax(poRules, "purchaseOrder"),- [poRules]- );++ // A rule's ceiling is the next-higher tier's minimum (null for the top tier).+ const nextTierFloor = useMemo(() => {+ const floors = Array.from(+ new Set(poRules.map((r) => r.lowerBoundAmount ?? 0))+ ).sort((a, b) => a - b);+ return (lowerBoundAmount: number): number | null =>+ floors.find((f) => f > lowerBoundAmount) ?? null;+ }, [poRules]);return (<ScrollArea className="h-full w-full">@@ -76,22 +76,6 @@ const ApprovalRules = memo(</div></CardHeader><CardContent>- {poTopTierGap != null && (- <Alert variant="warning" className="mb-4">- <LuTriangleAlert className="h-4 w-4" />- <AlertTitle>- <Trans>Highest-tier rule has a maximum</Trans>- </AlertTitle>- <AlertDescription>- <Trans>- Purchase orders above{" "}- {currencyFormatter.format(poTopTierGap)} will not- require approval. Edit the top-tier rule and clear the- Maximum Amount, or add a higher rule with no maximum.- </Trans>- </AlertDescription>- </Alert>- )}{poRules.length === 0 ? (<Empty className="my-4" />) : (@@ -103,6 +87,7 @@ const ApprovalRules = memo(key={rule.id}rule={rule}documentType="purchaseOrder"+ upperBound={nextTierFloor(rule.lowerBoundAmount ?? 0)}/>))}</VStack>diff --git a/apps/erp/app/modules/shared/approval-rules.coverage.ts b/apps/erp/app/modules/shared/approval-rules.coverage.tsdeleted file mode 100644index d298548ef3..0000000000--- a/apps/erp/app/modules/shared/approval-rules.coverage.ts+++ /dev/null@@ -1,96 +0,0 @@-// Tiered-approval coverage check.-//-// Each approval rule represents a half-open range [lowerBoundAmount,-// upperBoundAmount). The "top tier" — the rule(s) with the highest-// lowerBoundAmount for a given documentType — must have at least one rule-// with a null upperBoundAmount so amounts above the top minimum still-// route to an approver. Without this guarantee, a $3M PO can silently-// bypass approval when all rules have explicit ceilings.-//-// Used by:-// - approval-rules.new.tsx and approval-rules.$id.tsx (save-time block)-// - ApprovalRules.tsx (list-view warning banner)--import type { ApprovalRule } from "./types";--type Candidate = {- id?: string | null;- lowerBoundAmount: number;- upperBoundAmount: number | null;-};--type CoverageInput = {- existingRules: Pick<- ApprovalRule,- "id" | "documentType" | "lowerBoundAmount" | "upperBoundAmount"- >[];- documentType: ApprovalRule["documentType"];- candidate: Candidate;-};--/**- * Returns true if, after applying the candidate save, at least one rule- * at the highest `lowerBoundAmount` for the document type has a null- * `upperBoundAmount`. Returns false when the save would leave a gap- * above the top tier.- */-export function topTierWouldBeUnbounded({- existingRules,- documentType,- candidate-}: CoverageInput): boolean {- const others = existingRules.filter(- (r) => r.documentType === documentType && r.id !== candidate.id- );-- const merged: Pick<ApprovalRule, "lowerBoundAmount" | "upperBoundAmount">[] =- [- ...others.map((r) => ({- lowerBoundAmount: r.lowerBoundAmount ?? 0,- upperBoundAmount: r.upperBoundAmount ?? null- })),- {- lowerBoundAmount: candidate.lowerBoundAmount,- upperBoundAmount: candidate.upperBoundAmount- }- ];-- const highestLower = merged.reduce(- (max, r) => Math.max(max, r.lowerBoundAmount ?? 0),- 0- );- return merged- .filter((r) => (r.lowerBoundAmount ?? 0) === highestLower)- .some((r) => r.upperBoundAmount == null);-}--/**- * Read-only variant used by the list-view banner. No candidate — just- * checks the current set of rules. Returns the maximum `upperBoundAmount`- * at the highest tier if coverage is incomplete, or null when the top is- * unbounded.- */-export function topTierExplicitMax(- rules: Pick<- ApprovalRule,- "documentType" | "lowerBoundAmount" | "upperBoundAmount"- >[],- documentType: ApprovalRule["documentType"]-): number | null {- const forType = rules.filter((r) => r.documentType === documentType);- if (forType.length === 0) return null;-- const highestLower = forType.reduce(- (max, r) => Math.max(max, r.lowerBoundAmount ?? 0),- 0- );- const atHighest = forType.filter(- (r) => (r.lowerBoundAmount ?? 0) === highestLower- );- if (atHighest.some((r) => r.upperBoundAmount == null)) return null;-- return atHighest.reduce(- (max, r) => Math.max(max, r.upperBoundAmount ?? 0),- 0- );-}diff --git a/apps/erp/app/modules/shared/shared.models.ts b/apps/erp/app/modules/shared/shared.models.tsindex 7225173daf..13d43bbad3 100644--- a/apps/erp/app/modules/shared/shared.models.ts+++ b/apps/erp/app/modules/shared/shared.models.ts@@ -49,29 +49,18 @@ export const approvalRequestValidator = z.object({approverGroupIds: zfd.repeatableOfType(z.string()).optional()});-export const approvalRuleValidator = z- .object({- id: zfd.text(z.string().optional()),- documentType: z.enum(approvalDocumentType, {- errorMap: () => ({ message: "Document type is required" })- }),- approverGroupIds: z.array(- z.string().min(1, { message: "Invalid selection" })- ),- defaultApproverId: zfd.text(z.string().optional()),- lowerBoundAmount: zfd.numeric(z.number().gt(0).default(0)).optional(),- upperBoundAmount: zfd.numeric(z.number().gt(0).optional()),- enabled: zfd.checkbox()- })- .refine(- (data) =>- data.upperBoundAmount == null ||- data.upperBoundAmount > (data.lowerBoundAmount ?? 0),- {- message: "Maximum amount must be greater than minimum amount",- path: ["upperBoundAmount"]- }- );+export const approvalRuleValidator = z.object({+ id: zfd.text(z.string().optional()),+ documentType: z.enum(approvalDocumentType, {+ errorMap: () => ({ message: "Document type is required" })+ }),+ approverGroupIds: z.array(+ z.string().min(1, { message: "Invalid selection" })+ ),+ defaultApproverId: zfd.text(z.string().optional()),+ lowerBoundAmount: zfd.numeric(z.number().gt(0).default(0)).optional(),+ enabled: zfd.checkbox()+});export const approvalStatusType = ["Pending",diff --git a/apps/erp/app/modules/shared/shared.service.ts b/apps/erp/app/modules/shared/shared.service.tsindex dd8fc4577b..460485878f 100644--- a/apps/erp/app/modules/shared/shared.service.ts+++ b/apps/erp/app/modules/shared/shared.service.ts@@ -437,9 +437,9 @@ export async function getApprovalRuleByAmount(.eq("enabled", true);if (amount !== undefined && amount !== null) {- query = query- .lte("lowerBoundAmount", amount)- .or(`upperBoundAmount.is.null,upperBoundAmount.gt.${amount}`);+ // The matching tier is the highest one whose floor is at or below the+ // amount; the next tier's floor is where its coverage ends.+ query = query.lte("lowerBoundAmount", amount);} else {query = query.eq("lowerBoundAmount", 0);}diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.jsonindex cf14d50bf5..c6e5d073ef 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json@@ -1,5 +1,5 @@{- "generated": "2026-05-27T11:58:36.907Z",+ "generated": "2026-05-27T14:05:32.644Z","totalTools": 1083,"modules": 15,"tools": [diff --git a/apps/erp/app/routes/x+/settings+/approval-rules.$id.tsx b/apps/erp/app/routes/x+/settings+/approval-rules.$id.tsxindex 4428598d5c..8905d80d11 100644--- a/apps/erp/app/routes/x+/settings+/approval-rules.$id.tsx+++ b/apps/erp/app/routes/x+/settings+/approval-rules.$id.tsx@@ -13,7 +13,6 @@ import {getApprovalRules,upsertApprovalRule} from "~/modules/shared";-import { topTierWouldBeUnbounded } from "~/modules/shared/approval-rules.coverage";import { getParams, path } from "~/utils/path";@@ -77,29 +76,6 @@ export async function action({ request, params }: ActionFunctionArgs) {);}- // Highest-tier coverage check: enforce that the highest-lowerBoundAmount- // tier always has at least one rule with no upper bound.- if (validation.data.documentType === "purchaseOrder") {- if (- !topTierWouldBeUnbounded({- existingRules: rules.data ?? [],- documentType: "purchaseOrder",- candidate: {- id,- lowerBoundAmount: validation.data.lowerBoundAmount ?? 0,- upperBoundAmount: validation.data.upperBoundAmount ?? null- }- })- ) {- return validationError({- fieldErrors: {- upperBoundAmount:- "The highest tier must leave the maximum empty so it covers all amounts above its minimum."- }- });- }- }-const result = await upsertApprovalRule(serviceRole, {id,updatedBy: userId,@@ -107,8 +83,7 @@ export async function action({ request, params }: ActionFunctionArgs) {enabled: validation.data.enabled,approverGroupIds: validation.data.approverGroupIds || [],defaultApproverId: validation.data.defaultApproverId,- lowerBoundAmount: validation.data.lowerBoundAmount ?? 0,- upperBoundAmount: validation.data.upperBoundAmount+ lowerBoundAmount: validation.data.lowerBoundAmount ?? 0});if (result.error) {diff --git a/apps/erp/app/routes/x+/settings+/approval-rules.new.tsx b/apps/erp/app/routes/x+/settings+/approval-rules.new.tsxindex 46ccac3792..d7f5f740eb 100644--- a/apps/erp/app/routes/x+/settings+/approval-rules.new.tsx+++ b/apps/erp/app/routes/x+/settings+/approval-rules.new.tsx@@ -9,10 +9,8 @@ import { ApprovalRuleForm } from "~/modules/settings";import {type ApprovalDocumentType,approvalRuleValidator,- getApprovalRules,upsertApprovalRule} from "~/modules/shared";-import { topTierWouldBeUnbounded } from "~/modules/shared/approval-rules.coverage";import { path } from "~/utils/path";export async function loader({ request }: LoaderFunctionArgs) {@@ -53,31 +51,6 @@ export async function action({ request }: ActionFunctionArgs) {return validationError(validation.error);}- // Highest-tier coverage check: if this rule would be at (or tied for)- // the highest lowerBoundAmount for its doc type AND it has a max set,- // make sure at least one rule at that tier remains unbounded above —- // otherwise amounts above the new top would silently bypass approval.- if (validation.data.documentType === "purchaseOrder") {- const existing = await getApprovalRules(serviceRole, companyId);- if (- !topTierWouldBeUnbounded({- existingRules: existing.data ?? [],- documentType: "purchaseOrder",- candidate: {- lowerBoundAmount: validation.data.lowerBoundAmount ?? 0,- upperBoundAmount: validation.data.upperBoundAmount ?? null- }- })- ) {- return validationError({- fieldErrors: {- upperBoundAmount:- "The highest tier must leave the maximum empty so it covers all amounts above its minimum."- }- });- }- }-const result = await upsertApprovalRule(serviceRole, {createdBy: userId,companyId,@@ -85,8 +58,7 @@ export async function action({ request }: ActionFunctionArgs) {enabled: validation.data.enabled,approverGroupIds: validation.data.approverGroupIds || [],defaultApproverId: validation.data.defaultApproverId,- lowerBoundAmount: validation.data.lowerBoundAmount ?? 0,- upperBoundAmount: validation.data.upperBoundAmount+ lowerBoundAmount: validation.data.lowerBoundAmount ?? 0});if (result.error) {diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex e24e1e37aa..b5b4b3fd2e 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -1726,7 +1726,6 @@ export type Database = {lowerBoundAmount: numberupdatedAt: string | nullupdatedBy: string | null- upperBoundAmount: number | null}Insert: {approverGroupIds?: string[] | null@@ -1741,7 +1740,6 @@ export type Database = {lowerBoundAmount?: numberupdatedAt?: string | nullupdatedBy?: string | null- upperBoundAmount?: number | null}Update: {approverGroupIds?: string[] | null@@ -1756,7 +1754,6 @@ export type Database = {lowerBoundAmount?: numberupdatedAt?: string | nullupdatedBy?: string | null- upperBoundAmount?: number | null}Relationships: [{@@ -3075,8 +3072,6 @@ export type Database = {salesJobCompletedNotificationGroup: string[]samplingStandard: Database["public"]["Enums"]["samplingStandard"]shelfLabelSize: string | null- showCustomerReadableId: boolean- showSupplierReadableId: booleansupplierQuoteNotificationGroup: string[]timeCardEnabled: booleanupdateLeadTimesOnReceipt: boolean@@ -3120,8 +3115,6 @@ export type Database = {salesJobCompletedNotificationGroup?: string[]samplingStandard?: Database["public"]["Enums"]["samplingStandard"]shelfLabelSize?: string | null- showCustomerReadableId?: boolean- showSupplierReadableId?: booleansupplierQuoteNotificationGroup?: string[]timeCardEnabled?: booleanupdateLeadTimesOnReceipt?: boolean@@ -3165,8 +3158,6 @@ export type Database = {salesJobCompletedNotificationGroup?: string[]samplingStandard?: Database["public"]["Enums"]["samplingStandard"]shelfLabelSize?: string | null- showCustomerReadableId?: boolean- showSupplierReadableId?: booleansupplierQuoteNotificationGroup?: string[]timeCardEnabled?: booleanupdateLeadTimesOnReceipt?: boolean@@ -4653,7 +4644,6 @@ export type Database = {logo: string | nullname: stringphone: string | null- readableId: stringsalesContactId: string | nulltags: string[] | nulltaxPercent: number@@ -4679,7 +4669,6 @@ export type Database = {logo?: string | nullname: stringphone?: string | null- readableId: stringsalesContactId?: string | nulltags?: string[] | nulltaxPercent?: number@@ -4705,7 +4694,6 @@ export type Database = {logo?: string | nullname?: stringphone?: string | null- readableId?: stringsalesContactId?: string | nulltags?: string[] | nulltaxPercent?: number@@ -38302,7 +38290,7 @@ export type Database = {},]}- searchIndex_6qJP4DpjAYZeV75SoNq112: {+ searchIndex_LPwQiGPcoBnievXwSmP5Nz: {Row: {createdAt: stringdescription: string | null@@ -40907,7 +40895,6 @@ export type Database = {name: stringphone: string | nullpurchasingContactId: string | null- readableId: stringsupplierStatus:| Database["public"]["Enums"]["supplierStatusType"]| null@@ -40935,7 +40922,6 @@ export type Database = {name: stringphone?: string | nullpurchasingContactId?: string | null- readableId: stringsupplierStatus?:| Database["public"]["Enums"]["supplierStatusType"]| null@@ -40963,7 +40949,6 @@ export type Database = {name?: stringphone?: string | nullpurchasingContactId?: string | null- readableId?: stringsupplierStatus?:| Database["public"]["Enums"]["supplierStatusType"]| null@@ -41701,7 +41686,6 @@ export type Database = {id: stringitemId: stringminimumOrderQuantity: number | null- orderMultiple: number | nullsupplierId: stringsupplierPartId: string | nullsupplierUnitOfMeasureCode: string | null@@ -41720,7 +41704,6 @@ export type Database = {id?: stringitemId: stringminimumOrderQuantity?: number | null- orderMultiple?: number | nullsupplierId: stringsupplierPartId?: string | nullsupplierUnitOfMeasureCode?: string | null@@ -41739,7 +41722,6 @@ export type Database = {id?: stringitemId?: stringminimumOrderQuantity?: number | null- orderMultiple?: number | nullsupplierId?: stringsupplierPartId?: string | nullsupplierUnitOfMeasureCode?: string | null@@ -49413,7 +49395,6 @@ export type Database = {name: string | nullorderCount: number | nullphone: string | null- readableId: string | nullsalesContactId: string | nullstatus: string | nulltags: string[] | null@@ -55433,14 +55414,14 @@ export type Database = {Relationships: [{foreignKeyName: "address_countryCode_fkey"- columns: ["supplierCountryCode"]+ columns: ["customerCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["customerCountryCode"]+ columns: ["supplierCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]@@ -61740,7 +61721,6 @@ export type Database = {partCount: number | nullphone: string | nullpurchasingContactId: string | null- readableId: string | nullstatus: Database["public"]["Enums"]["supplierStatusType"] | nullsupplierTypeId: string | nulltags: string[] | nulldiff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.tsindex e24e1e37aa..b5b4b3fd2e 100644--- a/packages/database/supabase/functions/lib/types.ts+++ b/packages/database/supabase/functions/lib/types.ts@@ -1726,7 +1726,6 @@ export type Database = {lowerBoundAmount: numberupdatedAt: string | nullupdatedBy: string | null- upperBoundAmount: number | null}Insert: {approverGroupIds?: string[] | null@@ -1741,7 +1740,6 @@ export type Database = {lowerBoundAmount?: numberupdatedAt?: string | nullupdatedBy?: string | null- upperBoundAmount?: number | null}Update: {approverGroupIds?: string[] | null@@ -1756,7 +1754,6 @@ export type Database = {lowerBoundAmount?: numberupdatedAt?: string | nullupdatedBy?: string | null- upperBoundAmount?: number | null}Relationships: [{@@ -3075,8 +3072,6 @@ export type Database = {salesJobCompletedNotificationGroup: string[]samplingStandard: Database["public"]["Enums"]["samplingStandard"]shelfLabelSize: string | null- showCustomerReadableId: boolean- showSupplierReadableId: booleansupplierQuoteNotificationGroup: string[]timeCardEnabled: booleanupdateLeadTimesOnReceipt: boolean@@ -3120,8 +3115,6 @@ export type Database = {salesJobCompletedNotificationGroup?: string[]samplingStandard?: Database["public"]["Enums"]["samplingStandard"]shelfLabelSize?: string | null- showCustomerReadableId?: boolean- showSupplierReadableId?: booleansupplierQuoteNotificationGroup?: string[]timeCardEnabled?: booleanupdateLeadTimesOnReceipt?: boolean@@ -3165,8 +3158,6 @@ export type Database = {salesJobCompletedNotificationGroup?: string[]samplingStandard?: Database["public"]["Enums"]["samplingStandard"]shelfLabelSize?: string | null- showCustomerReadableId?: boolean- showSupplierReadableId?: booleansupplierQuoteNotificationGroup?: string[]timeCardEnabled?: booleanupdateLeadTimesOnReceipt?: boolean@@ -4653,7 +4644,6 @@ export type Database = {logo: string | nullname: stringphone: string | null- readableId: stringsalesContactId: string | nulltags: string[] | nulltaxPercent: number@@ -4679,7 +4669,6 @@ export type Database = {logo?: string | nullname: stringphone?: string | null- readableId: stringsalesContactId?: string | nulltags?: string[] | nulltaxPercent?: number@@ -4705,7 +4694,6 @@ export type Database = {logo?: string | nullname?: stringphone?: string | null- readableId?: stringsalesContactId?: string | nulltags?: string[] | nulltaxPercent?: number@@ -38302,7 +38290,7 @@ export type Database = {},]}- searchIndex_6qJP4DpjAYZeV75SoNq112: {+ searchIndex_LPwQiGPcoBnievXwSmP5Nz: {Row: {createdAt: stringdescription: string | null@@ -40907,7 +40895,6 @@ export type Database = {name: stringphone: string | nullpurchasingContactId: string | null- readableId: stringsupplierStatus:| Database["public"]["Enums"]["supplierStatusType"]| null@@ -40935,7 +40922,6 @@ export type Database = {name: stringphone?: string | nullpurchasingContactId?: string | null- readableId: stringsupplierStatus?:| Database["public"]["Enums"]["supplierStatusType"]| null@@ -40963,7 +40949,6 @@ export type Database = {name?: stringphone?: string | nullpurchasingContactId?: string | null- readableId?: stringsupplierStatus?:| Database["public"]["Enums"]["supplierStatusType"]| null@@ -41701,7 +41686,6 @@ export type Database = {id: stringitemId: stringminimumOrderQuantity: number | null- orderMultiple: number | nullsupplierId: stringsupplierPartId: string | nullsupplierUnitOfMeasureCode: string | null@@ -41720,7 +41704,6 @@ export type Database = {id?: stringitemId: stringminimumOrderQuantity?: number | null- orderMultiple?: number | nullsupplierId: stringsupplierPartId?: string | nullsupplierUnitOfMeasureCode?: string | null@@ -41739,7 +41722,6 @@ export type Database = {id?: stringitemId?: stringminimumOrderQuantity?: number | null- orderMultiple?: number | nullsupplierId?: stringsupplierPartId?: string | nullsupplierUnitOfMeasureCode?: string | null@@ -49413,7 +49395,6 @@ export type Database = {name: string | nullorderCount: number | nullphone: string | null- readableId: string | nullsalesContactId: string | nullstatus: string | nulltags: string[] | null@@ -55433,14 +55414,14 @@ export type Database = {Relationships: [{foreignKeyName: "address_countryCode_fkey"- columns: ["supplierCountryCode"]+ columns: ["customerCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["customerCountryCode"]+ columns: ["supplierCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]@@ -61740,7 +61721,6 @@ export type Database = {partCount: number | nullphone: string | nullpurchasingContactId: string | null- readableId: string | nullstatus: Database["public"]["Enums"]["supplierStatusType"] | nullsupplierTypeId: string | nulltags: string[] | nulldiff --git a/packages/database/supabase/migrations/20260527041537_remove-approval-rule-upper-bound.sql b/packages/database/supabase/migrations/20260527041537_remove-approval-rule-upper-bound.sqlnew file mode 100644index 0000000000..09d9735649--- /dev/null+++ b/packages/database/supabase/migrations/20260527041537_remove-approval-rule-upper-bound.sql@@ -0,0 +1,5 @@+-- Drop the approval rule upper bound. A tier's ceiling is the next-higher+-- tier's minimum, so the stored column is redundant. Dropping the column also+-- drops its CHECK constraint.++ALTER TABLE "approvalRule" DROP COLUMN "upperBoundAmount";diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 8800f50ba0..8cce6c5b7b 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "Genehmigungsdatum"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "Genehmigungsanforderungen"@@ -2016,9 +2019,6 @@ msgstr "Kundendetails"msgid "Customer ID"msgstr "Kunden-ID"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "Kundenrechnungsnummer"@@ -2593,9 +2593,6 @@ msgstr "CSV herunterladen"msgid "Download PDF"msgstr "PDF herunterladen"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "Entwurf"@@ -3793,12 +3790,6 @@ msgstr "Spalten ausblenden, fixieren und neu anordnen"msgid "Higher priority wins ties and applies first for markups"msgstr "Höhere Priorität gewinnt bei Gleichständen und wird zuerst für Aufschläge angewendet"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "Verlauf"@@ -4291,9 +4282,6 @@ msgstr "Alle zugehörigen Belege unverändert lassen"msgid "Leave empty for exact match"msgstr "Leer lassen für exakte Übereinstimmung"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "Diese Seite verlassen"@@ -4635,9 +4623,6 @@ msgstr "Max. Menge"msgid "Maximum"msgstr "Maximum"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "Maximale Bestandsmenge"@@ -4829,9 +4814,6 @@ msgstr "Navigieren"msgid "NCRs by Type"msgstr "NCRs nach Typ"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "Negative Anpassung"@@ -6013,10 +5995,6 @@ msgstr "Bestellung erfolgreich entfernt"msgid "Purchase Orders"msgstr "Bestellungen"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "Bestellungen erforderlich"@@ -7140,15 +7118,6 @@ msgstr "Kurzbeschreibung"msgid "Shortcuts"msgstr "Tastenkombinationen"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "Dauern anzeigen"@@ -7161,9 +7130,6 @@ msgstr "Zeige Teilminiaturen auf Bestellungen an."msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "Zeigen Sie Teilminiaturen auf Angeboten, Verkaufsaufträgen, Verkaufsrechnungen und Lieferungen an."-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "Synchronisierungsoptionen anzeigen"@@ -7494,9 +7460,6 @@ msgstr "Lieferantenkontakt"msgid "Supplier ID"msgstr "Lieferanten-ID"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "Lieferantenrechnungsnummer"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 21dbc2b22d..9a91ff308f 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -533,6 +533,9 @@ msgstr "Approaching {PO_EMAIL_ATTACHMENT_LIMIT_MB} MB cap."msgid "Approval Date"msgstr "Approval Date"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr "Approval is required at or above this amount, up to the next rule's minimum"+msgid "Approval Requirements"msgstr "Approval Requirements"@@ -2016,9 +2019,6 @@ msgstr "Customer Details"msgid "Customer ID"msgstr "Customer ID"-msgid "Customer ID cannot be changed after creation"-msgstr "Customer ID cannot be changed after creation"-msgid "Customer Invoice Number"msgstr "Customer Invoice Number"@@ -2593,9 +2593,6 @@ msgstr "Download CSV"msgid "Download PDF"msgstr "Download PDF"-msgid "Download template"-msgstr "Download template"-msgid "Draft"msgstr "Draft"@@ -3793,12 +3790,6 @@ msgstr "Hide, pin and reorder columns"msgid "Higher priority wins ties and applies first for markups"msgstr "Higher priority wins ties and applies first for markups"-msgid "Highest-tier rule has a maximum"-msgstr "Highest-tier rule has a maximum"--msgid "Hints in the first row"-msgstr "Hints in the first row"-msgid "History"msgstr "History"@@ -4291,9 +4282,6 @@ msgstr "Leave any related receipts untouched"msgid "Leave empty for exact match"msgstr "Leave empty for exact match"-msgid "Leave empty for no upper limit"-msgstr "Leave empty for no upper limit"-msgid "Leave this page"msgstr "Leave this page"@@ -4635,9 +4623,6 @@ msgstr "Max Quantity"msgid "Maximum"msgstr "Maximum"-msgid "Maximum Amount"-msgstr "Maximum Amount"-msgid "Maximum Inventory Quantity"msgstr "Maximum Inventory Quantity"@@ -4829,9 +4814,6 @@ msgstr "Navigate"msgid "NCRs by Type"msgstr "NCRs by Type"-msgid "Need the right columns?"-msgstr "Need the right columns?"-msgid "Negative Adjustment"msgstr "Negative Adjustment"@@ -6013,10 +5995,6 @@ msgstr "Purchase order removed successfully"msgid "Purchase Orders"msgstr "Purchase Orders"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgid "Purchase orders required"msgstr "Purchase orders required"@@ -7140,15 +7118,6 @@ msgstr "Short Description"msgid "Shortcuts"msgstr "Shortcuts"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."--msgid "Show Customer IDs"-msgstr "Show Customer IDs"-msgid "Show Durations"msgstr "Show Durations"@@ -7161,9 +7130,6 @@ msgstr "Show part thumbnails on purchase orders."msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."-msgid "Show Supplier IDs"-msgstr "Show Supplier IDs"-msgid "Show sync options"msgstr "Show sync options"@@ -7494,9 +7460,6 @@ msgstr "Supplier Contact"msgid "Supplier ID"msgstr "Supplier ID"-msgid "Supplier ID cannot be changed after creation"-msgstr "Supplier ID cannot be changed after creation"-msgid "Supplier Invoice Number"msgstr "Supplier Invoice Number"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 8154e9f393..f38bed68f1 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "Fecha de Aprobación"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "Requisitos de Aprobación"@@ -2016,9 +2019,6 @@ msgstr "Detalles del Cliente"msgid "Customer ID"msgstr "ID de Cliente"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "Número de Factura del Cliente"@@ -2593,9 +2593,6 @@ msgstr "Descargar CSV"msgid "Download PDF"msgstr "Descargar PDF"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "Borrador"@@ -3793,12 +3790,6 @@ msgstr "Ocultar, anclar y reordenar columnas"msgid "Higher priority wins ties and applies first for markups"msgstr "Mayor prioridad gana empates y se aplica primero para márgenes"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "Historial"@@ -4291,9 +4282,6 @@ msgstr "Dejar los recibos relacionados sin tocar"msgid "Leave empty for exact match"msgstr "Dejar vacío para coincidencia exacta"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "Salir de esta página"@@ -4635,9 +4623,6 @@ msgstr "Cantidad Máxima"msgid "Maximum"msgstr "Máximo"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "Cantidad Máxima de Inventario"@@ -4829,9 +4814,6 @@ msgstr "Navegar"msgid "NCRs by Type"msgstr "NCR por Tipo"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "Ajuste Negativo"@@ -6013,10 +5995,6 @@ msgstr "Orden de compra eliminada exitosamente"msgid "Purchase Orders"msgstr "Órdenes de Compra"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "Órdenes de compra requeridas"@@ -7140,15 +7118,6 @@ msgstr "Descripción Corta"msgid "Shortcuts"msgstr "Atajos"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "Mostrar duraciones"@@ -7161,9 +7130,6 @@ msgstr "Mostrar miniaturas de piezas en órdenes de compra."msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "Mostrar miniaturas de piezas en cotizaciones, órdenes de venta, facturas de venta y envíos."-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "Mostrar opciones de sincronización"@@ -7494,9 +7460,6 @@ msgstr "Contacto del Proveedor"msgid "Supplier ID"msgstr "ID de Proveedor"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "Número de Factura del Proveedor"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 1183569691..9ad16086d8 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "Date d'approbation"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "Exigences d'approbation"@@ -2016,9 +2019,6 @@ msgstr "Détails du client"msgid "Customer ID"msgstr "ID Client"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "Numéro de facture client"@@ -2593,9 +2593,6 @@ msgstr "Télécharger CSV"msgid "Download PDF"msgstr "Télécharger le PDF"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "Brouillon"@@ -3793,12 +3790,6 @@ msgstr "Masquer, épingler et réorganiser les colonnes"msgid "Higher priority wins ties and applies first for markups"msgstr "La priorité plus élevée gagne les égalités et s'applique en premier pour les majorations"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "Historique"@@ -4291,9 +4282,6 @@ msgstr "Laisser les reçus connexes intacts"msgid "Leave empty for exact match"msgstr "Laisser vide pour une correspondance exacte"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "Quitter cette page"@@ -4635,9 +4623,6 @@ msgstr "Quantité Max"msgid "Maximum"msgstr "Maximum"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "Quantité d'inventaire maximale"@@ -4829,9 +4814,6 @@ msgstr "Naviguer"msgid "NCRs by Type"msgstr "NCRs par type"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "Ajustement Négatif"@@ -6013,10 +5995,6 @@ msgstr "Bon de commande supprimé avec succès"msgid "Purchase Orders"msgstr "Bons de commande"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "Bons de commande requis"@@ -7140,15 +7118,6 @@ msgstr "Description courte"msgid "Shortcuts"msgstr "Raccourcis"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "Afficher les durées"@@ -7161,9 +7130,6 @@ msgstr "Afficher les vignettes des pièces sur les bons de commande."msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "Afficher les vignettes des pièces sur les devis, les commandes de vente, les factures de vente et les expéditions."-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "Afficher les options de synchronisation"@@ -7494,9 +7460,6 @@ msgstr "Contact Fournisseur"msgid "Supplier ID"msgstr "ID Fournisseur"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "Numéro de facture fournisseur"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex 7c6c37a05a..7ac058d18a 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "अनुमोदन तारीख"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "अनुमोदन आवश्यकताएं"@@ -2016,9 +2019,6 @@ msgstr "ग्राहक विवरण"msgid "Customer ID"msgstr "ग्राहक ID"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "ग्राहक चालान संख्या"@@ -2593,9 +2593,6 @@ msgstr "CSV डाउनलोड करें"msgid "Download PDF"msgstr "PDF डाउनलोड करें"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "ड्राफ्ट"@@ -3793,12 +3790,6 @@ msgstr "कॉलम को छिपाएं, पिन करें औरmsgid "Higher priority wins ties and applies first for markups"msgstr "उच्च प्राथमिकता टाई जीतती है और मार्कअप के लिए पहले लागू होती है"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "इतिहास"@@ -4291,9 +4282,6 @@ msgstr "किसी भी संबंधित रसीदों को अmsgid "Leave empty for exact match"msgstr "सटीक मिलान के लिए खाली छोड़ें"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "इस पृष्ठ को छोड़ें"@@ -4635,9 +4623,6 @@ msgstr "अधिकतम मात्रा"msgid "Maximum"msgstr "अधिकतम"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "अधिकतम इन्वेंटरी मात्रा"@@ -4829,9 +4814,6 @@ msgstr "नेविगेट करें"msgid "NCRs by Type"msgstr "प्रकार के अनुसार NCR"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "नकारात्मक समायोजन"@@ -6013,10 +5995,6 @@ msgstr "क्रय आदेश सफलतापूर्वक हटाmsgid "Purchase Orders"msgstr "क्रय आदेश"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "क्रय आदेश आवश्यक हैं"@@ -7140,15 +7118,6 @@ msgstr "संक्षिप्त विवरण"msgid "Shortcuts"msgstr "शॉर्टकट"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "अवधि दिखाएं"@@ -7161,9 +7130,6 @@ msgstr "क्रय आदेशों पर भाग थंबनेल दmsgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "उद्धरण, बिक्री आदेश, बिक्री चालान और शिपमेंट पर भाग थंबनेल दिखाएं।"-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "सिंक विकल्प दिखाएं"@@ -7494,9 +7460,6 @@ msgstr "आपूर्तिकर्ता संपर्क"msgid "Supplier ID"msgstr "आपूर्तिकर्ता ID"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "आपूर्तिकर्ता चालान संख्या"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 6a46ec3478..727ec8f0a5 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "Data di approvazione"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "Requisiti di Approvazione"@@ -2016,9 +2019,6 @@ msgstr "Dettagli Cliente"msgid "Customer ID"msgstr "ID Cliente"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "Numero Fattura Cliente"@@ -2593,9 +2593,6 @@ msgstr "Scarica CSV"msgid "Download PDF"msgstr "Scarica PDF"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "Bozza"@@ -3793,12 +3790,6 @@ msgstr "Nascondi, fissa e riordina le colonne"msgid "Higher priority wins ties and applies first for markups"msgstr "La priorità più alta vince i pareggi e si applica per prima per i ricarichi"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "Cronologia"@@ -4291,9 +4282,6 @@ msgstr "Lasciare le ricevute correlate intatte"msgid "Leave empty for exact match"msgstr "Lascia vuoto per una corrispondenza esatta"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "Lascia questa pagina"@@ -4635,9 +4623,6 @@ msgstr "Quantità Massima"msgid "Maximum"msgstr "Massimo"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "Quantità Massima di Inventario"@@ -4829,9 +4814,6 @@ msgstr "Naviga"msgid "NCRs by Type"msgstr "NCR per tipo"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "Rettifica Negativa"@@ -6013,10 +5995,6 @@ msgstr "Ordine di acquisto rimosso con successo"msgid "Purchase Orders"msgstr "Ordini di Acquisto"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "Ordini di acquisto richiesti"@@ -7140,15 +7118,6 @@ msgstr "Descrizione breve"msgid "Shortcuts"msgstr "Scorciatoie"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "Mostra durate"@@ -7161,9 +7130,6 @@ msgstr "Mostra miniature delle parti negli ordini di acquisto."msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "Mostra le miniature delle parti su preventivi, ordini di vendita, fatture di vendita e spedizioni."-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "Mostra opzioni di sincronizzazione"@@ -7494,9 +7460,6 @@ msgstr "Contatto Fornitore"msgid "Supplier ID"msgstr "ID Fornitore"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "Numero Fattura Fornitore"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 84556442ba..19f7b0e232 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "承認日"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "承認要件"@@ -2016,9 +2019,6 @@ msgstr "顧客詳細"msgid "Customer ID"msgstr "顧客ID"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "顧客請求書番号"@@ -2593,9 +2593,6 @@ msgstr "CSVをダウンロード"msgid "Download PDF"msgstr "PDFをダウンロード"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "下書き"@@ -3793,12 +3790,6 @@ msgstr "列を非表示、ピン留め、並び替え"msgid "Higher priority wins ties and applies first for markups"msgstr "優先度が高いほど同点を制し、マークアップに最初に適用されます"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "履歴"@@ -4291,9 +4282,6 @@ msgstr "関連するすべての領収書はそのままにしておく"msgid "Leave empty for exact match"msgstr "正確な一致のために空のままにしてください"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "このページを離れる"@@ -4635,9 +4623,6 @@ msgstr "最大数量"msgid "Maximum"msgstr "最大"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "最大在庫数量"@@ -4829,9 +4814,6 @@ msgstr "ナビゲート"msgid "NCRs by Type"msgstr "タイプ別NCR"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "負の調整"@@ -6013,10 +5995,6 @@ msgstr "購買注文が正常に削除されました"msgid "Purchase Orders"msgstr "購入注文"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "購入注文が必要です"@@ -7140,15 +7118,6 @@ msgstr "短い説明"msgid "Shortcuts"msgstr "ショートカット"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "期間を表示"@@ -7161,9 +7130,6 @@ msgstr "購買注文に部品のサムネイルを表示します。"msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "見積書、販売注文、販売請求書、および出荷に部品のサムネイルを表示します。"-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "同期オプションを表示"@@ -7494,9 +7460,6 @@ msgstr "仕入先連絡先"msgid "Supplier ID"msgstr "サプライヤーID"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "仕入先請求書番号"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex f2ecbe58c4..c9d61710ef 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "Data zatwierdzenia"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "Wymagania zatwierdzenia"@@ -2016,9 +2019,6 @@ msgstr "Szczegóły klienta"msgid "Customer ID"msgstr "ID klienta"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "Numer faktury klienta"@@ -2593,9 +2593,6 @@ msgstr "Pobierz CSV"msgid "Download PDF"msgstr "Pobierz PDF"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "Wersja robocza"@@ -3793,12 +3790,6 @@ msgstr "Ukryj, przypnij i zmień kolejność kolumn"msgid "Higher priority wins ties and applies first for markups"msgstr "Wyższy priorytet wygrywa remisy i jest stosowany jako pierwszy dla marż"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "Historia"@@ -4291,9 +4282,6 @@ msgstr "Pozostaw wszelkie powiązane paragony bez zmian"msgid "Leave empty for exact match"msgstr "Pozostaw puste dla dokładnego dopasowania"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "Opuść tę stronę"@@ -4635,9 +4623,6 @@ msgstr "Maks. Ilość"msgid "Maximum"msgstr "Maksimum"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "Maksymalna Ilość Zapasów"@@ -4829,9 +4814,6 @@ msgstr "Nawiguj"msgid "NCRs by Type"msgstr "NCRy wg typu"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "Ujemna Korekta"@@ -6013,10 +5995,6 @@ msgstr "Zamówienie zakupu zostało pomyślnie usunięte"msgid "Purchase Orders"msgstr "Zamówienia Zakupu"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "Wymagane zamówienia zakupu"@@ -7140,15 +7118,6 @@ msgstr "Krótki opis"msgid "Shortcuts"msgstr "Skróty"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "Pokaż czasy trwania"@@ -7161,9 +7130,6 @@ msgstr "Pokaż miniatury części na zamówieniach zakupu."msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "Pokaż miniatury części na ofertach, zamówieniach sprzedaży, fakturach sprzedaży i wysyłkach."-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "Pokaż opcje synchronizacji"@@ -7494,9 +7460,6 @@ msgstr "Kontakt dostawcy"msgid "Supplier ID"msgstr "ID dostawcy"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "Numer faktury dostawcy"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex bab211c3d8..997b8c50e9 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "Data de Aprovação"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "Requisitos de Aprovação"@@ -2016,9 +2019,6 @@ msgstr "Detalhes do Cliente"msgid "Customer ID"msgstr "ID do Cliente"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "Número de Fatura do Cliente"@@ -2593,9 +2593,6 @@ msgstr "Baixar CSV"msgid "Download PDF"msgstr "Baixar PDF"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "Rascunho"@@ -3793,12 +3790,6 @@ msgstr "Ocultar, fixar e reordenar colunas"msgid "Higher priority wins ties and applies first for markups"msgstr "Prioridade mais alta vence empates e se aplica primeiro para margens"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "Histórico"@@ -4291,9 +4282,6 @@ msgstr "Deixar qualquer recebimento relacionado intocado"msgid "Leave empty for exact match"msgstr "Deixe vazio para correspondência exata"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "Sair desta página"@@ -4635,9 +4623,6 @@ msgstr "Quantidade Máxima"msgid "Maximum"msgstr "Máximo"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "Quantidade Máxima de Inventário"@@ -4829,9 +4814,6 @@ msgstr "Navegar"msgid "NCRs by Type"msgstr "NCRs por Tipo"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "Ajuste Negativo"@@ -6013,10 +5995,6 @@ msgstr "Ordem de compra removida com sucesso"msgid "Purchase Orders"msgstr "Pedidos de Compra"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "Ordens de compra necessárias"@@ -7140,15 +7118,6 @@ msgstr "Descrição Breve"msgid "Shortcuts"msgstr "Atalhos"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "Mostrar Durações"@@ -7161,9 +7130,6 @@ msgstr "Mostrar miniaturas de peças em pedidos de compra."msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "Mostrar miniaturas de peças em cotações, pedidos de venda, faturas de venda e remessas."-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "Mostrar opções de sincronização"@@ -7494,9 +7460,6 @@ msgstr "Contato do Fornecedor"msgid "Supplier ID"msgstr "ID do Fornecedor"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "Número da Fatura do Fornecedor"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 7f4d1ccdc1..35d228792a 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "Дата одобрения"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "Требования к утверждению"@@ -2016,9 +2019,6 @@ msgstr "Детали клиента"msgid "Customer ID"msgstr "ID клиента"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "Номер счета клиента"@@ -2593,9 +2593,6 @@ msgstr "Загрузить CSV"msgid "Download PDF"msgstr "Скачать PDF"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "Черновик"@@ -3793,12 +3790,6 @@ msgstr "Скрывать, закреплять и переупорядочиваmsgid "Higher priority wins ties and applies first for markups"msgstr "Более высокий приоритет выигрывает при равенстве и применяется первым для наценок"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "История"@@ -4291,9 +4282,6 @@ msgstr "Оставить все связанные квитанции без иmsgid "Leave empty for exact match"msgstr "Оставьте пустым для точного совпадения"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "Покинуть эту страницу"@@ -4635,9 +4623,6 @@ msgstr "Макс. Количество"msgid "Maximum"msgstr "Максимум"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "Максимальное количество запасов"@@ -4829,9 +4814,6 @@ msgstr "Навигация"msgid "NCRs by Type"msgstr "NCRs по типам"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "Отрицательная корректировка"@@ -6013,10 +5995,6 @@ msgstr "Заказ на покупку успешно удален"msgid "Purchase Orders"msgstr "Заказы на покупку"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "Требуются заказы на покупку"@@ -7140,15 +7118,6 @@ msgstr "Краткое описание"msgid "Shortcuts"msgstr "Сочетания клавиш"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "Показать длительность"@@ -7161,9 +7130,6 @@ msgstr "Показывать миниатюры деталей в заказахmsgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "Показывать миниатюры деталей на предложениях, заказах на продажу, счетах-фактурах продаж и отправках."-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "Показать параметры синхронизации"@@ -7494,9 +7460,6 @@ msgstr "Контакт поставщика"msgid "Supplier ID"msgstr "ID поставщика"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "Номер счета поставщика"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 33bda64b1a..85c5aac730 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -533,6 +533,9 @@ msgstr ""msgid "Approval Date"msgstr "批准日期"+msgid "Approval is required at or above this amount, up to the next rule's minimum"+msgstr ""+msgid "Approval Requirements"msgstr "批准要求"@@ -2016,9 +2019,6 @@ msgstr "客户详情"msgid "Customer ID"msgstr "客户ID"-msgid "Customer ID cannot be changed after creation"-msgstr ""-msgid "Customer Invoice Number"msgstr "客户发票号"@@ -2593,9 +2593,6 @@ msgstr "下载 CSV"msgid "Download PDF"msgstr "下载 PDF"-msgid "Download template"-msgstr ""-msgid "Draft"msgstr "草稿"@@ -3793,12 +3790,6 @@ msgstr "隐藏、固定和重新排序列"msgid "Higher priority wins ties and applies first for markups"msgstr "更高的优先级在平局时获胜,并首先应用于加价"-msgid "Highest-tier rule has a maximum"-msgstr ""--msgid "Hints in the first row"-msgstr ""-msgid "History"msgstr "历史"@@ -4291,9 +4282,6 @@ msgstr "保留任何相关收据不变"msgid "Leave empty for exact match"msgstr "留空以精确匹配"-msgid "Leave empty for no upper limit"-msgstr ""-msgid "Leave this page"msgstr "离开此页面"@@ -4635,9 +4623,6 @@ msgstr "最大数量"msgid "Maximum"msgstr "最大值"-msgid "Maximum Amount"-msgstr ""-msgid "Maximum Inventory Quantity"msgstr "最大库存数量"@@ -4829,9 +4814,6 @@ msgstr "导航"msgid "NCRs by Type"msgstr "按类型分类的不符合项"-msgid "Need the right columns?"-msgstr ""-msgid "Negative Adjustment"msgstr "负调整"@@ -6013,10 +5995,6 @@ msgstr "采购订单已成功删除"msgid "Purchase Orders"msgstr "采购订单"-#. placeholder {0}: currencyFormatter.format(poTopTierGap)-msgid "Purchase orders above {0} will not require approval. Edit the top-tier rule and clear the Maximum Amount, or add a higher rule with no maximum."-msgstr ""-msgid "Purchase orders required"msgstr "采购订单必需"@@ -7140,15 +7118,6 @@ msgstr "简短描述"msgid "Shortcuts"msgstr "快捷键"-msgid "Show a readable Customer ID column on the customer list, customer forms, and dropdowns. Customers are still identified internally either way."-msgstr ""--msgid "Show a readable Supplier ID column on the supplier list, supplier forms, and dropdowns. Suppliers are still identified internally either way."-msgstr ""--msgid "Show Customer IDs"-msgstr ""-msgid "Show Durations"msgstr "显示时长"@@ -7161,9 +7130,6 @@ msgstr "在采购订单上显示零件缩略图。"msgid "Show part thumbnails on quotes, sales orders, sales invoices, and shipments."msgstr "在报价单、销售订单、销售发票和发货单上显示零件缩略图。"-msgid "Show Supplier IDs"-msgstr ""-msgid "Show sync options"msgstr "显示同步选项"@@ -7494,9 +7460,6 @@ msgstr "供应商联系人"msgid "Supplier ID"msgstr "供应商 ID"-msgid "Supplier ID cannot be changed after creation"-msgstr ""-msgid "Supplier Invoice Number"msgstr "供应商发票号"