@mj-biz-apps/orders-ng 5.46.0 → 5.47.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.
Files changed (59) hide show
  1. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +16 -17
  2. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -1
  3. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts +49 -24
  4. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts.map +1 -1
  5. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js +229 -137
  6. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js.map +1 -1
  7. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts.map +1 -1
  8. package/dist/lib/custom/Product/widgets/product-gl-links.component.js +229 -183
  9. package/dist/lib/custom/Product/widgets/product-gl-links.component.js.map +1 -1
  10. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +138 -4
  11. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
  12. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +1485 -316
  13. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
  14. package/dist/lib/custom/currency-input.directive.d.ts +31 -0
  15. package/dist/lib/custom/currency-input.directive.d.ts.map +1 -0
  16. package/dist/lib/custom/currency-input.directive.js +121 -0
  17. package/dist/lib/custom/currency-input.directive.js.map +1 -0
  18. package/dist/lib/custom/custom-forms.module.d.ts +29 -28
  19. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  20. package/dist/lib/custom/custom-forms.module.js +7 -2
  21. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  22. package/dist/lib/form-panels/catalog-overviews.panels.d.ts +11 -1
  23. package/dist/lib/form-panels/catalog-overviews.panels.d.ts.map +1 -1
  24. package/dist/lib/form-panels/catalog-overviews.panels.js +53 -42
  25. package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -1
  26. package/dist/lib/form-panels/commercial-overviews.panels.js +5 -5
  27. package/dist/lib/form-panels/document-forms.module.d.ts +1 -1
  28. package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -1
  29. package/dist/lib/form-panels/document-forms.module.js +7 -4
  30. package/dist/lib/form-panels/document-forms.module.js.map +1 -1
  31. package/dist/lib/form-panels/document-hero.component.js +2 -2
  32. package/dist/lib/form-panels/document-overviews.panels.js +7 -7
  33. package/dist/lib/form-panels/lookup-headers.panels.js +10 -10
  34. package/dist/lib/form-panels/order-access-overrides.panel.js +2 -2
  35. package/dist/lib/form-panels/overview-cards.component.d.ts +2 -0
  36. package/dist/lib/form-panels/overview-cards.component.d.ts.map +1 -1
  37. package/dist/lib/form-panels/overview-cards.component.js +31 -25
  38. package/dist/lib/form-panels/overview-cards.component.js.map +1 -1
  39. package/dist/lib/form-panels/payment-header.panel.js +2 -2
  40. package/dist/lib/form-panels/price-list-header.panel.js +2 -2
  41. package/dist/lib/form-panels/product-header.panel.d.ts +5 -0
  42. package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -1
  43. package/dist/lib/form-panels/product-header.panel.js +148 -83
  44. package/dist/lib/form-panels/product-header.panel.js.map +1 -1
  45. package/dist/lib/form-panels/product-widget.panels.d.ts +26 -7
  46. package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -1
  47. package/dist/lib/form-panels/product-widget.panels.js +124 -71
  48. package/dist/lib/form-panels/product-widget.panels.js.map +1 -1
  49. package/dist/lib/form-panels/promotion-header.panel.js +2 -2
  50. package/dist/lib/form-panels/subscription-header.panel.js +2 -2
  51. package/dist/lib/form-panels/subscription-revrec.panel.js +2 -2
  52. package/dist/lib/form-panels/subscription-term-header.panel.js +2 -2
  53. package/dist/lib/form-panels/subscription-term-revrec.panel.js +2 -2
  54. package/dist/lib/form-panels/subscription-terms.panel.js +2 -2
  55. package/dist/public-api.d.ts +1 -0
  56. package/dist/public-api.d.ts.map +1 -1
  57. package/dist/public-api.js +1 -0
  58. package/dist/public-api.js.map +1 -1
  59. package/package.json +2 -2
@@ -1,136 +1,234 @@
1
1
  import { Component, Input } from '@angular/core';
2
- import { Metadata, RunView } from '@memberjunction/core';
3
- import { OrdersExplainProductGLAccountsOperation, } from '@mj-biz-apps/orders-entities';
2
+ import { Metadata } from '@memberjunction/core';
3
+ import { LoadOrdersEngine, OrdersEngine, OrdersExplainProductGLAccountsOperation, } from '@mj-biz-apps/orders-entities';
4
4
  import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/forms";
6
- import * as i2 from "@mj-biz-apps/accounting-ng";
7
- const _forTrack0 = ($index, $item) => $item.ID;
8
- const _forTrack1 = ($index, $item) => $item.Role;
9
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
10
- i0.ɵɵelementStart(0, "option", 7);
11
- i0.ɵɵtext(1);
5
+ const _forTrack0 = ($index, $item) => $item.Role;
6
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
7
+ i0.ɵɵelementStart(0, "p", 9);
8
+ i0.ɵɵtext(1, "Save the product to see the accounts it posts to.");
9
+ i0.ɵɵelementEnd();
10
+ } }
11
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
12
+ i0.ɵɵelementStart(0, "p", 9);
13
+ i0.ɵɵtext(1, "Loading accounts\u2026");
12
14
  i0.ɵɵelementEnd();
15
+ } }
16
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
17
+ i0.ɵɵelementStart(0, "p", 10);
18
+ i0.ɵɵelement(1, "i", 11);
19
+ i0.ɵɵelementStart(2, "span");
20
+ i0.ɵɵtext(3);
21
+ i0.ɵɵelementEnd()();
13
22
  } if (rf & 2) {
14
23
  const ctx_r0 = i0.ɵɵnextContext();
15
- i0.ɵɵproperty("value", ctx_r0.CompanyID);
16
- i0.ɵɵadvance();
17
- i0.ɵɵtextInterpolate1("", ctx_r0.Product.Company, " (product's company)");
24
+ i0.ɵɵadvance(3);
25
+ i0.ɵɵtextInterpolate(ctx_r0.LoadError);
18
26
  } }
19
- function BizAppsProductEffectiveGLAccountsComponent_For_12_Template(rf, ctx) { if (rf & 1) {
20
- i0.ɵɵelementStart(0, "option", 7);
21
- i0.ɵɵtext(1);
27
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_Conditional_0_Template(rf, ctx) { if (rf & 1) {
28
+ i0.ɵɵelementStart(0, "p", 12);
29
+ i0.ɵɵelement(1, "i", 11);
30
+ i0.ɵɵelementStart(2, "span");
31
+ i0.ɵɵtext(3);
32
+ i0.ɵɵelementEnd()();
33
+ } if (rf & 2) {
34
+ const ctx_r0 = i0.ɵɵnextContext(2);
35
+ i0.ɵɵadvance(3);
36
+ i0.ɵɵtextInterpolate2(" No account assigned for ", ctx_r0.MissingRequired.join(" and "), ". Orders for this product cannot be confirmed until ", ctx_r0.MissingRequired.length === 1 ? "it is" : "they are", " assigned. ");
37
+ } }
38
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_4_Template(rf, ctx) { if (rf & 1) {
39
+ i0.ɵɵelementStart(0, "span", 18)(1, "span", 21);
40
+ i0.ɵɵtext(2);
22
41
  i0.ɵɵelementEnd();
42
+ i0.ɵɵelementStart(3, "span", 22);
43
+ i0.ɵɵtext(4);
44
+ i0.ɵɵelementEnd()();
23
45
  } if (rf & 2) {
24
- const c_r2 = ctx.$implicit;
25
- const ctx_r0 = i0.ɵɵnextContext();
26
- i0.ɵɵproperty("value", c_r2.ID);
27
- i0.ɵɵadvance();
28
- i0.ɵɵtextInterpolate2("", c_r2.Name, "", ctx_r0.IsOwnCompany(c_r2.ID) ? " (product's company)" : "");
46
+ const role_r2 = i0.ɵɵnextContext().$implicit;
47
+ i0.ɵɵadvance(2);
48
+ i0.ɵɵtextInterpolate(role_r2.ResolvedCode);
49
+ i0.ɵɵadvance(2);
50
+ i0.ɵɵtextInterpolate(role_r2.ResolvedName);
29
51
  } }
30
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
31
- i0.ɵɵelementStart(0, "span");
52
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_5_Template(rf, ctx) { if (rf & 1) {
53
+ i0.ɵɵelementStart(0, "span", 23);
32
54
  i0.ɵɵtext(1);
33
55
  i0.ɵɵelementEnd();
34
56
  } if (rf & 2) {
35
- const ctx_r0 = i0.ɵɵnextContext();
57
+ const role_r2 = i0.ɵɵnextContext().$implicit;
58
+ const ctx_r0 = i0.ɵɵnextContext(2);
59
+ i0.ɵɵclassProp("mjo-acct-chip--warn", ctx_r0.IsRequired(role_r2));
60
+ i0.ɵɵproperty("title", role_r2.Message || "");
36
61
  i0.ɵɵadvance();
37
- i0.ɵɵtextInterpolate1("Links in force on ", ctx_r0.AsOf, ".");
62
+ i0.ɵɵtextInterpolate(ctx_r0.FailureText(role_r2));
38
63
  } }
39
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
40
- i0.ɵɵelementStart(0, "p", 11);
41
- i0.ɵɵtext(1, "Save the product to see the accounts it books to.");
42
- i0.ɵɵelementEnd();
64
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_7_Template(rf, ctx) { if (rf & 1) {
65
+ i0.ɵɵtext(0);
66
+ } if (rf & 2) {
67
+ const role_r2 = i0.ɵɵnextContext().$implicit;
68
+ const ctx_r0 = i0.ɵɵnextContext(2);
69
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.SourceText(role_r2), " ");
43
70
  } }
44
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
45
- i0.ɵɵelementStart(0, "p", 11);
46
- i0.ɵɵtext(1, "Reading the accounts\u2026");
71
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_8_Template(rf, ctx) { if (rf & 1) {
72
+ i0.ɵɵelementStart(0, "span", 20);
73
+ i0.ɵɵtext(1, "Required");
47
74
  i0.ɵɵelementEnd();
48
75
  } }
49
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_20_Template(rf, ctx) { if (rf & 1) {
50
- i0.ɵɵelementStart(0, "p", 12);
51
- i0.ɵɵelement(1, "i", 13);
52
- i0.ɵɵtext(2);
53
- i0.ɵɵelementEnd();
76
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_9_Template(rf, ctx) { if (rf & 1) {
77
+ i0.ɵɵtext(0);
54
78
  } if (rf & 2) {
55
- const ctx_r0 = i0.ɵɵnextContext();
56
- i0.ɵɵadvance(2);
57
- i0.ɵɵtextInterpolate1(" ", ctx_r0.LoadError, " ");
79
+ const role_r2 = i0.ɵɵnextContext().$implicit;
80
+ const ctx_r0 = i0.ɵɵnextContext(2);
81
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.OptionalNote(role_r2), " ");
58
82
  } }
59
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_21_Conditional_0_Template(rf, ctx) { if (rf & 1) {
60
- i0.ɵɵelementStart(0, "p", 14);
61
- i0.ɵɵelement(1, "i", 13);
83
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Template(rf, ctx) { if (rf & 1) {
84
+ i0.ɵɵelementStart(0, "tr")(1, "td", 17);
62
85
  i0.ɵɵtext(2);
63
86
  i0.ɵɵelementEnd();
87
+ i0.ɵɵelementStart(3, "td");
88
+ i0.ɵɵconditionalCreate(4, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_4_Template, 5, 2, "span", 18)(5, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_5_Template, 2, 4, "span", 19);
89
+ i0.ɵɵelementEnd();
90
+ i0.ɵɵelementStart(6, "td");
91
+ i0.ɵɵconditionalCreate(7, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_7_Template, 1, 1)(8, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_8_Template, 2, 0, "span", 20)(9, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Conditional_9_Template, 1, 1);
92
+ i0.ɵɵelementEnd()();
64
93
  } if (rf & 2) {
94
+ const role_r2 = ctx.$implicit;
65
95
  const ctx_r0 = i0.ɵɵnextContext(2);
96
+ i0.ɵɵclassProp("muted", !role_r2.ResolvedGLAccountID);
66
97
  i0.ɵɵadvance(2);
67
- i0.ɵɵtextInterpolate2(" ", ctx_r0.Unresolved.length === 1 ? "1 role resolves" : ctx_r0.Unresolved.length + " roles resolve", " to no account, so confirm refuses an order line for this product that books to it: ", ctx_r0.Unresolved.join(", "), ". ");
98
+ i0.ɵɵtextInterpolate(role_r2.Role);
99
+ i0.ɵɵadvance(2);
100
+ i0.ɵɵconditional(role_r2.ResolvedGLAccountID ? 4 : 5);
101
+ i0.ɵɵadvance(3);
102
+ i0.ɵɵconditional(role_r2.ResolvedGLAccountID ? 7 : ctx_r0.IsRequired(role_r2) ? 8 : 9);
68
103
  } }
69
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_21_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
70
- i0.ɵɵelementStart(0, "p", 17);
104
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_Conditional_14_Template(rf, ctx) { if (rf & 1) {
105
+ i0.ɵɵelementStart(0, "p", 16);
71
106
  i0.ɵɵtext(1);
72
107
  i0.ɵɵelementEnd();
73
108
  } if (rf & 2) {
74
- const role_r3 = i0.ɵɵnextContext().$implicit;
109
+ const ctx_r0 = i0.ɵɵnextContext(2);
75
110
  i0.ɵɵadvance();
76
- i0.ɵɵtextInterpolate(role_r3.Message);
111
+ i0.ɵɵtextInterpolate1("Assignments as of ", ctx_r0.AsOf, ".");
77
112
  } }
78
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_21_For_2_Template(rf, ctx) { if (rf & 1) {
79
- i0.ɵɵelementStart(0, "div", 15);
80
- i0.ɵɵelement(1, "mj-gl-resolution-preview", 16);
81
- i0.ɵɵconditionalCreate(2, BizAppsProductEffectiveGLAccountsComponent_Conditional_21_For_2_Conditional_2_Template, 2, 1, "p", 17);
113
+ function BizAppsProductEffectiveGLAccountsComponent_Conditional_14_Template(rf, ctx) { if (rf & 1) {
114
+ i0.ɵɵconditionalCreate(0, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_Conditional_0_Template, 4, 2, "p", 12);
115
+ i0.ɵɵelementStart(1, "div", 13)(2, "table", 14)(3, "thead")(4, "tr")(5, "th");
116
+ i0.ɵɵtext(6, "Role");
82
117
  i0.ɵɵelementEnd();
83
- } if (rf & 2) {
84
- const role_r3 = ctx.$implicit;
85
- i0.ɵɵadvance();
86
- i0.ɵɵproperty("Result", role_r3);
87
- i0.ɵɵadvance();
88
- i0.ɵɵconditional(role_r3.Message ? 2 : -1);
89
- } }
90
- function BizAppsProductEffectiveGLAccountsComponent_Conditional_21_Template(rf, ctx) { if (rf & 1) {
91
- i0.ɵɵconditionalCreate(0, BizAppsProductEffectiveGLAccountsComponent_Conditional_21_Conditional_0_Template, 3, 2, "p", 14);
92
- i0.ɵɵrepeaterCreate(1, BizAppsProductEffectiveGLAccountsComponent_Conditional_21_For_2_Template, 3, 2, "div", 15, _forTrack1);
118
+ i0.ɵɵelementStart(7, "th");
119
+ i0.ɵɵtext(8, "GL account");
120
+ i0.ɵɵelementEnd();
121
+ i0.ɵɵelementStart(9, "th");
122
+ i0.ɵɵtext(10, "Assigned on");
123
+ i0.ɵɵelementEnd()()();
124
+ i0.ɵɵelementStart(11, "tbody");
125
+ i0.ɵɵrepeaterCreate(12, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_For_13_Template, 10, 5, "tr", 15, _forTrack0);
126
+ i0.ɵɵelementEnd()()();
127
+ i0.ɵɵconditionalCreate(14, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_Conditional_14_Template, 2, 1, "p", 16);
93
128
  } if (rf & 2) {
94
129
  const ctx_r0 = i0.ɵɵnextContext();
95
- i0.ɵɵconditional(ctx_r0.Unresolved.length ? 0 : -1);
96
- i0.ɵɵadvance();
130
+ i0.ɵɵconditional(ctx_r0.MissingRequired.length ? 0 : -1);
131
+ i0.ɵɵadvance(12);
97
132
  i0.ɵɵrepeater(ctx_r0.Roles);
133
+ i0.ɵɵadvance(2);
134
+ i0.ɵɵconditional(ctx_r0.AsOf ? 14 : -1);
98
135
  } }
99
- const COMPANY_ENTITY = 'MJ: Companies';
100
136
  /** The roles that resolve nowhere — or whose winner booking would refuse — by name, in list order. */
101
137
  export function UnresolvedRoleNames(roles) {
102
138
  return roles.filter((r) => !r.ResolvedGLAccountID).map((r) => r.Role);
103
139
  }
140
+ /**
141
+ * The roles confirm cannot post without. `OrderJournalEntryFactory` resolves Accounts Receivable and
142
+ * Sales on every line, Deferred Revenue only when the product's revenue recognition type is deferred,
143
+ * Sales Discounts only when a line carries a discount and nets it into revenue when none is assigned,
144
+ * and nothing books Sales Returns and Allowances today. So a product with the first two (three when
145
+ * deferred) assigned confirms; the rest are optional and must not be reported as blocking.
146
+ */
147
+ export function RequiredGLRoleNames(isDeferred) {
148
+ return isDeferred ? ['Accounts Receivable', 'Sales', 'Deferred Revenue'] : ['Accounts Receivable', 'Sales'];
149
+ }
150
+ /** The required roles with no account, in list order: the ones the warning names. */
151
+ export function MissingRequiredRoleNames(roles, isDeferred) {
152
+ const required = new Set(RequiredGLRoleNames(isDeferred).map((r) => r.toLowerCase()));
153
+ return UnresolvedRoleNames(roles).filter((r) => required.has(r.toLowerCase()));
154
+ }
155
+ /** Why an optional role is optional, for the row that has no account. */
156
+ export function OptionalRoleNote(role) {
157
+ switch (role.toLowerCase()) {
158
+ case 'deferred revenue':
159
+ return 'Optional: used only for deferred revenue recognition';
160
+ case 'sales discounts':
161
+ return 'Optional: discounts net into Sales when none is assigned';
162
+ case 'sales returns and allowances':
163
+ return 'Optional: not used by posting today';
164
+ default:
165
+ return 'Optional';
166
+ }
167
+ }
168
+ /**
169
+ * Where a role's account comes from, in the words of the table's "Assigned on" column: "This product",
170
+ * "Category: Services", "Product type: Membership", "Company default: Betty Bot". The walk's own
171
+ * `Scope` already reads that way for the middle levels; the product level names the product the
172
+ * reader is looking at, and the company level names the product's company. Exported for the unit test.
173
+ */
174
+ export function RoleSourceText(role, companyName) {
175
+ const won = role.Steps.find((s) => s.Won);
176
+ if (!won)
177
+ return '—';
178
+ if (won.Level === 'Product')
179
+ return 'This product';
180
+ if (won.Level === 'Company' || won.Level === 'LegalEntity') {
181
+ return companyName.trim() ? `Company default: ${companyName.trim()}` : 'Company default';
182
+ }
183
+ return won.Scope;
184
+ }
185
+ /** The chip shown instead of an account when a role has none, by the walk's failure code. */
186
+ export function RoleFailureText(role) {
187
+ return role.Failure === 'CrossCompany' ? 'Assigned to another company' : 'Not assigned';
188
+ }
104
189
  /**
105
190
  * The GL account each role books to for this product, and where in the walk it comes from
106
191
  * (golive#439).
107
192
  *
108
- * The direct-links panel above shows only links set on the product itself, so a product that books
109
- * through its category, product type or company looked unlinked. This block asks the server, through
193
+ * The assignments card below shows only links set on the product itself, so a product that books
194
+ * through its category, product type or company looked unassigned. This block asks the server, through
110
195
  * `Orders.ExplainProductGLAccounts`, which runs the walk confirm books through; it never resolves
111
- * anything itself, so it cannot disagree with booking. Each role renders with accounting's
112
- * `mj-gl-resolution-preview`.
196
+ * anything itself, so it cannot disagree with booking.
113
197
  *
114
- * The company defaults to the product's own (g439.2 A); the picker answers the same question for a
115
- * product another company sells.
198
+ * Always for the product's own company: that is the Company field on this tab, and a cross-company
199
+ * sale is the order's question, answered by the order's readiness check. A company picker used to sit
200
+ * here and read as a second, conflicting company control.
116
201
  */
117
202
  export class BizAppsProductEffectiveGLAccountsComponent {
118
203
  cdr;
119
204
  Product;
205
+ /**
206
+ * The product's recognition type and company, bound separately from `Product` so a change made on
207
+ * the form reaches `ngOnChanges`: the entity is the same object before and after an edit, so a
208
+ * binding to it alone never reports a change. Deferred Revenue is required only for a deferred
209
+ * type, and the walk is for the product's company, so each re-reads when its input changes.
210
+ */
211
+ RevenueRecognitionTypeID;
212
+ CompanyID;
120
213
  Roles = [];
121
- Companies = [];
122
- /** The company explained for; the product's own until the user picks another. */
123
- CompanyID = '';
124
214
  AsOf = '';
125
215
  Loading = false;
126
216
  LoadError = null;
217
+ /** Whether the product's revenue recognition type defers revenue, which makes Deferred Revenue required. */
218
+ IsDeferred = false;
127
219
  destroyed = false;
128
220
  constructor(cdr) {
129
221
  this.cdr = cdr;
130
222
  }
131
223
  async ngOnInit() {
132
- this.CompanyID = this.Product?.CompanyID ?? '';
133
- await Promise.all([this.loadCompanies(), this.Refresh()]);
224
+ await Promise.all([this.loadRevRec(), this.Refresh()]);
225
+ }
226
+ ngOnChanges(changes) {
227
+ // ngOnInit handles the first values; later changes are edits on the form.
228
+ if (changes['RevenueRecognitionTypeID'] && !changes['RevenueRecognitionTypeID'].firstChange)
229
+ void this.loadRevRec();
230
+ if (changes['CompanyID'] && !changes['CompanyID'].firstChange)
231
+ void this.Refresh();
134
232
  }
135
233
  ngOnDestroy() {
136
234
  this.destroyed = true;
@@ -139,19 +237,48 @@ export class BizAppsProductEffectiveGLAccountsComponent {
139
237
  if (!this.destroyed)
140
238
  this.cdr.detectChanges();
141
239
  }
240
+ async loadRevRec() {
241
+ const id = this.RevenueRecognitionTypeID ?? this.Product?.RevenueRecognitionTypeID;
242
+ if (!id) {
243
+ this.IsDeferred = false;
244
+ this.tick();
245
+ return;
246
+ }
247
+ try {
248
+ const md = new Metadata();
249
+ await LoadOrdersEngine(Metadata.Provider, md.CurrentUser);
250
+ this.IsDeferred = OrdersEngine.Instance.RevenueRecognitionTypeByID(id)?.IsDeferred === true;
251
+ }
252
+ catch {
253
+ this.IsDeferred = false;
254
+ }
255
+ this.tick();
256
+ }
142
257
  /** Roles with no account booking would use. */
143
258
  get Unresolved() {
144
259
  return UnresolvedRoleNames(this.Roles);
145
260
  }
261
+ /** The required roles with no account: what the warning names, and what blocks confirm. */
262
+ get MissingRequired() {
263
+ return MissingRequiredRoleNames(this.Roles, this.IsDeferred);
264
+ }
265
+ IsRequired(role) {
266
+ return RequiredGLRoleNames(this.IsDeferred).some((r) => r.toLowerCase() === role.Role.toLowerCase());
267
+ }
268
+ OptionalNote(role) {
269
+ return OptionalRoleNote(role.Role);
270
+ }
271
+ SourceText(role) {
272
+ return RoleSourceText(role, this.Product?.Company ?? '');
273
+ }
274
+ FailureText(role) {
275
+ return RoleFailureText(role);
276
+ }
146
277
  /** An unsaved product has no links to walk from. */
147
278
  get CanExplain() {
148
279
  return !!this.Product?.ID && this.Product.IsSaved;
149
280
  }
150
- async OnCompanyChange(companyID) {
151
- this.CompanyID = companyID;
152
- await this.Refresh();
153
- }
154
- /** Re-asks the server. The direct-links panel calls this after it writes a link. */
281
+ /** Re-asks the server. The assignments card calls this after it writes a link. */
155
282
  async Refresh() {
156
283
  if (!this.CanExplain) {
157
284
  this.Roles = [];
@@ -163,15 +290,14 @@ export class BizAppsProductEffectiveGLAccountsComponent {
163
290
  try {
164
291
  const result = await new OrdersExplainProductGLAccountsOperation().Execute({
165
292
  ProductID: this.Product.ID,
166
- CompanyID: this.CompanyID || null,
293
+ CompanyID: (this.CompanyID ?? this.Product.CompanyID) || null,
167
294
  });
168
295
  if (!result.Success || !result.Output?.Success) {
169
296
  this.Roles = [];
170
- this.LoadError = result.Output?.Message ?? result.ErrorMessage ?? 'The effective accounts could not be read.';
297
+ this.LoadError = result.Output?.Message ?? result.ErrorMessage ?? 'The accounts could not be read.';
171
298
  return;
172
299
  }
173
300
  this.Roles = result.Output.Roles;
174
- this.CompanyID = result.Output.CompanyID;
175
301
  this.AsOf = result.Output.AsOf;
176
302
  }
177
303
  catch (err) {
@@ -183,72 +309,38 @@ export class BizAppsProductEffectiveGLAccountsComponent {
183
309
  this.tick();
184
310
  }
185
311
  }
186
- async loadCompanies() {
187
- // Orders may run without the Companies entity visible to this user; the picker then holds only the product's own.
188
- if (!new Metadata().EntityByName(COMPANY_ENTITY))
189
- return;
190
- const result = await new RunView().RunView({
191
- EntityName: COMPANY_ENTITY,
192
- Fields: ['ID', 'Name'],
193
- OrderBy: 'Name',
194
- ResultType: 'simple',
195
- });
196
- this.Companies = result.Success ? (result.Results ?? []).map((c) => ({ ID: String(c.ID), Name: c.Name })) : [];
197
- this.tick();
198
- }
199
- /** Whether `id` is the product's own company, for the picker's label. */
200
- IsOwnCompany(id) {
201
- return String(id).toLowerCase() === String(this.Product?.CompanyID ?? '').toLowerCase();
202
- }
203
- /** The option value matching `CompanyID` regardless of case, so the select never renders blank. */
204
- get SelectedCompany() {
205
- const match = this.Companies.find((c) => c.ID.toLowerCase() === this.CompanyID.toLowerCase());
206
- return match?.ID ?? this.CompanyID;
207
- }
208
312
  static ɵfac = function BizAppsProductEffectiveGLAccountsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BizAppsProductEffectiveGLAccountsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
209
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsProductEffectiveGLAccountsComponent, selectors: [["bizapps-product-effective-gl-accounts"]], inputs: { Product: "Product" }, standalone: false, decls: 22, vars: 6, consts: [[1, "mjo-eff-gl"], [1, "mjo-eff-gl__head"], [1, "mjo-eff-gl__title"], [1, "fa-solid", "fa-diagram-project"], [1, "mjo-eff-gl__actions"], [1, "mjo-eff-gl__company"], ["aria-label", "Company to explain the accounts for", 3, "ngModelChange", "ngModel", "disabled"], [3, "value"], ["type", "button", "title", "Re-read where each role's account comes from", 1, "mjo-eff-gl__refresh", 3, "click", "disabled"], [1, "fa-solid", "fa-rotate"], [1, "mjo-eff-gl__hint"], [1, "mjo-eff-gl__muted"], [1, "mjo-eff-gl__error"], [1, "fa-solid", "fa-triangle-exclamation"], ["role", "status", 1, "mjo-eff-gl__warn"], [1, "mjo-eff-gl__role"], [3, "Result"], [1, "mjo-eff-gl__refusal"]], template: function BizAppsProductEffectiveGLAccountsComponent_Template(rf, ctx) { if (rf & 1) {
210
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "span", 2);
313
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsProductEffectiveGLAccountsComponent, selectors: [["bizapps-product-effective-gl-accounts"]], inputs: { Product: "Product", RevenueRecognitionTypeID: "RevenueRecognitionTypeID", CompanyID: "CompanyID" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 15, vars: 2, consts: [[1, "mjo-acct-card__head"], [1, "mjo-acct-card__titles"], [1, "mjo-acct-card__title"], [1, "fa-solid", "fa-diagram-project"], [1, "mjo-acct-card__sub"], [1, "mjo-acct-card__actions"], ["type", "button", "title", "Refresh", "aria-label", "Refresh", 1, "mjo-acct-btn", "mjo-acct-btn--icon", 3, "click", "disabled"], [1, "fa-solid", "fa-rotate"], [1, "mjo-acct-card__body"], [1, "mjo-acct-note"], [1, "mjo-acct-alert", "mjo-acct-alert--error"], [1, "fa-solid", "fa-triangle-exclamation"], ["role", "status", 1, "mjo-acct-alert"], [1, "mjo-acct-tablewrap"], [1, "mjo-acct-table"], [3, "muted"], [1, "mjo-acct-note", "mjo-eff-gl__asof"], [1, "mjo-eff-gl__role"], [1, "mjo-acct-account"], [1, "mjo-acct-chip", 3, "mjo-acct-chip--warn", "title"], [1, "mjo-eff-gl__required"], [1, "mjo-acct-code"], [1, "mjo-acct-name"], [1, "mjo-acct-chip", 3, "title"]], template: function BizAppsProductEffectiveGLAccountsComponent_Template(rf, ctx) { if (rf & 1) {
314
+ i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "h3", 2);
211
315
  i0.ɵɵelement(3, "i", 3);
212
- i0.ɵɵtext(4, " Effective accounts ");
316
+ i0.ɵɵtext(4, "Accounts used when an order is confirmed");
213
317
  i0.ɵɵelementEnd();
214
- i0.ɵɵelementStart(5, "span", 4)(6, "label", 5)(7, "span");
215
- i0.ɵɵtext(8, "Company");
216
- i0.ɵɵelementEnd();
217
- i0.ɵɵelementStart(9, "select", 6);
218
- i0.ɵɵlistener("ngModelChange", function BizAppsProductEffectiveGLAccountsComponent_Template_select_ngModelChange_9_listener($event) { return ctx.OnCompanyChange($event); });
219
- i0.ɵɵconditionalCreate(10, BizAppsProductEffectiveGLAccountsComponent_Conditional_10_Template, 2, 2, "option", 7);
220
- i0.ɵɵrepeaterCreate(11, BizAppsProductEffectiveGLAccountsComponent_For_12_Template, 2, 3, "option", 7, _forTrack0);
318
+ i0.ɵɵelementStart(5, "p", 4);
319
+ i0.ɵɵtext(6, " A role with no direct assignment inherits from the product's category (or a parent category), then its product type, then the company default. ");
221
320
  i0.ɵɵelementEnd()();
222
- i0.ɵɵelementStart(13, "button", 8);
223
- i0.ɵɵlistener("click", function BizAppsProductEffectiveGLAccountsComponent_Template_button_click_13_listener() { return ctx.Refresh(); });
224
- i0.ɵɵelement(14, "i", 9);
321
+ i0.ɵɵelementStart(7, "div", 5)(8, "button", 6);
322
+ i0.ɵɵlistener("click", function BizAppsProductEffectiveGLAccountsComponent_Template_button_click_8_listener() { return ctx.Refresh(); });
323
+ i0.ɵɵelement(9, "i", 7);
225
324
  i0.ɵɵelementEnd()()();
226
- i0.ɵɵelementStart(15, "p", 10);
227
- i0.ɵɵtext(16, " Where each role's account comes from: the product, its category and parent categories, its product type, then the company default. The most specific link is used. ");
228
- i0.ɵɵconditionalCreate(17, BizAppsProductEffectiveGLAccountsComponent_Conditional_17_Template, 2, 1, "span");
229
- i0.ɵɵelementEnd();
230
- i0.ɵɵconditionalCreate(18, BizAppsProductEffectiveGLAccountsComponent_Conditional_18_Template, 2, 0, "p", 11)(19, BizAppsProductEffectiveGLAccountsComponent_Conditional_19_Template, 2, 0, "p", 11)(20, BizAppsProductEffectiveGLAccountsComponent_Conditional_20_Template, 3, 1, "p", 12)(21, BizAppsProductEffectiveGLAccountsComponent_Conditional_21_Template, 3, 1);
325
+ i0.ɵɵelementStart(10, "div", 8);
326
+ i0.ɵɵconditionalCreate(11, BizAppsProductEffectiveGLAccountsComponent_Conditional_11_Template, 2, 0, "p", 9)(12, BizAppsProductEffectiveGLAccountsComponent_Conditional_12_Template, 2, 0, "p", 9)(13, BizAppsProductEffectiveGLAccountsComponent_Conditional_13_Template, 4, 1, "p", 10)(14, BizAppsProductEffectiveGLAccountsComponent_Conditional_14_Template, 15, 2);
231
327
  i0.ɵɵelementEnd();
232
328
  } if (rf & 2) {
233
- i0.ɵɵadvance(9);
234
- i0.ɵɵproperty("ngModel", ctx.SelectedCompany)("disabled", ctx.Loading || !ctx.CanExplain);
235
- i0.ɵɵadvance();
236
- i0.ɵɵconditional(!ctx.Companies.length && ctx.CompanyID ? 10 : -1);
237
- i0.ɵɵadvance();
238
- i0.ɵɵrepeater(ctx.Companies);
239
- i0.ɵɵadvance(2);
329
+ i0.ɵɵadvance(8);
240
330
  i0.ɵɵproperty("disabled", ctx.Loading || !ctx.CanExplain);
241
- i0.ɵɵadvance(4);
242
- i0.ɵɵconditional(ctx.AsOf ? 17 : -1);
243
- i0.ɵɵadvance();
244
- i0.ɵɵconditional(!ctx.CanExplain ? 18 : ctx.Loading && !ctx.Roles.length ? 19 : ctx.LoadError ? 20 : 21);
245
- } }, dependencies: [i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.NgModel, i2.GlResolutionPreviewComponent], styles: ["\n\n\n.mjo-eff-gl[_ngcontent-%COMP%] {\n margin-top: 4px;\n}\n\n.mjo-eff-gl__head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n margin-bottom: 6px;\n}\n\n.mjo-eff-gl__title[_ngcontent-%COMP%] {\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n opacity: 0.75;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-eff-gl__actions[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-eff-gl__company[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n}\n\n.mjo-eff-gl__company[_ngcontent-%COMP%] select[_ngcontent-%COMP%] {\n max-width: 260px;\n}\n\n.mjo-eff-gl__refresh[_ngcontent-%COMP%] {\n background: none;\n border: none;\n cursor: pointer;\n padding: 2px 6px;\n opacity: 0.6;\n color: inherit;\n}\n\n.mjo-eff-gl__refresh[_ngcontent-%COMP%]:hover:not(:disabled) {\n opacity: 1;\n}\n\n.mjo-eff-gl__hint[_ngcontent-%COMP%], \n.mjo-eff-gl__muted[_ngcontent-%COMP%] {\n font-size: 12px;\n opacity: 0.75;\n margin: 0 0 8px;\n}\n\n.mjo-eff-gl__warn[_ngcontent-%COMP%], \n.mjo-eff-gl__error[_ngcontent-%COMP%] {\n display: flex;\n gap: 6px;\n align-items: flex-start;\n font-size: 13px;\n margin: 0 0 8px;\n padding: 6px 8px;\n border-radius: 4px;\n color: var(--mj-status-warning-text, #7a4b00);\n background: var(--mj-status-warning-bg, #fff4e0);\n}\n\n.mjo-eff-gl__error[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text, #8a1c1c);\n background: var(--mj-status-error-bg, #fdecec);\n}\n\n.mjo-eff-gl__role[_ngcontent-%COMP%] {\n margin-bottom: 8px;\n}\n\n.mjo-eff-gl__refusal[_ngcontent-%COMP%] {\n font-size: 12px;\n opacity: 0.8;\n margin: 2px 0 0 22px;\n}"] });
331
+ i0.ɵɵadvance(3);
332
+ i0.ɵɵconditional(!ctx.CanExplain ? 11 : ctx.Loading && !ctx.Roles.length ? 12 : ctx.LoadError ? 13 : 14);
333
+ } }, styles: ["\n\n\n[_nghost-%COMP%] {\n display: block;\n}\n\n.mjo-eff-gl__role[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n\n.mjo-eff-gl__required[_ngcontent-%COMP%] {\n font-weight: 600;\n color: var(--mj-status-warning-text, #b45309);\n}\n\n.mjo-eff-gl__asof[_ngcontent-%COMP%] {\n margin-top: 12px;\n font-size: 12.5px;\n}\n\n.mjo-sr-only[_ngcontent-%COMP%] {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}"] });
246
334
  }
247
335
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsProductEffectiveGLAccountsComponent, [{
248
336
  type: Component,
249
- args: [{ standalone: false, selector: 'bizapps-product-effective-gl-accounts', template: "<div class=\"mjo-eff-gl\">\n <div class=\"mjo-eff-gl__head\">\n <span class=\"mjo-eff-gl__title\">\n <i class=\"fa-solid fa-diagram-project\"></i>\n Effective accounts\n </span>\n <span class=\"mjo-eff-gl__actions\">\n <label class=\"mjo-eff-gl__company\">\n <span>Company</span>\n <select\n [ngModel]=\"SelectedCompany\"\n (ngModelChange)=\"OnCompanyChange($event)\"\n [disabled]=\"Loading || !CanExplain\"\n aria-label=\"Company to explain the accounts for\">\n @if (!Companies.length && CompanyID) {\n <option [value]=\"CompanyID\">{{ Product.Company }} (product's company)</option>\n }\n @for (c of Companies; track c.ID) {\n <option [value]=\"c.ID\">{{ c.Name }}{{ IsOwnCompany(c.ID) ? \" (product's company)\" : '' }}</option>\n }\n </select>\n </label>\n <button\n type=\"button\"\n class=\"mjo-eff-gl__refresh\"\n title=\"Re-read where each role's account comes from\"\n [disabled]=\"Loading || !CanExplain\"\n (click)=\"Refresh()\">\n <i class=\"fa-solid fa-rotate\"></i>\n </button>\n </span>\n </div>\n\n <!--\n Read from the walk confirm books through (Orders.ExplainProductGLAccounts), in order:\n product, category and its parents, product type, company default. Nothing here is resolved in\n the browser.\n -->\n <p class=\"mjo-eff-gl__hint\">\n Where each role's account comes from: the product, its category and parent categories, its\n product type, then the company default. The most specific link is used.\n @if (AsOf) {\n <span>Links in force on {{ AsOf }}.</span>\n }\n </p>\n\n @if (!CanExplain) {\n <p class=\"mjo-eff-gl__muted\">Save the product to see the accounts it books to.</p>\n } @else if (Loading && !Roles.length) {\n <p class=\"mjo-eff-gl__muted\">Reading the accounts\u2026</p>\n } @else if (LoadError) {\n <p class=\"mjo-eff-gl__error\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n {{ LoadError }}\n </p>\n } @else {\n @if (Unresolved.length) {\n <p class=\"mjo-eff-gl__warn\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n {{ Unresolved.length === 1 ? '1 role resolves' : Unresolved.length + ' roles resolve' }} to no account,\n so confirm refuses an order line for this product that books to it: {{ Unresolved.join(', ') }}.\n </p>\n }\n @for (role of Roles; track role.Role) {\n <div class=\"mjo-eff-gl__role\">\n <mj-gl-resolution-preview [Result]=\"role\"></mj-gl-resolution-preview>\n @if (role.Message) {\n <p class=\"mjo-eff-gl__refusal\">{{ role.Message }}</p>\n }\n </div>\n }\n }\n</div>\n", styles: ["/* Borrows the direct-links panel's look; it sits directly under it on the Accounting tab. */\n\n.mjo-eff-gl {\n margin-top: 4px;\n}\n\n.mjo-eff-gl__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n margin-bottom: 6px;\n}\n\n.mjo-eff-gl__title {\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n opacity: 0.75;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-eff-gl__actions {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-eff-gl__company {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n}\n\n.mjo-eff-gl__company select {\n max-width: 260px;\n}\n\n.mjo-eff-gl__refresh {\n background: none;\n border: none;\n cursor: pointer;\n padding: 2px 6px;\n opacity: 0.6;\n color: inherit;\n}\n\n.mjo-eff-gl__refresh:hover:not(:disabled) {\n opacity: 1;\n}\n\n.mjo-eff-gl__hint,\n.mjo-eff-gl__muted {\n font-size: 12px;\n opacity: 0.75;\n margin: 0 0 8px;\n}\n\n.mjo-eff-gl__warn,\n.mjo-eff-gl__error {\n display: flex;\n gap: 6px;\n align-items: flex-start;\n font-size: 13px;\n margin: 0 0 8px;\n padding: 6px 8px;\n border-radius: 4px;\n color: var(--mj-status-warning-text, #7a4b00);\n background: var(--mj-status-warning-bg, #fff4e0);\n}\n\n.mjo-eff-gl__error {\n color: var(--mj-status-error-text, #8a1c1c);\n background: var(--mj-status-error-bg, #fdecec);\n}\n\n.mjo-eff-gl__role {\n margin-bottom: 8px;\n}\n\n.mjo-eff-gl__refusal {\n font-size: 12px;\n opacity: 0.8;\n margin: 2px 0 0 22px;\n}\n"] }]
337
+ args: [{ standalone: false, selector: 'bizapps-product-effective-gl-accounts', template: "<header class=\"mjo-acct-card__head\">\n <div class=\"mjo-acct-card__titles\">\n <h3 class=\"mjo-acct-card__title\"><i class=\"fa-solid fa-diagram-project\"></i>Accounts used when an order is confirmed</h3>\n <p class=\"mjo-acct-card__sub\">\n A role with no direct assignment inherits from the product's category (or a parent category), then its\n product type, then the company default.\n </p>\n </div>\n <div class=\"mjo-acct-card__actions\">\n <button\n type=\"button\"\n class=\"mjo-acct-btn mjo-acct-btn--icon\"\n title=\"Refresh\"\n aria-label=\"Refresh\"\n [disabled]=\"Loading || !CanExplain\"\n (click)=\"Refresh()\">\n <i class=\"fa-solid fa-rotate\"></i>\n </button>\n </div>\n</header>\n\n<!--\n Read from the walk confirm books through (Orders.ExplainProductGLAccounts), in order:\n product, category and its parents, product type, company default. Nothing here is resolved in\n the browser. Which roles are REQUIRED is decided here from what the posting code resolves\n (see RequiredGLRoleNames); the server reports every role it knows.\n-->\n<div class=\"mjo-acct-card__body\">\n @if (!CanExplain) {\n <p class=\"mjo-acct-note\">Save the product to see the accounts it posts to.</p>\n } @else if (Loading && !Roles.length) {\n <p class=\"mjo-acct-note\">Loading accounts\u2026</p>\n } @else if (LoadError) {\n <p class=\"mjo-acct-alert mjo-acct-alert--error\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ LoadError }}</span>\n </p>\n } @else {\n @if (MissingRequired.length) {\n <p class=\"mjo-acct-alert\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>\n No account assigned for {{ MissingRequired.join(' and ') }}. Orders for this product cannot be\n confirmed until {{ MissingRequired.length === 1 ? 'it is' : 'they are' }} assigned.\n </span>\n </p>\n }\n <div class=\"mjo-acct-tablewrap\">\n <table class=\"mjo-acct-table\">\n <thead>\n <tr>\n <th>Role</th>\n <th>GL account</th>\n <th>Assigned on</th>\n </tr>\n </thead>\n <tbody>\n @for (role of Roles; track role.Role) {\n <tr [class.muted]=\"!role.ResolvedGLAccountID\">\n <td class=\"mjo-eff-gl__role\">{{ role.Role }}</td>\n <td>\n @if (role.ResolvedGLAccountID) {\n <span class=\"mjo-acct-account\">\n <span class=\"mjo-acct-code\">{{ role.ResolvedCode }}</span>\n <span class=\"mjo-acct-name\">{{ role.ResolvedName }}</span>\n </span>\n } @else {\n <span class=\"mjo-acct-chip\" [class.mjo-acct-chip--warn]=\"IsRequired(role)\" [title]=\"role.Message || ''\">{{ FailureText(role) }}</span>\n }\n </td>\n <td>\n @if (role.ResolvedGLAccountID) {\n {{ SourceText(role) }}\n } @else if (IsRequired(role)) {\n <span class=\"mjo-eff-gl__required\">Required</span>\n } @else {\n {{ OptionalNote(role) }}\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n @if (AsOf) {\n <p class=\"mjo-acct-note mjo-eff-gl__asof\">Assignments as of {{ AsOf }}.</p>\n }\n }\n</div>\n", styles: ["/* Card chrome (head, body, table, chips, notes) comes from the accounting widget's shared rules. */\n\n:host {\n display: block;\n}\n\n.mjo-eff-gl__role {\n font-weight: 600;\n}\n\n.mjo-eff-gl__required {\n font-weight: 600;\n color: var(--mj-status-warning-text, #b45309);\n}\n\n.mjo-eff-gl__asof {\n margin-top: 12px;\n font-size: 12.5px;\n}\n\n.mjo-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n"] }]
250
338
  }], () => [{ type: i0.ChangeDetectorRef }], { Product: [{
251
339
  type: Input
340
+ }], RevenueRecognitionTypeID: [{
341
+ type: Input
342
+ }], CompanyID: [{
343
+ type: Input
252
344
  }] }); })();
253
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsProductEffectiveGLAccountsComponent, { className: "BizAppsProductEffectiveGLAccountsComponent", filePath: "lib/custom/Product/widgets/product-effective-gl-accounts.component.ts", lineNumber: 41 }); })();
345
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsProductEffectiveGLAccountsComponent, { className: "BizAppsProductEffectiveGLAccountsComponent", filePath: "lib/custom/Product/widgets/product-effective-gl-accounts.component.ts", lineNumber: 87 }); })();
254
346
  //# sourceMappingURL=product-effective-gl-accounts.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-effective-gl-accounts.component.js","sourceRoot":"","sources":["../../../../../src/lib/custom/Product/widgets/product-effective-gl-accounts.component.ts","../../../../../src/lib/custom/Product/widgets/product-effective-gl-accounts.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,KAAK,EAAqB,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EACH,uCAAuC,GAG1C,MAAM,8BAA8B,CAAC;;;;;;;ICSd,iCAA4B;IAAA,YAAyC;IAAA,iBAAS;;;IAAtE,wCAAmB;IAAC,cAAyC;IAAzC,yEAAyC;;;IAGrE,iCAAuB;IAAA,YAAkE;IAAA,iBAAS;;;;IAA1F,+BAAc;IAAC,cAA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AAFF,6GAAmB,uFAEoB,uFAEf,8EAKf;YAiBb,iBAAM;;YA9Dc,eAA2B;YAE3B,AAFA,6CAA2B,4CAEQ;YAEnC,cAEC;YAFD,kEAEC;YACD,cAEC;YAFD,4BAEC;YAOL,eAAmC;YAAnC,yDAAmC;YAe3C,eAEC;YAFD,oCAEC;YAGL,cAyBC;YAzBD,wGAyBC;;;iFD/BQ,0CAA0C;cANtD,SAAS;6BACM,KAAK,YACP,uCAAuC;;kBAKhD,KAAK;;kFADG,0CAA0C"}
1
+ {"version":3,"file":"product-effective-gl-accounts.component.js","sourceRoot":"","sources":["../../../../../src/lib/custom/Product/widgets/product-effective-gl-accounts.component.ts","../../../../../src/lib/custom/Product/widgets/product-effective-gl-accounts.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,KAAK,EAA+C,MAAM,eAAe,CAAC;AACjH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACH,gBAAgB,EAChB,YAAY,EACZ,uCAAuC,GAG1C,MAAM,8BAA8B,CAAC;;;;ICqB9B,4BAAyB;IAAA,iEAAiD;IAAA,iBAAI;;;IAE9E,4BAAyB;IAAA,sCAAiB;IAAA,iBAAI;;;IAE9C,6BAAgD;IAC5C,wBAAgD;IAChD,4BAAM;IAAA,YAAe;IACzB,AADyB,iBAAO,EAC5B;;;IADM,eAAe;IAAf,sCAAe;;;IAIrB,6BAAwC;IACpC,wBAAgD;IAChD,4BAAM;IACF,YAEJ;IACJ,AADI,iBAAO,EACP;;;IAHI,eAEJ;IAFI,2NAEJ;;;IAmBwB,AADJ,gCAA+B,eACC;IAAA,YAAuB;IAAA,iBAAO;IAC1D,gCAA4B;IAAA,YAAuB;IACvD,AADuD,iBAAO,EACvD;;;IAFyB,eAAuB;IAAvB,0CAAuB;IACvB,eAAuB;IAAvB,0CAAuB;;;IAGvD,gCAAwG;IAAA,YAAuB;IAAA,iBAAO;;;;IAA1G,iEAA8C;IAAC,6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AC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;QACnC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;YAChB,IAAI,CAAC,SAAS,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACtE,CAAC;gBAAS,CAAC;YACP,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC,IAAI,EAAE,CAAC;QAChB,CAAC;IACL,CAAC;oIApHQ,0CAA0C;6DAA1C,0CAA0C;YCpF/C,AADJ,AADJ,iCAAoC,aACG,YACE;YAAA,uBAA2C;YAAA,wDAAwC;YAAA,iBAAK;YACzH,4BAA8B;YAC1B,gKAEJ;YACJ,AADI,iBAAI,EACF;YAEF,AADJ,8BAAoC,gBAOR;YAApB,uHAAS,aAAS,IAAC;YACnB,uBAAkC;YAG9C,AADI,AADI,iBAAS,EACP,EACD;YAQT,+BAAiC;YAU3B,AALA,AAFA,AAFF,4GAAmB,sFAEoB,uFAEf,+EAKf;YAmDb,iBAAM;;YA1EM,eAAmC;YAAnC,yDAAmC;YAc3C,eA2DC;YA3DD,wGA2DC;;;iFDDQ,0CAA0C;cANtD,SAAS;6BACM,KAAK,YACP,uCAAuC;;kBAKhD,KAAK;;kBAOL,KAAK;;kBACL,KAAK;;kFATG,0CAA0C"}
@@ -1 +1 @@
1
- {"version":3,"file":"product-gl-links.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/custom/Product/widgets/product-gl-links.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAE7G,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEtF,OAAO,EAAS,KAAK,4BAA4B,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IAAI,CAAC;IA6B7D;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IAmBrB;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;YAIC,IAAI;IA8HlB,qFAAqF;YACvE,UAAU;IAyBxB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,UAAU;yCAz0BT,8BAA8B;2CAA9B,8BAA8B;CA22B1C"}
1
+ {"version":3,"file":"product-gl-links.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/custom/Product/widgets/product-gl-links.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAE7G,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEtF,OAAO,EAAS,KAAK,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;;AAQxF;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,OAAO,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH;;;;;;;;GAQG;AACH;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAaD,wBAAgB,KAAK,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,CAEzC;AAED,wBAAgB,kBAAkB,CAC9B,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC5C,OAAO,CAIT;AAED,mGAAmG;AACnG,MAAM,WAAW,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