You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 096b2dc
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: objectstack.config.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,7 @@ export default defineStack({
203
203
positions: ClmPositions,
204
204
permissions: Object.values(profiles),
205
205
206
-
// The eleven authorization tokens the five permission sets grant in
206
+
// The twelve authorization tokens the five permission sets grant in
207
207
// `systemPermissions` (ADR-0066 D1) — this app DEFINES them; it is not a
208
208
// `requires:` service and adds no plugin. Two reasons to declare rather than
209
209
// let the platform derive them from the sets:
@@ -232,7 +232,8 @@ export default defineStack({
232
232
{name: 'clm_records.access',scope: 'org',label: 'CLM: Records',description: 'Serves the Records group of the CLM app.'},
233
233
{name: 'clm_admin.access',scope: 'org',label: 'CLM: Administration',description: 'Serves the Administration group of the CLM app.'},
234
234
{name: 'approve_contract',scope: 'org',label: 'Approve contracts',description: 'DESIGN.md §04 action gate for the approval ladder; which request a holder decides is the approval flow\'s assignment.'},
235
-
{name: 'execute_contract',scope: 'org',label: 'Execute contracts',description: 'DESIGN.md §04 action gate for signing, activation and backfill of executed contracts.'},
235
+
{name: 'execute_contract',scope: 'org',label: 'Execute contracts',description: 'DESIGN.md §04 action gate for signing and activation.'},
236
+
{name: 'backfill_contract',scope: 'org',label: 'Backfill contracts',description: 'DESIGN.md §04 gate for F16: recording a contract executed outside this system. Held by records, legal and admin; gates the backfill action and its flow.'},
// The flow inserts the row straight into `active` with `is_backfilled: true`.
49
58
description: 'Record a contract that was signed before this system, or outside it. It is created directly as active and marked as backfilled, skipping review and approval, and the executed copy is filed as its final signed version.',
50
-
requiredPermissions: ['execute_contract'],
59
+
// The same list as the flow's (see the header): this copy hides the button.
60
+
requiredPermissions: ['backfill_contract'],
51
61
params: [
52
62
// Field-backed where a picker is wanted: the param inherits the field's
53
63
// type, its label and its `lookupFilters`, so inactive types, blocked
{field: 'contract_type',required: true,helpText: 'The workflow this contract would have run. It still stamps the number, the category and the execution formalities.'},
58
68
{field: 'party',required: true,helpText: 'The counterparty on the executed document.'},
59
69
{field: 'title',required: true},
70
+
// Who owns the contract on the business side; the flow writes it as given.
71
+
{field: 'owner_id',required: true,helpText: 'The requester who owns this contract on the business side. It is stored as given: the person recording the backfill is not assumed to be the owner.'},
60
72
// `signed_date` becomes both `signed_at` and `executed_at`; `executed_file`
61
73
// is filed as version 1 with `kind: 'final_signed'` (executed-upload.flow.ts).
62
74
{name: 'signed_date',type: 'date',label: 'Signed On',required: true,helpText: 'The date on the executed document. It is recorded as both the signed date and the execution date.'},
* F11 `payment_overdue`: an unpaid instalment past its planned date.
5
+
*
6
+
* `actual_amount` is null on an instalment that went from due to overdue with
7
+
* nothing received, and a bare hole renders null as nothing ("received so far
8
+
* ."). The mail renderer has no conditional to drop the clause, but its
9
+
* `default` formatter fills an empty value, so the hole reads 0 there: nothing
10
+
* received is exactly what null means on this column. Amounts stay bare
11
+
* numbers: the `currency` formatter takes its ISO code as a literal in the
12
+
* template, and this bundle serves every contract currency.
13
+
*/
14
+
15
+
exportconstPaymentOverdueTemplates=noticeBundle({
16
+
name: 'clm.payment_overdue',
17
+
description: 'F11: an instalment that is not settled passed its planned date and was marked overdue. Sent to the contract owner and the finance controllers.',
18
+
variables: [
19
+
{name: 'seq',description: 'The instalment number within the schedule.'},
20
+
{name: 'title',description: 'The contract title.'},
21
+
{name: 'contract_number',description: 'The contract number.'},
22
+
{name: 'planned_date',description: 'The instalment planned date.'},
23
+
{name: 'planned_amount',description: 'The instalment planned amount, in the contract currency.'},
24
+
{name: 'actual_amount',description: 'The amount received or paid on the instalment so far; null when nothing has been, which the body shows as 0.'},
25
+
],
26
+
en: {
27
+
label: 'Instalment overdue',
28
+
subject: 'Instalment {{ seq }} overdue: {{ title }}',
29
+
body: 'Instalment {{ seq }} of contract {{ contract_number }} was due on {{ planned_date }} and is not settled. Planned {{ planned_amount }}; received so far {{ actual_amount | default:0 }}.',
0 commit comments