@mj-biz-apps/sales-core-entities-server 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +183 -0
- package/dist/CloseDealOperation.d.ts +176 -0
- package/dist/CloseDealOperation.d.ts.map +1 -0
- package/dist/CloseDealOperation.js +1107 -0
- package/dist/CloseDealOperation.js.map +1 -0
- package/dist/CloseWonTaskService.d.ts +249 -0
- package/dist/CloseWonTaskService.d.ts.map +1 -0
- package/dist/CloseWonTaskService.js +460 -0
- package/dist/CloseWonTaskService.js.map +1 -0
- package/dist/DealEntityServer.d.ts +625 -0
- package/dist/DealEntityServer.d.ts.map +1 -0
- package/dist/DealEntityServer.js +1529 -0
- package/dist/DealEntityServer.js.map +1 -0
- package/dist/LiveContractsSeam.d.ts +212 -0
- package/dist/LiveContractsSeam.d.ts.map +1 -0
- package/dist/LiveContractsSeam.js +362 -0
- package/dist/LiveContractsSeam.js.map +1 -0
- package/dist/LiveOrdersSeam.d.ts +68 -0
- package/dist/LiveOrdersSeam.d.ts.map +1 -0
- package/dist/LiveOrdersSeam.js +80 -0
- package/dist/LiveOrdersSeam.js.map +1 -0
- package/dist/SaveDealOperation.d.ts +45 -0
- package/dist/SaveDealOperation.d.ts.map +1 -0
- package/dist/SaveDealOperation.js +268 -0
- package/dist/SaveDealOperation.js.map +1 -0
- package/dist/SequenceService.d.ts +39 -0
- package/dist/SequenceService.d.ts.map +1 -0
- package/dist/SequenceService.js +44 -0
- package/dist/SequenceService.js.map +1 -0
- package/dist/activities/ActivityIngestService.d.ts +111 -0
- package/dist/activities/ActivityIngestService.d.ts.map +1 -0
- package/dist/activities/ActivityIngestService.js +485 -0
- package/dist/activities/ActivityIngestService.js.map +1 -0
- package/dist/activities/ActivityReader.d.ts +68 -0
- package/dist/activities/ActivityReader.d.ts.map +1 -0
- package/dist/activities/ActivityReader.js +147 -0
- package/dist/activities/ActivityReader.js.map +1 -0
- package/dist/activities/ActivitySource.d.ts +142 -0
- package/dist/activities/ActivitySource.d.ts.map +1 -0
- package/dist/activities/ActivitySource.js +2 -0
- package/dist/activities/ActivitySource.js.map +1 -0
- package/dist/activities/ActivitySyncJob.d.ts +72 -0
- package/dist/activities/ActivitySyncJob.d.ts.map +1 -0
- package/dist/activities/ActivitySyncJob.js +146 -0
- package/dist/activities/ActivitySyncJob.js.map +1 -0
- package/dist/activities/ActivityWriterService.d.ts +119 -0
- package/dist/activities/ActivityWriterService.d.ts.map +1 -0
- package/dist/activities/ActivityWriterService.js +270 -0
- package/dist/activities/ActivityWriterService.js.map +1 -0
- package/dist/activities/DealMatcher.d.ts +58 -0
- package/dist/activities/DealMatcher.d.ts.map +1 -0
- package/dist/activities/DealMatcher.js +109 -0
- package/dist/activities/DealMatcher.js.map +1 -0
- package/dist/activities/FixtureActivitySource.d.ts +37 -0
- package/dist/activities/FixtureActivitySource.d.ts.map +1 -0
- package/dist/activities/FixtureActivitySource.js +58 -0
- package/dist/activities/FixtureActivitySource.js.map +1 -0
- package/dist/activities/GraphMessageMapper.d.ts +47 -0
- package/dist/activities/GraphMessageMapper.d.ts.map +1 -0
- package/dist/activities/GraphMessageMapper.js +141 -0
- package/dist/activities/GraphMessageMapper.js.map +1 -0
- package/dist/activities/ImportedGraphActivitySource.d.ts +16 -0
- package/dist/activities/ImportedGraphActivitySource.d.ts.map +1 -0
- package/dist/activities/ImportedGraphActivitySource.js +84 -0
- package/dist/activities/ImportedGraphActivitySource.js.map +1 -0
- package/dist/activities/MSGraphActivitySource.d.ts +67 -0
- package/dist/activities/MSGraphActivitySource.d.ts.map +1 -0
- package/dist/activities/MSGraphActivitySource.js +186 -0
- package/dist/activities/MSGraphActivitySource.js.map +1 -0
- package/dist/activities/MSGraphCalendarSource.d.ts +72 -0
- package/dist/activities/MSGraphCalendarSource.d.ts.map +1 -0
- package/dist/activities/MSGraphCalendarSource.js +225 -0
- package/dist/activities/MSGraphCalendarSource.js.map +1 -0
- package/dist/activities/RelevanceFilter.d.ts +101 -0
- package/dist/activities/RelevanceFilter.d.ts.map +1 -0
- package/dist/activities/RelevanceFilter.js +148 -0
- package/dist/activities/RelevanceFilter.js.map +1 -0
- package/dist/activities/activity-vocabulary.d.ts +103 -0
- package/dist/activities/activity-vocabulary.d.ts.map +1 -0
- package/dist/activities/activity-vocabulary.js +79 -0
- package/dist/activities/activity-vocabulary.js.map +1 -0
- package/dist/forecast/FixtureForecastSource.d.ts +22 -0
- package/dist/forecast/FixtureForecastSource.d.ts.map +1 -0
- package/dist/forecast/FixtureForecastSource.js +16 -0
- package/dist/forecast/FixtureForecastSource.js.map +1 -0
- package/dist/forecast/ForecastSnapshotJob.d.ts +78 -0
- package/dist/forecast/ForecastSnapshotJob.d.ts.map +1 -0
- package/dist/forecast/ForecastSnapshotJob.js +225 -0
- package/dist/forecast/ForecastSnapshotJob.js.map +1 -0
- package/dist/forecast/ForecastSource.d.ts +74 -0
- package/dist/forecast/ForecastSource.d.ts.map +1 -0
- package/dist/forecast/ForecastSource.js +25 -0
- package/dist/forecast/ForecastSource.js.map +1 -0
- package/dist/forecast/QueryForecastSource.d.ts +76 -0
- package/dist/forecast/QueryForecastSource.d.ts.map +1 -0
- package/dist/forecast/QueryForecastSource.js +164 -0
- package/dist/forecast/QueryForecastSource.js.map +1 -0
- package/dist/index.d.ts +117 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +125 -0
- package/dist/index.js.map +1 -0
- package/dist/orders-availability.d.ts +15 -0
- package/dist/orders-availability.d.ts.map +1 -0
- package/dist/orders-availability.js +47 -0
- package/dist/orders-availability.js.map +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DealEntityServer.js","sourceRoot":"","sources":["../src/DealEntityServer.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EACH,UAAU,EAKV,QAAQ,GACX,MAAM,sBAA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;;;;;;;;;;;;;;;;;OA0BG;IACK,qBAAqB;QACzB,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC,CAAG,sEAAsE;QACzF,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC;YACrE,OAAO,IAAI,CAAC,CAAG,uCAAuC;QAC1D,CAAC;QACD,OAAO,CACH,4FAA4F;YAC5F,yFAAyF;YACzF,+EAA+E;YAC/E,oFAAoF,CACvF,CAAC;IACN,CAAC;IAEO,KAAK,CAAC,kBAAkB;QAC5B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;YAC/C,OAAO,CAAC,6DAA6D;QACzE,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACpD,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,WAAW,CAAC,CAAC;QACxE,IAAI,CAAC,eAAe,GAAG,KAAK,EAAE,UAAU,IAAI,IAAI,CAAC;IACrD,CAAC;;AA7kDQ,gBAAgB;IAD5B,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC;GAC1B,gBAAgB,CA8kD5B"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The REAL contracts handoff — what `StubDownstreamSeam` stood in for on the D-CF4 path.
|
|
3
|
+
*
|
|
4
|
+
* ── WHY THIS NO LONGER CALLS AN OPERATION ───────────────────────────────────────────────────────
|
|
5
|
+
*
|
|
6
|
+
* The previous version of this file dispatched `Contracts.SaveContract` through the ClassFactory, and
|
|
7
|
+
* explained at length why calling contracts' operation beat driving its entity graph. That reasoning
|
|
8
|
+
* was sound about a version of contracts that no longer exists.
|
|
9
|
+
*
|
|
10
|
+
* Contracts was rebuilt from scratch on 2026-08-18 — ten tables became seven — and `SaveContract` was
|
|
11
|
+
* DELETED along with `ContractDraft` and the whole hydration layer. Verified against `origin/next`
|
|
12
|
+
* (`d2f64e3`): contracts ships **no remote operations at all**. So the old seam dispatched a key that
|
|
13
|
+
* nothing registers, and `run()` returned "…is not registered in this process" every single time.
|
|
14
|
+
*
|
|
15
|
+
* That is worth stating plainly because it explains a longer-running puzzle: this path could never be
|
|
16
|
+
* proven end to end, and the failure was repeatedly read as a stack-configuration problem — contracts
|
|
17
|
+
* not linked, the operation not imported, registration order. It was none of those. The operation was
|
|
18
|
+
* gone, and a missing registration and a deleted class produce the identical symptom.
|
|
19
|
+
*
|
|
20
|
+
* ── WHAT REPLACES IT ────────────────────────────────────────────────────────────────────────────
|
|
21
|
+
*
|
|
22
|
+
* The plain entity path: `GetEntityObject` → set fields → `Save()`. This is now the SIMPLER option as
|
|
23
|
+
* well as the only one, because v2's contract is a HEADER. `ContractTerm` and `ContractLine` are gone
|
|
24
|
+
* entirely, so there is no composition left to re-implement — the concern that made the operation the
|
|
25
|
+
* right call in v1 no longer has anything to be concerned about.
|
|
26
|
+
*
|
|
27
|
+
* `ContractEntityServer.Save()` mints `ContractNumber` itself, from a sequence taken under a lock, so
|
|
28
|
+
* this never supplies one. It runs `ExecuteSQL` on the same provider, which means it joins whatever
|
|
29
|
+
* transaction `Sales.CloseDeal` already opened and a rollback releases the number rather than burning
|
|
30
|
+
* it. Contracts needs no `SkipRelatedCollections` dance either, unlike orders.
|
|
31
|
+
*
|
|
32
|
+
* ── THE MONEY BOUNDARY ──────────────────────────────────────────────────────────────────────────
|
|
33
|
+
*
|
|
34
|
+
* Nothing here multiplies, sums, rounds or converts. The one numeric that crosses — the negotiated
|
|
35
|
+
* annual uplift — is passed through in the units it was stated in; see `annualIncrease()` for why a
|
|
36
|
+
* unit conversion would be a computation and is therefore refused rather than guessed.
|
|
37
|
+
*
|
|
38
|
+
* @module @mj-biz-apps/sales-core-entities-server
|
|
39
|
+
*/
|
|
40
|
+
import { type IMetadataProvider, type UserInfo } from '@memberjunction/core';
|
|
41
|
+
import type { ContractsCreateFromDealSeamInput, ContractsRenewTermSeamInput, ContractsSeamResult } from '@mj-biz-apps/sales-entities';
|
|
42
|
+
/**
|
|
43
|
+
* The seam input plus the one field the shared type does not carry yet.
|
|
44
|
+
*
|
|
45
|
+
* Declared here rather than added to `downstream-seams.ts` because nothing supplies a template today
|
|
46
|
+
* (see `templateID()`), so widening the shared contract would advertise a capability no caller has.
|
|
47
|
+
* Every added member is optional, so a plain `ContractsCreateFromDealSeamInput` still satisfies this
|
|
48
|
+
* and no caller changes.
|
|
49
|
+
*/
|
|
50
|
+
type CreateFromDealInput = ContractsCreateFromDealSeamInput & {
|
|
51
|
+
ContractTemplateID?: string | null;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* True when contracts is actually installed here.
|
|
55
|
+
*
|
|
56
|
+
* Checked against METADATA rather than by catching an error, for the same reason `OrdersIsInstalled`
|
|
57
|
+
* is: asking for an unregistered entity does not fail cleanly. Sales runs standalone by design, so
|
|
58
|
+
* contracts being absent is a supported state, not a fault.
|
|
59
|
+
*/
|
|
60
|
+
export declare function ContractsIsInstalled(): boolean;
|
|
61
|
+
export declare class LiveContractsSeam {
|
|
62
|
+
private readonly user;
|
|
63
|
+
private readonly provider;
|
|
64
|
+
readonly IsLive = true;
|
|
65
|
+
constructor(user: UserInfo, provider: IMetadataProvider);
|
|
66
|
+
/**
|
|
67
|
+
* Create the agreement a won deal earned.
|
|
68
|
+
*
|
|
69
|
+
* ── WHAT IS DELIBERATELY NOT SET, AND WHY EACH ABSENCE IS THE POINT ─────────────────────────
|
|
70
|
+
*
|
|
71
|
+
* **No `Status`.** v2's contract has no status column at all; its lifecycle is DERIVED from the
|
|
72
|
+
* dates. The old seam sent `'Draft'`, which is now simply not a field.
|
|
73
|
+
*
|
|
74
|
+
* **No `EffectiveDate`.** This is the one that would do real damage. With lifecycle derived from
|
|
75
|
+
* dates, stamping an effective date makes the contract read as ACTIVE the moment it is created —
|
|
76
|
+
* so every contract auto-created at Closed Won would announce itself as live and in force before
|
|
77
|
+
* a human had read the paper. §7.2 wants precisely the opposite: nothing fires until someone
|
|
78
|
+
* approves. A contract with no dates is one that has not started, which is the truth.
|
|
79
|
+
*
|
|
80
|
+
* **No `ExecutedDate`.** Sales does not know whether anything was signed. `Deal.ExecutionDate` is
|
|
81
|
+
* when the DEAL was executed, and reading it as "the document is executed" would be a claim about
|
|
82
|
+
* paper nobody has seen — the same misreport as `EffectiveDate`, one field over.
|
|
83
|
+
*
|
|
84
|
+
* **No `ContractNumber`.** Minted by `ContractEntityServer.Save()` under a lock. Supplying one
|
|
85
|
+
* would either collide or bypass the sequence.
|
|
86
|
+
*
|
|
87
|
+
* **No `ContractTemplateID`.** Not merely unimplemented: contracts' own column description says a
|
|
88
|
+
* contract created automatically at Closed Won HAS none "until finance reads the PDF". Selection
|
|
89
|
+
* is honoured if a caller ever supplies one, and is not attempted here. See `templateID()`.
|
|
90
|
+
*
|
|
91
|
+
* **No `CustomerPersonID`, no `OwnerUserID`.** Neither column exists in v2, and
|
|
92
|
+
* `CK_Contract_CustomerXor` — the constraint the old seam bent itself around — is gone with them.
|
|
93
|
+
*/
|
|
94
|
+
CreateContractFromDeal(input: CreateFromDealInput): Promise<ContractsSeamResult>;
|
|
95
|
+
/**
|
|
96
|
+
* Stamp contracts' polymorphic provenance pair with the deal that caused this.
|
|
97
|
+
*
|
|
98
|
+
* `CK_Contract_CreatingPairBothOrNeither` requires both or neither, so a deal whose entity cannot
|
|
99
|
+
* be resolved leaves BOTH null rather than half a reference. `IX_Contract_CreatingRecord` exists
|
|
100
|
+
* for the reverse lookup — "which contract came from this deal" — so this is the field that makes
|
|
101
|
+
* the handoff traceable in the direction a person actually asks about it.
|
|
102
|
+
*/
|
|
103
|
+
private setProvenance;
|
|
104
|
+
/**
|
|
105
|
+
* The renewal terms the DEAL actually negotiated — and only those.
|
|
106
|
+
*
|
|
107
|
+
* ── THE OVERRIDE/DEFAULT SPLIT, WHICH IS LOAD-BEARING ──────────────────────────────────────
|
|
108
|
+
*
|
|
109
|
+
* Sales' columns are named `…Override` on purpose, and their own descriptions say why: NULL means
|
|
110
|
+
* "use the standard", which is a DIFFERENT FACT from "we negotiated a number that happens to equal
|
|
111
|
+
* today's standard". Only the NULL survives a later change to policy. So a null override is passed
|
|
112
|
+
* through as null and never filled in here.
|
|
113
|
+
*
|
|
114
|
+
* ── THE DEFAULTS THAT DO NOT EXIST YET ──────────────────────────────────────────────────────
|
|
115
|
+
*
|
|
116
|
+
* Sales' descriptions say the standards (5% uplift, 90 days' notice) are "owned by the contracts
|
|
117
|
+
* ContractType". As of `origin/next` @ `d2f64e3` **they are not**: `ContractType` carries only
|
|
118
|
+
* Name, Description, RequiresExecutedDocument, ParentStatusRequirement and Status. Nothing applies
|
|
119
|
+
* a default anywhere — `applyContractTypeDefaults()` went with the v1 rebuild.
|
|
120
|
+
*
|
|
121
|
+
* This seam therefore populates NOTHING it was not told, so that when the columns arrive the
|
|
122
|
+
* defaults land where they belong — in contracts, applied once, rather than being pre-empted here
|
|
123
|
+
* by a value sales invented. See D-9.
|
|
124
|
+
*/
|
|
125
|
+
private setNegotiatedTerms;
|
|
126
|
+
/**
|
|
127
|
+
* The negotiated year-over-year uplift, PASSED THROUGH UNCONVERTED.
|
|
128
|
+
*
|
|
129
|
+
* -- WHY PASS-THROUGH IS RIGHT, WHICH IS NOT THE SAME AS THE TWO SIDES AGREEING --
|
|
130
|
+
*
|
|
131
|
+
* The reason is the OVERRIDE semantics, not a matching domain. Sales names this column
|
|
132
|
+
* `AnnualIncreasePctOverride` and its own description is explicit: NULL means use the standard,
|
|
133
|
+
* whose default lives on the contracts ContractType, and copying that default in at write time
|
|
134
|
+
* would freeze this year terms into next year renewals silently. So a stated number travels and a
|
|
135
|
+
* null stays a null. Nothing here converts, scales or substitutes, because each of those would be
|
|
136
|
+
* a computation and sales does not compute money or the rates that move it.
|
|
137
|
+
*
|
|
138
|
+
* -- AND THE TWO SCHEMAS DO NOT AGREE ON THE DOMAIN --
|
|
139
|
+
*
|
|
140
|
+
* Sales bounds this 0 to 100 (`CK_Deal_AnnualIncreasePctOverride`). Contracts bounds only `>= 0`
|
|
141
|
+
* (`CK_Contract_AnnualIncrease`) with no upper limit, at `DECIMAL(7,4)` against sales
|
|
142
|
+
* `DECIMAL(5,2)`. Both call it a percent and 5 means five per cent on both sides today, so the
|
|
143
|
+
* handoff is correct -- but the wider column will accept a value sales would have refused, and
|
|
144
|
+
* nothing on either side states the unit as a rule rather than as a habit.
|
|
145
|
+
*
|
|
146
|
+
* That is the same shape as the discount-unit trap recorded in `docs/DECISIONS.md`, where 0-100
|
|
147
|
+
* became 0-1 across a boundary and would have been a silent hundred-fold bug. It has not bitten
|
|
148
|
+
* here and it is not this file to settle: see D-14. Flagged rather than defended, because a
|
|
149
|
+
* conversion added on suspicion is exactly the computation this app must not perform.
|
|
150
|
+
*/
|
|
151
|
+
private annualIncrease;
|
|
152
|
+
/**
|
|
153
|
+
* The template to incorporate, when a caller supplies one — and it is nobody's job to guess.
|
|
154
|
+
*
|
|
155
|
+
* Two independent reasons, either sufficient on its own:
|
|
156
|
+
*
|
|
157
|
+
* 1. Contracts says so. `ContractTemplateID` is "nullable because a contract created
|
|
158
|
+
* automatically at Closed Won has none until finance reads the PDF". That describes exactly
|
|
159
|
+
* this call site. A template arrives when a human establishes which one was signed.
|
|
160
|
+
*
|
|
161
|
+
* 2. There is no way to pick one that is not a guess. `ContractTemplate` carries Name,
|
|
162
|
+
* VersionLabel, `IntroducedDate` and SourceURL — and no `Status`. Choosing the newest by
|
|
163
|
+
* `IntroducedDate` is precisely the date-guessing that the `Status` column Andrew asked for
|
|
164
|
+
* exists to eliminate, and it would silently attach next year's paper to this year's deal
|
|
165
|
+
* the day someone loads a draft template.
|
|
166
|
+
*
|
|
167
|
+
* So: honoured if supplied, never selected. Nothing in sales supplies one today. See D-10.
|
|
168
|
+
*/
|
|
169
|
+
private templateID;
|
|
170
|
+
/**
|
|
171
|
+
* The contract type the policy named.
|
|
172
|
+
*
|
|
173
|
+
* ── WHY THIS PROBES FOR A COLUMN ────────────────────────────────────────────────────────────
|
|
174
|
+
*
|
|
175
|
+
* Sales' policy field is `ContractTypeCode`, and resolving a CODE is the right shape: sales does
|
|
176
|
+
* not know contracts' vocabulary and must not bake its UUIDs. But `ContractType` has no `Code`
|
|
177
|
+
* column — it is identified by `Name` (unique) and a fixed seeded UUID. Filtering on `Code`, as
|
|
178
|
+
* the previous version did, ran against a column that does not exist, so the lookup could only
|
|
179
|
+
* ever fail.
|
|
180
|
+
*
|
|
181
|
+
* Rather than fail the whole route over a missing column, this asks the METADATA which identifier
|
|
182
|
+
* contracts actually offers, uses that, and reports which one it used so the answer is never
|
|
183
|
+
* ambiguous. When contracts adds `Code` — as tasks just did on `TaskType`, for the same reason —
|
|
184
|
+
* this starts preferring it with no change here. See D-12.
|
|
185
|
+
*
|
|
186
|
+
* ── THIS IS NOT A VOCABULARY COMPARISON ─────────────────────────────────────────────────────
|
|
187
|
+
*
|
|
188
|
+
* No behaviour branches on the value. The string arrives from configuration, is looked up, and
|
|
189
|
+
* yields an ID; nothing in this app asks whether the type is an Order Form or an SOW. `'Code'`
|
|
190
|
+
* and `'Name'` are COLUMN names, not vocabulary — which is the distinction the gate cares about.
|
|
191
|
+
*/
|
|
192
|
+
private resolveContractType;
|
|
193
|
+
/**
|
|
194
|
+
* The renewal door, which v2 has closed and not yet reopened.
|
|
195
|
+
*
|
|
196
|
+
* `Contracts.RenewTerm` is gone with `SaveContract`, and it did not simply move: `ContractTerm`
|
|
197
|
+
* was DELETED as a table, so "add a term to an existing contract" no longer describes anything
|
|
198
|
+
* that exists. There is nothing to call and nothing to call it on.
|
|
199
|
+
*
|
|
200
|
+
* REPORTED, NOT INVENTED. Two shapes could express a renewal on the v2 header — a new contract
|
|
201
|
+
* carrying `ParentContractID`, or the existing one stamped `SupersededByContractID` — and they
|
|
202
|
+
* are not equivalent: the first keeps both agreements in the lineage, the second retires one.
|
|
203
|
+
* Which is right is contracts' modelling decision, not sales'. Guessing would produce contract
|
|
204
|
+
* records that look correct and mean the wrong thing, so this returns a plan that honestly did
|
|
205
|
+
* not execute and says why, which is the same shape every other unroutable target uses. See D-11.
|
|
206
|
+
*/
|
|
207
|
+
RenewContractTerm(input: ContractsRenewTermSeamInput): Promise<ContractsSeamResult>;
|
|
208
|
+
}
|
|
209
|
+
/** Anti-tree-shaking anchor. */
|
|
210
|
+
export declare function LoadLiveContractsSeam(): void;
|
|
211
|
+
export {};
|
|
212
|
+
//# sourceMappingURL=LiveContractsSeam.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveContractsSeam.d.ts","sourceRoot":"","sources":["../src/LiveContractsSeam.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAMH,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACR,gCAAgC,EAChC,2BAA2B,EAC3B,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AASrC;;;;;;;GAOG;AACH,KAAK,mBAAmB,GAAG,gCAAgC,GAAG;IAC1D,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,qBAAa,iBAAiB;IAItB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ7B,SAAgB,MAAM,QAAQ;gBAGT,IAAI,EAAE,QAAQ,EACd,QAAQ,EAAE,iBAAiB;IAGhD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACU,sBAAsB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqG7F;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IASrB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,kBAAkB;IAwB1B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,UAAU;IAIlB;;;;;;;;;;;;;;;;;;;;;OAqBG;YACW,mBAAmB;IA0BjC;;;;;;;;;;;;;OAaG;IACU,iBAAiB,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAiBnG;AAED,gCAAgC;AAChC,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The REAL contracts handoff — what `StubDownstreamSeam` stood in for on the D-CF4 path.
|
|
3
|
+
*
|
|
4
|
+
* ── WHY THIS NO LONGER CALLS AN OPERATION ───────────────────────────────────────────────────────
|
|
5
|
+
*
|
|
6
|
+
* The previous version of this file dispatched `Contracts.SaveContract` through the ClassFactory, and
|
|
7
|
+
* explained at length why calling contracts' operation beat driving its entity graph. That reasoning
|
|
8
|
+
* was sound about a version of contracts that no longer exists.
|
|
9
|
+
*
|
|
10
|
+
* Contracts was rebuilt from scratch on 2026-08-18 — ten tables became seven — and `SaveContract` was
|
|
11
|
+
* DELETED along with `ContractDraft` and the whole hydration layer. Verified against `origin/next`
|
|
12
|
+
* (`d2f64e3`): contracts ships **no remote operations at all**. So the old seam dispatched a key that
|
|
13
|
+
* nothing registers, and `run()` returned "…is not registered in this process" every single time.
|
|
14
|
+
*
|
|
15
|
+
* That is worth stating plainly because it explains a longer-running puzzle: this path could never be
|
|
16
|
+
* proven end to end, and the failure was repeatedly read as a stack-configuration problem — contracts
|
|
17
|
+
* not linked, the operation not imported, registration order. It was none of those. The operation was
|
|
18
|
+
* gone, and a missing registration and a deleted class produce the identical symptom.
|
|
19
|
+
*
|
|
20
|
+
* ── WHAT REPLACES IT ────────────────────────────────────────────────────────────────────────────
|
|
21
|
+
*
|
|
22
|
+
* The plain entity path: `GetEntityObject` → set fields → `Save()`. This is now the SIMPLER option as
|
|
23
|
+
* well as the only one, because v2's contract is a HEADER. `ContractTerm` and `ContractLine` are gone
|
|
24
|
+
* entirely, so there is no composition left to re-implement — the concern that made the operation the
|
|
25
|
+
* right call in v1 no longer has anything to be concerned about.
|
|
26
|
+
*
|
|
27
|
+
* `ContractEntityServer.Save()` mints `ContractNumber` itself, from a sequence taken under a lock, so
|
|
28
|
+
* this never supplies one. It runs `ExecuteSQL` on the same provider, which means it joins whatever
|
|
29
|
+
* transaction `Sales.CloseDeal` already opened and a rollback releases the number rather than burning
|
|
30
|
+
* it. Contracts needs no `SkipRelatedCollections` dance either, unlike orders.
|
|
31
|
+
*
|
|
32
|
+
* ── THE MONEY BOUNDARY ──────────────────────────────────────────────────────────────────────────
|
|
33
|
+
*
|
|
34
|
+
* Nothing here multiplies, sums, rounds or converts. The one numeric that crosses — the negotiated
|
|
35
|
+
* annual uplift — is passed through in the units it was stated in; see `annualIncrease()` for why a
|
|
36
|
+
* unit conversion would be a computation and is therefore refused rather than guessed.
|
|
37
|
+
*
|
|
38
|
+
* @module @mj-biz-apps/sales-core-entities-server
|
|
39
|
+
*/
|
|
40
|
+
import { LogError, Metadata, RunView, } from '@memberjunction/core';
|
|
41
|
+
/** Contracts' entity names — these strings are the whole dependency. Sales imports no contracts code. */
|
|
42
|
+
const E_CONTRACT = 'MJ_BizApps_Contracts: Contracts';
|
|
43
|
+
const E_CONTRACT_TYPE = 'MJ_BizApps_Contracts: Contract Types';
|
|
44
|
+
/** Sales' own, needed only to name the CREATING entity in contracts' polymorphic provenance pair. */
|
|
45
|
+
const E_DEAL = 'MJ_BizApps_Sales: Deals';
|
|
46
|
+
/**
|
|
47
|
+
* True when contracts is actually installed here.
|
|
48
|
+
*
|
|
49
|
+
* Checked against METADATA rather than by catching an error, for the same reason `OrdersIsInstalled`
|
|
50
|
+
* is: asking for an unregistered entity does not fail cleanly. Sales runs standalone by design, so
|
|
51
|
+
* contracts being absent is a supported state, not a fault.
|
|
52
|
+
*/
|
|
53
|
+
export function ContractsIsInstalled() {
|
|
54
|
+
return new Metadata().Entities.some((e) => e.Name === E_CONTRACT);
|
|
55
|
+
}
|
|
56
|
+
export class LiveContractsSeam {
|
|
57
|
+
constructor(user, provider) {
|
|
58
|
+
this.user = user;
|
|
59
|
+
this.provider = provider;
|
|
60
|
+
this.IsLive = true;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Create the agreement a won deal earned.
|
|
64
|
+
*
|
|
65
|
+
* ── WHAT IS DELIBERATELY NOT SET, AND WHY EACH ABSENCE IS THE POINT ─────────────────────────
|
|
66
|
+
*
|
|
67
|
+
* **No `Status`.** v2's contract has no status column at all; its lifecycle is DERIVED from the
|
|
68
|
+
* dates. The old seam sent `'Draft'`, which is now simply not a field.
|
|
69
|
+
*
|
|
70
|
+
* **No `EffectiveDate`.** This is the one that would do real damage. With lifecycle derived from
|
|
71
|
+
* dates, stamping an effective date makes the contract read as ACTIVE the moment it is created —
|
|
72
|
+
* so every contract auto-created at Closed Won would announce itself as live and in force before
|
|
73
|
+
* a human had read the paper. §7.2 wants precisely the opposite: nothing fires until someone
|
|
74
|
+
* approves. A contract with no dates is one that has not started, which is the truth.
|
|
75
|
+
*
|
|
76
|
+
* **No `ExecutedDate`.** Sales does not know whether anything was signed. `Deal.ExecutionDate` is
|
|
77
|
+
* when the DEAL was executed, and reading it as "the document is executed" would be a claim about
|
|
78
|
+
* paper nobody has seen — the same misreport as `EffectiveDate`, one field over.
|
|
79
|
+
*
|
|
80
|
+
* **No `ContractNumber`.** Minted by `ContractEntityServer.Save()` under a lock. Supplying one
|
|
81
|
+
* would either collide or bypass the sequence.
|
|
82
|
+
*
|
|
83
|
+
* **No `ContractTemplateID`.** Not merely unimplemented: contracts' own column description says a
|
|
84
|
+
* contract created automatically at Closed Won HAS none "until finance reads the PDF". Selection
|
|
85
|
+
* is honoured if a caller ever supplies one, and is not attempted here. See `templateID()`.
|
|
86
|
+
*
|
|
87
|
+
* **No `CustomerPersonID`, no `OwnerUserID`.** Neither column exists in v2, and
|
|
88
|
+
* `CK_Contract_CustomerXor` — the constraint the old seam bent itself around — is gone with them.
|
|
89
|
+
*/
|
|
90
|
+
async CreateContractFromDeal(input) {
|
|
91
|
+
if (!ContractsIsInstalled()) {
|
|
92
|
+
return { Success: false, Message: 'bizapps-contracts is not installed in this deployment.' };
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* `CustomerOrganizationID` is NOT NULL in v2. Refusing here beats letting the database refuse:
|
|
96
|
+
* the message names the deal field that is actually missing, which a constraint violation
|
|
97
|
+
* cannot do.
|
|
98
|
+
*/
|
|
99
|
+
if (!input.AccountID) {
|
|
100
|
+
return {
|
|
101
|
+
Success: false,
|
|
102
|
+
Message: 'A contract needs the buying organisation (Deal.AccountID). Contracts stores it as ' +
|
|
103
|
+
'CustomerOrganizationID, which is required — v2 has no person-customer alternative.',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
if (!input.CompanyID) {
|
|
107
|
+
return { Success: false, Message: 'A contract needs the selling company (Deal.CompanyID).' };
|
|
108
|
+
}
|
|
109
|
+
const resolved = await this.resolveContractType(input.ContractTypeCode);
|
|
110
|
+
if (!resolved.ID) {
|
|
111
|
+
return {
|
|
112
|
+
Success: false,
|
|
113
|
+
Message: `No contract type matches '${input.ContractTypeCode ?? '(none)'}' in contracts${resolved.By}.`,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
try {
|
|
117
|
+
const contract = await this.provider.GetEntityObject(E_CONTRACT, this.user);
|
|
118
|
+
contract.NewRecord();
|
|
119
|
+
contract.Set('ContractTypeID', resolved.ID);
|
|
120
|
+
contract.Set('CompanyID', input.CompanyID);
|
|
121
|
+
contract.Set('CustomerOrganizationID', input.AccountID);
|
|
122
|
+
/**
|
|
123
|
+
* The contact is not a second customer; it is the person to talk to about this one.
|
|
124
|
+
* Nullable, and null is an ordinary answer for a deal that named nobody.
|
|
125
|
+
*/
|
|
126
|
+
contract.Set('PrimaryContactPersonID', input.PrimaryContactID ?? null);
|
|
127
|
+
/** The AD's red-lines travel with the agreement — a human reviewer would otherwise go in blind. */
|
|
128
|
+
contract.Set('Description', input.ContractVariances ?? null);
|
|
129
|
+
/**
|
|
130
|
+
* THE REP'S ANSWER, carried through — S-US1 asks the question, S-US2 copies it here.
|
|
131
|
+
*
|
|
132
|
+
* It used to be hardcoded `false`, and the reasoning was sound as far as it went: sales
|
|
133
|
+
* creates no `ContractTemplateModification` rows, because it has no template to record a
|
|
134
|
+
* modification against, and `ContractEntityServer.ValidateAsync()` only refuses a false
|
|
135
|
+
* flag when such rows exist — which for a contract created this second they cannot.
|
|
136
|
+
*
|
|
137
|
+
* What that argument missed is that the flag is not a count of rows. It is the INSTRUCTION
|
|
138
|
+
* to go and create them: a true flag sends finance to the paper to capture each deviation,
|
|
139
|
+
* a false one sends them to confirm nothing was negotiated. Hardcoding false made every
|
|
140
|
+
* contract claim the standard agreement was untouched, including the negotiated ones, so
|
|
141
|
+
* the only signal distinguishing them was lost at the boundary.
|
|
142
|
+
*
|
|
143
|
+
* Absent (an older caller, or the stub) still means false — the column is NOT NULL in
|
|
144
|
+
* contracts and S-US1 defaults the deal's flag to no, so false is the honest default at
|
|
145
|
+
* both ends rather than a shrug.
|
|
146
|
+
*/
|
|
147
|
+
contract.Set('HasModifications', input.StandardAgreementModified === true);
|
|
148
|
+
this.setProvenance(contract, input.DealID);
|
|
149
|
+
this.setNegotiatedTerms(contract, input);
|
|
150
|
+
const template = this.templateID(input);
|
|
151
|
+
if (template) {
|
|
152
|
+
contract.Set('ContractTemplateID', template);
|
|
153
|
+
}
|
|
154
|
+
if (!(await contract.Save())) {
|
|
155
|
+
return {
|
|
156
|
+
Success: false,
|
|
157
|
+
Message: `Could not save the contract: ${contract.LatestResult?.CompleteMessage ?? 'unknown error'}`,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
const id = String(contract.Get('ID') ?? '');
|
|
161
|
+
const number = String(contract.Get('ContractNumber') ?? '');
|
|
162
|
+
return {
|
|
163
|
+
Success: true,
|
|
164
|
+
ContractID: id || null,
|
|
165
|
+
/**
|
|
166
|
+
* NULL, not `'Draft'`. There is no status column to report, and inventing a label the
|
|
167
|
+
* database does not hold would put sales back in the business of narrating contracts'
|
|
168
|
+
* lifecycle — which is exactly what deriving it from dates was meant to stop.
|
|
169
|
+
*/
|
|
170
|
+
Status: null,
|
|
171
|
+
Message: `Contract ${number || id} created by Sales.CloseDeal${resolved.By}.`.trim(),
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
catch (err) {
|
|
175
|
+
LogError(`LiveContractsSeam.CreateContractFromDeal failed for deal ${input.DealID}: ${err}`);
|
|
176
|
+
return { Success: false, Message: `Could not create the contract: ${String(err)}` };
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Stamp contracts' polymorphic provenance pair with the deal that caused this.
|
|
181
|
+
*
|
|
182
|
+
* `CK_Contract_CreatingPairBothOrNeither` requires both or neither, so a deal whose entity cannot
|
|
183
|
+
* be resolved leaves BOTH null rather than half a reference. `IX_Contract_CreatingRecord` exists
|
|
184
|
+
* for the reverse lookup — "which contract came from this deal" — so this is the field that makes
|
|
185
|
+
* the handoff traceable in the direction a person actually asks about it.
|
|
186
|
+
*/
|
|
187
|
+
setProvenance(contract, dealID) {
|
|
188
|
+
const dealEntity = this.provider.Entities.find((e) => e.Name === E_DEAL);
|
|
189
|
+
if (!dealEntity?.ID || !dealID) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
contract.Set('CreatingEntityID', dealEntity.ID);
|
|
193
|
+
contract.Set('CreatingRecordID', dealID);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* The renewal terms the DEAL actually negotiated — and only those.
|
|
197
|
+
*
|
|
198
|
+
* ── THE OVERRIDE/DEFAULT SPLIT, WHICH IS LOAD-BEARING ──────────────────────────────────────
|
|
199
|
+
*
|
|
200
|
+
* Sales' columns are named `…Override` on purpose, and their own descriptions say why: NULL means
|
|
201
|
+
* "use the standard", which is a DIFFERENT FACT from "we negotiated a number that happens to equal
|
|
202
|
+
* today's standard". Only the NULL survives a later change to policy. So a null override is passed
|
|
203
|
+
* through as null and never filled in here.
|
|
204
|
+
*
|
|
205
|
+
* ── THE DEFAULTS THAT DO NOT EXIST YET ──────────────────────────────────────────────────────
|
|
206
|
+
*
|
|
207
|
+
* Sales' descriptions say the standards (5% uplift, 90 days' notice) are "owned by the contracts
|
|
208
|
+
* ContractType". As of `origin/next` @ `d2f64e3` **they are not**: `ContractType` carries only
|
|
209
|
+
* Name, Description, RequiresExecutedDocument, ParentStatusRequirement and Status. Nothing applies
|
|
210
|
+
* a default anywhere — `applyContractTypeDefaults()` went with the v1 rebuild.
|
|
211
|
+
*
|
|
212
|
+
* This seam therefore populates NOTHING it was not told, so that when the columns arrive the
|
|
213
|
+
* defaults land where they belong — in contracts, applied once, rather than being pre-empted here
|
|
214
|
+
* by a value sales invented. See D-9.
|
|
215
|
+
*/
|
|
216
|
+
setNegotiatedTerms(contract, input) {
|
|
217
|
+
/** Stated on the deal as a fact about the paper, and stated the same way on the contract. */
|
|
218
|
+
contract.Set('AutoRenew', input.AutoRenew === true);
|
|
219
|
+
/**
|
|
220
|
+
* `CancellationNoticeDaysOverride` → `CancellationWindowDays`, and the names differing is not
|
|
221
|
+
* a reason to hesitate: contracts defines its column as "days of notice the customer owes to
|
|
222
|
+
* cancel without renewing", which is exactly what sales' override overrides.
|
|
223
|
+
*
|
|
224
|
+
* `RenewalNoticeDays` is deliberately left alone. Contracts' own description warns that it is
|
|
225
|
+
* "NOT the same field as CancellationWindowDays even though many agreements set them equal —
|
|
226
|
+
* conflating them silently is how a notice obligation gets missed". Sales holds no equivalent,
|
|
227
|
+
* so it says nothing rather than reusing the number it does have.
|
|
228
|
+
*/
|
|
229
|
+
if (input.CancellationNoticeDaysOverride != null) {
|
|
230
|
+
contract.Set('CancellationWindowDays', input.CancellationNoticeDaysOverride);
|
|
231
|
+
}
|
|
232
|
+
const uplift = this.annualIncrease(input.AnnualIncreasePctOverride);
|
|
233
|
+
if (uplift != null) {
|
|
234
|
+
contract.Set('AnnualIncreasePercent', uplift);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* The negotiated year-over-year uplift, PASSED THROUGH UNCONVERTED.
|
|
239
|
+
*
|
|
240
|
+
* -- WHY PASS-THROUGH IS RIGHT, WHICH IS NOT THE SAME AS THE TWO SIDES AGREEING --
|
|
241
|
+
*
|
|
242
|
+
* The reason is the OVERRIDE semantics, not a matching domain. Sales names this column
|
|
243
|
+
* `AnnualIncreasePctOverride` and its own description is explicit: NULL means use the standard,
|
|
244
|
+
* whose default lives on the contracts ContractType, and copying that default in at write time
|
|
245
|
+
* would freeze this year terms into next year renewals silently. So a stated number travels and a
|
|
246
|
+
* null stays a null. Nothing here converts, scales or substitutes, because each of those would be
|
|
247
|
+
* a computation and sales does not compute money or the rates that move it.
|
|
248
|
+
*
|
|
249
|
+
* -- AND THE TWO SCHEMAS DO NOT AGREE ON THE DOMAIN --
|
|
250
|
+
*
|
|
251
|
+
* Sales bounds this 0 to 100 (`CK_Deal_AnnualIncreasePctOverride`). Contracts bounds only `>= 0`
|
|
252
|
+
* (`CK_Contract_AnnualIncrease`) with no upper limit, at `DECIMAL(7,4)` against sales
|
|
253
|
+
* `DECIMAL(5,2)`. Both call it a percent and 5 means five per cent on both sides today, so the
|
|
254
|
+
* handoff is correct -- but the wider column will accept a value sales would have refused, and
|
|
255
|
+
* nothing on either side states the unit as a rule rather than as a habit.
|
|
256
|
+
*
|
|
257
|
+
* That is the same shape as the discount-unit trap recorded in `docs/DECISIONS.md`, where 0-100
|
|
258
|
+
* became 0-1 across a boundary and would have been a silent hundred-fold bug. It has not bitten
|
|
259
|
+
* here and it is not this file to settle: see D-14. Flagged rather than defended, because a
|
|
260
|
+
* conversion added on suspicion is exactly the computation this app must not perform.
|
|
261
|
+
*/
|
|
262
|
+
annualIncrease(pct) {
|
|
263
|
+
return pct == null ? null : pct;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* The template to incorporate, when a caller supplies one — and it is nobody's job to guess.
|
|
267
|
+
*
|
|
268
|
+
* Two independent reasons, either sufficient on its own:
|
|
269
|
+
*
|
|
270
|
+
* 1. Contracts says so. `ContractTemplateID` is "nullable because a contract created
|
|
271
|
+
* automatically at Closed Won has none until finance reads the PDF". That describes exactly
|
|
272
|
+
* this call site. A template arrives when a human establishes which one was signed.
|
|
273
|
+
*
|
|
274
|
+
* 2. There is no way to pick one that is not a guess. `ContractTemplate` carries Name,
|
|
275
|
+
* VersionLabel, `IntroducedDate` and SourceURL — and no `Status`. Choosing the newest by
|
|
276
|
+
* `IntroducedDate` is precisely the date-guessing that the `Status` column Andrew asked for
|
|
277
|
+
* exists to eliminate, and it would silently attach next year's paper to this year's deal
|
|
278
|
+
* the day someone loads a draft template.
|
|
279
|
+
*
|
|
280
|
+
* So: honoured if supplied, never selected. Nothing in sales supplies one today. See D-10.
|
|
281
|
+
*/
|
|
282
|
+
templateID(input) {
|
|
283
|
+
return input.ContractTemplateID ?? null;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* The contract type the policy named.
|
|
287
|
+
*
|
|
288
|
+
* ── WHY THIS PROBES FOR A COLUMN ────────────────────────────────────────────────────────────
|
|
289
|
+
*
|
|
290
|
+
* Sales' policy field is `ContractTypeCode`, and resolving a CODE is the right shape: sales does
|
|
291
|
+
* not know contracts' vocabulary and must not bake its UUIDs. But `ContractType` has no `Code`
|
|
292
|
+
* column — it is identified by `Name` (unique) and a fixed seeded UUID. Filtering on `Code`, as
|
|
293
|
+
* the previous version did, ran against a column that does not exist, so the lookup could only
|
|
294
|
+
* ever fail.
|
|
295
|
+
*
|
|
296
|
+
* Rather than fail the whole route over a missing column, this asks the METADATA which identifier
|
|
297
|
+
* contracts actually offers, uses that, and reports which one it used so the answer is never
|
|
298
|
+
* ambiguous. When contracts adds `Code` — as tasks just did on `TaskType`, for the same reason —
|
|
299
|
+
* this starts preferring it with no change here. See D-12.
|
|
300
|
+
*
|
|
301
|
+
* ── THIS IS NOT A VOCABULARY COMPARISON ─────────────────────────────────────────────────────
|
|
302
|
+
*
|
|
303
|
+
* No behaviour branches on the value. The string arrives from configuration, is looked up, and
|
|
304
|
+
* yields an ID; nothing in this app asks whether the type is an Order Form or an SOW. `'Code'`
|
|
305
|
+
* and `'Name'` are COLUMN names, not vocabulary — which is the distinction the gate cares about.
|
|
306
|
+
*/
|
|
307
|
+
async resolveContractType(code) {
|
|
308
|
+
if (!code) {
|
|
309
|
+
return { ID: null, By: '' };
|
|
310
|
+
}
|
|
311
|
+
const info = this.provider.Entities.find((e) => e.Name === E_CONTRACT_TYPE);
|
|
312
|
+
const hasCode = info?.Fields?.some((f) => f.Name === 'Code') === true;
|
|
313
|
+
const column = hasCode ? 'Code' : 'Name';
|
|
314
|
+
const by = hasCode ? '' : ' (matched on Name — contracts has no Code column on ContractType)';
|
|
315
|
+
const r = await new RunView().RunView({
|
|
316
|
+
EntityName: E_CONTRACT_TYPE,
|
|
317
|
+
ExtraFilter: `${column} = '${String(code).replace(/'/g, "''")}'`,
|
|
318
|
+
ResultType: 'simple',
|
|
319
|
+
Fields: ['ID'],
|
|
320
|
+
}, this.user);
|
|
321
|
+
if (!r?.Success) {
|
|
322
|
+
LogError(`LiveContractsSeam could not read contract types: ${r?.ErrorMessage ?? 'unknown error'}`);
|
|
323
|
+
return { ID: null, By: by };
|
|
324
|
+
}
|
|
325
|
+
return { ID: (r.Results ?? [])[0]?.ID ?? null, By: by };
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* The renewal door, which v2 has closed and not yet reopened.
|
|
329
|
+
*
|
|
330
|
+
* `Contracts.RenewTerm` is gone with `SaveContract`, and it did not simply move: `ContractTerm`
|
|
331
|
+
* was DELETED as a table, so "add a term to an existing contract" no longer describes anything
|
|
332
|
+
* that exists. There is nothing to call and nothing to call it on.
|
|
333
|
+
*
|
|
334
|
+
* REPORTED, NOT INVENTED. Two shapes could express a renewal on the v2 header — a new contract
|
|
335
|
+
* carrying `ParentContractID`, or the existing one stamped `SupersededByContractID` — and they
|
|
336
|
+
* are not equivalent: the first keeps both agreements in the lineage, the second retires one.
|
|
337
|
+
* Which is right is contracts' modelling decision, not sales'. Guessing would produce contract
|
|
338
|
+
* records that look correct and mean the wrong thing, so this returns a plan that honestly did
|
|
339
|
+
* not execute and says why, which is the same shape every other unroutable target uses. See D-11.
|
|
340
|
+
*/
|
|
341
|
+
async RenewContractTerm(input) {
|
|
342
|
+
if (!ContractsIsInstalled()) {
|
|
343
|
+
return { Success: false, Message: 'bizapps-contracts is not installed in this deployment.' };
|
|
344
|
+
}
|
|
345
|
+
if (!input.ContractID) {
|
|
346
|
+
return { Success: false, Message: 'A renewal needs the contract being renewed (Deal.RenewsContractID).' };
|
|
347
|
+
}
|
|
348
|
+
return {
|
|
349
|
+
Success: false,
|
|
350
|
+
ContractID: input.ContractID,
|
|
351
|
+
Message: 'Renewal was planned but not executed: the contracts rebuild removed ContractTerm and ' +
|
|
352
|
+
'Contracts.RenewTerm, so a term cannot be added to an existing contract. Whether a renewal ' +
|
|
353
|
+
'becomes a child contract (ParentContractID) or supersedes the original ' +
|
|
354
|
+
'(SupersededByContractID) is a contracts modelling decision that has not been made.',
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
/** Anti-tree-shaking anchor. */
|
|
359
|
+
export function LoadLiveContractsSeam() {
|
|
360
|
+
/* keeps the registration alive */
|
|
361
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