Skip to content

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.

- Remove minimum margin on pricing rules (#748)

Gaurav Bhatt341505bd1b8e
diff --git a/apps/erp/app/modules/sales/sales.models.ts b/apps/erp/app/modules/sales/sales.models.ts
index 1059e5f9f9..6b7538b53a 100644
--- a/apps/erp/app/modules/sales/sales.models.ts
+++ b/apps/erp/app/modules/sales/sales.models.ts
@@ -257,7 +257,6 @@ export const pricingRuleValidator = z
validFrom: zfd.text(z.string().optional()),
validTo: zfd.text(z.string().optional()),
priority: zfd.numeric(z.number().int().min(0).optional().default(0)),
- minMarginPercent: zfd.numeric(z.number().min(0).max(1).optional()),
active: zfd.checkbox()
})
.refine((d) => d.amountType !== "Percentage" || d.amount <= 1, {
diff --git a/apps/erp/app/modules/sales/sales.service.ts b/apps/erp/app/modules/sales/sales.service.ts
index 39dee11dc6..7b307c8921 100644
--- a/apps/erp/app/modules/sales/sales.service.ts
+++ b/apps/erp/app/modules/sales/sales.service.ts
@@ -71,8 +71,7 @@ import type {
export function applyPriceRules(
startingPrice: number,
- matchedRules: MatchedRule[],
- unitCost: number | null = null
+ matchedRules: MatchedRule[]
): { finalPrice: number; appendedTrace: PriceTraceStep[] } {
const appendedTrace: PriceTraceStep[] = [];
let finalPrice = startingPrice;
@@ -100,18 +99,14 @@ export function applyPriceRules(
const winner = ranked[0];
if (winner && winner.effective > 0) {
- finalPrice = clampAndTrace(
- finalPrice - winner.effective,
- unitCost,
- winner.rule,
- appendedTrace,
- {
- step: "Discount",
- source: `Rule: ${winner.rule.name}`,
- adjustment: -winner.effective,
- ruleId: winner.rule.id
- }
- );
+ finalPrice = finalPrice - winner.effective;
+ appendedTrace.push({
+ step: "Discount",
+ source: `Rule: ${winner.rule.name}`,
+ amount: finalPrice,
+ adjustment: -winner.effective,
+ ruleId: winner.rule.id
+ });
}
}
@@ -123,19 +118,14 @@ export function applyPriceRules(
for (const rule of sortedMarkups) {
const adjustment =
rule.amountType === "Percentage" ? finalPrice * rule.amount : rule.amount;
-
- finalPrice = clampAndTrace(
- finalPrice + adjustment,
- unitCost,
- rule,
- appendedTrace,
- {
- step: "Markup",
- source: `Rule: ${rule.name}`,
- adjustment,
- ruleId: rule.id
- }
- );
+ finalPrice = finalPrice + adjustment;
+ appendedTrace.push({
+ step: "Markup",
+ source: `Rule: ${rule.name}`,
+ amount: finalPrice,
+ adjustment,
+ ruleId: rule.id
+ });
}
if (finalPrice < 0) {
@@ -151,34 +141,6 @@ export function applyPriceRules(
return { finalPrice, appendedTrace };
}
-// If the rule carries a minMarginPercent and cost is known, enforce the floor
-// (price >= cost / (1 - margin)) and log a trace entry on clamp.
-function clampAndTrace(
- proposedPrice: number,
- unitCost: number | null,
- rule: MatchedRule,
- trace: PriceTraceStep[],
- baseEntry: Omit<PriceTraceStep, "amount">
-): number {
- const margin = rule.minMarginPercent;
- if (margin !== null && margin < 1 && unitCost !== null && unitCost > 0) {
- const floor = unitCost / (1 - margin);
- if (proposedPrice < floor) {
- trace.push({ ...baseEntry, amount: floor });
- trace.push({
- step: "Min Margin",
- source: `Rule: ${rule.name} (floor ${(margin * 100).toFixed(1)}%)`,
- amount: floor,
- adjustment: floor - proposedPrice,
- ruleId: rule.id
- });
- return floor;
- }
- }
- trace.push({ ...baseEntry, amount: proposedPrice });
- return proposedPrice;
-}
-
export async function closeSalesOrder(
client: SupabaseClient<Database>,
salesOrderId: string,
@@ -293,7 +255,6 @@ export async function createPricingRule(
validFrom: data.validFrom || null,
validTo: data.validTo || null,
priority: data.priority ?? 0,
- minMarginPercent: data.minMarginPercent ?? null,
active: data.active ?? true,
companyId,
createdBy: userId
@@ -500,7 +461,6 @@ export async function duplicatePricingRule(
validFrom: original.validFrom,
validTo: original.validTo,
priority: original.priority,
- minMarginPercent: original.minMarginPercent,
active: false,
companyId,
createdBy: userId
@@ -2020,22 +1980,17 @@ export async function resolvePrice(
resolvedCustomerTypeId = cust?.customerTypeId ?? null;
}
- // Pull posting group + unit cost from itemCost. The posting group is needed
- // to match rules scoped to itemPostingGroupId; the unit cost feeds
- // rule-level minMarginPercent clamps.
+ // Pull posting group from itemCost so we can match rules scoped to
+ // itemPostingGroupId.
let resolvedItemPostingGroupId = input.itemPostingGroupId ?? null;
- let unitCost: number | null = null;
- const { data: costRow } = await client
- .from("itemCost")
- .select("itemPostingGroupId, unitCost")
- .eq("itemId", input.itemId)
- .eq("companyId", companyId)
- .maybeSingle();
- if (costRow) {
- if (!resolvedItemPostingGroupId) {
- resolvedItemPostingGroupId = costRow.itemPostingGroupId ?? null;
- }
- unitCost = costRow.unitCost ?? null;
+ if (!resolvedItemPostingGroupId) {
+ const { data: costRow } = await client
+ .from("itemCost")
+ .select("itemPostingGroupId")
+ .eq("itemId", input.itemId)
+ .eq("companyId", companyId)
+ .maybeSingle();
+ resolvedItemPostingGroupId = costRow?.itemPostingGroupId ?? null;
}
let basePrice: number;
@@ -2182,7 +2137,7 @@ export async function resolvePrice(
return true;
}) as MatchedRule[];
- const ruleResult = applyPriceRules(startingPrice, matchedRules, unitCost);
+ const ruleResult = applyPriceRules(startingPrice, matchedRules);
finalPrice = ruleResult.finalPrice;
trace.push(...ruleResult.appendedTrace);
}
@@ -2268,7 +2223,7 @@ export async function resolvePriceList(
let itemQuery = client
.from("item")
.select(
- "id, readableId, name, thumbnailPath, itemUnitSalePrice(unitSalePrice), itemCost(itemPostingGroupId, unitCost)",
+ "id, readableId, name, thumbnailPath, itemUnitSalePrice(unitSalePrice), itemCost(itemPostingGroupId)",
{ count: "exact" }
)
.eq("active", true)
@@ -2391,7 +2346,6 @@ export async function resolvePriceList(
? item.itemCost[0]
: item.itemCost;
const itemPostingGroupId = itemCostRow?.itemPostingGroupId ?? null;
- const unitCost = itemCostRow?.unitCost ?? null;
const trace: PriceTraceStep[] = [];
let startingPrice = basePrice;
@@ -2501,7 +2455,7 @@ export async function resolvePriceList(
return true;
});
- const ruleResult = applyPriceRules(startingPrice, matchedRules, unitCost);
+ const ruleResult = applyPriceRules(startingPrice, matchedRules);
finalPrice = ruleResult.finalPrice;
trace.push(...ruleResult.appendedTrace);
hasRuleAdjustment = ruleResult.appendedTrace.length > 0;
diff --git a/apps/erp/app/modules/sales/types.ts b/apps/erp/app/modules/sales/types.ts
index f88afdc3a5..7257a34e22 100644
--- a/apps/erp/app/modules/sales/types.ts
+++ b/apps/erp/app/modules/sales/types.ts
@@ -39,7 +39,6 @@ export type MatchedRule = {
amountType: string;
amount: number;
priority: number;
- minMarginPercent: number | null;
};
export type PriceOverrideBreak = {
diff --git a/apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx b/apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx
index 04f165a801..ce32e07320 100644
--- a/apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx
+++ b/apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx
@@ -274,20 +274,6 @@ const PricingRuleForm = ({ initialValues, onClose }: PricingRuleFormProps) => {
minValue={0}
step={1}
/>
-
- <Number
- name="minMarginPercent"
- label={t`Min Margin %`}
- helperText={t`Floor: price won't drop below this margin over cost`}
- minValue={0}
- maxValue={1}
- step={0.01}
- formatOptions={{
- style: "percent",
- minimumFractionDigits: 0,
- maximumFractionDigits: 2
- }}
- />
</VStack>
</ModalDrawerBody>
<ModalDrawerFooter>
diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json b/apps/erp/app/routes/api+/mcp+/lib/tool-metadata.json
index c1742cd1fe..acc8d82657 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-06T11:41:23.878Z",
+ "generated": "2026-05-07T07:54:24.810Z",
"totalTools": 1075,
"modules": 15,
"tools": [
diff --git a/apps/erp/app/routes/x+/sales+/pricing-rules.$ruleId.tsx b/apps/erp/app/routes/x+/sales+/pricing-rules.$ruleId.tsx
index d05416d220..89b5b15fe3 100644
--- a/apps/erp/app/routes/x+/sales+/pricing-rules.$ruleId.tsx
+++ b/apps/erp/app/routes/x+/sales+/pricing-rules.$ruleId.tsx
@@ -108,7 +108,6 @@ export default function EditPricingRuleRoute() {
validFrom: pricingRule.validFrom ?? undefined,
validTo: pricingRule.validTo ?? undefined,
priority: pricingRule.priority ?? 0,
- minMarginPercent: pricingRule.minMarginPercent ?? undefined,
active: pricingRule.active
};
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index 83d1c5c3e5..acb5f73719 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -15777,9 +15777,6 @@ export default {
{
$ref: "#/parameters/rowFilter.pricingRule.validTo"
},
- {
- $ref: "#/parameters/rowFilter.pricingRule.minMarginPercent"
- },
{
$ref: "#/parameters/rowFilter.pricingRule.active"
},
@@ -15899,9 +15896,6 @@ export default {
{
$ref: "#/parameters/rowFilter.pricingRule.validTo"
},
- {
- $ref: "#/parameters/rowFilter.pricingRule.minMarginPercent"
- },
{
$ref: "#/parameters/rowFilter.pricingRule.active"
},
@@ -15975,9 +15969,6 @@ export default {
{
$ref: "#/parameters/rowFilter.pricingRule.validTo"
},
- {
- $ref: "#/parameters/rowFilter.pricingRule.minMarginPercent"
- },
{
$ref: "#/parameters/rowFilter.pricingRule.active"
},
@@ -84535,10 +84526,6 @@ export default {
format: "date",
type: "string"
},
- minMarginPercent: {
- format: "numeric",
- type: "number"
- },
active: {
default: true,
format: "boolean",
@@ -118330,12 +118317,6 @@ export default {
in: "query",
type: "string"
},
- "rowFilter.pricingRule.minMarginPercent": {
- name: "minMarginPercent",
- required: false,
- in: "query",
- type: "string"
- },
"rowFilter.pricingRule.active": {
name: "active",
required: false,
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 8e71a99475..ca5a31a1e0 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -24625,7 +24625,6 @@ export type Database = {
itemIds: string[] | null
itemPostingGroupId: string | null
maxQuantity: number | null
- minMarginPercent: number | null
minQuantity: number | null
name: string
priority: number
@@ -24648,7 +24647,6 @@ export type Database = {
itemIds?: string[] | null
itemPostingGroupId?: string | null
maxQuantity?: number | null
- minMarginPercent?: number | null
minQuantity?: number | null
name: string
priority?: number
@@ -24671,7 +24669,6 @@ export type Database = {
itemIds?: string[] | null
itemPostingGroupId?: string | null
maxQuantity?: number | null
- minMarginPercent?: number | null
minQuantity?: number | null
name?: string
priority?: number
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index fe444be043..ca5a31a1e0 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -6204,6 +6204,7 @@ export type Database = {
id: string
listOptions: string[] | null
name: string
+ required: boolean
sortOrder: number
table: string
tags: string[] | null
@@ -6219,6 +6220,7 @@ export type Database = {
id?: string
listOptions?: string[] | null
name: string
+ required?: boolean
sortOrder?: number
table: string
tags?: string[] | null
@@ -6234,6 +6236,7 @@ export type Database = {
id?: string
listOptions?: string[] | null
name?: string
+ required?: boolean
sortOrder?: number
table?: string
tags?: string[] | null
@@ -24622,7 +24625,6 @@ export type Database = {
itemIds: string[] | null
itemPostingGroupId: string | null
maxQuantity: number | null
- minMarginPercent: number | null
minQuantity: number | null
name: string
priority: number
@@ -24645,7 +24647,6 @@ export type Database = {
itemIds?: string[] | null
itemPostingGroupId?: string | null
maxQuantity?: number | null
- minMarginPercent?: number | null
minQuantity?: number | null
name: string
priority?: number
@@ -24668,7 +24669,6 @@ export type Database = {
itemIds?: string[] | null
itemPostingGroupId?: string | null
maxQuantity?: number | null
- minMarginPercent?: number | null
minQuantity?: number | null
name?: string
priority?: number
diff --git a/packages/database/supabase/migrations/20260506120000_pricing-rules-drop-min-margin.sql b/packages/database/supabase/migrations/20260506120000_pricing-rules-drop-min-margin.sql
new file mode 100644
index 0000000000..2d0014e8c5
--- /dev/null
+++ b/packages/database/supabase/migrations/20260506120000_pricing-rules-drop-min-margin.sql
@@ -0,0 +1 @@
+ALTER TABLE "pricingRule" DROP COLUMN "minMarginPercent";
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index 7ddcb9f092..b5d15f40a6 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -5922,10 +5922,6 @@ msgstr "Feste Nachbestellung"
msgid "Fixed Shelf Life"
msgstr "Feste Haltbarkeit"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "Untergrenze: Der Preis wird diese Marge über den Kosten nicht unterschreiten"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "Für wachsende Unternehmen, die Unterstützung benötigen"
@@ -7771,10 +7767,6 @@ msgstr "Metrische Einheiten sind deaktiviert"
msgid "Metric units are enabled"
msgstr "Metrische Einheiten sind aktiviert"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "Min Marge %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "Min. Menge"
diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.po
index ec4ad36d20..790e6e3775 100644
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@ -5922,10 +5922,6 @@ msgstr "Fixed Reorder"
msgid "Fixed Shelf Life"
msgstr "Fixed Shelf Life"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "Floor: price won't drop below this margin over cost"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "For growing businesses that need support"
@@ -7771,10 +7767,6 @@ msgstr "Metric units are disabled"
msgid "Metric units are enabled"
msgstr "Metric units are enabled"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "Min Margin %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "Min Qty"
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index 52d51de73f..c9b7d8af33 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -5922,10 +5922,6 @@ msgstr "Reorden Fijo"
msgid "Fixed Shelf Life"
msgstr "Vida Útil Fija"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "Piso: el precio no caerá por debajo de este margen sobre el costo"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "Para empresas en crecimiento que necesitan soporte"
@@ -7771,10 +7767,6 @@ msgstr "Las unidades métricas están deshabilitadas"
msgid "Metric units are enabled"
msgstr "Las unidades métricas están habilitadas"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "% Margen Mín"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "Cant. Mín"
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index 846b4f4023..67482ae4d6 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -5922,10 +5922,6 @@ msgstr "Réapprovisionnement Fixe"
msgid "Fixed Shelf Life"
msgstr "Durée de conservation fixe"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "Plancher : le prix ne descendra pas en dessous de cette marge sur le coût"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "Pour les entreprises en croissance qui ont besoin de support"
@@ -7771,10 +7767,6 @@ msgstr "Les unités métriques sont désactivées"
msgid "Metric units are enabled"
msgstr "Les unités métriques sont activées"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "% Marge Min"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "Qté min"
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index 84d8cb057d..8bec565d6a 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -5922,10 +5922,6 @@ msgstr "निश्चित पुनः ऑर्डर"
msgid "Fixed Shelf Life"
msgstr "निश्चित शेल्फ जीवन"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "फ़्लोर: कीमत इस मार्जिन से लागत के ऊपर नहीं गिरेगी"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "बढ़ते हुए व्यवसायों के लिए जिन्हें समर्थन की आवश्यकता है"
@@ -7771,10 +7767,6 @@ msgstr "मीट्रिक इकाइयाँ अक्षम हैं"
msgid "Metric units are enabled"
msgstr "मीट्रिक इकाइयाँ सक्षम हैं"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "न्यूनतम मार्जिन %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "न्यूनतम मात्रा"
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index 6105ab56d6..933fabce90 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -5922,10 +5922,6 @@ msgstr "Riordino Fisso"
msgid "Fixed Shelf Life"
msgstr "Durata di Conservazione Fissa"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "Minimo: il prezzo non scenderà al di sotto di questo margine rispetto al costo"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "Per le aziende in crescita che hanno bisogno di supporto"
@@ -7771,10 +7767,6 @@ msgstr "Le unità metriche sono disabilitate"
msgid "Metric units are enabled"
msgstr "Le unità metriche sono abilitate"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "Min Margine %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "Qtà Min"
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index d2d1a31fae..460c981083 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -5922,10 +5922,6 @@ msgstr "固定再注文"
msgid "Fixed Shelf Life"
msgstr "固定棚卸し期間"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "フロア:価格はこのマージンを下回りません"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "成長中のビジネスをサポートするために"
@@ -7771,10 +7767,6 @@ msgstr "メートル法の単位は無効です"
msgid "Metric units are enabled"
msgstr "メートル法単位が有効です"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "最小マージン %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "最小数量"
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index 37fdde407f..43c15754b0 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -5922,10 +5922,6 @@ msgstr "Stałe Zamówienie"
msgid "Fixed Shelf Life"
msgstr "Stały okres przydatności"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "Minimum: cena nie spadnie poniżej tej marży w stosunku do kosztu"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "Dla rozwijających się firm, które potrzebują wsparcia"
@@ -7771,10 +7767,6 @@ msgstr "Jednostki metryczne są wyłączone"
msgid "Metric units are enabled"
msgstr "Jednostki metryczne są włączone"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "Min Marża %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "Min Ilość"
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index ad4e195ec8..6ea38dd621 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -5922,10 +5922,6 @@ msgstr "Reabastecimento Fixo"
msgid "Fixed Shelf Life"
msgstr "Vida Útil Fixa"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "Piso: o preço não cairá abaixo desta margem sobre o custo"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "Para empresas em crescimento que precisam de suporte"
@@ -7771,10 +7767,6 @@ msgstr "Unidades métricas desativadas"
msgid "Metric units are enabled"
msgstr "Unidades métricas ativadas"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "Margem Mín %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "Qtd Mín"
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 0fecd335ab..8be67af206 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -5922,10 +5922,6 @@ msgstr "Фиксированный заказ"
msgid "Fixed Shelf Life"
msgstr "Фиксированный срок годности"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "Минимум: цена не упадет ниже этой маржи от стоимости"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "Для растущих компаний, нуждающихся в поддержке"
@@ -7771,10 +7767,6 @@ msgstr "Метрические единицы отключены"
msgid "Metric units are enabled"
msgstr "Метрические единицы включены"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "Мин. маржа %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "Мин. кол-во"
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index 67c50801bc..6e5df53a4d 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -5922,10 +5922,6 @@ msgstr "固定重新订购"
msgid "Fixed Shelf Life"
msgstr "固定保质期"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:281
-msgid "Floor: price won't drop below this margin over cost"
-msgstr "底价:价格不会低于成本之上的此利润率"
-
#: apps/erp/app/routes/onboarding+/plan.tsx:44
msgid "For growing businesses that need support"
msgstr "适合需要支持的成长型企业"
@@ -7771,10 +7767,6 @@ msgstr "公制单位已禁用"
msgid "Metric units are enabled"
msgstr "公制单位已启用"
-#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:280
-msgid "Min Margin %"
-msgstr "最低利润率 %"
-
#: apps/erp/app/modules/sales/ui/Pricing/PricingRuleForm.tsx:266
msgid "Min Qty"
msgstr "最小数量"