diff --git a/apps/edr-freight-api/src/modules/contracts/contracts.service.ts b/apps/edr-freight-api/src/modules/contracts/contracts.service.ts index 4ef525ff7..24aa2b597 100644 --- a/apps/edr-freight-api/src/modules/contracts/contracts.service.ts +++ b/apps/edr-freight-api/src/modules/contracts/contracts.service.ts @@ -10,7 +10,7 @@ import { DataSource } from 'typeorm'; import { insertWithGeneratedReference } from '@edr/api-common'; import { YardCountry } from '@edr/types'; - +// import { deriveTradeDirection } from '../../common/derive-trade-direction.util'; import { CompaniesService } from '../companies/companies.service'; import { ServiceType } from '../rule-engine/entities/service-type.entity'; diff --git a/apps/edr-freight-web/backoffice/src/components/contracts/ContractActionsToolbar.tsx b/apps/edr-freight-web/backoffice/src/components/contracts/ContractActionsToolbar.tsx index 8c4833550..d2a245f24 100644 --- a/apps/edr-freight-web/backoffice/src/components/contracts/ContractActionsToolbar.tsx +++ b/apps/edr-freight-web/backoffice/src/components/contracts/ContractActionsToolbar.tsx @@ -5,7 +5,7 @@ import { Button, Group, Modal, Stack, Text, Textarea } from "@mantine/core"; import { Check, Eye, - FilePen, + // FilePen, // ponytail: back with the "Edit contract articles" button FileSignature, MessageSquareWarning, PauseCircle, @@ -286,9 +286,9 @@ export function ContractActionsToolbar({ <> {canEditDocument - ? "It is your turn to approve. You can edit the articles before approving — the PDF is generated automatically once the last approver approves." + ? "It is your turn to approve — the PDF is generated automatically once the last approver approves." : draft?.nextApproverRole - ? `Awaiting ${draft.nextApproverRole}. Only the current approver can edit the document.` + ? `Awaiting ${draft.nextApproverRole}.` : "Awaiting approval."} + {/* Article editing is hidden for now (frontend only) — the approval + chain approves the document as accepted. Uncomment to restore. + {canEditDocument && (