mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 07:10:57 +00:00
make a contrat template
This commit is contained in:
@@ -17,6 +17,21 @@ export interface ContractSignatureView {
|
||||
signatureImageUrl?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* DB-backed contract template (freight.contract_templates) attached to the
|
||||
* view model when an active template matches the contract's direction/freight
|
||||
* pair. The renderer turns its articles into numbered clauses and switches to
|
||||
* the dedicated edr-dynamic.hbs layout; absent, the legacy generic layout with
|
||||
* code-defined clause packs is used.
|
||||
*/
|
||||
export interface ContractDynamicTemplateView {
|
||||
code: string;
|
||||
name: string;
|
||||
documentTitle: string;
|
||||
whereasClauses: string[];
|
||||
articles: Array<{ id: string; title: string; body: string; order: number }>;
|
||||
}
|
||||
|
||||
export interface ContractViewModel {
|
||||
bookingId: string;
|
||||
reference: string;
|
||||
@@ -65,6 +80,7 @@ export interface ContractViewModel {
|
||||
hasContractDocument: boolean;
|
||||
hasCustomerSignature: boolean;
|
||||
hasStaffSignature: boolean;
|
||||
dynamicTemplate?: ContractDynamicTemplateView;
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
|
||||
Reference in New Issue
Block a user