- {isPosted
- ? Проведён {existing.data?.postedAt ? new Date(existing.data.postedAt).toLocaleString('ru') : ''}
- : 'Черновик — товар не попадает на склад, пока не проведёшь'}
-
+ {isPosted && (
+
+ Проведён {existing.data?.postedAt ? new Date(existing.data.postedAt).toLocaleString('ru') : ''}
+
+ )}
diff --git a/src/food-market.web/src/pages/InventoryEditPage.tsx b/src/food-market.web/src/pages/InventoryEditPage.tsx
index a92cfd3..3ac4a19 100644
--- a/src/food-market.web/src/pages/InventoryEditPage.tsx
+++ b/src/food-market.web/src/pages/InventoryEditPage.tsx
@@ -8,6 +8,7 @@ import { Field, TextArea, Select, NumberInput, Checkbox } from '@/components/Fie
import { DateField } from '@/components/DateField'
import { ConfirmDialog } from '@/components/ConfirmDialog'
import { FormSkeleton } from '@/components/Skeleton'
+import { Breadcrumbs } from '@/components/Breadcrumbs'
import { useConfirm } from '@/lib/useConfirm'
import { useStores } from '@/lib/useLookups'
import { InventoryStatus, type InventoryDto } from '@/lib/types'
@@ -217,14 +218,19 @@ export function InventoryEditPage() {
- {isPosted
- ? Проведён {existing.data?.postedAt ? new Date(existing.data.postedAt).toLocaleString('ru') : ''}
- : 'Черновик — расхождения не отражаются на остатках, пока не проведёшь'}
-
+ {isPosted && (
+
+ Проведён {existing.data?.postedAt ? new Date(existing.data.postedAt).toLocaleString('ru') : ''}
+
+ )}
diff --git a/src/food-market.web/src/pages/LossEditPage.tsx b/src/food-market.web/src/pages/LossEditPage.tsx
index c99af54..55cdb9b 100644
--- a/src/food-market.web/src/pages/LossEditPage.tsx
+++ b/src/food-market.web/src/pages/LossEditPage.tsx
@@ -9,6 +9,7 @@ import { DateField } from '@/components/DateField'
import { ProductPicker } from '@/components/ProductPicker'
import { ConfirmDialog } from '@/components/ConfirmDialog'
import { FormSkeleton } from '@/components/Skeleton'
+import { Breadcrumbs } from '@/components/Breadcrumbs'
import { useConfirm } from '@/lib/useConfirm'
import { useStores, useCurrencies } from '@/lib/useLookups'
import { useOrgSettings } from '@/lib/useOrgSettings'
@@ -204,14 +205,19 @@ export function LossEditPage() {
- {isPosted
- ? Проведён {existing.data?.postedAt ? new Date(existing.data.postedAt).toLocaleString('ru') : ''}
- : 'Черновик — товар не попадает на склад, пока не проведёшь'}
-
+ {isPosted && (
+
+ Проведён {existing.data?.postedAt ? new Date(existing.data.postedAt).toLocaleString('ru') : ''}
+
+ )}
diff --git a/src/food-market.web/src/pages/TransferEditPage.tsx b/src/food-market.web/src/pages/TransferEditPage.tsx
index e572189..09ca7c2 100644
--- a/src/food-market.web/src/pages/TransferEditPage.tsx
+++ b/src/food-market.web/src/pages/TransferEditPage.tsx
@@ -9,6 +9,7 @@ import { DateField } from '@/components/DateField'
import { ProductPicker } from '@/components/ProductPicker'
import { ConfirmDialog } from '@/components/ConfirmDialog'
import { FormSkeleton } from '@/components/Skeleton'
+import { Breadcrumbs } from '@/components/Breadcrumbs'
import { useConfirm } from '@/lib/useConfirm'
import { useStores } from '@/lib/useLookups'
import { useOrgSettings } from '@/lib/useOrgSettings'
@@ -189,14 +190,19 @@ export function TransferEditPage() {