@mj-biz-apps/orders-ng 5.34.1 → 5.35.1
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/checkout-element/main.js +18 -5
- package/dist/lib/checkout-widget/checkout-account.d.ts +6 -6
- package/dist/lib/checkout-widget/checkout-account.d.ts.map +1 -1
- package/dist/lib/checkout-widget/checkout-account.js +18 -5
- package/dist/lib/checkout-widget/checkout-account.js.map +1 -1
- package/dist/lib/form-panels/external-invoices.panel.d.ts +14 -0
- package/dist/lib/form-panels/external-invoices.panel.d.ts.map +1 -1
- package/dist/lib/form-panels/external-invoices.panel.js +99 -46
- package/dist/lib/form-panels/external-invoices.panel.js.map +1 -1
- package/dist/lib/panels/external-invoice-view.d.ts +15 -2
- package/dist/lib/panels/external-invoice-view.d.ts.map +1 -1
- package/dist/lib/panels/external-invoice-view.js +15 -2
- package/dist/lib/panels/external-invoice-view.js.map +1 -1
- package/package.json +2 -2
|
@@ -31706,17 +31706,30 @@ function ReadCheckoutAccount(raw) {
|
|
|
31706
31706
|
Outcome: a["Outcome"],
|
|
31707
31707
|
Message: typeof a["Message"] === "string" && a["Message"] ? a["Message"] : void 0,
|
|
31708
31708
|
CanSetPassword: a["CanSetPassword"] === true,
|
|
31709
|
-
VerificationRequired: a["Outcome"] === "Created"
|
|
31709
|
+
VerificationRequired: a["Outcome"] === "Created",
|
|
31710
|
+
...a["Outcome"] === "Created" ? readHostWording(a) : {}
|
|
31710
31711
|
};
|
|
31711
31712
|
}
|
|
31713
|
+
function readHostWording(a) {
|
|
31714
|
+
const wording = {};
|
|
31715
|
+
const note = a["VerificationNote"];
|
|
31716
|
+
if (note === null || typeof note === "string")
|
|
31717
|
+
wording.VerificationNote = note?.trim() ? note : null;
|
|
31718
|
+
const passwordSet = a["PasswordSetMessage"];
|
|
31719
|
+
if (typeof passwordSet === "string" && passwordSet.trim())
|
|
31720
|
+
wording.PasswordSetMessage = passwordSet;
|
|
31721
|
+
return wording;
|
|
31722
|
+
}
|
|
31712
31723
|
var VERIFY_NOTE = "We are sending a link to your e-mail. Use it to verify your account before you sign in.";
|
|
31724
|
+
var PASSWORD_SET_MESSAGE = "Your password is set. Check your e-mail for the link to verify your account, then sign in with the e-mail you used here.";
|
|
31713
31725
|
function VerificationNote(account) {
|
|
31714
|
-
|
|
31726
|
+
if (!account?.VerificationRequired)
|
|
31727
|
+
return null;
|
|
31728
|
+
return account.VerificationNote === void 0 ? VERIFY_NOTE : account.VerificationNote;
|
|
31715
31729
|
}
|
|
31716
31730
|
function AccountMessage(account, passwordSet) {
|
|
31717
|
-
if (passwordSet)
|
|
31718
|
-
return
|
|
31719
|
-
}
|
|
31731
|
+
if (passwordSet)
|
|
31732
|
+
return account.PasswordSetMessage ?? PASSWORD_SET_MESSAGE;
|
|
31720
31733
|
if (account.Message)
|
|
31721
31734
|
return account.Message;
|
|
31722
31735
|
if (account.Outcome === "Exists")
|
|
@@ -12,18 +12,18 @@ export interface CheckoutAccountView {
|
|
|
12
12
|
Outcome: CheckoutAccountOutcome;
|
|
13
13
|
Message?: string;
|
|
14
14
|
CanSetPassword: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The buyer must verify the e-mail before the account signs in. True for every `Created`
|
|
17
|
-
* account: the `CheckoutAccountStep` contract keeps a created account unable to sign in until
|
|
18
|
-
* the host has verified the e-mail (#395).
|
|
19
|
-
*/
|
|
15
|
+
/** True for every `Created` account, which gets the verification note. */
|
|
20
16
|
VerificationRequired?: boolean;
|
|
17
|
+
/** The host's verification note: absent for the default, `null` for none. */
|
|
18
|
+
VerificationNote?: string | null;
|
|
19
|
+
/** The host's wording once the password is set; absent for the default. */
|
|
20
|
+
PasswordSetMessage?: string;
|
|
21
21
|
}
|
|
22
22
|
/** Shown when the account step could not be reached or did not answer. */
|
|
23
23
|
export declare const ACCOUNT_STEP_FAILED: CheckoutAccountView;
|
|
24
24
|
/** The account the server reported, or null when the response carries none (no step registered). */
|
|
25
25
|
export declare function ReadCheckoutAccount(raw: unknown): CheckoutAccountView | null;
|
|
26
|
-
/** The note shown with the password form of a created account. */
|
|
26
|
+
/** The note shown with the password form of a created account: the host's, or the default. */
|
|
27
27
|
export declare function VerificationNote(account: CheckoutAccountView | null): string | null;
|
|
28
28
|
/** The line shown under the confirmation when no password form is showing. */
|
|
29
29
|
export declare function AccountMessage(account: CheckoutAccountView, passwordSet: boolean): string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-account.d.ts","sourceRoot":"","sources":["../../../src/lib/checkout-widget/checkout-account.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,sBAAsB,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB
|
|
1
|
+
{"version":3,"file":"checkout-account.d.ts","sourceRoot":"","sources":["../../../src/lib/checkout-widget/checkout-account.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,sBAAsB,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,0EAA0E;IAC1E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,EAAE,mBAAkE,CAAC;AAErG,oGAAoG;AACpG,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,mBAAmB,GAAG,IAAI,CAW5E;AAeD,8FAA8F;AAC9F,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAGnF;AAED,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAMhG;AAED,iHAAiH;AACjH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAIxF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,EAAE,SAAS,UAAQ,GAAG,OAAO,CAG3F;AAED,oGAAoG;AACpG,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,GAAG,OAAO,CAE7E"}
|
|
@@ -21,18 +21,31 @@ export function ReadCheckoutAccount(raw) {
|
|
|
21
21
|
Message: typeof a['Message'] === 'string' && a['Message'] ? a['Message'] : undefined,
|
|
22
22
|
CanSetPassword: a['CanSetPassword'] === true,
|
|
23
23
|
VerificationRequired: a['Outcome'] === 'Created',
|
|
24
|
+
...(a['Outcome'] === 'Created' ? readHostWording(a) : {}),
|
|
24
25
|
};
|
|
25
26
|
}
|
|
27
|
+
function readHostWording(a) {
|
|
28
|
+
const wording = {};
|
|
29
|
+
const note = a['VerificationNote'];
|
|
30
|
+
if (note === null || typeof note === 'string')
|
|
31
|
+
wording.VerificationNote = note?.trim() ? note : null;
|
|
32
|
+
const passwordSet = a['PasswordSetMessage'];
|
|
33
|
+
if (typeof passwordSet === 'string' && passwordSet.trim())
|
|
34
|
+
wording.PasswordSetMessage = passwordSet;
|
|
35
|
+
return wording;
|
|
36
|
+
}
|
|
26
37
|
const VERIFY_NOTE = 'We are sending a link to your e-mail. Use it to verify your account before you sign in.';
|
|
27
|
-
|
|
38
|
+
const PASSWORD_SET_MESSAGE = 'Your password is set. Check your e-mail for the link to verify your account, then sign in with the e-mail you used here.';
|
|
39
|
+
/** The note shown with the password form of a created account: the host's, or the default. */
|
|
28
40
|
export function VerificationNote(account) {
|
|
29
|
-
|
|
41
|
+
if (!account?.VerificationRequired)
|
|
42
|
+
return null;
|
|
43
|
+
return account.VerificationNote === undefined ? VERIFY_NOTE : account.VerificationNote;
|
|
30
44
|
}
|
|
31
45
|
/** The line shown under the confirmation when no password form is showing. */
|
|
32
46
|
export function AccountMessage(account, passwordSet) {
|
|
33
|
-
if (passwordSet)
|
|
34
|
-
return
|
|
35
|
-
}
|
|
47
|
+
if (passwordSet)
|
|
48
|
+
return account.PasswordSetMessage ?? PASSWORD_SET_MESSAGE;
|
|
36
49
|
if (account.Message)
|
|
37
50
|
return account.Message;
|
|
38
51
|
if (account.Outcome === 'Exists')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-account.js","sourceRoot":"","sources":["../../../src/lib/checkout-widget/checkout-account.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgBH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAwB,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;AAErG,oGAAoG;AACpG,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC5C,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACjD,MAAM,CAAC,GAAG,GAA8B,CAAC;IACzC,IAAI,CAAC,CAAC,SAAS,CAAC,KAAK,SAAS,IAAI,CAAC,CAAC,SAAS,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACtG,OAAO;QACH,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC;QACrB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,QAAQ,IAAI,CAAC,CAA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AAED,iHAAiH;AACjH,MAAM,UAAU,kBAAkB,CAAC,QAAgB,EAAE,YAAoB;IACrE,IAAI,CAAC,QAAQ;QAAE,OAAO,0BAA0B,CAAC;IACjD,IAAI,QAAQ,KAAK,YAAY;QAAE,OAAO,iCAAiC,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,OAAmC,EAAE,SAAS,GAAG,KAAK;IAC9E,IAAI,SAAS,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IACvC,OAAO,CAAC,OAAO,CAAC,cAAc,IAAI,OAAO,CAAC,OAAO,KAAK,QAAQ,CAAC;AACnE,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,gBAAgB,CAAC,OAAmC;IAChE,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -52,6 +52,12 @@ export declare class ExternalInvoicesPanel extends BaseFormPanel<mjBizAppsOrders
|
|
|
52
52
|
ProviderName: string;
|
|
53
53
|
/** True when the order bills in instalments; the whole-order Send does not apply to it. */
|
|
54
54
|
BilledOnSchedule: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Why Send would be refused before anything reached the rail — today, a bill-to party the rail
|
|
57
|
+
* cannot take as a customer (no billing email). Read from the operation's own preview on load, so
|
|
58
|
+
* the rule lives on the server and the panel only repeats its answer. Null when nothing blocks.
|
|
59
|
+
*/
|
|
60
|
+
SendBlocked: string | null;
|
|
55
61
|
readonly money: (n: number) => string;
|
|
56
62
|
/** `SentAt` is a `datetimeoffset`: shown as the business day it happened on. */
|
|
57
63
|
readonly date: (iso: string) => string;
|
|
@@ -83,6 +89,14 @@ export declare class ExternalInvoicesPanel extends BaseFormPanel<mjBizAppsOrders
|
|
|
83
89
|
Reissue(): Promise<void>;
|
|
84
90
|
Cancel(): Promise<void>;
|
|
85
91
|
private load;
|
|
92
|
+
/**
|
|
93
|
+
* What the operation's preview says would stop a send before the rail is called.
|
|
94
|
+
*
|
|
95
|
+
* Only the refusals a person fixes on the bill-to party are surfaced: those are the ones the rail
|
|
96
|
+
* would otherwise reject after the click, leaving a Failed row behind. Anything else the preview
|
|
97
|
+
* reports (or a preview that cannot run) leaves Send enabled, and the send itself says why.
|
|
98
|
+
*/
|
|
99
|
+
private previewBlock;
|
|
86
100
|
/**
|
|
87
101
|
* Whether this order bills in instalments.
|
|
88
102
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-invoices.panel.d.ts","sourceRoot":"","sources":["../../../src/lib/form-panels/external-invoices.panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,MAAM,EAAU,MAAM,eAAe,CAAC;AAG7E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAIH,KAAK,gCAAgC,EACxC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,
|
|
1
|
+
{"version":3,"file":"external-invoices.panel.d.ts","sourceRoot":"","sources":["../../../src/lib/form-panels/external-invoices.panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,MAAM,EAAU,MAAM,eAAe,CAAC;AAG7E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAIH,KAAK,gCAAgC,EACxC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAA+G,KAAK,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;;AAExL,kGAAkG;AAClG,UAAU,kBAAkB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;IACnD,kB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,IAAI;IAKrC,UAAU,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM;IAI5C,SAAS,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM;IAMrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAyClC;;;;;;OAMG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBnC;;;;;OAKG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAyCxB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;YAwCtB,IAAI;IAgClB;;;;;;OAMG;YACW,YAAY;IAc1B;;;;;;OAMG;YACW,kBAAkB;IAgBhC;;;;;OAKG;YACW,QAAQ;yCAjTb,qBAAqB;2CAArB,qBAAqB;CAsUjC"}
|
|
@@ -11,7 +11,7 @@ import { BaseFormPanel } from '@memberjunction/ng-base-forms';
|
|
|
11
11
|
import { MJConfirmService } from '@memberjunction/ng-ui-components';
|
|
12
12
|
import { OrdersAdoptExternalInvoiceOperation, OrdersCancelExternalInvoiceOperation, OrdersIssueExternalInvoiceOperation, } from '@mj-biz-apps/orders-entities';
|
|
13
13
|
import { FormatInstantDate, FormatMoney } from '../panels/money-format.js';
|
|
14
|
-
import { CanCancel, CanResolveInFlight, CanSend, StateChipClass, StateLabel } from '../panels/external-invoice-view.js';
|
|
14
|
+
import { CanCancel, CanResolveInFlight, CanSend, SendIsReissue, StateChipClass, StateLabel } from '../panels/external-invoice-view.js';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
import * as i1 from "@memberjunction/ng-base-forms";
|
|
17
17
|
import * as i2 from "@memberjunction/ng-ui-components";
|
|
@@ -53,7 +53,7 @@ function ExternalInvoicesPanel_Conditional_0_Conditional_3_Template(rf, ctx) { i
|
|
|
53
53
|
i0.ɵɵconditional(ctx_r0.Sendable ? 2 : -1);
|
|
54
54
|
} }
|
|
55
55
|
function ExternalInvoicesPanel_Conditional_0_Conditional_4_For_15_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
56
|
-
i0.ɵɵelementStart(0, "tr",
|
|
56
|
+
i0.ɵɵelementStart(0, "tr", 18)(1, "td", 19);
|
|
57
57
|
i0.ɵɵtext(2);
|
|
58
58
|
i0.ɵɵelementEnd()();
|
|
59
59
|
} if (rf & 2) {
|
|
@@ -63,24 +63,24 @@ function ExternalInvoicesPanel_Conditional_0_Conditional_4_For_15_Conditional_12
|
|
|
63
63
|
} }
|
|
64
64
|
function ExternalInvoicesPanel_Conditional_0_Conditional_4_For_15_Template(rf, ctx) { if (rf & 1) {
|
|
65
65
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
66
|
-
i0.ɵɵelementStart(0, "tr",
|
|
66
|
+
i0.ɵɵelementStart(0, "tr", 12);
|
|
67
67
|
i0.ɵɵlistener("click", function ExternalInvoicesPanel_Conditional_0_Conditional_4_For_15_Template_tr_click_0_listener() { const row_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.Select(row_r3)); });
|
|
68
|
-
i0.ɵɵelementStart(1, "td",
|
|
68
|
+
i0.ɵɵelementStart(1, "td", 13);
|
|
69
69
|
i0.ɵɵtext(2);
|
|
70
70
|
i0.ɵɵelementEnd();
|
|
71
|
-
i0.ɵɵelementStart(3, "td",
|
|
71
|
+
i0.ɵɵelementStart(3, "td", 14);
|
|
72
72
|
i0.ɵɵtext(4);
|
|
73
73
|
i0.ɵɵelementEnd();
|
|
74
|
-
i0.ɵɵelementStart(5, "td")(6, "span",
|
|
74
|
+
i0.ɵɵelementStart(5, "td")(6, "span", 15);
|
|
75
75
|
i0.ɵɵtext(7);
|
|
76
76
|
i0.ɵɵelementEnd()();
|
|
77
|
-
i0.ɵɵelementStart(8, "td",
|
|
77
|
+
i0.ɵɵelementStart(8, "td", 16);
|
|
78
78
|
i0.ɵɵtext(9);
|
|
79
79
|
i0.ɵɵelementEnd();
|
|
80
|
-
i0.ɵɵelementStart(10, "td",
|
|
80
|
+
i0.ɵɵelementStart(10, "td", 17);
|
|
81
81
|
i0.ɵɵtext(11);
|
|
82
82
|
i0.ɵɵelementEnd()();
|
|
83
|
-
i0.ɵɵconditionalCreate(12, ExternalInvoicesPanel_Conditional_0_Conditional_4_For_15_Conditional_12_Template, 3, 1, "tr",
|
|
83
|
+
i0.ɵɵconditionalCreate(12, ExternalInvoicesPanel_Conditional_0_Conditional_4_For_15_Conditional_12_Template, 3, 1, "tr", 18);
|
|
84
84
|
} if (rf & 2) {
|
|
85
85
|
const row_r3 = ctx.$implicit;
|
|
86
86
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -101,19 +101,19 @@ function ExternalInvoicesPanel_Conditional_0_Conditional_4_For_15_Template(rf, c
|
|
|
101
101
|
i0.ɵɵconditional(row_r3.LastError ? 12 : -1);
|
|
102
102
|
} }
|
|
103
103
|
function ExternalInvoicesPanel_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
104
|
-
i0.ɵɵelementStart(0, "table", 4)(1, "thead")(2, "tr")(3, "th",
|
|
104
|
+
i0.ɵɵelementStart(0, "table", 4)(1, "thead")(2, "tr")(3, "th", 11);
|
|
105
105
|
i0.ɵɵtext(4, "Document");
|
|
106
106
|
i0.ɵɵelementEnd();
|
|
107
|
-
i0.ɵɵelementStart(5, "th",
|
|
107
|
+
i0.ɵɵelementStart(5, "th", 11);
|
|
108
108
|
i0.ɵɵtext(6, "Amount");
|
|
109
109
|
i0.ɵɵelementEnd();
|
|
110
|
-
i0.ɵɵelementStart(7, "th",
|
|
110
|
+
i0.ɵɵelementStart(7, "th", 11);
|
|
111
111
|
i0.ɵɵtext(8, "State");
|
|
112
112
|
i0.ɵɵelementEnd();
|
|
113
|
-
i0.ɵɵelementStart(9, "th",
|
|
113
|
+
i0.ɵɵelementStart(9, "th", 11);
|
|
114
114
|
i0.ɵɵtext(10, "Reference");
|
|
115
115
|
i0.ɵɵelementEnd();
|
|
116
|
-
i0.ɵɵelementStart(11, "th",
|
|
116
|
+
i0.ɵɵelementStart(11, "th", 11);
|
|
117
117
|
i0.ɵɵtext(12, "Sent");
|
|
118
118
|
i0.ɵɵelementEnd()()();
|
|
119
119
|
i0.ɵɵelementStart(13, "tbody");
|
|
@@ -126,22 +126,22 @@ function ExternalInvoicesPanel_Conditional_0_Conditional_4_Template(rf, ctx) { i
|
|
|
126
126
|
} }
|
|
127
127
|
function ExternalInvoicesPanel_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
128
128
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
129
|
-
i0.ɵɵelementStart(0, "div", 5)(1, "p",
|
|
129
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "p", 20)(2, "strong");
|
|
130
130
|
i0.ɵɵtext(3);
|
|
131
131
|
i0.ɵɵelementEnd();
|
|
132
132
|
i0.ɵɵtext(4);
|
|
133
133
|
i0.ɵɵelementEnd();
|
|
134
|
-
i0.ɵɵelementStart(5, "div",
|
|
134
|
+
i0.ɵɵelementStart(5, "div", 21)(6, "input", 22);
|
|
135
135
|
i0.ɵɵlistener("input", function ExternalInvoicesPanel_Conditional_0_Conditional_5_Template_input_input_6_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.AdoptRef = $event.target.value); });
|
|
136
136
|
i0.ɵɵelementEnd();
|
|
137
|
-
i0.ɵɵelementStart(7, "button",
|
|
137
|
+
i0.ɵɵelementStart(7, "button", 23);
|
|
138
138
|
i0.ɵɵlistener("click", function ExternalInvoicesPanel_Conditional_0_Conditional_5_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.Adopt()); });
|
|
139
|
-
i0.ɵɵelement(8, "i",
|
|
139
|
+
i0.ɵɵelement(8, "i", 24);
|
|
140
140
|
i0.ɵɵtext(9, " Record this reference ");
|
|
141
141
|
i0.ɵɵelementEnd();
|
|
142
|
-
i0.ɵɵelementStart(10, "button",
|
|
142
|
+
i0.ɵɵelementStart(10, "button", 25);
|
|
143
143
|
i0.ɵɵlistener("click", function ExternalInvoicesPanel_Conditional_0_Conditional_5_Template_button_click_10_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.Reissue()); });
|
|
144
|
-
i0.ɵɵelement(11, "i",
|
|
144
|
+
i0.ɵɵelement(11, "i", 26);
|
|
145
145
|
i0.ɵɵtext(12, " Nothing there \u2014 re-issue ");
|
|
146
146
|
i0.ɵɵelementEnd()()();
|
|
147
147
|
} if (rf & 2) {
|
|
@@ -158,24 +158,35 @@ function ExternalInvoicesPanel_Conditional_0_Conditional_5_Template(rf, ctx) { i
|
|
|
158
158
|
i0.ɵɵadvance(3);
|
|
159
159
|
i0.ɵɵproperty("disabled", ctx_r0.Busy);
|
|
160
160
|
} }
|
|
161
|
-
function
|
|
161
|
+
function ExternalInvoicesPanel_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
162
|
+
i0.ɵɵelementStart(0, "mj-alert", 6)(1, "strong");
|
|
163
|
+
i0.ɵɵtext(2, "Not ready to send.");
|
|
164
|
+
i0.ɵɵelementEnd();
|
|
165
|
+
i0.ɵɵtext(3);
|
|
166
|
+
i0.ɵɵelementEnd();
|
|
167
|
+
} if (rf & 2) {
|
|
168
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
169
|
+
i0.ɵɵadvance(3);
|
|
170
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.SendBlocked, " ");
|
|
171
|
+
} }
|
|
172
|
+
function ExternalInvoicesPanel_Conditional_0_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
162
173
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
163
|
-
i0.ɵɵelementStart(0, "button",
|
|
164
|
-
i0.ɵɵlistener("click", function
|
|
165
|
-
i0.ɵɵelement(1, "i",
|
|
174
|
+
i0.ɵɵelementStart(0, "button", 23);
|
|
175
|
+
i0.ɵɵlistener("click", function ExternalInvoicesPanel_Conditional_0_Conditional_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.Send()); });
|
|
176
|
+
i0.ɵɵelement(1, "i", 27);
|
|
166
177
|
i0.ɵɵtext(2);
|
|
167
178
|
i0.ɵɵelementEnd();
|
|
168
179
|
} if (rf & 2) {
|
|
169
180
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
170
|
-
i0.ɵɵproperty("disabled", ctx_r0.Busy);
|
|
181
|
+
i0.ɵɵproperty("disabled", ctx_r0.Busy || !!ctx_r0.SendBlocked);
|
|
171
182
|
i0.ɵɵadvance(2);
|
|
172
183
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.Busy ? "Working\u2026" : "Send to " + ctx_r0.ProviderName, " ");
|
|
173
184
|
} }
|
|
174
|
-
function
|
|
185
|
+
function ExternalInvoicesPanel_Conditional_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
175
186
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
176
|
-
i0.ɵɵelementStart(0, "button",
|
|
177
|
-
i0.ɵɵlistener("click", function
|
|
178
|
-
i0.ɵɵelement(1, "i",
|
|
187
|
+
i0.ɵɵelementStart(0, "button", 25);
|
|
188
|
+
i0.ɵɵlistener("click", function ExternalInvoicesPanel_Conditional_0_Conditional_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.Cancel()); });
|
|
189
|
+
i0.ɵɵelement(1, "i", 28);
|
|
179
190
|
i0.ɵɵtext(2);
|
|
180
191
|
i0.ɵɵelementEnd();
|
|
181
192
|
} if (rf & 2) {
|
|
@@ -184,8 +195,8 @@ function ExternalInvoicesPanel_Conditional_0_Conditional_8_Template(rf, ctx) { i
|
|
|
184
195
|
i0.ɵɵadvance(2);
|
|
185
196
|
i0.ɵɵtextInterpolate1(" Cancel in ", ctx_r0.ProviderName, " ");
|
|
186
197
|
} }
|
|
187
|
-
function
|
|
188
|
-
i0.ɵɵelementStart(0, "span",
|
|
198
|
+
function ExternalInvoicesPanel_Conditional_0_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
199
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
189
200
|
i0.ɵɵtext(1);
|
|
190
201
|
i0.ɵɵelementEnd();
|
|
191
202
|
} if (rf & 2) {
|
|
@@ -200,10 +211,11 @@ function ExternalInvoicesPanel_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
200
211
|
i0.ɵɵconditionalCreate(3, ExternalInvoicesPanel_Conditional_0_Conditional_3_Template, 3, 2, "p", 3);
|
|
201
212
|
i0.ɵɵconditionalCreate(4, ExternalInvoicesPanel_Conditional_0_Conditional_4_Template, 16, 0, "table", 4);
|
|
202
213
|
i0.ɵɵconditionalCreate(5, ExternalInvoicesPanel_Conditional_0_Conditional_5_Template, 13, 8, "div", 5);
|
|
203
|
-
i0.ɵɵ
|
|
204
|
-
i0.ɵɵ
|
|
214
|
+
i0.ɵɵconditionalCreate(6, ExternalInvoicesPanel_Conditional_0_Conditional_6_Template, 4, 1, "mj-alert", 6);
|
|
215
|
+
i0.ɵɵelementStart(7, "div", 7);
|
|
205
216
|
i0.ɵɵconditionalCreate(8, ExternalInvoicesPanel_Conditional_0_Conditional_8_Template, 3, 2, "button", 8);
|
|
206
|
-
i0.ɵɵconditionalCreate(9, ExternalInvoicesPanel_Conditional_0_Conditional_9_Template,
|
|
217
|
+
i0.ɵɵconditionalCreate(9, ExternalInvoicesPanel_Conditional_0_Conditional_9_Template, 3, 2, "button", 9);
|
|
218
|
+
i0.ɵɵconditionalCreate(10, ExternalInvoicesPanel_Conditional_0_Conditional_10_Template, 2, 2, "span", 10);
|
|
207
219
|
i0.ɵɵelementEnd()();
|
|
208
220
|
} if (rf & 2) {
|
|
209
221
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -218,12 +230,14 @@ function ExternalInvoicesPanel_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
218
230
|
i0.ɵɵconditional(ctx_r0.Rows.length ? 4 : -1);
|
|
219
231
|
i0.ɵɵadvance();
|
|
220
232
|
i0.ɵɵconditional(ctx_r0.Resolvable ? 5 : -1);
|
|
233
|
+
i0.ɵɵadvance();
|
|
234
|
+
i0.ɵɵconditional(ctx_r0.Sendable && ctx_r0.SendBlocked ? 6 : -1);
|
|
221
235
|
i0.ɵɵadvance(2);
|
|
222
|
-
i0.ɵɵconditional(ctx_r0.Sendable ?
|
|
236
|
+
i0.ɵɵconditional(ctx_r0.Sendable ? 8 : -1);
|
|
223
237
|
i0.ɵɵadvance();
|
|
224
|
-
i0.ɵɵconditional(ctx_r0.Cancellable ?
|
|
238
|
+
i0.ɵɵconditional(ctx_r0.Cancellable ? 9 : -1);
|
|
225
239
|
i0.ɵɵadvance();
|
|
226
|
-
i0.ɵɵconditional(ctx_r0.Selected ?
|
|
240
|
+
i0.ɵɵconditional(ctx_r0.Selected ? 10 : -1);
|
|
227
241
|
} }
|
|
228
242
|
const EXTERNAL_INVOICE_ENTITY = 'MJ_BizApps_Orders: External Invoices';
|
|
229
243
|
const PAYMENT_PROVIDER_ENTITY = 'MJ_BizApps_Orders: Payment Providers';
|
|
@@ -263,6 +277,12 @@ let ExternalInvoicesPanel = class ExternalInvoicesPanel extends BaseFormPanel {
|
|
|
263
277
|
ProviderName = 'the invoicing rail';
|
|
264
278
|
/** True when the order bills in instalments; the whole-order Send does not apply to it. */
|
|
265
279
|
BilledOnSchedule = false;
|
|
280
|
+
/**
|
|
281
|
+
* Why Send would be refused before anything reached the rail — today, a bill-to party the rail
|
|
282
|
+
* cannot take as a customer (no billing email). Read from the operation's own preview on load, so
|
|
283
|
+
* the rule lives on the server and the panel only repeats its answer. Null when nothing blocks.
|
|
284
|
+
*/
|
|
285
|
+
SendBlocked = null;
|
|
266
286
|
money = (n) => FormatMoney(n);
|
|
267
287
|
/** `SentAt` is a `datetimeoffset`: shown as the business day it happened on. */
|
|
268
288
|
date = (iso) => FormatInstantDate(iso, { Short: true });
|
|
@@ -296,13 +316,15 @@ let ExternalInvoicesPanel = class ExternalInvoicesPanel extends BaseFormPanel {
|
|
|
296
316
|
}
|
|
297
317
|
/* ── Actions ────────────────────────────────────────────────────────── */
|
|
298
318
|
async Send() {
|
|
299
|
-
if (this.Busy)
|
|
319
|
+
if (this.Busy || this.SendBlocked)
|
|
300
320
|
return;
|
|
301
|
-
|
|
321
|
+
// A Failed row the rail never created an invoice for is not "on the rail before": warning about
|
|
322
|
+
// billing twice there sends a person to look for an invoice that does not exist.
|
|
323
|
+
const reissue = SendIsReissue(this.Rows);
|
|
302
324
|
const proceed = await this.confirm.Confirm({
|
|
303
325
|
title: `Send ${this.Record.OrderNumber} to ${this.ProviderName}?`,
|
|
304
326
|
message: `The customer receives an invoice for ${FormatMoney(Number(this.Record.TotalGross ?? 0))}.`,
|
|
305
|
-
detail:
|
|
327
|
+
detail: reissue
|
|
306
328
|
? 'This unit has been on the rail before. Check there first: re-issuing when an invoice already exists bills the customer twice.'
|
|
307
329
|
: 'The scheduled send would do this within the half hour anyway; this sends it now.',
|
|
308
330
|
type: 'warning',
|
|
@@ -317,12 +339,14 @@ let ExternalInvoicesPanel = class ExternalInvoicesPanel extends BaseFormPanel {
|
|
|
317
339
|
try {
|
|
318
340
|
const result = await new OrdersIssueExternalInvoiceOperation().Execute({
|
|
319
341
|
OrderHeaderID: this.Record.ID,
|
|
320
|
-
//
|
|
321
|
-
AllowReissue:
|
|
342
|
+
// Only a unit the rail has held an invoice for is re-sent deliberately.
|
|
343
|
+
AllowReissue: reissue,
|
|
322
344
|
});
|
|
323
345
|
const out = result.Output;
|
|
324
346
|
if (!result.Success || !out?.Success) {
|
|
325
347
|
this.Notice = { Tone: 'error', Text: out?.Message?.trim() || result.ErrorMessage?.trim() || 'The invoice could not be sent.' };
|
|
348
|
+
// The failed attempt is a new row; show it, with the rail's error under it.
|
|
349
|
+
await this.load();
|
|
326
350
|
return;
|
|
327
351
|
}
|
|
328
352
|
this.Notice = { Tone: 'success', Text: out.Message ?? `Sent as ${out.ExternalInvoiceRef}.` };
|
|
@@ -477,6 +501,7 @@ let ExternalInvoicesPanel = class ExternalInvoicesPanel extends BaseFormPanel {
|
|
|
477
501
|
this.Rows = result.Results ?? [];
|
|
478
502
|
if (this.Selected)
|
|
479
503
|
this.Selected = this.Rows.find((r) => r.ID === this.Selected.ID) ?? null;
|
|
504
|
+
this.SendBlocked = this.Sendable ? await this.previewBlock() : null;
|
|
480
505
|
}
|
|
481
506
|
catch (err) {
|
|
482
507
|
this.LoadError = err instanceof Error ? err.message : String(err);
|
|
@@ -486,6 +511,27 @@ let ExternalInvoicesPanel = class ExternalInvoicesPanel extends BaseFormPanel {
|
|
|
486
511
|
// panel — showing an empty list, which reads as "nothing was sent" rather than as a fault.
|
|
487
512
|
this.cdr.detectChanges();
|
|
488
513
|
}
|
|
514
|
+
/**
|
|
515
|
+
* What the operation's preview says would stop a send before the rail is called.
|
|
516
|
+
*
|
|
517
|
+
* Only the refusals a person fixes on the bill-to party are surfaced: those are the ones the rail
|
|
518
|
+
* would otherwise reject after the click, leaving a Failed row behind. Anything else the preview
|
|
519
|
+
* reports (or a preview that cannot run) leaves Send enabled, and the send itself says why.
|
|
520
|
+
*/
|
|
521
|
+
async previewBlock() {
|
|
522
|
+
try {
|
|
523
|
+
const result = await new OrdersIssueExternalInvoiceOperation().Execute({
|
|
524
|
+
OrderHeaderID: this.Record.ID,
|
|
525
|
+
Preview: true,
|
|
526
|
+
AllowReissue: SendIsReissue(this.Rows),
|
|
527
|
+
});
|
|
528
|
+
const out = result.Output;
|
|
529
|
+
return result.Success && out?.ResultCode === 'NO_CUSTOMER_EMAIL' ? (out.Message ?? 'The bill-to party has no billing email.') : null;
|
|
530
|
+
}
|
|
531
|
+
catch {
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
489
535
|
/**
|
|
490
536
|
* Whether this order bills in instalments.
|
|
491
537
|
*
|
|
@@ -537,8 +583,8 @@ let ExternalInvoicesPanel = class ExternalInvoicesPanel extends BaseFormPanel {
|
|
|
537
583
|
return { Present: !!first, Name: first?.Name ?? null };
|
|
538
584
|
}
|
|
539
585
|
static ɵfac = /*@__PURE__*/ (() => { let ɵExternalInvoicesPanel_BaseFactory; return function ExternalInvoicesPanel_Factory(__ngFactoryType__) { return (ɵExternalInvoicesPanel_BaseFactory || (ɵExternalInvoicesPanel_BaseFactory = i0.ɵɵgetInheritedFactory(ExternalInvoicesPanel)))(__ngFactoryType__ || ExternalInvoicesPanel); }; })();
|
|
540
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExternalInvoicesPanel, selectors: [["mjo-external-invoices-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["SectionKey", "externalInvoices", "SectionName", "External invoicing", "Icon", "fa-solid fa-paper-plane", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["Variant", "error", "Icon", "fa-solid fa-triangle-exclamation", 1, "mjo-xi__note"], ["Icon", "fa-solid fa-circle-info", 1, "mjo-xi__note", 3, "Variant"], [1, "mjo-xi__empty"], [1, "mjo-xi__table"], [1, "mjo-xi__inflight"], [1, "row", "mjo-xi__actions"], ["type", "button", "mjButton", "", "variant", "primary", 3, "disabled"], ["type", "button", "mjButton", "", "variant", "outline", 3, "disabled"], [1, "small", "muted"], ["scope", "col"], [3, "click"], [1, "mono"], [1, "num"], [1, "mj-chip"], [1, "mono", "muted"], [1, "muted"], [1, "mjo-xi__errrow"], ["colspan", "5", 1, "small"], [1, "small"], [1, "row", "mjo-xi__inflight-row"], ["type", "text", 1, "mjo-xi__ref", 3, "input", "value", "disabled", "placeholder"], ["type", "button", "mjButton", "", "variant", "primary", 3, "click", "disabled"], ["aria-hidden", "true", 1, "fa-solid", "fa-link"], ["type", "button", "mjButton", "", "variant", "outline", 3, "click", "disabled"], ["aria-hidden", "true", 1, "fa-solid", "fa-rotate-right"], ["aria-hidden", "true", 1, "fa-solid", "fa-paper-plane"], ["aria-hidden", "true", 1, "fa-solid", "fa-ban"]], template: function ExternalInvoicesPanel_Template(rf, ctx) { if (rf & 1) {
|
|
541
|
-
i0.ɵɵconditionalCreate(0, ExternalInvoicesPanel_Conditional_0_Template,
|
|
586
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExternalInvoicesPanel, selectors: [["mjo-external-invoices-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["SectionKey", "externalInvoices", "SectionName", "External invoicing", "Icon", "fa-solid fa-paper-plane", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["Variant", "error", "Icon", "fa-solid fa-triangle-exclamation", 1, "mjo-xi__note"], ["Icon", "fa-solid fa-circle-info", 1, "mjo-xi__note", 3, "Variant"], [1, "mjo-xi__empty"], [1, "mjo-xi__table"], [1, "mjo-xi__inflight"], ["Variant", "warning", "Icon", "fa-solid fa-envelope-circle-check", 1, "mjo-xi__note"], [1, "row", "mjo-xi__actions"], ["type", "button", "mjButton", "", "variant", "primary", 3, "disabled"], ["type", "button", "mjButton", "", "variant", "outline", 3, "disabled"], [1, "small", "muted"], ["scope", "col"], [3, "click"], [1, "mono"], [1, "num"], [1, "mj-chip"], [1, "mono", "muted"], [1, "muted"], [1, "mjo-xi__errrow"], ["colspan", "5", 1, "small"], [1, "small"], [1, "row", "mjo-xi__inflight-row"], ["type", "text", 1, "mjo-xi__ref", 3, "input", "value", "disabled", "placeholder"], ["type", "button", "mjButton", "", "variant", "primary", 3, "click", "disabled"], ["aria-hidden", "true", 1, "fa-solid", "fa-link"], ["type", "button", "mjButton", "", "variant", "outline", 3, "click", "disabled"], ["aria-hidden", "true", 1, "fa-solid", "fa-rotate-right"], ["aria-hidden", "true", 1, "fa-solid", "fa-paper-plane"], ["aria-hidden", "true", 1, "fa-solid", "fa-ban"]], template: function ExternalInvoicesPanel_Template(rf, ctx) { if (rf & 1) {
|
|
587
|
+
i0.ɵɵconditionalCreate(0, ExternalInvoicesPanel_Conditional_0_Template, 11, 13, "mj-collapsible-panel", 0);
|
|
542
588
|
} if (rf & 2) {
|
|
543
589
|
i0.ɵɵconditional(ctx.Visible ? 0 : -1);
|
|
544
590
|
} }, dependencies: [i1.MjCollapsiblePanelComponent, i2.MJAlertComponent, i2.MJButtonDirective], styles: [".mjo-xi__note[_ngcontent-%COMP%] { margin-bottom: var(--mj-space-3); display: block; }\n .mjo-xi__empty[_ngcontent-%COMP%] { color: var(--mj-color-text-muted); margin: 0 0 var(--mj-space-3); }\n .mjo-xi__table[_ngcontent-%COMP%] { width: 100%; border-collapse: collapse; margin-bottom: var(--mj-space-3); }\n .mjo-xi__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] { text-align: left; font-weight: 600; font-size: 0.82rem; color: var(--mj-color-text-muted); padding: var(--mj-space-2); border-bottom: 1px solid var(--mj-color-border); }\n .mjo-xi__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] { padding: var(--mj-space-2); border-bottom: 1px solid var(--mj-color-border-subtle, var(--mj-color-border)); cursor: pointer; }\n .mjo-xi__table[_ngcontent-%COMP%] tr.is-selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%] { background: var(--mj-color-surface-selected, rgba(0, 0, 0, 0.04)); }\n .mjo-xi__errrow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] { color: var(--mj-color-danger, #b42318); cursor: default; padding-top: 0; }\n .mjo-xi__table[_ngcontent-%COMP%] .num[_ngcontent-%COMP%] { text-align: right; font-variant-numeric: tabular-nums; }\n .mjo-xi__actions[_ngcontent-%COMP%] { align-items: center; gap: var(--mj-space-3); }\n .mjo-xi__inflight[_ngcontent-%COMP%] { border: 1px solid var(--mj-color-border); border-radius: var(--mj-radius-2, 6px); padding: var(--mj-space-3); margin-bottom: var(--mj-space-3); }\n .mjo-xi__inflight[_ngcontent-%COMP%] p[_ngcontent-%COMP%] { margin: 0 0 var(--mj-space-2); }\n .mjo-xi__inflight-row[_ngcontent-%COMP%] { align-items: center; gap: var(--mj-space-2); flex-wrap: wrap; }\n .mjo-xi__ref[_ngcontent-%COMP%] { flex: 1 1 18rem; min-width: 12rem; padding: var(--mj-space-2); border: 1px solid var(--mj-color-border); border-radius: var(--mj-radius-1, 4px); font-family: var(--mj-font-mono, monospace); }"] });
|
|
@@ -643,9 +689,16 @@ export { ExternalInvoicesPanel };
|
|
|
643
689
|
</div>
|
|
644
690
|
}
|
|
645
691
|
|
|
692
|
+
@if (Sendable && SendBlocked) {
|
|
693
|
+
<mj-alert Variant="warning" Icon="fa-solid fa-envelope-circle-check" class="mjo-xi__note">
|
|
694
|
+
<strong>Not ready to send.</strong>
|
|
695
|
+
{{ SendBlocked }}
|
|
696
|
+
</mj-alert>
|
|
697
|
+
}
|
|
698
|
+
|
|
646
699
|
<div class="row mjo-xi__actions">
|
|
647
700
|
@if (Sendable) {
|
|
648
|
-
<button type="button" mjButton variant="primary" [disabled]="Busy" (click)="Send()">
|
|
701
|
+
<button type="button" mjButton variant="primary" [disabled]="Busy || !!SendBlocked" (click)="Send()">
|
|
649
702
|
<i class="fa-solid fa-paper-plane" aria-hidden="true"></i>
|
|
650
703
|
{{ Busy ? 'Working…' : 'Send to ' + ProviderName }}
|
|
651
704
|
</button>
|
|
@@ -663,5 +716,5 @@ export { ExternalInvoicesPanel };
|
|
|
663
716
|
}
|
|
664
717
|
`, styles: ["\n .mjo-xi__note { margin-bottom: var(--mj-space-3); display: block; }\n .mjo-xi__empty { color: var(--mj-color-text-muted); margin: 0 0 var(--mj-space-3); }\n .mjo-xi__table { width: 100%; border-collapse: collapse; margin-bottom: var(--mj-space-3); }\n .mjo-xi__table th { text-align: left; font-weight: 600; font-size: 0.82rem; color: var(--mj-color-text-muted); padding: var(--mj-space-2); border-bottom: 1px solid var(--mj-color-border); }\n .mjo-xi__table td { padding: var(--mj-space-2); border-bottom: 1px solid var(--mj-color-border-subtle, var(--mj-color-border)); cursor: pointer; }\n .mjo-xi__table tr.is-selected td { background: var(--mj-color-surface-selected, rgba(0, 0, 0, 0.04)); }\n .mjo-xi__errrow td { color: var(--mj-color-danger, #b42318); cursor: default; padding-top: 0; }\n .mjo-xi__table .num { text-align: right; font-variant-numeric: tabular-nums; }\n .mjo-xi__actions { align-items: center; gap: var(--mj-space-3); }\n .mjo-xi__inflight { border: 1px solid var(--mj-color-border); border-radius: var(--mj-radius-2, 6px); padding: var(--mj-space-3); margin-bottom: var(--mj-space-3); }\n .mjo-xi__inflight p { margin: 0 0 var(--mj-space-2); }\n .mjo-xi__inflight-row { align-items: center; gap: var(--mj-space-2); flex-wrap: wrap; }\n .mjo-xi__ref { flex: 1 1 18rem; min-width: 12rem; padding: var(--mj-space-2); border: 1px solid var(--mj-color-border); border-radius: var(--mj-radius-1, 4px); font-family: var(--mj-font-mono, monospace); }\n "] }]
|
|
665
718
|
}], null, null); })();
|
|
666
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExternalInvoicesPanel, { className: "ExternalInvoicesPanel", filePath: "lib/form-panels/external-invoices.panel.ts", lineNumber:
|
|
719
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ExternalInvoicesPanel, { className: "ExternalInvoicesPanel", filePath: "lib/form-panels/external-invoices.panel.ts", lineNumber: 197 }); })();
|
|
667
720
|
//# sourceMappingURL=external-invoices.panel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-invoices.panel.js","sourceRoot":"","sources":["../../../src/lib/form-panels/external-invoices.panel.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,M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GAAG,CAAC,GAAG;YAC1H,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,UAAU,EAAE,QAAQ;SACvB,CAAC,CAAC;QACH,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;QACrC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAC3D,CAAC;iQArUQ,qBAAqB,yBAArB,qBAAqB;6DAArB,qBAAqB;YA1I1B,0GAAe;;YAAf,sCA4GC;;;AA8BI,qBAAqB;IAVjC,eAAe,CAAC,aAAa,EAAE;QAC5B,GAAG,EAAE,0CAA0C;QAC/C,QAAQ,EAAE;YACN,MAAM,EAAE,kCAAkC;YAC1C,IAAI,EAAE,eAAwB;YAC9B,OAAO,EAAE,GAAG;YACZ,eAAe,EAAE,kBAAkB;YACnC,SAAS,EAAE,SAAkB;SAChC;KACJ,CAAC;GACW,qBAAqB,CAsUjC;;iFAtUY,qBAAqB;cA9IjC,SAAS;6BACM,KAAK,YACP,6BAA6B,YAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8GT;;kFA6BQ,qBAAqB"}
|
|
@@ -19,6 +19,8 @@ export type ExternalInvoiceState = 'Sending' | 'Sent' | 'Canceled' | 'Failed';
|
|
|
19
19
|
export interface ExternalInvoiceLike {
|
|
20
20
|
Status: ExternalInvoiceState;
|
|
21
21
|
ExternalStatus?: string | null;
|
|
22
|
+
/** The rail's id for the invoice; null when the rail never created one. */
|
|
23
|
+
ExternalInvoiceRef?: string | null;
|
|
22
24
|
/** Set when this row bills one instalment rather than the order as a whole. */
|
|
23
25
|
OrderHeaderPaymentScheduleID?: string | null;
|
|
24
26
|
}
|
|
@@ -36,10 +38,21 @@ export type PaymentExceptionDisposition = 'Held' | 'Unmatched' | 'Refused' | 'Re
|
|
|
36
38
|
*
|
|
37
39
|
* `Sending` blocks exactly as `Sent` does. It means the last attempt was never confirmed, so the rail
|
|
38
40
|
* may or may not already hold the invoice; resolving that is a person's job with the rail open, not a
|
|
39
|
-
* button's. `Failed` and `Canceled` do not block
|
|
40
|
-
* the operation
|
|
41
|
+
* button's. `Failed` and `Canceled` do not block: a send after one is either a first send (nothing
|
|
42
|
+
* reached the rail) or the deliberate re-issue the operation asks to be told about — see
|
|
43
|
+
* {@link SendIsReissue}.
|
|
41
44
|
*/
|
|
42
45
|
export declare function CanSend(orderStatus: string | null | undefined, rows: readonly ExternalInvoiceLike[], hasRail: boolean, billedOnSchedule?: boolean): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether sending this order now is a RE-ISSUE: the rail has held an invoice for the whole-order unit
|
|
48
|
+
* before, so a person must have checked the rail and the send carries `AllowReissue`.
|
|
49
|
+
*
|
|
50
|
+
* A `Failed` row with no rail reference does not count. The rail refused before creating anything —
|
|
51
|
+
* the customer had no email, Bill.com answered no — so there is nothing there to bill twice, and
|
|
52
|
+
* warning about it sends a person to look for an invoice that does not exist. The server decides
|
|
53
|
+
* the same way (`DecideInvoiceable`'s `UnitReachedRail`).
|
|
54
|
+
*/
|
|
55
|
+
export declare function SendIsReissue(rows: readonly ExternalInvoiceLike[]): boolean;
|
|
43
56
|
/**
|
|
44
57
|
* Whether the selected row is a send that was never confirmed, and so needs a person to resolve it.
|
|
45
58
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-invoice-view.d.ts","sourceRoot":"","sources":["../../../src/lib/panels/external-invoice-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,kDAAkD;AAClD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE9E,gEAAgE;AAChE,MAAM,WAAW,mBAAmB;IAChC,MA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ST;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,mBAAmB,EAAE,GAAG,OAAO,CAE3E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAE9G;AAED,wGAAwG;AACxG,wBAAgB,SAAS,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAErG;AAED,oGAAoG;AACpG,wBAAgB,UAAU,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM,CAW3D;AAED,sCAAsC;AACtC,wBAAgB,cAAc,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM,CAW/D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,2BAA2B,GAAG,MAAM,CAavE;AAED,iGAAiG;AACjG,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,2BAA2B,GAAG,MAAM,CAI3E"}
|
|
@@ -27,8 +27,9 @@ export function BilledOnScheduleFromRows(rows) {
|
|
|
27
27
|
*
|
|
28
28
|
* `Sending` blocks exactly as `Sent` does. It means the last attempt was never confirmed, so the rail
|
|
29
29
|
* may or may not already hold the invoice; resolving that is a person's job with the rail open, not a
|
|
30
|
-
* button's. `Failed` and `Canceled` do not block
|
|
31
|
-
* the operation
|
|
30
|
+
* button's. `Failed` and `Canceled` do not block: a send after one is either a first send (nothing
|
|
31
|
+
* reached the rail) or the deliberate re-issue the operation asks to be told about — see
|
|
32
|
+
* {@link SendIsReissue}.
|
|
32
33
|
*/
|
|
33
34
|
export function CanSend(orderStatus, rows, hasRail, billedOnSchedule = false) {
|
|
34
35
|
if (!hasRail || orderStatus !== 'Confirmed')
|
|
@@ -42,6 +43,18 @@ export function CanSend(orderStatus, rows, hasRail, billedOnSchedule = false) {
|
|
|
42
43
|
return false;
|
|
43
44
|
return !rows.some((r) => r.Status === 'Sent' || r.Status === 'Sending');
|
|
44
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Whether sending this order now is a RE-ISSUE: the rail has held an invoice for the whole-order unit
|
|
48
|
+
* before, so a person must have checked the rail and the send carries `AllowReissue`.
|
|
49
|
+
*
|
|
50
|
+
* A `Failed` row with no rail reference does not count. The rail refused before creating anything —
|
|
51
|
+
* the customer had no email, Bill.com answered no — so there is nothing there to bill twice, and
|
|
52
|
+
* warning about it sends a person to look for an invoice that does not exist. The server decides
|
|
53
|
+
* the same way (`DecideInvoiceable`'s `UnitReachedRail`).
|
|
54
|
+
*/
|
|
55
|
+
export function SendIsReissue(rows) {
|
|
56
|
+
return rows.some((r) => !r.OrderHeaderPaymentScheduleID && !!r.ExternalInvoiceRef);
|
|
57
|
+
}
|
|
45
58
|
/**
|
|
46
59
|
* Whether the selected row is a send that was never confirmed, and so needs a person to resolve it.
|
|
47
60
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-invoice-view.js","sourceRoot":"","sources":["../../../src/lib/panels/external-invoice-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"external-invoice-view.js","sourceRoot":"","sources":["../../../src/lib/panels/external-invoice-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAeH;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAoC;IACzE,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC;AAC9D,CAAC;AAKD;;;;;;;;GAQG;AACH,MAAM,UAAU,OAAO,CACnB,WAAsC,EACtC,IAAoC,EACpC,OAAgB,EAChB,gBAAgB,GAAG,KAAK;IAExB,IAAI,CAAC,OAAO,IAAI,WAAW,KAAK,WAAW;QAAE,OAAO,KAAK,CAAC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,KAAK,MAAM;YACP,OAAO,kBAAkB,CAAC;QAC9B,KAAK,SAAS;YACV,OAAO,eAAe,CAAC;QAC3B,KAAK,QAAQ;YACT,OAAO,iBAAiB,CAAC;QAC7B;YACI,OAAO,kBAAkB,CAAC;IAClC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,CAA8B;IAC3D,QAAQ,CAAC,EAAE,CAAC;QACR,KAAK,MAAM;YACP,OAAO,gBAAgB,CAAC;QAC5B,KAAK,WAAW;YACZ,OAAO,iBAAiB,CAAC;QAC7B,KAAK,SAAS;YACV,OAAO,iBAAiB,CAAC;QAC7B,KAAK,WAAW;YACZ,OAAO,wBAAwB,CAAC;QACpC;YACI,OAAO,gBAAgB,CAAC;IAChC,CAAC;AACL,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,oBAAoB,CAAC,CAA8B;IAC/D,IAAI,CAAC,KAAK,gBAAgB;QAAE,OAAO,iBAAiB,CAAC;IACrD,IAAI,CAAC,KAAK,MAAM;QAAE,OAAO,eAAe,CAAC;IACzC,OAAO,kBAAkB,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mj-biz-apps/orders-ng",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.35.1",
|
|
5
5
|
"description": "BizApps Orders Angular bootstrap - generated form components and module for the unified order-management Open App",
|
|
6
6
|
"main": "dist/public-api.js",
|
|
7
7
|
"types": "dist/public-api.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "MemberJunction.com",
|
|
16
16
|
"license": "BUSL-1.1",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@mj-biz-apps/orders-entities": "^5.
|
|
18
|
+
"@mj-biz-apps/orders-entities": "^5.35.1",
|
|
19
19
|
"ag-grid-angular": "^35.0.1",
|
|
20
20
|
"ag-grid-community": "^35.0.1"
|
|
21
21
|
},
|