@mj-biz-apps/sales-ng 6.1.0 → 6.3.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/dist/lib/workspace/deal-workspace.component.d.ts +47 -1
- package/dist/lib/workspace/deal-workspace.component.d.ts.map +1 -1
- package/dist/lib/workspace/deal-workspace.component.js +492 -298
- package/dist/lib/workspace/deal-workspace.component.js.map +1 -1
- package/dist/lib/workspace/deal-workspace.service.d.ts.map +1 -1
- package/dist/lib/workspace/deal-workspace.service.js +3 -3
- package/dist/lib/workspace/deal-workspace.service.js.map +1 -1
- package/package.json +2 -2
|
@@ -48,7 +48,7 @@ import type { mjBizAppsOrdersOrderLineEntity as OrderLineEntity } from '@mj-biz-
|
|
|
48
48
|
import type { DealEntity, mjBizAppsSalesDealPaymentScheduleEntity, SalesCloseRoutingResult } from '@mj-biz-apps/sales-entities';
|
|
49
49
|
import { type DealLockState } from '@mj-biz-apps/sales-entities';
|
|
50
50
|
import { type MJTabReorder, type MJWorkspaceTab } from '@memberjunction/ng-ui-components';
|
|
51
|
-
import type
|
|
51
|
+
import { type ProductLookup } from '@mj-biz-apps/sales-entities';
|
|
52
52
|
import { type DealWorkspaceIssue, type DealWorkspaceSection, type DealWorkspaceValidation } from './deal-workspace.validation';
|
|
53
53
|
import { type DealStatusLookup, type DealLookup, type DealWorkspaceLookups, type DealWorkspacePane, type StageLookup } from './deal-workspace.types';
|
|
54
54
|
import * as i0 from "@angular/core";
|
|
@@ -407,6 +407,44 @@ export declare class DealWorkspaceComponent implements OnInit {
|
|
|
407
407
|
DateInput(value: string | Date | null): string | null;
|
|
408
408
|
SetDealDate(deal: DealEntity, field: DealDateField, value: string): void;
|
|
409
409
|
SetPaymentDate(row: mjBizAppsSalesDealPaymentScheduleEntity, value: string): void;
|
|
410
|
+
/**
|
|
411
|
+
* The order date every term start defaults to, read LIVE off the embedded order.
|
|
412
|
+
*
|
|
413
|
+
* Deliberately a getter and not a value copied onto each line at load. #32 requires that a line with
|
|
414
|
+
* no explicit term start follows the order date when the order date changes; a copy taken once would
|
|
415
|
+
* freeze at whatever the date was when the deal opened and then quietly disagree with the order.
|
|
416
|
+
*
|
|
417
|
+
* Null only while the deal has no embedded order — an unsaved deal, where there are no lines either.
|
|
418
|
+
*/
|
|
419
|
+
get OrderDate(): Date | null;
|
|
420
|
+
/**
|
|
421
|
+
* Whether this line shows a term start at all — the rule is {@link ShouldOfferTermStart}, which is
|
|
422
|
+
* where the reasoning lives and where the checks assert it.
|
|
423
|
+
*/
|
|
424
|
+
ShowTermStart(line: OrderLineEntity): boolean;
|
|
425
|
+
/**
|
|
426
|
+
* The `yyyy-MM-dd` the term-start input binds to: the stored value, or the order date as a DEFAULT
|
|
427
|
+
* that is displayed and never written. See {@link EffectiveTermStart}.
|
|
428
|
+
*/
|
|
429
|
+
TermStartInput(line: OrderLineEntity): string | null;
|
|
430
|
+
/** True when the line carries its own term start rather than showing the order date. */
|
|
431
|
+
HasExplicitTermStart(line: OrderLineEntity): boolean;
|
|
432
|
+
/**
|
|
433
|
+
* Records an explicit term start on the line.
|
|
434
|
+
*
|
|
435
|
+
* `ServicePeriodEnd` is deliberately NOT set: the term end is computed by orders at confirm from the
|
|
436
|
+
* subscription's own rules, and a value guessed here would either be overwritten (harmless but
|
|
437
|
+
* misleading on screen) or honoured (wrong, because sales does not know the cadence).
|
|
438
|
+
*/
|
|
439
|
+
SetTermStart(line: OrderLineEntity, value: string): void;
|
|
440
|
+
/**
|
|
441
|
+
* Clears the stored term start so the field follows the order date again.
|
|
442
|
+
*
|
|
443
|
+
* Guarded on there being something to clear so the button cannot mark a clean deal dirty — the
|
|
444
|
+
* control is only rendered when {@link HasExplicitTermStart}, and this keeps that true in code as
|
|
445
|
+
* well as in the template.
|
|
446
|
+
*/
|
|
447
|
+
ResetTermStart(line: OrderLineEntity, focusAfter?: HTMLElement): void;
|
|
410
448
|
/**
|
|
411
449
|
* The customer name for the persistent context header.
|
|
412
450
|
*
|
|
@@ -645,6 +683,14 @@ export declare class DealWorkspaceComponent implements OnInit {
|
|
|
645
683
|
* company in its own right.
|
|
646
684
|
*/
|
|
647
685
|
ProductLabel(line: OrderLineEntity): string;
|
|
686
|
+
/**
|
|
687
|
+
* The catalogue row a line points at, or null when the product is no longer offered.
|
|
688
|
+
*
|
|
689
|
+
* One lookup shared by the label and the term-start test, so the two can never disagree about
|
|
690
|
+
* whether a line's product is known — a line reading "(no longer offered)" while still being
|
|
691
|
+
* treated as a catalogue subscription would be exactly that disagreement.
|
|
692
|
+
*/
|
|
693
|
+
private ProductFor;
|
|
648
694
|
/**
|
|
649
695
|
* Records the product a line references.
|
|
650
696
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal-workspace.component.d.ts","sourceRoot":"","sources":["../../../src/lib/workspace/deal-workspace.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAiE,MAAM,EAAU,MAAM,eAAe,CAAC;AAW9G,OAAO,KAAK,EAAE,8BAA8B,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACtG,OAAO,KAAK,EACR,UAAU,EACV,uCAAuC,EAGvC,uBAAuB,EAE1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGH,KAAK,aAAa,EACrB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAGH,KAAK,YAAY,EACjB,KAAK,cAAc,EACtB,MAAM,kCAAkC,CAAC;AAU1C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"deal-workspace.component.d.ts","sourceRoot":"","sources":["../../../src/lib/workspace/deal-workspace.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAiE,MAAM,EAAU,MAAM,eAAe,CAAC;AAW9G,OAAO,KAAK,EAAE,8BAA8B,IAAI,eAAe,EAAE,M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