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.

fix: add expiry checks in shipment

Sidwebworks528062d09f8c
diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
index 8ef3e81423..70b9282674 100644
--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx
@@ -44,6 +44,7 @@ import {
LuCircleAlert,
LuEllipsisVertical,
LuGroup,
+ LuInfo,
LuQrCode,
LuSplit,
LuTrash
@@ -838,31 +839,30 @@ function BatchForm({
)}
</InputRightElement>
</InputGroup>
- {values.number &&
- batchNumbers?.data &&
- (() => {
- const batchNumber = resolveTrackedEntity(
- values.number,
- batchNumbers.data
- );
- if (batchNumber) {
- // @ts-expect-error TS2339 - TODO: fix type
- if ((line.shippedQuantity || 0) < batchNumber.quantity) {
- return (
- <span className="text-xs text-muted-foreground">
- Shipped quantity is less than batch quantity. A new
- batch will be created for the remaining quantity when
- posted.
- </span>
- );
- }
- }
- return null;
- })()}
{error && <span className="text-xs text-destructive">{error}</span>}
</div>
</div>
</div>
+ {values.number &&
+ batchNumbers?.data &&
+ (() => {
+ const batchNumber = resolveTrackedEntity(
+ values.number,
+ batchNumbers.data
+ );
+ if (!batchNumber) return null;
+ // @ts-expect-error TS2339 - TODO: fix type
+ if ((line.shippedQuantity || 0) >= batchNumber.quantity) return null;
+ return (
+ <div className="flex items-center gap-2 rounded-md border border-border bg-muted/40 px-2.5 py-1.5 text-xs text-muted-foreground">
+ <LuInfo className="h-3.5 w-3.5 flex-shrink-0" />
+ <span>
+ Shipped quantity is less than batch quantity. A new batch will
+ be created for the remaining quantity when posted.
+ </span>
+ </div>
+ );
+ })()}
</div>
);
}
diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx
index 94f70a992f..70898c25c8 100644
--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx
+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx
@@ -19,17 +19,20 @@ import {
} from "@carbon/react";
import type { TrackedEntityAttributes } from "@carbon/utils";
import { getItemReadableId } from "@carbon/utils";
+import { getLocalTimeZone, parseDate, today } from "@internationalized/date";
import { Trans, useLingui } from "@lingui/react/macro";
import { useState } from "react";
import { LuTriangleAlert } from "react-icons/lu";
import { useNavigation, useParams } from "react-router";
-import { useUser } from "~/hooks";
+import { useSettings, useUser } from "~/hooks";
import { useItemRuleViolations } from "~/hooks/useItemRuleViolations";
import { useItems } from "~/stores";
import { path } from "~/utils/path";
import type { ShipmentLine } from "../..";
import { getShipmentTracking } from "../..";
+type ExpiredEntityPolicy = "Warn" | "Block" | "BlockWithOverride";
+
const ShipmentPostModal = ({ onClose }: { onClose: () => void }) => {
const { shipmentId } = useParams();
if (!shipmentId) throw new Error("shipmentId not found");
@@ -55,6 +58,28 @@ const ShipmentPostModal = ({ onClose }: { onClose: () => void }) => {
const {
company: { id: companyId }
} = useUser();
+ const settings = useSettings();
+ const expiredPolicy: ExpiredEntityPolicy =
+ (
+ (settings.inventoryShelfLife as {
+ expiredEntityPolicy?: ExpiredEntityPolicy;
+ } | null) ?? null
+ )?.expiredEntityPolicy ?? "Block";
+
+ const [expiredWarnings, setExpiredWarnings] = useState<
+ {
+ itemReadableId: string | null;
+ readableId: string;
+ expirationDate: string;
+ }[]
+ >([]);
+ const [expiredErrors, setExpiredErrors] = useState<
+ {
+ itemReadableId: string | null;
+ readableId: string;
+ expirationDate: string;
+ }[]
+ >([]);
const validateShipmentTracking = async () => {
const errors: {
@@ -87,6 +112,26 @@ const ShipmentPostModal = ({ onClose }: { onClose: () => void }) => {
]);
}
+ const todayLocal = today(getLocalTimeZone());
+ const isExpired = (expirationDate: string | null | undefined) => {
+ if (!expirationDate) return false;
+ try {
+ return parseDate(expirationDate).compare(todayLocal) < 0;
+ } catch {
+ return false;
+ }
+ };
+ const expiredCollected: {
+ itemReadableId: string | null;
+ readableId: string;
+ expirationDate: string;
+ }[] = [];
+ const expiredBlocked: {
+ itemReadableId: string | null;
+ readableId: string;
+ expirationDate: string;
+ }[] = [];
+
routeData?.shipmentLines.forEach((line: ShipmentLine) => {
if (line.requiresBatchTracking) {
const trackedEntity = shipmentLineTracking.data?.find((tracking) => {
@@ -101,6 +146,24 @@ const ShipmentPostModal = ({ onClose }: { onClose: () => void }) => {
shippedQuantityError: "Tracked entity is not available"
});
}
+
+ if (trackedEntity && isExpired(trackedEntity.expirationDate)) {
+ const itemReadableId = getItemReadableId(items, line.itemId) ?? null;
+ const readableId = trackedEntity.readableId ?? trackedEntity.id;
+ const entry = {
+ itemReadableId,
+ readableId,
+ expirationDate: trackedEntity.expirationDate as string
+ };
+ if (
+ expiredPolicy === "Block" ||
+ expiredPolicy === "BlockWithOverride"
+ ) {
+ expiredBlocked.push(entry);
+ } else {
+ expiredCollected.push(entry);
+ }
+ }
}
if (line.requiresSerialTracking) {
@@ -124,10 +187,31 @@ const ShipmentPostModal = ({ onClose }: { onClose: () => void }) => {
shippedQuantityError: "Serial numbers are missing or unavailable"
});
}
+
+ trackedEntities?.forEach((trackedEntity) => {
+ if (!isExpired(trackedEntity.expirationDate)) return;
+ const itemReadableId = getItemReadableId(items, line.itemId) ?? null;
+ const readableId = trackedEntity.readableId ?? trackedEntity.id;
+ const entry = {
+ itemReadableId,
+ readableId,
+ expirationDate: trackedEntity.expirationDate as string
+ };
+ if (
+ expiredPolicy === "Block" ||
+ expiredPolicy === "BlockWithOverride"
+ ) {
+ expiredBlocked.push(entry);
+ } else {
+ expiredCollected.push(entry);
+ }
+ });
}
});
setValidationErrors(errors);
+ setExpiredWarnings(expiredCollected);
+ setExpiredErrors(expiredBlocked);
setValidated(true);
};
@@ -187,6 +271,55 @@ const ShipmentPostModal = ({ onClose }: { onClose: () => void }) => {
</AlertDescription>
</Alert>
)}
+ {expiredErrors.length > 0 && (
+ <Alert variant="destructive" className="mt-4">
+ <LuTriangleAlert className="h-4 w-4" />
+ <AlertTitle>
+ <Trans>Expired Batches</Trans>
+ </AlertTitle>
+ <AlertDescription>
+ <Trans>
+ Cannot post — shipment contains expired tracked entities.
+ </Trans>
+ <ul className="list-disc pl-4 mt-2 space-y-1">
+ {expiredErrors.map((w, index) => (
+ <li key={index} className="text-sm font-medium">
+ <span className="font-mono">{w.itemReadableId}</span>
+ <span className="text-muted-foreground ml-2">
+ {w.readableId}
+ </span>
+ <span className="block mt-0.5 text-red-500 font-normal">
+ Expired on {w.expirationDate}
+ </span>
+ </li>
+ ))}
+ </ul>
+ </AlertDescription>
+ </Alert>
+ )}
+ {expiredWarnings.length > 0 && (
+ <Alert variant="warning" className="mt-4">
+ <LuTriangleAlert className="h-4 w-4" />
+ <AlertTitle>
+ <Trans>Expired Batches</Trans>
+ </AlertTitle>
+ <AlertDescription>
+ <ul className="list-disc pl-4 mt-2 space-y-1">
+ {expiredWarnings.map((w, index) => (
+ <li key={index} className="text-sm font-medium">
+ <span className="font-mono">{w.itemReadableId}</span>
+ <span className="text-muted-foreground ml-2">
+ {w.readableId}
+ </span>
+ <span className="block mt-0.5 text-amber-600 font-normal">
+ Expired on {w.expirationDate}
+ </span>
+ </li>
+ ))}
+ </ul>
+ </AlertDescription>
+ </Alert>
+ )}
</ModalBody>
<ModalFooter>
<HStack>
@@ -200,7 +333,8 @@ const ShipmentPostModal = ({ onClose }: { onClose: () => void }) => {
fetcher.state !== "idle" ||
navigation.state !== "idle" ||
!validated ||
- validationErrors.length > 0
+ validationErrors.length > 0 ||
+ expiredErrors.length > 0
}
type="submit"
>
diff --git a/apps/erp/app/routes/x+/shipment+/$shipmentId.post.tsx b/apps/erp/app/routes/x+/shipment+/$shipmentId.post.tsx
index a6875e81c8..c1f7702c82 100644
--- a/apps/erp/app/routes/x+/shipment+/$shipmentId.post.tsx
+++ b/apps/erp/app/routes/x+/shipment+/$shipmentId.post.tsx
@@ -1,7 +1,8 @@
-import { error } from "@carbon/auth";
+import { error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { getCarbonServiceRole } from "@carbon/auth/client.server";
import { flash } from "@carbon/auth/session.server";
+import { getLocalTimeZone, parseDate, today } from "@internationalized/date";
import type { ActionFunctionArgs } from "react-router";
import { redirect } from "react-router";
import { upsertDocument } from "~/modules/documents";
@@ -14,6 +15,8 @@ import { loader as pdfLoader } from "~/routes/file+/shipment+/$id[.]pdf";
import { path } from "~/utils/path";
import { stripSpecialCharacters } from "~/utils/string";
+type ExpiredEntityPolicy = "Warn" | "Block" | "BlockWithOverride";
+
export async function action({ request, params }: ActionFunctionArgs) {
const { client, companyId, userId } = await requirePermissions(request, {
update: "inventory"
@@ -81,6 +84,56 @@ export async function action({ request, params }: ActionFunctionArgs) {
};
}
+ // Expired-batch policy check. Mirrors post-stock-transfer / issue edge
+ // functions: pulls inventoryShelfLife.expiredEntityPolicy from
+ // companySettings and refuses to post when any tracked entity attached to
+ // the shipment is past its expirationDate (unless policy is "Warn").
+ const { data: companySettings } = await serviceRole
+ .from("companySettings")
+ .select("inventoryShelfLife")
+ .eq("id", companyId)
+ .single();
+ const shelfLifeBlob = companySettings?.inventoryShelfLife as {
+ expiredEntityPolicy?: ExpiredEntityPolicy;
+ } | null;
+ const expiredPolicy: ExpiredEntityPolicy =
+ shelfLifeBlob?.expiredEntityPolicy ?? "Block";
+
+ const { data: shipmentTrackedEntities } = await serviceRole
+ .from("trackedEntity")
+ .select("id, readableId, expirationDate")
+ .eq("attributes ->> Shipment", shipmentId)
+ .eq("companyId", companyId);
+
+ const todayLocal = today(getLocalTimeZone());
+ const expiredEntities = (shipmentTrackedEntities ?? []).filter((e) => {
+ if (!e.expirationDate) return false;
+ try {
+ return parseDate(e.expirationDate).compare(todayLocal) < 0;
+ } catch {
+ return false;
+ }
+ });
+
+ let expiredWarning: string | null = null;
+ if (expiredEntities.length > 0) {
+ const ids = expiredEntities.map((e) => e.readableId ?? e.id).join(", ");
+ const message = `Cannot post shipment with expired batch${
+ expiredEntities.length === 1 ? "" : "es"
+ }: ${ids}`;
+
+ if (expiredPolicy === "Block" || expiredPolicy === "BlockWithOverride") {
+ throw redirect(
+ path.to.shipmentDetails(shipmentId),
+ await flash(request, error(null, message))
+ );
+ }
+
+ expiredWarning = `Posted shipment with expired batch${
+ expiredEntities.length === 1 ? "" : "es"
+ }: ${ids}`;
+ }
+
const setPendingState = await client
.from("shipment")
.update({
@@ -206,5 +259,12 @@ export async function action({ request, params }: ActionFunctionArgs) {
.eq("id", shipmentId);
}
+ if (expiredWarning) {
+ throw redirect(
+ path.to.shipmentDetails(shipmentId),
+ await flash(request, success(expiredWarning))
+ );
+ }
+
throw redirect(path.to.shipmentDetails(shipmentId));
}
diff --git a/packages/database/supabase/functions/post-shipment/index.ts b/packages/database/supabase/functions/post-shipment/index.ts
index 2587e7e555..06acd19401 100644
--- a/packages/database/supabase/functions/post-shipment/index.ts
+++ b/packages/database/supabase/functions/post-shipment/index.ts
@@ -1,17 +1,17 @@
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import { format } from "https://deno.land/[email protected]/datetime/mod.ts";
+import { nanoid } from "https://deno.land/x/[email protected]/mod.ts";
import { z } from "https://deno.land/x/[email protected]/mod.ts";
import { DB, getConnectionPool, getDatabaseClient } from "../lib/database.ts";
+import { isInternalUser } from "../lib/flags.ts";
import { corsHeaders } from "../lib/headers.ts";
import { getSupabaseServiceRole } from "../lib/supabase.ts";
import type { Database, Json } from "../lib/types.ts";
import { TrackedEntityAttributes, credit, debit, journalReference } from "../lib/utils.ts";
-import { isInternalUser } from "../lib/flags.ts";
+import { calculateCOGS } from "../shared/calculate-cogs.ts";
import { getCurrentAccountingPeriod } from "../shared/get-accounting-period.ts";
import { getNextSequence } from "../shared/get-next-sequence.ts";
import { getDefaultPostingGroup } from "../shared/get-posting-group.ts";
-import { calculateCOGS } from "../shared/calculate-cogs.ts";
-import { nanoid } from "https://deno.land/x/[email protected]/mod.ts";
const pool = getConnectionPool(1);
const db = getDatabaseClient<DB>(pool);
@@ -589,6 +589,18 @@ serve(async (req: Request) => {
return acc;
}, {}) ?? {};
+ // Resolve accounting period BEFORE opening the Kysely transaction.
+ // getCurrentAccountingPeriod uses the Supabase REST client; calling
+ // it mid-transaction parks the pg connection in idle-in-transaction
+ // (ClientRead) while the REST hop runs, and any hang there leaves
+ // an orphan that exhausts the pool (size 1) for every subsequent
+ // post-shipment invocation.
+ const accountingPeriodId = await getCurrentAccountingPeriod(
+ client,
+ companyId,
+ db
+ );
+
await db.transaction().execute(async (trx) => {
for await (const [salesOrderLineId, update] of Object.entries(
salesOrderLineUpdates
@@ -988,12 +1000,6 @@ serve(async (req: Request) => {
.execute();
}
- const accountingPeriodId = await getCurrentAccountingPeriod(
- client,
- companyId,
- db
- );
-
const journalEntryId = await getNextSequence(
trx,
"journalEntry",
diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.po
index d49ae29598..5c25e81948 100644
--- a/packages/locale/locales/de/erp.po
+++ b/packages/locale/locales/de/erp.po
@@ -1269,7 +1269,7 @@ msgstr "Sind Sie sicher, dass Sie den Lieferantenprozess dauerhaft löschen möc
msgid "Are you sure you want to post this receipt?"
msgstr "Sind Sie sicher, dass Sie diesen Beleg buchen möchten?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "Sind Sie sicher, dass Sie diese Sendung buchen möchten?"
@@ -1552,7 +1552,7 @@ msgstr "Charge"
msgid "Batch items require a sales order"
msgstr "Chargennummern-Artikel erfordern einen Verkaufsauftrag"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "Chargennummer"
@@ -1785,7 +1785,7 @@ msgstr "Der einzige aktive Break kann nicht deaktiviert werden. Fügen Sie einen
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "Kann nicht in den Teile-Bucket ohne Element-ID verschoben werden"
msgid "Cannot place order - no supplier associated with this item"
msgstr "Bestellung kann nicht aufgegeben werden - kein Lieferant mit diesem Artikel verknüpft"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "RFQ kann nicht gesendet werden"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "Kann nicht in den Teile-Bucket ohne Element-ID hochgeladen werden"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Carbon-Client ist nicht verfügbar"
@@ -3997,7 +4001,7 @@ msgstr "Schicht löschen"
msgid "Delete Shipment"
msgstr "Sendung löschen"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "Versandzeile löschen"
@@ -5334,6 +5338,11 @@ msgstr "Abgelaufen"
msgid "Expired batch"
msgstr "Abgelaufener Charge"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "Vergleich der Positionen"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "Zeilenoptionen"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "Minuten/Stück"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "Fehlende Informationen"
@@ -9803,7 +9812,7 @@ msgstr "Rechnung buchen"
msgid "Post Receipt"
msgstr "Beleg buchen"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "Sendung buchen"
@@ -12257,7 +12266,7 @@ msgstr "Versand-ID"
msgid "Shipment Line"
msgstr "Versandposition"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "Versandzeilen"
@@ -12591,7 +12600,7 @@ msgstr "Abzuspaltende Menge"
msgid "Split receipt line"
msgstr "Beleg-Position aufteilen"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "Versandzeile teilen"
diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.po
index 2c115a4ad8..bde1f1ee8a 100644
--- a/packages/locale/locales/en/erp.po
+++ b/packages/locale/locales/en/erp.po
@@ -1269,7 +1269,7 @@ msgstr "Are you sure you want to permanently delete the supplier process?"
msgid "Are you sure you want to post this receipt?"
msgstr "Are you sure you want to post this receipt?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "Are you sure you want to post this shipment?"
@@ -1552,7 +1552,7 @@ msgstr "Batch"
msgid "Batch items require a sales order"
msgstr "Batch items require a sales order"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "Batch number"
@@ -1785,7 +1785,7 @@ msgstr "Can't disable the only active break. Add another break or toggle the ove
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "Cannot move to parts bucket without item ID"
msgid "Cannot place order - no supplier associated with this item"
msgstr "Cannot place order - no supplier associated with this item"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr "Cannot post — shipment contains expired tracked entities."
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "Cannot send RFQ"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "Cannot upload to parts bucket without item ID"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Carbon client is not available"
@@ -3997,7 +4001,7 @@ msgstr "Delete Shift"
msgid "Delete Shipment"
msgstr "Delete Shipment"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "Delete shipment line"
@@ -5334,6 +5338,11 @@ msgstr "Expired"
msgid "Expired batch"
msgstr "Expired batch"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr "Expired Batches"
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "Line Item Comparison"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "Line options"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "Minutes/Piece"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "Missing Information"
@@ -9803,7 +9812,7 @@ msgstr "Post Invoice"
msgid "Post Receipt"
msgstr "Post Receipt"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "Post Shipment"
@@ -12257,7 +12266,7 @@ msgstr "Shipment ID"
msgid "Shipment Line"
msgstr "Shipment Line"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "Shipment Lines"
@@ -12591,7 +12600,7 @@ msgstr "Split off quantity"
msgid "Split receipt line"
msgstr "Split receipt line"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "Split shipment line"
diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.po
index 4a5439d7eb..e1229175ea 100644
--- a/packages/locale/locales/es/erp.po
+++ b/packages/locale/locales/es/erp.po
@@ -1269,7 +1269,7 @@ msgstr "¿Estás seguro de que deseas eliminar permanentemente el proceso del pr
msgid "Are you sure you want to post this receipt?"
msgstr "¿Estás seguro de que deseas publicar este recibo?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "¿Estás seguro de que deseas publicar este envío?"
@@ -1552,7 +1552,7 @@ msgstr "Lote"
msgid "Batch items require a sales order"
msgstr "Los artículos por lote requieren una orden de venta"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "Número de lote"
@@ -1785,7 +1785,7 @@ msgstr "No se puede desactivar el único intervalo activo. Agregue otro interval
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "No se puede mover al depósito de piezas sin ID de artículo"
msgid "Cannot place order - no supplier associated with this item"
msgstr "No se puede realizar el pedido - no hay proveedor asociado a este artículo"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "No se puede enviar RFQ"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "No se puede cargar en el depósito de piezas sin ID de artículo"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "El cliente de Carbon no está disponible"
@@ -3997,7 +4001,7 @@ msgstr "Eliminar Turno"
msgid "Delete Shipment"
msgstr "Eliminar Envío"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "Eliminar línea de envío"
@@ -5334,6 +5338,11 @@ msgstr "Expirado"
msgid "Expired batch"
msgstr "Lote expirado"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "Comparación de Artículos de Línea"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "Opciones de línea"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "Minutos/Pieza"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "Información Faltante"
@@ -9803,7 +9812,7 @@ msgstr "Registrar Factura"
msgid "Post Receipt"
msgstr "Registrar Recepción"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "Publicar Envío"
@@ -12257,7 +12266,7 @@ msgstr "ID de envío"
msgid "Shipment Line"
msgstr "Línea de Envío"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "Líneas de envío"
@@ -12591,7 +12600,7 @@ msgstr "Cantidad a dividir"
msgid "Split receipt line"
msgstr "Dividir línea de recepción"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "Dividir línea de envío"
diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.po
index 0f88fb9342..c6ada568ae 100644
--- a/packages/locale/locales/fr/erp.po
+++ b/packages/locale/locales/fr/erp.po
@@ -1269,7 +1269,7 @@ msgstr "Êtes-vous sûr de vouloir supprimer définitivement le processus fourni
msgid "Are you sure you want to post this receipt?"
msgstr "Êtes-vous sûr de vouloir valider ce reçu ?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "Êtes-vous sûr de vouloir valider cet envoi ?"
@@ -1552,7 +1552,7 @@ msgstr "Lot"
msgid "Batch items require a sales order"
msgstr "Les articles en lot nécessitent une commande client"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "Numéro de lot"
@@ -1785,7 +1785,7 @@ msgstr "Impossible de désactiver le seul palier actif. Ajoutez un autre palier
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "Impossible de déplacer vers le compartiment des pièces sans ID d'artic
msgid "Cannot place order - no supplier associated with this item"
msgstr "Impossible de passer la commande - aucun fournisseur associé à cet article"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "Impossible d'envoyer la demande de devis"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "Impossible de télécharger vers le compartiment des pièces sans ID d'article"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Le client Carbon n'est pas disponible"
@@ -3997,7 +4001,7 @@ msgstr "Supprimer le quart"
msgid "Delete Shipment"
msgstr "Supprimer l'expédition"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "Supprimer la ligne d'expédition"
@@ -5334,6 +5338,11 @@ msgstr "Expiré"
msgid "Expired batch"
msgstr "Lot expiré"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "Comparaison des articles"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "Options de ligne"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "Minutes/Pièce"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "Informations manquantes"
@@ -9803,7 +9812,7 @@ msgstr "Valider la facture"
msgid "Post Receipt"
msgstr "Valider le reçu"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "Valider l'expédition"
@@ -12257,7 +12266,7 @@ msgstr "ID d'expédition"
msgid "Shipment Line"
msgstr "Ligne d'expédition"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "Lignes d'expédition"
@@ -12591,7 +12600,7 @@ msgstr "Quantité à diviser"
msgid "Split receipt line"
msgstr "Diviser la ligne de reçu"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "Diviser la ligne d'expédition"
diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.po
index ffea3995e8..bd7bd1e081 100644
--- a/packages/locale/locales/hi/erp.po
+++ b/packages/locale/locales/hi/erp.po
@@ -1269,7 +1269,7 @@ msgstr "क्या आप सुनिश्चित हैं कि आप
msgid "Are you sure you want to post this receipt?"
msgstr "क्या आप सुनिश्चित हैं कि आप इस रसीद को पोस्ट करना चाहते हैं?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "क्या आप सुनिश्चित हैं कि आप इस शिपमेंट को पोस्ट करना चाहते हैं?"
@@ -1552,7 +1552,7 @@ msgstr "बैच"
msgid "Batch items require a sales order"
msgstr "बैच आइटम के लिए बिक्री आदेश आवश्यक है"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "बैच नंबर"
@@ -1785,7 +1785,7 @@ msgstr "केवल सक्रिय ब्रेक को अक्षम
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "आइटम आईडी के बिना पार्ट्स ब
msgid "Cannot place order - no supplier associated with this item"
msgstr "इस आइटम के साथ कोई आपूर्तिकर्ता जुड़ा नहीं है - ऑर्डर नहीं दे सकते"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "RFQ नहीं भेज सकते"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "आइटम आईडी के बिना पार्ट्स बकेट में अपलोड नहीं कर सकते"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Carbon क्लाइंट उपलब्ध नहीं है"
@@ -3997,7 +4001,7 @@ msgstr "शिफ्ट हटाएं"
msgid "Delete Shipment"
msgstr "शिपमेंट हटाएं"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "शिपमेंट लाइन हटाएं"
@@ -5334,6 +5338,11 @@ msgstr "समाप्त"
msgid "Expired batch"
msgstr "समाप्त बैच"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "लाइन आइटम तुलना"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "पंक्ति विकल्प"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "मिनट/टुकड़ा"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "लापता जानकारी"
@@ -9803,7 +9812,7 @@ msgstr "चालान पोस्ट करें"
msgid "Post Receipt"
msgstr "रसीद पोस्ट करें"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "शिपमेंट पोस्ट करें"
@@ -12257,7 +12266,7 @@ msgstr "शिपमेंट आईडी"
msgid "Shipment Line"
msgstr "शिपमेंट लाइन"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "शिपमेंट लाइनें"
@@ -12591,7 +12600,7 @@ msgstr "विभाजित करने के लिए मात्रा"
msgid "Split receipt line"
msgstr "रसीद लाइन को विभाजित करें"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "शिपमेंट लाइन को विभाजित करें"
diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.po
index f963cb0c94..bb762bee6f 100644
--- a/packages/locale/locales/it/erp.po
+++ b/packages/locale/locales/it/erp.po
@@ -1269,7 +1269,7 @@ msgstr "Sei sicuro di voler eliminare permanentemente il processo fornitore?"
msgid "Are you sure you want to post this receipt?"
msgstr "Sei sicuro di voler registrare questa ricevuta?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "Sei sicuro di voler registrare questa spedizione?"
@@ -1552,7 +1552,7 @@ msgstr "Lotto"
msgid "Batch items require a sales order"
msgstr "Gli articoli in lotto richiedono un ordine di vendita"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "Numero di lotto"
@@ -1785,7 +1785,7 @@ msgstr "Non è possibile disabilitare l'unico break attivo. Aggiungi un altro br
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "Impossibile spostare nel bucket parti senza ID elemento"
msgid "Cannot place order - no supplier associated with this item"
msgstr "Impossibile effettuare l'ordine - nessun fornitore associato a questo articolo"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "Impossibile inviare RFQ"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "Impossibile caricare nel bucket delle parti senza ID elemento"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Il client Carbon non è disponibile"
@@ -3997,7 +4001,7 @@ msgstr "Elimina Turno"
msgid "Delete Shipment"
msgstr "Elimina Spedizione"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "Elimina riga spedizione"
@@ -5334,6 +5338,11 @@ msgstr "Scaduto"
msgid "Expired batch"
msgstr "Lotto scaduto"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "Confronto Articoli di Riga"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "Opzioni riga"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "Minuti/Pezzo"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "Informazioni Mancanti"
@@ -9803,7 +9812,7 @@ msgstr "Registra Fattura"
msgid "Post Receipt"
msgstr "Registra Ricevuta"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "Registra Spedizione"
@@ -12257,7 +12266,7 @@ msgstr "ID Spedizione"
msgid "Shipment Line"
msgstr "Riga di Spedizione"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "Righe di spedizione"
@@ -12591,7 +12600,7 @@ msgstr "Quantità da dividere"
msgid "Split receipt line"
msgstr "Dividi riga ricevuta"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "Dividi riga spedizione"
diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.po
index bb07a2a6d2..cdf0042ac5 100644
--- a/packages/locale/locales/ja/erp.po
+++ b/packages/locale/locales/ja/erp.po
@@ -1269,7 +1269,7 @@ msgstr "サプライヤープロセスを完全に削除してもよろしいで
msgid "Are you sure you want to post this receipt?"
msgstr "このレシートを転記してもよろしいですか?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "この出荷を転記してもよろしいですか?"
@@ -1552,7 +1552,7 @@ msgstr "バッチ"
msgid "Batch items require a sales order"
msgstr "バッチ品目は販売注文が必要です"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "バッチ番号"
@@ -1785,7 +1785,7 @@ msgstr "唯一のアクティブなブレークを無効にすることはでき
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "アイテムIDなしでパーツバケットに移動することはで
msgid "Cannot place order - no supplier associated with this item"
msgstr "注文を配置できません - このアイテムに関連付けられたサプライヤーがありません"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "RFQを送信できません"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "アイテムIDなしでパーツバケットにアップロードできません"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Carbonクライアントは利用できません"
@@ -3997,7 +4001,7 @@ msgstr "シフトを削除"
msgid "Delete Shipment"
msgstr "配送を削除"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "配送ラインを削除"
@@ -5334,6 +5338,11 @@ msgstr "期限切れ"
msgid "Expired batch"
msgstr "期限切れバッチ"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "明細項目の比較"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "行オプション"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "分/個"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "不足している情報"
@@ -9803,7 +9812,7 @@ msgstr "請求書を転記"
msgid "Post Receipt"
msgstr "領収書を転記"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "配送を転記"
@@ -12257,7 +12266,7 @@ msgstr "配送ID"
msgid "Shipment Line"
msgstr "出荷ライン"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "出荷ラインs"
@@ -12591,7 +12600,7 @@ msgstr "分割数量"
msgid "Split receipt line"
msgstr "領収書行を分割"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "出荷ラインを分割"
diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.po
index 1b6745fcb4..5478c157d9 100644
--- a/packages/locale/locales/pl/erp.po
+++ b/packages/locale/locales/pl/erp.po
@@ -1269,7 +1269,7 @@ msgstr "Czy na pewno chcesz trwale usunąć proces dostawcy?"
msgid "Are you sure you want to post this receipt?"
msgstr "Czy na pewno chcesz zaksięgować ten dokument przyjęcia?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "Czy na pewno chcesz opublikować tę przesyłkę?"
@@ -1552,7 +1552,7 @@ msgstr "Partia"
msgid "Batch items require a sales order"
msgstr "Artykuły partii wymagają zamówienia sprzedaży"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "Numer partii"
@@ -1785,7 +1785,7 @@ msgstr "Nie można wyłączyć jedynego aktywnego przedziału. Dodaj inny przedz
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "Nie można przenieść do zasobnika części bez identyfikatora elementu
msgid "Cannot place order - no supplier associated with this item"
msgstr "Nie można złożyć zamówienia - brak dostawcy powiązanego z tym artykułem"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "Nie można wysłać ZZO"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "Nie można przesłać do zasobnika części bez identyfikatora elementu"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Klient Carbon jest niedostępny"
@@ -3997,7 +4001,7 @@ msgstr "Usuń zmianę"
msgid "Delete Shipment"
msgstr "Usuń wysyłkę"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "Usuń linię wysyłki"
@@ -5334,6 +5338,11 @@ msgstr "Wygasło"
msgid "Expired batch"
msgstr "Wygasła partia"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "Porównanie pozycji"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "Opcje linii"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "Minuty/Sztuka"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "Brakujące informacje"
@@ -9803,7 +9812,7 @@ msgstr "Zaksięguj fakturę"
msgid "Post Receipt"
msgstr "Zaksięguj Paragon"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "Wyślij Przesyłkę"
@@ -12257,7 +12266,7 @@ msgstr "ID wysyłki"
msgid "Shipment Line"
msgstr "Linia wysyłki"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "Linie wysyłki"
@@ -12591,7 +12600,7 @@ msgstr "Ilość do podzielenia"
msgid "Split receipt line"
msgstr "Podziel linię paragonu"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "Podziel linię wysyłki"
diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.po
index 35dc4f2443..9f44708467 100644
--- a/packages/locale/locales/pt/erp.po
+++ b/packages/locale/locales/pt/erp.po
@@ -1269,7 +1269,7 @@ msgstr "Tem a certeza de que deseja eliminar permanentemente o processo do forne
msgid "Are you sure you want to post this receipt?"
msgstr "Tem a certeza de que deseja publicar este recibo?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "Tem a certeza de que deseja publicar este envio?"
@@ -1552,7 +1552,7 @@ msgstr "Lote"
msgid "Batch items require a sales order"
msgstr "Itens em lote requerem uma ordem de venda"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "Número de lote"
@@ -1785,7 +1785,7 @@ msgstr "Não é possível desativar o único intervalo ativo. Adicione outro int
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "Não é possível mover para o bucket de peças sem ID do item"
msgid "Cannot place order - no supplier associated with this item"
msgstr "Não é possível fazer o pedido - nenhum fornecedor associado a este item"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "Não é possível enviar RFQ"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "Não é possível fazer upload para o bucket de peças sem ID do item"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Cliente Carbon não está disponível"
@@ -3997,7 +4001,7 @@ msgstr "Eliminar Turno"
msgid "Delete Shipment"
msgstr "Eliminar Envio"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "Eliminar linha de envio"
@@ -5334,6 +5338,11 @@ msgstr "Expirado"
msgid "Expired batch"
msgstr "Lote expirado"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "Comparação de Itens de Linha"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "Opções de linha"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "Minutos/Peça"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "Informações Faltantes"
@@ -9803,7 +9812,7 @@ msgstr "Lançar Fatura"
msgid "Post Receipt"
msgstr "Lançar Recebimento"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "Postar Envio"
@@ -12257,7 +12266,7 @@ msgstr "ID de Envio"
msgid "Shipment Line"
msgstr "Linha de Envio"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "Linhas de Envio"
@@ -12591,7 +12600,7 @@ msgstr "Quantidade a dividir"
msgid "Split receipt line"
msgstr "Dividir linha de recebimento"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "Dividir linha de envio"
diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.po
index 56b09a24ab..4fdf96c81a 100644
--- a/packages/locale/locales/ru/erp.po
+++ b/packages/locale/locales/ru/erp.po
@@ -1269,7 +1269,7 @@ msgstr "Вы уверены, что хотите окончательно уда
msgid "Are you sure you want to post this receipt?"
msgstr "Вы уверены, что хотите провести этот приходный ордер?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "Вы уверены, что хотите отправить эту партию?"
@@ -1552,7 +1552,7 @@ msgstr "Партия"
msgid "Batch items require a sales order"
msgstr "Товары партии требуют заказ на продажу"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "Номер партии"
@@ -1785,7 +1785,7 @@ msgstr "Невозможно отключить единственный акт
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "Невозможно переместить в корзину детал
msgid "Cannot place order - no supplier associated with this item"
msgstr "Невозможно разместить заказ - с этим товаром не связан поставщик"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "Невозможно отправить РФП"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "Невозможно загрузить в корзину деталей без ID элемента"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Клиент Carbon недоступен"
@@ -3997,7 +4001,7 @@ msgstr "Удалить смену"
msgid "Delete Shipment"
msgstr "Удалить отправку"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "Удалить строку отправки"
@@ -5334,6 +5338,11 @@ msgstr "Истекло"
msgid "Expired batch"
msgstr "Истекший срок партии"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "Сравнение позиций"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "Параметры строки"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "Минут/Деталь"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "Отсутствует информация"
@@ -9803,7 +9812,7 @@ msgstr "Отправить счет"
msgid "Post Receipt"
msgstr "Отправить квитанцию"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "Отправить отправку"
@@ -12257,7 +12266,7 @@ msgstr "ID отправки"
msgid "Shipment Line"
msgstr "Строка отправки"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "Строки отправки"
@@ -12591,7 +12600,7 @@ msgstr "Количество для разделения"
msgid "Split receipt line"
msgstr "Разделить строку приемки"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "Разделить строку отправки"
diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.po
index d6ab66d802..8170d7e32e 100644
--- a/packages/locale/locales/zh/erp.po
+++ b/packages/locale/locales/zh/erp.po
@@ -1269,7 +1269,7 @@ msgstr "您确定要永久删除供应商流程吗?"
msgid "Are you sure you want to post this receipt?"
msgstr "你确定要过账此收据吗?"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:163
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:247
msgid "Are you sure you want to post this shipment?"
msgstr "你确定要过账此发货单吗?"
@@ -1552,7 +1552,7 @@ msgstr "批次"
msgid "Batch items require a sales order"
msgstr "批次项目需要销售订单"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:820
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:821
msgid "Batch number"
msgstr "批号"
@@ -1785,7 +1785,7 @@ msgstr "无法禁用唯一的活跃价格段。请添加另一个价格段或改
#: apps/erp/app/modules/inventory/ui/Kanbans/KanbanForm.tsx:332
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:198
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptVoidModal.tsx:85
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:194
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:327
#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentVoidModal.tsx:85
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:165
#: apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypeForm.tsx:104
@@ -1959,6 +1959,10 @@ msgstr "无法在没有项目ID的情况下移动到零件桶"
msgid "Cannot place order - no supplier associated with this item"
msgstr "无法下单 - 此项目没有关联的供应商"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:281
+msgid "Cannot post — shipment contains expired tracked entities."
+msgstr ""
+
#: apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQHeader.tsx:366
msgid "Cannot send RFQ"
msgstr "无法发送询价单"
@@ -1969,7 +1973,7 @@ msgid "Cannot upload to parts bucket without item ID"
msgstr "无法在没有项目ID的情况下上传到零件存储桶"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:67
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:67
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:92
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:65
msgid "Carbon client is not available"
msgstr "Carbon 客户端不可用"
@@ -3997,7 +4001,7 @@ msgstr "删除班次"
msgid "Delete Shipment"
msgstr "删除发货单"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:374
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:375
msgid "Delete shipment line"
msgstr "删除发货行"
@@ -5334,6 +5338,11 @@ msgstr "已过期"
msgid "Expired batch"
msgstr "过期批次"
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:278
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:304
+msgid "Expired Batches"
+msgstr ""
+
#: apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx:131
#: apps/erp/app/routes/share+/quote.$id.tsx:239
msgid "Expires"
@@ -7231,7 +7240,7 @@ msgid "Line Item Comparison"
msgstr "行项目比较"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptLines.tsx:350
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:354
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:355
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx:185
msgid "Line options"
msgstr "行选项"
@@ -7954,7 +7963,7 @@ msgid "Minutes/Piece"
msgstr "分钟/件"
#: apps/erp/app/modules/inventory/ui/Receipts/ReceiptPostModal.tsx:175
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:171
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:255
#: apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferCompleteModal.tsx:142
msgid "Missing Information"
msgstr "缺少信息"
@@ -9803,7 +9812,7 @@ msgstr "过账发票"
msgid "Post Receipt"
msgstr "过账收据"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:160
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentPostModal.tsx:244
msgid "Post Shipment"
msgstr "发布货运"
@@ -12257,7 +12266,7 @@ msgstr "发货单ID"
msgid "Shipment Line"
msgstr "发货单行"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:225
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:226
msgid "Shipment Lines"
msgstr "发货单行"
@@ -12591,7 +12600,7 @@ msgstr "分割数量"
msgid "Split receipt line"
msgstr "拆分收据行"
-#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:366
+#: apps/erp/app/modules/inventory/ui/Shipments/ShipmentLines.tsx:367
msgid "Split shipment line"
msgstr "拆分发货行"