@mj-biz-apps/orders-ng 5.43.0 → 5.44.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 (100) hide show
  1. package/dist/lib/custom/EventOrderLine/event-order-line-form.component.js +6 -5
  2. package/dist/lib/custom/EventOrderLine/event-order-line-form.component.js.map +1 -1
  3. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +4 -0
  4. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
  5. package/dist/lib/custom/OrderHeader/order-header-form.component.js +330 -297
  6. package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
  7. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +6 -0
  8. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -1
  9. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +130 -46
  10. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
  11. package/dist/lib/custom/PaymentHeader/change-payment-date.component.d.ts +30 -0
  12. package/dist/lib/custom/PaymentHeader/change-payment-date.component.d.ts.map +1 -0
  13. package/dist/lib/custom/PaymentHeader/change-payment-date.component.js +156 -0
  14. package/dist/lib/custom/PaymentHeader/change-payment-date.component.js.map +1 -0
  15. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.d.ts +26 -0
  16. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.d.ts.map +1 -0
  17. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.js +149 -0
  18. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.js.map +1 -0
  19. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts +2 -0
  20. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts.map +1 -1
  21. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js +398 -378
  22. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js.map +1 -1
  23. package/dist/lib/custom/Product/product-save-guard-form.component.js +74 -72
  24. package/dist/lib/custom/Product/product-save-guard-form.component.js.map +1 -1
  25. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +16 -9
  26. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -1
  27. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts +54 -0
  28. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts.map +1 -0
  29. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js +254 -0
  30. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js.map +1 -0
  31. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts +7 -4
  32. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts.map +1 -1
  33. package/dist/lib/custom/Product/widgets/product-gl-links.component.js +14 -5
  34. package/dist/lib/custom/Product/widgets/product-gl-links.component.js.map +1 -1
  35. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +7 -0
  36. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
  37. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +54 -32
  38. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
  39. package/dist/lib/custom/custom-forms.module.d.ts +23 -20
  40. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  41. package/dist/lib/custom/custom-forms.module.js +17 -1
  42. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  43. package/dist/lib/data/orders-queries.d.ts +35 -3
  44. package/dist/lib/data/orders-queries.d.ts.map +1 -1
  45. package/dist/lib/data/orders-queries.js +56 -5
  46. package/dist/lib/data/orders-queries.js.map +1 -1
  47. package/dist/lib/form-panels/catalog-overviews.panels.js +8 -8
  48. package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -1
  49. package/dist/lib/form-panels/commercial-overviews.panels.js +5 -5
  50. package/dist/lib/form-panels/document-forms.module.d.ts +20 -19
  51. package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -1
  52. package/dist/lib/form-panels/document-forms.module.js +8 -1
  53. package/dist/lib/form-panels/document-forms.module.js.map +1 -1
  54. package/dist/lib/form-panels/document-hero.component.js +2 -2
  55. package/dist/lib/form-panels/document-overviews.panels.js +7 -7
  56. package/dist/lib/form-panels/lookup-headers.panels.js +10 -10
  57. package/dist/lib/form-panels/order-access-overrides.panel.js +2 -2
  58. package/dist/lib/form-panels/overview-cards.component.js +2 -2
  59. package/dist/lib/form-panels/payment-header.panel.js +2 -2
  60. package/dist/lib/form-panels/price-list-header.panel.js +2 -2
  61. package/dist/lib/form-panels/product-header.panel.d.ts +37 -10
  62. package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -1
  63. package/dist/lib/form-panels/product-header.panel.js +253 -59
  64. package/dist/lib/form-panels/product-header.panel.js.map +1 -1
  65. package/dist/lib/form-panels/product-readiness.d.ts +34 -0
  66. package/dist/lib/form-panels/product-readiness.d.ts.map +1 -0
  67. package/dist/lib/form-panels/product-readiness.js +34 -0
  68. package/dist/lib/form-panels/product-readiness.js.map +1 -0
  69. package/dist/lib/form-panels/product-rev-rec-field.component.d.ts +29 -0
  70. package/dist/lib/form-panels/product-rev-rec-field.component.d.ts.map +1 -0
  71. package/dist/lib/form-panels/product-rev-rec-field.component.js +115 -0
  72. package/dist/lib/form-panels/product-rev-rec-field.component.js.map +1 -0
  73. package/dist/lib/form-panels/product-widget.panels.d.ts +12 -0
  74. package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -1
  75. package/dist/lib/form-panels/product-widget.panels.js +165 -75
  76. package/dist/lib/form-panels/product-widget.panels.js.map +1 -1
  77. package/dist/lib/form-panels/promotion-header.panel.js +2 -2
  78. package/dist/lib/form-panels/subscription-header.panel.js +2 -2
  79. package/dist/lib/form-panels/subscription-revrec.panel.js +2 -2
  80. package/dist/lib/form-panels/subscription-term-header.panel.js +2 -2
  81. package/dist/lib/form-panels/subscription-term-revrec.panel.js +2 -2
  82. package/dist/lib/form-panels/subscription-terms.panel.js +2 -2
  83. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js +8 -6
  84. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js.map +1 -1
  85. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js +107 -105
  86. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js.map +1 -1
  87. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js +74 -72
  88. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js.map +1 -1
  89. package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts.map +1 -1
  90. package/dist/lib/pages/receivables/external-invoicing-queue.page.js +2 -1
  91. package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
  92. package/dist/lib/pages/receivables/progress.page.d.ts +10 -7
  93. package/dist/lib/pages/receivables/progress.page.d.ts.map +1 -1
  94. package/dist/lib/pages/receivables/progress.page.js +20 -25
  95. package/dist/lib/pages/receivables/progress.page.js.map +1 -1
  96. package/dist/lib/panels/product-lookup-names.d.ts +29 -0
  97. package/dist/lib/panels/product-lookup-names.d.ts.map +1 -1
  98. package/dist/lib/panels/product-lookup-names.js +58 -2
  99. package/dist/lib/panels/product-lookup-names.js.map +1 -1
  100. package/package.json +7 -7
@@ -10,7 +10,7 @@ import { UserInfoEngine } from '@memberjunction/core-entities';
10
10
  import { RegisterClass, UUIDsEqual } from '@memberjunction/global';
11
11
  import { BaseFormComponent } from '@memberjunction/ng-base-forms';
12
12
  import { NavigationService } from '@memberjunction/ng-shared';
13
- import { CanOfferConfirm, DescribeClearedEmployers, DescribeDisplacedTermStart, LoadOrdersEngine, OrdersConfirmReadinessOperation, } from '@mj-biz-apps/orders-entities';
13
+ import { AsDateValue, CanOfferConfirm, DescribeClearedEmployers, DescribeDisplacedTermStart, LoadOrdersEngine, OrdersConfirmReadinessOperation, ToISODate, } from '@mj-biz-apps/orders-entities';
14
14
  import { MJO_ACCOUNTING_ENTITIES, MJO_COMMON_ENTITIES, MJO_ENTITIES } from '../../data/entity-names.js';
15
15
  import { BuildOrderJournalEntryRows, BuildOrderJournalLineExport, BuildOrderJournalRollup, BuildOrderJournalRollupExport, ExcludedEntriesLabel, GetOrderJournalOrigins, GetPaymentTypes, LoadOrderJournalData, LoadRevRecJournalEntries, SubscriptionViewParams, } from '../../data/orders-queries.js';
16
16
  import { FormatDate, FormatMoney, HasCents } from '../../panels/money-format.js';
@@ -25,8 +25,9 @@ import * as i3 from "@memberjunction/ng-export-service";
25
25
  import * as i4 from "@memberjunction/ng-ui-components";
26
26
  import * as i5 from "./order-lines-editor.component.js";
27
27
  import * as i6 from "./party-address-picker.component.js";
28
- import * as i7 from "@mj-biz-apps/accounting-ng";
29
- import * as i8 from "@mj-biz-apps/common-ng";
28
+ import * as i7 from "../PaymentHeader/order-payment-dates.component.js";
29
+ import * as i8 from "@mj-biz-apps/accounting-ng";
30
+ import * as i9 from "@mj-biz-apps/common-ng";
30
31
  const _forTrack0 = ($index, $item) => $item.ID;
31
32
  const _forTrack1 = ($index, $item) => $item.CompanyID;
32
33
  const _forTrack2 = ($index, $item) => $item.Key;
@@ -42,13 +43,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_11_Template(r
42
43
  i0.ɵɵtextInterpolate(ctx_r1.record.Status);
43
44
  } }
44
45
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_7_Template(rf, ctx) { if (rf & 1) {
45
- i0.ɵɵelementStart(0, "div", 28);
46
- i0.ɵɵelement(1, "i", 49);
46
+ i0.ɵɵelementStart(0, "div", 29);
47
+ i0.ɵɵelement(1, "i", 50);
47
48
  i0.ɵɵtext(2, " This order is booked, so its type, selling company, order date and bill-to are locked. Corrections go through a reversal order.");
48
49
  i0.ɵɵelementEnd();
49
50
  } }
50
51
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_16_Template(rf, ctx) { if (rf & 1) {
51
- i0.ɵɵelementStart(0, "span", 36);
52
+ i0.ɵɵelementStart(0, "span", 37);
52
53
  i0.ɵɵtext(1);
53
54
  i0.ɵɵelementEnd();
54
55
  } if (rf & 2) {
@@ -58,7 +59,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
58
59
  } }
59
60
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_17_Template(rf, ctx) { if (rf & 1) {
60
61
  const _r4 = i0.ɵɵgetCurrentView();
61
- i0.ɵɵelementStart(0, "button", 50);
62
+ i0.ɵɵelementStart(0, "button", 51);
62
63
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_17_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenShipTo($event)); });
63
64
  i0.ɵɵtext(1);
64
65
  i0.ɵɵelementEnd();
@@ -69,13 +70,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
69
70
  } }
70
71
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template(rf, ctx) { if (rf & 1) {
71
72
  const _r5 = i0.ɵɵgetCurrentView();
72
- i0.ɵɵelementStart(0, "div", 40)(1, "bizapps-party-field", 51);
73
+ i0.ɵɵelementStart(0, "div", 41)(1, "bizapps-party-field", 52);
73
74
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template_bizapps_party_field_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
74
75
  i0.ɵɵelementEnd();
75
- i0.ɵɵelementStart(2, "bizapps-party-field", 52);
76
+ i0.ɵɵelementStart(2, "bizapps-party-field", 53);
76
77
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template_bizapps_party_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("ValueChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template_bizapps_party_field_ValueChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnPartyPersonChange("ShipTo", $event)); });
77
78
  i0.ɵɵelementEnd();
78
- i0.ɵɵelement(3, "mjo-party-address-picker", 53);
79
+ i0.ɵɵelement(3, "mjo-party-address-picker", 54);
79
80
  i0.ɵɵelementEnd();
80
81
  } if (rf & 2) {
81
82
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -88,7 +89,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
88
89
  } }
89
90
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_29_Template(rf, ctx) { if (rf & 1) {
90
91
  const _r6 = i0.ɵɵgetCurrentView();
91
- i0.ɵɵelementStart(0, "button", 50);
92
+ i0.ɵɵelementStart(0, "button", 51);
92
93
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_29_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenBillTo($event)); });
93
94
  i0.ɵɵtext(1);
94
95
  i0.ɵɵelementEnd();
@@ -98,7 +99,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
98
99
  i0.ɵɵtextInterpolate(ctx_r1.BillToName);
99
100
  } }
100
101
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_30_Template(rf, ctx) { if (rf & 1) {
101
- i0.ɵɵelementStart(0, "span", 36);
102
+ i0.ɵɵelementStart(0, "span", 37);
102
103
  i0.ɵɵtext(1);
103
104
  i0.ɵɵelementEnd();
104
105
  } if (rf & 2) {
@@ -108,16 +109,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
108
109
  } }
109
110
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template(rf, ctx) { if (rf & 1) {
110
111
  const _r7 = i0.ɵɵgetCurrentView();
111
- i0.ɵɵelementStart(0, "div", 40)(1, "bizapps-party-field", 54);
112
+ i0.ɵɵelementStart(0, "div", 41)(1, "bizapps-party-field", 55);
112
113
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template_bizapps_party_field_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
113
114
  i0.ɵɵelementEnd();
114
- i0.ɵɵelementStart(2, "bizapps-party-field", 55);
115
+ i0.ɵɵelementStart(2, "bizapps-party-field", 56);
115
116
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template_bizapps_party_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("ValueChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template_bizapps_party_field_ValueChange_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnPartyPersonChange("BillTo", $event)); });
116
117
  i0.ɵɵelementEnd();
117
- i0.ɵɵelementStart(3, "mj-form-field", 56);
118
+ i0.ɵɵelementStart(3, "mj-form-field", 57);
118
119
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
119
120
  i0.ɵɵelementEnd();
120
- i0.ɵɵelement(4, "mjo-party-address-picker", 57);
121
+ i0.ɵɵelement(4, "mjo-party-address-picker", 58);
121
122
  i0.ɵɵelementEnd();
122
123
  } if (rf & 2) {
123
124
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -132,20 +133,20 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
132
133
  } }
133
134
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
134
135
  const _r8 = i0.ɵɵgetCurrentView();
135
- i0.ɵɵelementStart(0, "button", 61);
136
+ i0.ɵɵelementStart(0, "button", 62);
136
137
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.JumpToBill()); });
137
138
  i0.ɵɵtext(1, "Need a bill-to party");
138
139
  i0.ɵɵelementEnd();
139
140
  } }
140
141
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
141
142
  const _r9 = i0.ɵɵgetCurrentView();
142
- i0.ɵɵelementStart(0, "button", 61);
143
+ i0.ɵɵelementStart(0, "button", 62);
143
144
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.JumpToPayment()); });
144
145
  i0.ɵɵtext(1, "Need a check / ACH reference");
145
146
  i0.ɵɵelementEnd();
146
147
  } }
147
148
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
148
- i0.ɵɵelementStart(0, "span", 59);
149
+ i0.ɵɵelementStart(0, "span", 60);
149
150
  i0.ɵɵtext(1);
150
151
  i0.ɵɵelementEnd();
151
152
  } if (rf & 2) {
@@ -154,13 +155,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
154
155
  i0.ɵɵtextInterpolate(ctx_r1.ConfirmBlockedReason);
155
156
  } }
156
157
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Template(rf, ctx) { if (rf & 1) {
157
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_0_Template, 2, 0, "button", 60)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_1_Template, 2, 0, "button", 60)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_2_Template, 2, 1, "span", 59);
158
+ i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_0_Template, 2, 0, "button", 61)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_1_Template, 2, 0, "button", 61)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_2_Template, 2, 1, "span", 60);
158
159
  } if (rf & 2) {
159
160
  const ctx_r1 = i0.ɵɵnextContext(4);
160
161
  i0.ɵɵconditional(ctx_r1.NeedsBillTo ? 0 : ctx_r1.NeedsPaymentReference ? 1 : 2);
161
162
  } }
162
163
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_For_6_Template(rf, ctx) { if (rf & 1) {
163
- i0.ɵɵelementStart(0, "span", 59);
164
+ i0.ɵɵelementStart(0, "span", 60);
164
165
  i0.ɵɵtext(1);
165
166
  i0.ɵɵelementEnd();
166
167
  } if (rf & 2) {
@@ -169,13 +170,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
169
170
  i0.ɵɵtextInterpolate(problem_r10);
170
171
  } }
171
172
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Template(rf, ctx) { if (rf & 1) {
172
- i0.ɵɵelementStart(0, "div", 41);
173
- i0.ɵɵelement(1, "i", 58);
173
+ i0.ɵɵelementStart(0, "div", 42);
174
+ i0.ɵɵelement(1, "i", 59);
174
175
  i0.ɵɵelementStart(2, "span");
175
176
  i0.ɵɵtext(3, "Before this can be confirmed");
176
177
  i0.ɵɵelementEnd();
177
178
  i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Template, 3, 1);
178
- i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_For_6_Template, 2, 1, "span", 59, i0.ɵɵrepeaterTrackByIndex);
179
+ i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_For_6_Template, 2, 1, "span", 60, i0.ɵɵrepeaterTrackByIndex);
179
180
  i0.ɵɵelementEnd();
180
181
  } if (rf & 2) {
181
182
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -185,8 +186,8 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
185
186
  i0.ɵɵrepeater(ctx_r1.ConcessionBlockers);
186
187
  } }
187
188
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_36_Template(rf, ctx) { if (rf & 1) {
188
- i0.ɵɵelementStart(0, "div", 42);
189
- i0.ɵɵelement(1, "i", 62);
189
+ i0.ɵɵelementStart(0, "div", 43);
190
+ i0.ɵɵelement(1, "i", 63);
190
191
  i0.ɵɵelementStart(2, "span");
191
192
  i0.ɵɵtext(3);
192
193
  i0.ɵɵelementEnd()();
@@ -205,12 +206,12 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
205
206
  i0.ɵɵtextInterpolate(note_r11);
206
207
  } }
207
208
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template(rf, ctx) { if (rf & 1) {
208
- i0.ɵɵelementStart(0, "div", 43);
209
- i0.ɵɵelement(1, "i", 62);
209
+ i0.ɵɵelementStart(0, "div", 44);
210
+ i0.ɵɵelement(1, "i", 63);
210
211
  i0.ɵɵelementStart(2, "span");
211
212
  i0.ɵɵtext(3, "When this is confirmed");
212
213
  i0.ɵɵelementEnd();
213
- i0.ɵɵelementStart(4, "ul", 63);
214
+ i0.ɵɵelementStart(4, "ul", 64);
214
215
  i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_For_6_Template, 2, 1, "li", null, i0.ɵɵrepeaterTrackByIndex);
215
216
  i0.ɵɵelementEnd()();
216
217
  } if (rf & 2) {
@@ -219,8 +220,8 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
219
220
  i0.ɵɵrepeater(ctx_r1.TermLengthNotes);
220
221
  } }
221
222
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_38_Template(rf, ctx) { if (rf & 1) {
222
- i0.ɵɵelementStart(0, "div", 44);
223
- i0.ɵɵelement(1, "i", 64);
223
+ i0.ɵɵelementStart(0, "div", 45);
224
+ i0.ɵɵelement(1, "i", 65);
224
225
  i0.ɵɵelementStart(2, "span");
225
226
  i0.ɵɵtext(3);
226
227
  i0.ɵɵelementEnd()();
@@ -231,18 +232,18 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
231
232
  } }
232
233
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template(rf, ctx) { if (rf & 1) {
233
234
  const _r12 = i0.ɵɵgetCurrentView();
234
- i0.ɵɵelementStart(0, "div", 42);
235
- i0.ɵɵelement(1, "i", 65);
235
+ i0.ɵɵelementStart(0, "div", 43);
236
+ i0.ɵɵelement(1, "i", 66);
236
237
  i0.ɵɵelementStart(2, "span");
237
238
  i0.ɵɵtext(3);
238
239
  i0.ɵɵelementEnd();
239
- i0.ɵɵelementStart(4, "button", 61);
240
+ i0.ɵɵelementStart(4, "button", 62);
240
241
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.UndoClearedEmployers()); });
241
242
  i0.ɵɵtext(5, "Undo");
242
243
  i0.ɵɵelementEnd();
243
- i0.ɵɵelementStart(6, "button", 66);
244
+ i0.ɵɵelementStart(6, "button", 67);
244
245
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.DismissClearedEmployers()); });
245
- i0.ɵɵelement(7, "i", 67);
246
+ i0.ɵɵelement(7, "i", 68);
246
247
  i0.ɵɵelementEnd()();
247
248
  } if (rf & 2) {
248
249
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -259,12 +260,12 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
259
260
  i0.ɵɵtextInterpolate(notice_r13);
260
261
  } }
261
262
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template(rf, ctx) { if (rf & 1) {
262
- i0.ɵɵelementStart(0, "div", 45);
263
- i0.ɵɵelement(1, "i", 68);
263
+ i0.ɵɵelementStart(0, "div", 46);
264
+ i0.ɵɵelement(1, "i", 69);
264
265
  i0.ɵɵelementStart(2, "span");
265
266
  i0.ɵɵtext(3, "Service dates changed at confirm");
266
267
  i0.ɵɵelementEnd();
267
- i0.ɵɵelementStart(4, "ul", 63);
268
+ i0.ɵɵelementStart(4, "ul", 64);
268
269
  i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_For_6_Template, 2, 1, "li", null, i0.ɵɵrepeaterTrackByIndex);
269
270
  i0.ɵɵelementEnd()();
270
271
  } if (rf & 2) {
@@ -272,35 +273,40 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
272
273
  i0.ɵɵadvance(5);
273
274
  i0.ɵɵrepeater(ctx_r1.DisplacedStartNotices);
274
275
  } }
275
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_4_Template(rf, ctx) { if (rf & 1) {
276
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_10_Template(rf, ctx) { if (rf & 1) {
276
277
  const _r15 = i0.ɵɵgetCurrentView();
277
- i0.ɵɵelementStart(0, "label", 72)(1, "span", 74);
278
+ i0.ɵɵelementStart(0, "label", 73)(1, "span", 74);
278
279
  i0.ɵɵtext(2, "Check / ACH reference");
279
280
  i0.ɵɵelementEnd();
280
- i0.ɵɵelementStart(3, "input", 75);
281
- i0.ɵɵlistener("ngModelChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_4_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetPaymentReference($event)); });
281
+ i0.ɵɵelementStart(3, "input", 76);
282
+ i0.ɵɵlistener("ngModelChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_10_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetPaymentReference($event)); });
282
283
  i0.ɵɵelementEnd()();
283
284
  } if (rf & 2) {
284
285
  const ctx_r1 = i0.ɵɵnextContext(4);
285
286
  i0.ɵɵadvance(3);
286
287
  i0.ɵɵproperty("ngModel", ctx_r1.PaymentReference)("disabled", !ctx_r1.ComposeMode);
287
288
  } }
288
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_5_Template(rf, ctx) { if (rf & 1) {
289
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template(rf, ctx) { if (rf & 1) {
289
290
  const _r16 = i0.ɵɵgetCurrentView();
290
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 76);
291
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_5_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
291
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 77, 0);
292
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
293
+ i0.ɵɵelementEnd();
294
+ i0.ɵɵelementStart(2, "mjo-order-payment-dates", 78);
295
+ i0.ɵɵlistener("Changed", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template_mjo_order_payment_dates_Changed_2_listener() { i0.ɵɵrestoreView(_r16); const paymentGrid_r17 = i0.ɵɵreference(1); return i0.ɵɵresetView(paymentGrid_r17.Refresh()); });
292
296
  i0.ɵɵelementEnd();
293
297
  } if (rf & 2) {
294
298
  const ctx_r1 = i0.ɵɵnextContext(4);
295
299
  i0.ɵɵproperty("Params", ctx_r1.PaymentParams)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", false)("ShowDeleteButton", false)("Height", "fit-content")("MaxHeight", ctx_r1.RelatedGridHeight);
300
+ i0.ɵɵadvance(2);
301
+ i0.ɵɵproperty("OrderHeaderID", ctx_r1.record.ID);
296
302
  } }
297
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_6_Template(rf, ctx) { if (rf & 1) {
298
- i0.ɵɵelementStart(0, "div", 28);
303
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_12_Template(rf, ctx) { if (rf & 1) {
304
+ i0.ɵɵelementStart(0, "div", 29);
299
305
  i0.ɵɵtext(1, "Intent only \u2014 the payment is created when the order is confirmed.");
300
306
  i0.ɵɵelementEnd();
301
307
  } }
302
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_2_Template(rf, ctx) { if (rf & 1) {
303
- i0.ɵɵelementStart(0, "div", 28);
308
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_2_Template(rf, ctx) { if (rf & 1) {
309
+ i0.ɵɵelementStart(0, "div", 29);
304
310
  i0.ɵɵtext(1);
305
311
  i0.ɵɵelementEnd();
306
312
  } if (rf & 2) {
@@ -308,13 +314,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
308
314
  i0.ɵɵadvance();
309
315
  i0.ɵɵtextInterpolate(ctx_r1.InstalmentsError);
310
316
  } }
311
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_3_Template(rf, ctx) { if (rf & 1) {
312
- i0.ɵɵelementStart(0, "div", 28);
317
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_3_Template(rf, ctx) { if (rf & 1) {
318
+ i0.ɵɵelementStart(0, "div", 29);
313
319
  i0.ɵɵtext(1, "Loading payment schedule\u2026");
314
320
  i0.ɵɵelementEnd();
315
321
  } }
316
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_4_Template(rf, ctx) { if (rf & 1) {
317
- i0.ɵɵelementStart(0, "div", 28);
322
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_4_Template(rf, ctx) { if (rf & 1) {
323
+ i0.ɵɵelementStart(0, "div", 29);
318
324
  i0.ɵɵtext(1);
319
325
  i0.ɵɵelementEnd();
320
326
  } if (rf & 2) {
@@ -322,39 +328,39 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
322
328
  i0.ɵɵadvance();
323
329
  i0.ɵɵtextInterpolate(ctx_r1.NoScheduleNote);
324
330
  } }
325
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_12_Template(rf, ctx) { if (rf & 1) {
326
- const _r19 = i0.ɵɵgetCurrentView();
327
- i0.ɵɵelementStart(0, "button", 84);
328
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_12_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r19); const row_r18 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OpenInstalmentEntry($event, row_r18)); });
331
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_12_Template(rf, ctx) { if (rf & 1) {
332
+ const _r20 = i0.ɵɵgetCurrentView();
333
+ i0.ɵɵelementStart(0, "button", 86);
334
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_12_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r20); const row_r19 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OpenInstalmentEntry($event, row_r19)); });
329
335
  i0.ɵɵtext(1);
330
336
  i0.ɵɵelementEnd();
331
337
  } if (rf & 2) {
332
- const row_r18 = i0.ɵɵnextContext().$implicit;
338
+ const row_r19 = i0.ɵɵnextContext().$implicit;
333
339
  const ctx_r1 = i0.ɵɵnextContext(6);
334
340
  i0.ɵɵadvance();
335
- i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r18));
341
+ i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r19));
336
342
  } }
337
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
338
- i0.ɵɵelementStart(0, "span", 83);
343
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
344
+ i0.ɵɵelementStart(0, "span", 85);
339
345
  i0.ɵɵtext(1);
340
346
  i0.ɵɵelementEnd();
341
347
  } if (rf & 2) {
342
- const row_r18 = i0.ɵɵnextContext().$implicit;
348
+ const row_r19 = i0.ɵɵnextContext().$implicit;
343
349
  const ctx_r1 = i0.ɵɵnextContext(6);
344
350
  i0.ɵɵadvance();
345
- i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r18));
351
+ i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r19));
346
352
  } }
347
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Template(rf, ctx) { if (rf & 1) {
348
- const _r17 = i0.ɵɵgetCurrentView();
349
- i0.ɵɵelementStart(0, "tr", 81);
350
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Template_tr_click_0_listener() { const row_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OpenInstalment(row_r18)); });
353
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Template(rf, ctx) { if (rf & 1) {
354
+ const _r18 = i0.ɵɵgetCurrentView();
355
+ i0.ɵɵelementStart(0, "tr", 83);
356
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Template_tr_click_0_listener() { const row_r19 = i0.ɵɵrestoreView(_r18).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OpenInstalment(row_r19)); });
351
357
  i0.ɵɵelementStart(1, "td");
352
358
  i0.ɵɵtext(2);
353
359
  i0.ɵɵelementEnd();
354
360
  i0.ɵɵelementStart(3, "td");
355
361
  i0.ɵɵtext(4);
356
362
  i0.ɵɵelementEnd();
357
- i0.ɵɵelementStart(5, "td", 79);
363
+ i0.ɵɵelementStart(5, "td", 81);
358
364
  i0.ɵɵtext(6);
359
365
  i0.ɵɵelementEnd();
360
366
  i0.ɵɵelementStart(7, "td");
@@ -364,32 +370,32 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
364
370
  i0.ɵɵtext(10);
365
371
  i0.ɵɵelementEnd();
366
372
  i0.ɵɵelementStart(11, "td");
367
- i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_12_Template, 2, 1, "button", 82)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_13_Template, 2, 1, "span", 83);
373
+ i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_12_Template, 2, 1, "button", 84)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_13_Template, 2, 1, "span", 85);
368
374
  i0.ɵɵelementEnd()();
369
375
  } if (rf & 2) {
370
- const row_r18 = ctx.$implicit;
376
+ const row_r19 = ctx.$implicit;
371
377
  const ctx_r1 = i0.ɵɵnextContext(6);
372
378
  i0.ɵɵadvance(2);
373
- i0.ɵɵtextInterpolate(row_r18.InstallmentNumber);
379
+ i0.ɵɵtextInterpolate(row_r19.InstallmentNumber);
374
380
  i0.ɵɵadvance(2);
375
- i0.ɵɵtextInterpolate(ctx_r1.InstalmentDue(row_r18));
381
+ i0.ɵɵtextInterpolate(ctx_r1.InstalmentDue(row_r19));
376
382
  i0.ɵɵadvance(2);
377
- i0.ɵɵtextInterpolate(ctx_r1.InstalmentAmount(row_r18));
383
+ i0.ɵɵtextInterpolate(ctx_r1.InstalmentAmount(row_r19));
378
384
  i0.ɵɵadvance(2);
379
- i0.ɵɵtextInterpolate(row_r18.Status);
385
+ i0.ɵɵtextInterpolate(row_r19.Status);
380
386
  i0.ɵɵadvance(2);
381
- i0.ɵɵtextInterpolate(row_r18.DocumentNumber || "\u2014");
387
+ i0.ɵɵtextInterpolate(row_r19.DocumentNumber || "\u2014");
382
388
  i0.ɵɵadvance(2);
383
- i0.ɵɵconditional(row_r18.JournalEntryID ? 12 : 13);
389
+ i0.ɵɵconditional(row_r19.JournalEntryID ? 12 : 13);
384
390
  } }
385
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_Template(rf, ctx) { if (rf & 1) {
386
- i0.ɵɵelementStart(0, "table", 78)(1, "thead")(2, "tr")(3, "th");
391
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_Template(rf, ctx) { if (rf & 1) {
392
+ i0.ɵɵelementStart(0, "table", 80)(1, "thead")(2, "tr")(3, "th");
387
393
  i0.ɵɵtext(4, "Instalment");
388
394
  i0.ɵɵelementEnd();
389
395
  i0.ɵɵelementStart(5, "th");
390
396
  i0.ɵɵtext(6, "Due");
391
397
  i0.ɵɵelementEnd();
392
- i0.ɵɵelementStart(7, "th", 79);
398
+ i0.ɵɵelementStart(7, "th", 81);
393
399
  i0.ɵɵtext(8, "Amount");
394
400
  i0.ɵɵelementEnd();
395
401
  i0.ɵɵelementStart(9, "th");
@@ -402,18 +408,18 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
402
408
  i0.ɵɵtext(14, "AR raised");
403
409
  i0.ɵɵelementEnd()()();
404
410
  i0.ɵɵelementStart(15, "tbody");
405
- i0.ɵɵrepeaterCreate(16, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Template, 14, 6, "tr", 80, _forTrack0);
411
+ i0.ɵɵrepeaterCreate(16, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Template, 14, 6, "tr", 82, _forTrack0);
406
412
  i0.ɵɵelementEnd()();
407
413
  } if (rf & 2) {
408
414
  const ctx_r1 = i0.ɵɵnextContext(5);
409
415
  i0.ɵɵadvance(16);
410
416
  i0.ɵɵrepeater(ctx_r1.Instalments);
411
417
  } }
412
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Template(rf, ctx) { if (rf & 1) {
413
- i0.ɵɵelementStart(0, "h3", 77);
418
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Template(rf, ctx) { if (rf & 1) {
419
+ i0.ɵɵelementStart(0, "h3", 79);
414
420
  i0.ɵɵtext(1, "Payment schedule");
415
421
  i0.ɵɵelementEnd();
416
- i0.ɵɵconditionalCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_2_Template, 2, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_3_Template, 2, 0, "div", 28)(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_4_Template, 2, 1, "div", 28)(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_Template, 18, 0, "table", 78);
422
+ i0.ɵɵconditionalCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_2_Template, 2, 1, "div", 29)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_3_Template, 2, 0, "div", 29)(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_4_Template, 2, 1, "div", 29)(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_Template, 18, 0, "table", 80);
417
423
  } if (rf & 2) {
418
424
  const ctx_r1 = i0.ɵɵnextContext(4);
419
425
  i0.ɵɵadvance(2);
@@ -421,16 +427,25 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
421
427
  } }
422
428
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template(rf, ctx) { if (rf & 1) {
423
429
  const _r14 = i0.ɵɵgetCurrentView();
424
- i0.ɵɵelementStart(0, "div", 47)(1, "div", 69)(2, "mj-form-field", 70);
430
+ i0.ɵɵelementStart(0, "div", 48)(1, "div", 70)(2, "mj-form-field", 71);
425
431
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
426
432
  i0.ɵɵelementEnd();
427
- i0.ɵɵelementStart(3, "mj-form-field", 71);
433
+ i0.ɵɵelementStart(3, "mj-form-field", 72);
428
434
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
429
435
  i0.ɵɵelementEnd();
430
- i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_4_Template, 4, 2, "label", 72);
436
+ i0.ɵɵelementStart(4, "label", 73)(5, "span", 74);
437
+ i0.ɵɵtext(6, "Received on");
431
438
  i0.ɵɵelementEnd();
432
- i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_5_Template, 1, 7, "mj-explorer-entity-data-grid", 73)(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_6_Template, 2, 0, "div", 28);
433
- i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Template, 6, 1);
439
+ i0.ɵɵelementStart(7, "input", 75);
440
+ i0.ɵɵlistener("ngModelChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetInitialPaymentReceivedDay($event)); });
441
+ i0.ɵɵelementEnd();
442
+ i0.ɵɵelementStart(8, "span", 29);
443
+ i0.ɵɵtext(9);
444
+ i0.ɵɵelementEnd()();
445
+ i0.ɵɵconditionalCreate(10, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_10_Template, 4, 2, "label", 73);
446
+ i0.ɵɵelementEnd();
447
+ i0.ɵɵconditionalCreate(11, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template, 3, 8)(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_12_Template, 2, 0, "div", 29);
448
+ i0.ɵɵconditionalCreate(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Template, 6, 1);
434
449
  i0.ɵɵelementEnd();
435
450
  } if (rf & 2) {
436
451
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -438,38 +453,42 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
438
453
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
439
454
  i0.ɵɵadvance();
440
455
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
456
+ i0.ɵɵadvance(4);
457
+ i0.ɵɵproperty("ngModel", ctx_r1.InitialPaymentReceivedDay)("disabled", !ctx_r1.ComposeMode);
458
+ i0.ɵɵadvance(2);
459
+ i0.ɵɵtextInterpolate(ctx_r1.InitialPaymentReceivedHint);
441
460
  i0.ɵɵadvance();
442
- i0.ɵɵconditional(ctx_r1.PaymentRequiresReference ? 4 : -1);
461
+ i0.ɵɵconditional(ctx_r1.PaymentRequiresReference ? 10 : -1);
443
462
  i0.ɵɵadvance();
444
- i0.ɵɵconditional(ctx_r1.record.IsSaved && ctx_r1.PaymentParams ? 5 : 6);
463
+ i0.ɵɵconditional(ctx_r1.record.IsSaved && ctx_r1.PaymentParams ? 11 : 12);
445
464
  i0.ɵɵadvance(2);
446
- i0.ɵɵconditional(ctx_r1.record.IsSaved ? 7 : -1);
465
+ i0.ɵɵconditional(ctx_r1.record.IsSaved ? 13 : -1);
447
466
  } }
448
467
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template(rf, ctx) { if (rf & 1) {
449
- const _r20 = i0.ɵɵgetCurrentView();
450
- i0.ɵɵelementStart(0, "div", 47)(1, "div", 69)(2, "mj-form-field", 85);
451
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
468
+ const _r21 = i0.ɵɵgetCurrentView();
469
+ i0.ɵɵelementStart(0, "div", 48)(1, "div", 70)(2, "mj-form-field", 87);
470
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
452
471
  i0.ɵɵelementEnd();
453
- i0.ɵɵelementStart(3, "mj-form-field", 86);
454
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
472
+ i0.ɵɵelementStart(3, "mj-form-field", 88);
473
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
455
474
  i0.ɵɵelementEnd();
456
- i0.ɵɵelementStart(4, "mj-form-field", 87);
457
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
475
+ i0.ɵɵelementStart(4, "mj-form-field", 89);
476
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
458
477
  i0.ɵɵelementEnd();
459
- i0.ɵɵelementStart(5, "mj-form-field", 88);
460
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_5_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
478
+ i0.ɵɵelementStart(5, "mj-form-field", 90);
479
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_5_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
461
480
  i0.ɵɵelementEnd();
462
- i0.ɵɵelementStart(6, "mj-form-field", 89);
463
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
481
+ i0.ɵɵelementStart(6, "mj-form-field", 91);
482
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
464
483
  i0.ɵɵelementEnd();
465
- i0.ɵɵelementStart(7, "mj-form-field", 90);
466
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_7_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
484
+ i0.ɵɵelementStart(7, "mj-form-field", 92);
485
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_7_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
467
486
  i0.ɵɵelementEnd();
468
- i0.ɵɵelementStart(8, "mj-form-field", 91);
469
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
487
+ i0.ɵɵelementStart(8, "mj-form-field", 93);
488
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
470
489
  i0.ɵɵelementEnd();
471
- i0.ɵɵelementStart(9, "mj-form-field", 92);
472
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
490
+ i0.ɵɵelementStart(9, "mj-form-field", 94);
491
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
473
492
  i0.ɵɵelementEnd()()();
474
493
  } if (rf & 2) {
475
494
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -491,16 +510,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
491
510
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
492
511
  } }
493
512
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
494
- i0.ɵɵelementStart(0, "div", 28);
513
+ i0.ɵɵelementStart(0, "div", 29);
495
514
  i0.ɵɵtext(1, "Charges were booked with the order and cannot be edited.");
496
515
  i0.ɵɵelementEnd();
497
516
  } }
498
517
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template(rf, ctx) { if (rf & 1) {
499
- const _r21 = i0.ɵɵgetCurrentView();
500
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 76);
501
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
518
+ const _r22 = i0.ɵɵgetCurrentView();
519
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 77);
520
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
502
521
  i0.ɵɵelementEnd();
503
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Conditional_1_Template, 2, 0, "div", 28);
522
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Conditional_1_Template, 2, 0, "div", 29);
504
523
  } if (rf & 2) {
505
524
  const ctx_r1 = i0.ɵɵnextContext(4);
506
525
  i0.ɵɵproperty("Params", ctx_r1.ChargeParams)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", false)("ShowDeleteButton", false)("Height", "fit-content")("MaxHeight", ctx_r1.RelatedGridHeight);
@@ -508,7 +527,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
508
527
  i0.ɵɵconditional(ctx_r1.record.MoneyLocked ? 1 : -1);
509
528
  } }
510
529
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Template(rf, ctx) { if (rf & 1) {
511
- i0.ɵɵelementStart(0, "div", 47);
530
+ i0.ɵɵelementStart(0, "div", 48);
512
531
  i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template, 2, 8);
513
532
  i0.ɵɵelementEnd();
514
533
  } if (rf & 2) {
@@ -523,10 +542,10 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
523
542
  i0.ɵɵtext(0, " Every stored journal this order caused, unnetted \u2014 open a row to drill in ");
524
543
  } }
525
544
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template(rf, ctx) { if (rf & 1) {
526
- const _r23 = i0.ɵɵgetCurrentView();
527
- i0.ɵɵelementStart(0, "button", 101);
528
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OpenAccountingExport()); });
529
- i0.ɵɵelement(1, "i", 102);
545
+ const _r24 = i0.ɵɵgetCurrentView();
546
+ i0.ɵɵelementStart(0, "button", 103);
547
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OpenAccountingExport()); });
548
+ i0.ɵɵelement(1, "i", 104);
530
549
  i0.ɵɵtext(2, " Export ");
531
550
  i0.ɵɵelementEnd();
532
551
  } if (rf & 2) {
@@ -534,7 +553,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
534
553
  i0.ɵɵproperty("disabled", !ctx_r1.CanExportAccounting);
535
554
  } }
536
555
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_15_Template(rf, ctx) { if (rf & 1) {
537
- i0.ɵɵelementStart(0, "span", 97);
556
+ i0.ɵɵelementStart(0, "span", 99);
538
557
  i0.ɵɵtext(1);
539
558
  i0.ɵɵelementEnd();
540
559
  } if (rf & 2) {
@@ -543,9 +562,9 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
543
562
  i0.ɵɵtextInterpolate(ctx_r1.RollupJournalCount);
544
563
  } }
545
564
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template(rf, ctx) { if (rf & 1) {
546
- const _r25 = i0.ɵɵgetCurrentView();
547
- i0.ɵɵelementStart(0, "button", 108);
548
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged("")); });
565
+ const _r26 = i0.ɵɵgetCurrentView();
566
+ i0.ɵɵelementStart(0, "button", 110);
567
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged("")); });
549
568
  i0.ɵɵtext(1, " Lifetime ");
550
569
  i0.ɵɵelementEnd();
551
570
  } }
@@ -556,23 +575,23 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
556
575
  i0.ɵɵtext(0, " Subledger date on the entry itself ");
557
576
  } }
558
577
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template(rf, ctx) { if (rf & 1) {
559
- const _r24 = i0.ɵɵgetCurrentView();
560
- i0.ɵɵelementStart(0, "div", 99)(1, "label", 103)(2, "span");
578
+ const _r25 = i0.ɵɵgetCurrentView();
579
+ i0.ɵɵelementStart(0, "div", 101)(1, "label", 105)(2, "span");
561
580
  i0.ɵɵtext(3, "As of");
562
581
  i0.ɵɵelementEnd();
563
- i0.ɵɵelementStart(4, "input", 104);
564
- i0.ɵɵlistener("change", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged($event.target.value)); });
582
+ i0.ɵɵelementStart(4, "input", 106);
583
+ i0.ɵɵlistener("change", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged($event.target.value)); });
565
584
  i0.ɵɵelementEnd()();
566
- i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template, 2, 0, "button", 105);
567
- i0.ɵɵelementStart(6, "div", 106)(7, "button", 61);
568
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("effective")); });
585
+ i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template, 2, 0, "button", 107);
586
+ i0.ɵɵelementStart(6, "div", 108)(7, "button", 62);
587
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("effective")); });
569
588
  i0.ɵɵtext(8, " Effective date ");
570
589
  i0.ɵɵelementEnd();
571
- i0.ɵɵelementStart(9, "button", 61);
572
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("posting")); });
590
+ i0.ɵɵelementStart(9, "button", 62);
591
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("posting")); });
573
592
  i0.ɵɵtext(10, " Posting date ");
574
593
  i0.ɵɵelementEnd()();
575
- i0.ɵɵelementStart(11, "span", 107);
594
+ i0.ɵɵelementStart(11, "span", 109);
576
595
  i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_12_Template, 1, 0)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_13_Template, 1, 0);
577
596
  i0.ɵɵelementEnd()();
578
597
  } if (rf & 2) {
@@ -589,9 +608,9 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
589
608
  i0.ɵɵconditional(ctx_r1.AccountingBasis === "posting" ? 12 : 13);
590
609
  } }
591
610
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template(rf, ctx) { if (rf & 1) {
592
- const _r26 = i0.ɵɵgetCurrentView();
593
- i0.ɵɵelementStart(0, "div", 100)(1, "mj-deferred-revenue-waterfall", 109);
594
- i0.ɵɵlistener("JournalEntrySelected", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template_mj_deferred_revenue_waterfall_JournalEntrySelected_1_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnJournalEntrySelected($event)); });
611
+ const _r27 = i0.ɵɵgetCurrentView();
612
+ i0.ɵɵelementStart(0, "div", 102)(1, "mj-deferred-revenue-waterfall", 111);
613
+ i0.ɵɵlistener("JournalEntrySelected", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template_mj_deferred_revenue_waterfall_JournalEntrySelected_1_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnJournalEntrySelected($event)); });
595
614
  i0.ɵɵelementEnd()();
596
615
  } if (rf & 2) {
597
616
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -599,12 +618,12 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
599
618
  i0.ɵɵproperty("JournalEntries", ctx_r1.RevRecJournalEntries)("Title", "Order Rev-Rec & Deferred Revenue Schedule");
600
619
  } }
601
620
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_0_Template(rf, ctx) { if (rf & 1) {
602
- i0.ɵɵelementStart(0, "div", 28);
621
+ i0.ɵɵelementStart(0, "div", 29);
603
622
  i0.ɵɵtext(1, "Rolling up journals\u2026");
604
623
  i0.ɵɵelementEnd();
605
624
  } }
606
625
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_1_Template(rf, ctx) { if (rf & 1) {
607
- i0.ɵɵelementStart(0, "div", 28);
626
+ i0.ɵɵelementStart(0, "div", 29);
608
627
  i0.ɵɵtext(1);
609
628
  i0.ɵɵelementEnd();
610
629
  } if (rf & 2) {
@@ -622,7 +641,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
622
641
  i0.ɵɵtext(0, " No journals yet \u2014 they appear when the order is confirmed. ");
623
642
  } }
624
643
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Template(rf, ctx) { if (rf & 1) {
625
- i0.ɵɵelementStart(0, "div", 28);
644
+ i0.ɵɵelementStart(0, "div", 29);
626
645
  i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Conditional_1_Template, 1, 1)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Conditional_2_Template, 1, 0);
627
646
  i0.ɵɵelementEnd();
628
647
  } if (rf & 2) {
@@ -631,77 +650,77 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
631
650
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 1 : 2);
632
651
  } }
633
652
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
634
- i0.ɵɵelementStart(0, "span", 119);
653
+ i0.ɵɵelementStart(0, "span", 121);
635
654
  i0.ɵɵtext(1);
636
655
  i0.ɵɵelementEnd();
637
656
  } if (rf & 2) {
638
- const row_r27 = i0.ɵɵnextContext().$implicit;
657
+ const row_r28 = i0.ɵɵnextContext().$implicit;
639
658
  i0.ɵɵadvance();
640
- i0.ɵɵtextInterpolate(row_r27.AccountCode);
659
+ i0.ɵɵtextInterpolate(row_r28.AccountCode);
641
660
  } }
642
661
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_For_8_Template(rf, ctx) { if (rf & 1) {
643
- i0.ɵɵelementStart(0, "span", 83);
662
+ i0.ɵɵelementStart(0, "span", 85);
644
663
  i0.ɵɵtext(1);
645
664
  i0.ɵɵelementEnd();
646
665
  } if (rf & 2) {
647
- const dim_r28 = ctx.$implicit;
666
+ const dim_r29 = ctx.$implicit;
648
667
  i0.ɵɵadvance();
649
- i0.ɵɵtextInterpolate2("", dim_r28.Name, " \u00B7 ", dim_r28.Value);
668
+ i0.ɵɵtextInterpolate2("", dim_r29.Name, " \u00B7 ", dim_r29.Value);
650
669
  } }
651
670
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Template(rf, ctx) { if (rf & 1) {
652
- i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 118);
653
- i0.ɵɵconditionalCreate(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Conditional_3_Template, 2, 1, "span", 119);
654
- i0.ɵɵelementStart(4, "span", 120);
671
+ i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 120);
672
+ i0.ɵɵconditionalCreate(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Conditional_3_Template, 2, 1, "span", 121);
673
+ i0.ɵɵelementStart(4, "span", 122);
655
674
  i0.ɵɵtext(5);
656
675
  i0.ɵɵelementEnd()();
657
- i0.ɵɵelementStart(6, "div", 121);
658
- i0.ɵɵrepeaterCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_For_8_Template, 2, 2, "span", 83, _forTrack3);
659
- i0.ɵɵelementStart(9, "span", 122);
676
+ i0.ɵɵelementStart(6, "div", 123);
677
+ i0.ɵɵrepeaterCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_For_8_Template, 2, 2, "span", 85, _forTrack3);
678
+ i0.ɵɵelementStart(9, "span", 124);
660
679
  i0.ɵɵtext(10);
661
680
  i0.ɵɵelementEnd()()();
662
- i0.ɵɵelementStart(11, "td", 79);
681
+ i0.ɵɵelementStart(11, "td", 81);
663
682
  i0.ɵɵtext(12);
664
683
  i0.ɵɵelementEnd();
665
- i0.ɵɵelementStart(13, "td", 79);
684
+ i0.ɵɵelementStart(13, "td", 81);
666
685
  i0.ɵɵtext(14);
667
686
  i0.ɵɵelementEnd()();
668
687
  } if (rf & 2) {
669
- const row_r27 = ctx.$implicit;
688
+ const row_r28 = ctx.$implicit;
670
689
  const ctx_r1 = i0.ɵɵnextContext(7);
671
690
  i0.ɵɵadvance(3);
672
- i0.ɵɵconditional(row_r27.AccountCode ? 3 : -1);
691
+ i0.ɵɵconditional(row_r28.AccountCode ? 3 : -1);
673
692
  i0.ɵɵadvance(2);
674
- i0.ɵɵtextInterpolate(row_r27.AccountName);
693
+ i0.ɵɵtextInterpolate(row_r28.AccountName);
675
694
  i0.ɵɵadvance(2);
676
- i0.ɵɵrepeater(row_r27.Dimensions);
695
+ i0.ɵɵrepeater(row_r28.Dimensions);
677
696
  i0.ɵɵadvance(3);
678
- i0.ɵɵtextInterpolate(ctx_r1.SourceLineLabel(row_r27.SourceLineCount));
697
+ i0.ɵɵtextInterpolate(ctx_r1.SourceLineLabel(row_r28.SourceLineCount));
679
698
  i0.ɵɵadvance();
680
- i0.ɵɵclassProp("is-quiet", !row_r27.Debit);
699
+ i0.ɵɵclassProp("is-quiet", !row_r28.Debit);
681
700
  i0.ɵɵadvance();
682
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r27.Debit));
701
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r28.Debit));
683
702
  i0.ɵɵadvance();
684
- i0.ɵɵclassProp("is-quiet", !row_r27.Credit);
703
+ i0.ɵɵclassProp("is-quiet", !row_r28.Credit);
685
704
  i0.ɵɵadvance();
686
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r27.Credit));
705
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r28.Credit));
687
706
  } }
688
707
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_Template(rf, ctx) { if (rf & 1) {
689
- i0.ɵɵelementStart(0, "article", 111)(1, "header", 113)(2, "div")(3, "span", 114);
708
+ i0.ɵɵelementStart(0, "article", 113)(1, "header", 115)(2, "div")(3, "span", 116);
690
709
  i0.ɵɵtext(4);
691
710
  i0.ɵɵelementEnd();
692
- i0.ɵɵelementStart(5, "span", 115);
711
+ i0.ɵɵelementStart(5, "span", 117);
693
712
  i0.ɵɵtext(6);
694
713
  i0.ɵɵelementEnd()();
695
- i0.ɵɵelementStart(7, "span", 116);
714
+ i0.ɵɵelementStart(7, "span", 118);
696
715
  i0.ɵɵtext(8);
697
716
  i0.ɵɵelementEnd()();
698
- i0.ɵɵelementStart(9, "table", 117)(10, "thead")(11, "tr")(12, "th");
717
+ i0.ɵɵelementStart(9, "table", 119)(10, "thead")(11, "tr")(12, "th");
699
718
  i0.ɵɵtext(13, "Account");
700
719
  i0.ɵɵelementEnd();
701
- i0.ɵɵelementStart(14, "th", 79);
720
+ i0.ɵɵelementStart(14, "th", 81);
702
721
  i0.ɵɵtext(15, "Debit");
703
722
  i0.ɵɵelementEnd();
704
- i0.ɵɵelementStart(16, "th", 79);
723
+ i0.ɵɵelementStart(16, "th", 81);
705
724
  i0.ɵɵtext(17, "Credit");
706
725
  i0.ɵɵelementEnd()()();
707
726
  i0.ɵɵelementStart(18, "tbody");
@@ -710,42 +729,42 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
710
729
  i0.ɵɵelementStart(21, "tfoot")(22, "tr")(23, "th");
711
730
  i0.ɵɵtext(24, "Total");
712
731
  i0.ɵɵelementEnd();
713
- i0.ɵɵelementStart(25, "td", 79);
732
+ i0.ɵɵelementStart(25, "td", 81);
714
733
  i0.ɵɵtext(26);
715
734
  i0.ɵɵelementEnd();
716
- i0.ɵɵelementStart(27, "td", 79);
735
+ i0.ɵɵelementStart(27, "td", 81);
717
736
  i0.ɵɵtext(28);
718
737
  i0.ɵɵelementEnd()()()()();
719
738
  } if (rf & 2) {
720
- const card_r29 = ctx.$implicit;
739
+ const card_r30 = ctx.$implicit;
721
740
  const ctx_r1 = i0.ɵɵnextContext(6);
722
741
  i0.ɵɵadvance(4);
723
- i0.ɵɵtextInterpolate(card_r29.Company);
742
+ i0.ɵɵtextInterpolate(card_r30.Company);
724
743
  i0.ɵɵadvance(2);
725
- i0.ɵɵtextInterpolate2("", card_r29.Rows.length, " ", card_r29.Rows.length === 1 ? "line" : "lines");
744
+ i0.ɵɵtextInterpolate2("", card_r30.Rows.length, " ", card_r30.Rows.length === 1 ? "line" : "lines");
726
745
  i0.ɵɵadvance();
727
- i0.ɵɵclassProp("mjo-oh-chip--ok", ctx_r1.CardIsBalanced(card_r29));
746
+ i0.ɵɵclassProp("mjo-oh-chip--ok", ctx_r1.CardIsBalanced(card_r30));
728
747
  i0.ɵɵadvance();
729
- i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r29) ? "Balanced" : "Out of balance", " ");
748
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r30) ? "Balanced" : "Out of balance", " ");
730
749
  i0.ɵɵadvance(11);
731
- i0.ɵɵrepeater(card_r29.Rows);
750
+ i0.ɵɵrepeater(card_r30.Rows);
732
751
  i0.ɵɵadvance(7);
733
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r29.TotalDebit));
752
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r30.TotalDebit));
734
753
  i0.ɵɵadvance(2);
735
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r29.TotalCredit));
754
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r30.TotalCredit));
736
755
  } }
737
756
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_3_Template(rf, ctx) { if (rf & 1) {
738
- i0.ɵɵelementStart(0, "p", 112);
757
+ i0.ɵɵelementStart(0, "p", 114);
739
758
  i0.ɵɵtext(1);
740
759
  i0.ɵɵelementEnd();
741
760
  } if (rf & 2) {
742
- const note_r30 = ctx.$implicit;
761
+ const note_r31 = ctx.$implicit;
743
762
  i0.ɵɵadvance();
744
- i0.ɵɵtextInterpolate(note_r30);
763
+ i0.ɵɵtextInterpolate(note_r31);
745
764
  } }
746
765
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_Template(rf, ctx) { if (rf & 1) {
747
- i0.ɵɵrepeaterCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_Template, 29, 8, "article", 111, _forTrack1);
748
- i0.ɵɵrepeaterCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_3_Template, 2, 1, "p", 112, i0.ɵɵrepeaterTrackByIdentity);
766
+ i0.ɵɵrepeaterCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_Template, 29, 8, "article", 113, _forTrack1);
767
+ i0.ɵɵrepeaterCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_3_Template, 2, 1, "p", 114, i0.ɵɵrepeaterTrackByIdentity);
749
768
  } if (rf & 2) {
750
769
  const ctx_r1 = i0.ɵɵnextContext(5);
751
770
  i0.ɵɵrepeater(ctx_r1.RollupCards);
@@ -753,11 +772,11 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
753
772
  i0.ɵɵrepeater(ctx_r1.RollupSharedNotes);
754
773
  } }
755
774
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template(rf, ctx) { if (rf & 1) {
756
- const _r31 = i0.ɵɵgetCurrentView();
757
- i0.ɵɵelementStart(0, "p", 110);
775
+ const _r32 = i0.ɵɵgetCurrentView();
776
+ i0.ɵɵelementStart(0, "p", 112);
758
777
  i0.ɵɵtext(1);
759
- i0.ɵɵelementStart(2, "button", 84);
760
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r31); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
778
+ i0.ɵɵelementStart(2, "button", 86);
779
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
761
780
  i0.ɵɵtext(3, "see By line");
762
781
  i0.ɵɵelementEnd()();
763
782
  } if (rf & 2) {
@@ -766,8 +785,8 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
766
785
  i0.ɵɵtextInterpolate1(" ", ctx_r1.RollupExcludedLabel, " \u2014 ");
767
786
  } }
768
787
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Template(rf, ctx) { if (rf & 1) {
769
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_0_Template, 2, 0, "div", 28)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_1_Template, 2, 1, "div", 28)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Template, 3, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_Template, 4, 0);
770
- i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template, 4, 1, "p", 110);
788
+ i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_0_Template, 2, 0, "div", 29)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_1_Template, 2, 1, "div", 29)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Template, 3, 1, "div", 29)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_Template, 4, 0);
789
+ i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template, 4, 1, "p", 112);
771
790
  } if (rf & 2) {
772
791
  const ctx_r1 = i0.ɵɵnextContext(4);
773
792
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.RollupCards.length === 0 ? 2 : 3);
@@ -775,12 +794,12 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
775
794
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 4 : -1);
776
795
  } }
777
796
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_0_Template(rf, ctx) { if (rf & 1) {
778
- i0.ɵɵelementStart(0, "div", 28);
797
+ i0.ɵɵelementStart(0, "div", 29);
779
798
  i0.ɵɵtext(1, "Loading journals\u2026");
780
799
  i0.ɵɵelementEnd();
781
800
  } }
782
801
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_1_Template(rf, ctx) { if (rf & 1) {
783
- i0.ɵɵelementStart(0, "div", 28);
802
+ i0.ɵɵelementStart(0, "div", 29);
784
803
  i0.ɵɵtext(1);
785
804
  i0.ɵɵelementEnd();
786
805
  } if (rf & 2) {
@@ -798,7 +817,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
798
817
  i0.ɵɵtext(0, " No journals yet \u2014 they appear when the order is confirmed. ");
799
818
  } }
800
819
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_2_Template(rf, ctx) { if (rf & 1) {
801
- i0.ɵɵelementStart(0, "div", 28);
820
+ i0.ɵɵelementStart(0, "div", 29);
802
821
  i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_2_Conditional_1_Template, 1, 1)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_2_Conditional_2_Template, 1, 0);
803
822
  i0.ɵɵelementEnd();
804
823
  } if (rf & 2) {
@@ -807,26 +826,26 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
807
826
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 1 : 2);
808
827
  } }
809
828
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Conditional_7_Template(rf, ctx) { if (rf & 1) {
810
- i0.ɵɵelementStart(0, "span", 83);
829
+ i0.ɵɵelementStart(0, "span", 85);
811
830
  i0.ɵɵtext(1);
812
831
  i0.ɵɵelementEnd();
813
832
  } if (rf & 2) {
814
- const row_r33 = i0.ɵɵnextContext().$implicit;
833
+ const row_r34 = i0.ɵɵnextContext().$implicit;
815
834
  const ctx_r1 = i0.ɵɵnextContext(6);
816
835
  i0.ɵɵadvance();
817
- i0.ɵɵtextInterpolate(ctx_r1.SharedOrdersLabel(row_r33.SharedWithOtherOrders));
836
+ i0.ɵɵtextInterpolate(ctx_r1.SharedOrdersLabel(row_r34.SharedWithOtherOrders));
818
837
  } }
819
838
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template(rf, ctx) { if (rf & 1) {
820
- const _r32 = i0.ɵɵgetCurrentView();
821
- i0.ɵɵelementStart(0, "tr", 81);
822
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template_tr_click_0_listener() { const row_r33 = i0.ɵɵrestoreView(_r32).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnJournalRowSelected(row_r33.ID)); });
823
- i0.ɵɵelementStart(1, "td")(2, "div", 120);
839
+ const _r33 = i0.ɵɵgetCurrentView();
840
+ i0.ɵɵelementStart(0, "tr", 83);
841
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template_tr_click_0_listener() { const row_r34 = i0.ɵɵrestoreView(_r33).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnJournalRowSelected(row_r34.ID)); });
842
+ i0.ɵɵelementStart(1, "td")(2, "div", 122);
824
843
  i0.ɵɵtext(3);
825
844
  i0.ɵɵelementEnd();
826
- i0.ɵɵelementStart(4, "div", 121)(5, "span");
845
+ i0.ɵɵelementStart(4, "div", 123)(5, "span");
827
846
  i0.ɵɵtext(6);
828
847
  i0.ɵɵelementEnd();
829
- i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Conditional_7_Template, 2, 1, "span", 83);
848
+ i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Conditional_7_Template, 2, 1, "span", 85);
830
849
  i0.ɵɵelementEnd()();
831
850
  i0.ɵɵelementStart(8, "td");
832
851
  i0.ɵɵtext(9);
@@ -840,40 +859,40 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
840
859
  i0.ɵɵelementStart(14, "td");
841
860
  i0.ɵɵtext(15);
842
861
  i0.ɵɵelementEnd();
843
- i0.ɵɵelementStart(16, "td", 79);
862
+ i0.ɵɵelementStart(16, "td", 81);
844
863
  i0.ɵɵtext(17);
845
864
  i0.ɵɵelementEnd();
846
- i0.ɵɵelementStart(18, "td", 79);
865
+ i0.ɵɵelementStart(18, "td", 81);
847
866
  i0.ɵɵtext(19);
848
867
  i0.ɵɵelementEnd()();
849
868
  } if (rf & 2) {
850
- const row_r33 = ctx.$implicit;
869
+ const row_r34 = ctx.$implicit;
851
870
  const ctx_r1 = i0.ɵɵnextContext(6);
852
871
  i0.ɵɵadvance(3);
853
- i0.ɵɵtextInterpolate(row_r33.EntryNumber);
872
+ i0.ɵɵtextInterpolate(row_r34.EntryNumber);
854
873
  i0.ɵɵadvance(3);
855
- i0.ɵɵtextInterpolate(row_r33.Description);
874
+ i0.ɵɵtextInterpolate(row_r34.Description);
856
875
  i0.ɵɵadvance();
857
- i0.ɵɵconditional(row_r33.SharedWithOtherOrders ? 7 : -1);
876
+ i0.ɵɵconditional(row_r34.SharedWithOtherOrders ? 7 : -1);
858
877
  i0.ɵɵadvance(2);
859
- i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r33.EffectiveDate));
878
+ i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r34.EffectiveDate));
860
879
  i0.ɵɵadvance(2);
861
- i0.ɵɵtextInterpolate(row_r33.BatchNumber || "\u2014");
880
+ i0.ɵɵtextInterpolate(row_r34.BatchNumber || "\u2014");
862
881
  i0.ɵɵadvance(2);
863
- i0.ɵɵtextInterpolate(row_r33.BatchStatus || "Not batched");
882
+ i0.ɵɵtextInterpolate(row_r34.BatchStatus || "Not batched");
864
883
  i0.ɵɵadvance(2);
865
- i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r33.BatchPostingDate));
884
+ i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r34.BatchPostingDate));
866
885
  i0.ɵɵadvance();
867
- i0.ɵɵclassProp("is-quiet", !row_r33.Debit);
886
+ i0.ɵɵclassProp("is-quiet", !row_r34.Debit);
868
887
  i0.ɵɵadvance();
869
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r33.Debit));
888
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r34.Debit));
870
889
  i0.ɵɵadvance();
871
- i0.ɵɵclassProp("is-quiet", !row_r33.Credit);
890
+ i0.ɵɵclassProp("is-quiet", !row_r34.Credit);
872
891
  i0.ɵɵadvance();
873
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r33.Credit));
892
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r34.Credit));
874
893
  } }
875
894
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Conditional_20_Template(rf, ctx) { if (rf & 1) {
876
- i0.ɵɵelementStart(0, "p", 110);
895
+ i0.ɵɵelementStart(0, "p", 112);
877
896
  i0.ɵɵtext(1);
878
897
  i0.ɵɵelementEnd();
879
898
  } if (rf & 2) {
@@ -882,7 +901,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
882
901
  i0.ɵɵtextInterpolate1("", ctx_r1.RollupExcludedLabel, ", not listed above.");
883
902
  } }
884
903
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Template(rf, ctx) { if (rf & 1) {
885
- i0.ɵɵelementStart(0, "table", 78)(1, "thead")(2, "tr")(3, "th");
904
+ i0.ɵɵelementStart(0, "table", 80)(1, "thead")(2, "tr")(3, "th");
886
905
  i0.ɵɵtext(4, "Entry");
887
906
  i0.ɵɵelementEnd();
888
907
  i0.ɵɵelementStart(5, "th");
@@ -897,16 +916,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
897
916
  i0.ɵɵelementStart(11, "th");
898
917
  i0.ɵɵtext(12, "Posting date");
899
918
  i0.ɵɵelementEnd();
900
- i0.ɵɵelementStart(13, "th", 79);
919
+ i0.ɵɵelementStart(13, "th", 81);
901
920
  i0.ɵɵtext(14, "Debit");
902
921
  i0.ɵɵelementEnd();
903
- i0.ɵɵelementStart(15, "th", 79);
922
+ i0.ɵɵelementStart(15, "th", 81);
904
923
  i0.ɵɵtext(16, "Credit");
905
924
  i0.ɵɵelementEnd()()();
906
925
  i0.ɵɵelementStart(17, "tbody");
907
- i0.ɵɵrepeaterCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template, 20, 13, "tr", 80, _forTrack0);
926
+ i0.ɵɵrepeaterCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template, 20, 13, "tr", 82, _forTrack0);
908
927
  i0.ɵɵelementEnd()();
909
- i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Conditional_20_Template, 2, 1, "p", 110);
928
+ i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Conditional_20_Template, 2, 1, "p", 112);
910
929
  } if (rf & 2) {
911
930
  const ctx_r1 = i0.ɵɵnextContext(5);
912
931
  i0.ɵɵadvance(18);
@@ -915,37 +934,37 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
915
934
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 20 : -1);
916
935
  } }
917
936
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Template(rf, ctx) { if (rf & 1) {
918
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_0_Template, 2, 0, "div", 28)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_1_Template, 2, 1, "div", 28)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_2_Template, 3, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Template, 21, 1);
937
+ i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_0_Template, 2, 0, "div", 29)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_1_Template, 2, 1, "div", 29)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_2_Template, 3, 1, "div", 29)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Template, 21, 1);
919
938
  } if (rf & 2) {
920
939
  const ctx_r1 = i0.ɵɵnextContext(4);
921
940
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.JournalRows.length === 0 ? 2 : 3);
922
941
  } }
923
942
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template(rf, ctx) { if (rf & 1) {
924
- const _r22 = i0.ɵɵgetCurrentView();
925
- i0.ɵɵelementStart(0, "div", 47)(1, "div", 93)(2, "div")(3, "h2");
943
+ const _r23 = i0.ɵɵgetCurrentView();
944
+ i0.ɵɵelementStart(0, "div", 48)(1, "div", 95)(2, "div")(3, "h2");
926
945
  i0.ɵɵtext(4);
927
946
  i0.ɵɵelementEnd();
928
947
  i0.ɵɵelementStart(5, "p");
929
948
  i0.ɵɵconditionalCreate(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_6_Template, 1, 0)(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_7_Template, 1, 0);
930
949
  i0.ɵɵelementEnd()();
931
- i0.ɵɵelementStart(8, "div", 94);
932
- i0.ɵɵconditionalCreate(9, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template, 3, 1, "button", 95);
933
- i0.ɵɵelementStart(10, "div", 96)(11, "button", 61);
934
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
950
+ i0.ɵɵelementStart(8, "div", 96);
951
+ i0.ɵɵconditionalCreate(9, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template, 3, 1, "button", 97);
952
+ i0.ɵɵelementStart(10, "div", 98)(11, "button", 62);
953
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
935
954
  i0.ɵɵtext(12, "Rolled up");
936
955
  i0.ɵɵelementEnd();
937
- i0.ɵɵelementStart(13, "button", 61);
938
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_13_listener() { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
956
+ i0.ɵɵelementStart(13, "button", 62);
957
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_13_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
939
958
  i0.ɵɵtext(14, " By line ");
940
- i0.ɵɵconditionalCreate(15, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_15_Template, 2, 1, "span", 97);
959
+ i0.ɵɵconditionalCreate(15, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_15_Template, 2, 1, "span", 99);
941
960
  i0.ɵɵelementEnd();
942
- i0.ɵɵelementStart(16, "button", 61);
943
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("waterfall")); });
944
- i0.ɵɵelement(17, "i", 98);
961
+ i0.ɵɵelementStart(16, "button", 62);
962
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("waterfall")); });
963
+ i0.ɵɵelement(17, "i", 100);
945
964
  i0.ɵɵtext(18, " Rev-Rec Waterfall ");
946
965
  i0.ɵɵelementEnd()()()();
947
- i0.ɵɵconditionalCreate(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template, 14, 7, "div", 99);
948
- i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template, 2, 2, "div", 100)(21, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Template, 5, 2)(22, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Template, 4, 1);
966
+ i0.ɵɵconditionalCreate(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template, 14, 7, "div", 101);
967
+ i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template, 2, 2, "div", 102)(21, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Template, 5, 2)(22, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Template, 4, 1);
949
968
  i0.ɵɵelementEnd();
950
969
  } if (rf & 2) {
951
970
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -969,17 +988,17 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
969
988
  i0.ɵɵconditional(ctx_r1.AccountingView === "waterfall" ? 20 : ctx_r1.AccountingView === "summary" ? 21 : 22);
970
989
  } }
971
990
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template(rf, ctx) { if (rf & 1) {
972
- const _r34 = i0.ɵɵgetCurrentView();
973
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 124);
974
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
991
+ const _r35 = i0.ɵɵgetCurrentView();
992
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 126);
993
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r35); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
975
994
  i0.ɵɵelementEnd();
976
995
  } if (rf & 2) {
977
996
  const ctx_r1 = i0.ɵɵnextContext(4);
978
997
  i0.ɵɵproperty("Params", ctx_r1.SubscriptionParams)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", false)("Height", "fit-content")("MaxHeight", ctx_r1.RelatedGridHeight);
979
998
  } }
980
999
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Template(rf, ctx) { if (rf & 1) {
981
- i0.ɵɵelementStart(0, "div", 47);
982
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template, 1, 6, "mj-explorer-entity-data-grid", 123);
1000
+ i0.ɵɵelementStart(0, "div", 48);
1001
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template, 1, 6, "mj-explorer-entity-data-grid", 125);
983
1002
  i0.ɵɵelementEnd();
984
1003
  } if (rf & 2) {
985
1004
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -988,65 +1007,65 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
988
1007
  } }
989
1008
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template(rf, ctx) { if (rf & 1) {
990
1009
  const _r3 = i0.ɵɵgetCurrentView();
991
- i0.ɵɵelementStart(0, "div", 23)(1, "div", 24)(2, "mj-form-field", 25);
1010
+ i0.ɵɵelementStart(0, "div", 24)(1, "div", 25)(2, "mj-form-field", 26);
992
1011
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
993
1012
  i0.ɵɵelementEnd()();
994
- i0.ɵɵelementStart(3, "div", 24)(4, "bizapps-selling-company-field", 26);
1013
+ i0.ɵɵelementStart(3, "div", 25)(4, "bizapps-selling-company-field", 27);
995
1014
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_bizapps_selling_company_field_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
996
1015
  i0.ɵɵelementEnd()();
997
- i0.ɵɵelementStart(5, "div", 24)(6, "mj-form-field", 27);
1016
+ i0.ɵɵelementStart(5, "div", 25)(6, "mj-form-field", 28);
998
1017
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_mj_form_field_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
999
1018
  i0.ɵɵelementEnd()()();
1000
- i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_7_Template, 3, 0, "div", 28);
1001
- i0.ɵɵelementStart(8, "div", 29)(9, "div", 30)(10, "div", 31);
1019
+ i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_7_Template, 3, 0, "div", 29);
1020
+ i0.ɵɵelementStart(8, "div", 30)(9, "div", 31)(10, "div", 32);
1002
1021
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_div_click_10_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SelectParty("ship")); })("keydown.enter", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_div_keydown_enter_10_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SelectParty("ship")); })("keydown.space", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_div_keydown_space_10_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.SelectParty("ship"); return i0.ɵɵresetView($event.preventDefault()); });
1003
- i0.ɵɵelementStart(11, "span", 32);
1004
- i0.ɵɵelement(12, "i", 33);
1022
+ i0.ɵɵelementStart(11, "span", 33);
1023
+ i0.ɵɵelement(12, "i", 34);
1005
1024
  i0.ɵɵelementEnd();
1006
- i0.ɵɵelementStart(13, "span", 34)(14, "span", 35);
1025
+ i0.ɵɵelementStart(13, "span", 35)(14, "span", 36);
1007
1026
  i0.ɵɵtext(15, "Ship to");
1008
1027
  i0.ɵɵelementEnd();
1009
- i0.ɵɵconditionalCreate(16, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_16_Template, 2, 1, "span", 36)(17, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_17_Template, 2, 1, "button", 37);
1010
- i0.ɵɵelementStart(18, "span", 38);
1028
+ i0.ɵɵconditionalCreate(16, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_16_Template, 2, 1, "span", 37)(17, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_17_Template, 2, 1, "button", 38);
1029
+ i0.ɵɵelementStart(18, "span", 39);
1011
1030
  i0.ɵɵtext(19);
1012
1031
  i0.ɵɵelementEnd()();
1013
- i0.ɵɵelement(20, "i", 39);
1032
+ i0.ɵɵelement(20, "i", 40);
1014
1033
  i0.ɵɵelementEnd();
1015
- i0.ɵɵconditionalCreate(21, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template, 4, 12, "div", 40);
1034
+ i0.ɵɵconditionalCreate(21, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template, 4, 12, "div", 41);
1016
1035
  i0.ɵɵelementEnd();
1017
- i0.ɵɵelementStart(22, "div", 30)(23, "div", 31);
1036
+ i0.ɵɵelementStart(22, "div", 31)(23, "div", 32);
1018
1037
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_div_click_23_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SelectParty("bill")); })("keydown.enter", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_div_keydown_enter_23_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SelectParty("bill")); })("keydown.space", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_div_keydown_space_23_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.SelectParty("bill"); return i0.ɵɵresetView($event.preventDefault()); });
1019
- i0.ɵɵelementStart(24, "span", 32);
1020
- i0.ɵɵelement(25, "i", 7);
1038
+ i0.ɵɵelementStart(24, "span", 33);
1039
+ i0.ɵɵelement(25, "i", 8);
1021
1040
  i0.ɵɵelementEnd();
1022
- i0.ɵɵelementStart(26, "span", 34)(27, "span", 35);
1041
+ i0.ɵɵelementStart(26, "span", 35)(27, "span", 36);
1023
1042
  i0.ɵɵtext(28, "Bill to");
1024
1043
  i0.ɵɵelementEnd();
1025
- i0.ɵɵconditionalCreate(29, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_29_Template, 2, 1, "button", 37)(30, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_30_Template, 2, 1, "span", 36);
1026
- i0.ɵɵelementStart(31, "span", 38);
1044
+ i0.ɵɵconditionalCreate(29, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_29_Template, 2, 1, "button", 38)(30, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_30_Template, 2, 1, "span", 37);
1045
+ i0.ɵɵelementStart(31, "span", 39);
1027
1046
  i0.ɵɵtext(32);
1028
1047
  i0.ɵɵelementEnd()();
1029
- i0.ɵɵelement(33, "i", 39);
1048
+ i0.ɵɵelement(33, "i", 40);
1030
1049
  i0.ɵɵelementEnd();
1031
- i0.ɵɵconditionalCreate(34, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template, 5, 16, "div", 40);
1050
+ i0.ɵɵconditionalCreate(34, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template, 5, 16, "div", 41);
1032
1051
  i0.ɵɵelementEnd()();
1033
- i0.ɵɵconditionalCreate(35, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Template, 7, 1, "div", 41);
1034
- i0.ɵɵconditionalCreate(36, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_36_Template, 4, 1, "div", 42);
1035
- i0.ɵɵconditionalCreate(37, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template, 7, 0, "div", 43);
1036
- i0.ɵɵconditionalCreate(38, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_38_Template, 4, 1, "div", 44);
1037
- i0.ɵɵconditionalCreate(39, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template, 8, 1, "div", 42);
1038
- i0.ɵɵconditionalCreate(40, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template, 7, 0, "div", 45);
1039
- i0.ɵɵelementStart(41, "mj-tab-nav", 46);
1052
+ i0.ɵɵconditionalCreate(35, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Template, 7, 1, "div", 42);
1053
+ i0.ɵɵconditionalCreate(36, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_36_Template, 4, 1, "div", 43);
1054
+ i0.ɵɵconditionalCreate(37, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template, 7, 0, "div", 44);
1055
+ i0.ɵɵconditionalCreate(38, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_38_Template, 4, 1, "div", 45);
1056
+ i0.ɵɵconditionalCreate(39, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template, 8, 1, "div", 43);
1057
+ i0.ɵɵconditionalCreate(40, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template, 7, 0, "div", 46);
1058
+ i0.ɵɵelementStart(41, "mj-tab-nav", 47);
1040
1059
  i0.ɵɵlistener("TabChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_mj_tab_nav_TabChange_41_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SelectTab($event)); });
1041
1060
  i0.ɵɵelementEnd();
1042
- i0.ɵɵconditionalCreate(42, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template, 8, 11, "div", 47);
1043
- i0.ɵɵconditionalCreate(43, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template, 10, 32, "div", 47);
1044
- i0.ɵɵconditionalCreate(44, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Template, 2, 1, "div", 47);
1045
- i0.ɵɵconditionalCreate(45, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template, 23, 12, "div", 47);
1046
- i0.ɵɵelementStart(46, "mj-export-dialog", 48);
1061
+ i0.ɵɵconditionalCreate(42, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template, 14, 14, "div", 48);
1062
+ i0.ɵɵconditionalCreate(43, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template, 10, 32, "div", 48);
1063
+ i0.ɵɵconditionalCreate(44, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Template, 2, 1, "div", 48);
1064
+ i0.ɵɵconditionalCreate(45, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template, 23, 12, "div", 48);
1065
+ i0.ɵɵelementStart(46, "mj-export-dialog", 49);
1047
1066
  i0.ɵɵlistener("closed", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_mj_export_dialog_closed_46_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.CloseAccountingExport()); });
1048
1067
  i0.ɵɵelementEnd();
1049
- i0.ɵɵconditionalCreate(47, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Template, 2, 1, "div", 47);
1068
+ i0.ɵɵconditionalCreate(47, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Template, 2, 1, "div", 48);
1050
1069
  } if (rf & 2) {
1051
1070
  const ctx_r1 = i0.ɵɵnextContext(2);
1052
1071
  i0.ɵɵadvance(2);
@@ -1112,49 +1131,49 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template(r
1112
1131
  } }
1113
1132
  function BizAppsOrderHeaderFormComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1114
1133
  const _r1 = i0.ɵɵgetCurrentView();
1115
- i0.ɵɵelementStart(0, "mj-record-form-container", 1);
1134
+ i0.ɵɵelementStart(0, "mj-record-form-container", 2);
1116
1135
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_mj_record_form_container_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("DeleteRequested", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_mj_record_form_container_DeleteRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteRequested()); })("FavoriteToggled", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_mj_record_form_container_FavoriteToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFavoriteToggled()); })("HistoryRequested", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_mj_record_form_container_HistoryRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnHistoryRequested()); })("ListManagementRequested", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_mj_record_form_container_ListManagementRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementRequested()); });
1117
- i0.ɵɵelement(1, "mj-form-panel-slot", 2);
1118
- i0.ɵɵelementStart(2, "div", 3)(3, "div", 4)(4, "div", 5)(5, "div", 6);
1119
- i0.ɵɵelement(6, "i", 7);
1136
+ i0.ɵɵelement(1, "mj-form-panel-slot", 3);
1137
+ i0.ɵɵelementStart(2, "div", 4)(3, "div", 5)(4, "div", 6)(5, "div", 7);
1138
+ i0.ɵɵelement(6, "i", 8);
1120
1139
  i0.ɵɵelementEnd();
1121
- i0.ɵɵelementStart(7, "div")(8, "div", 8)(9, "h1", 9);
1140
+ i0.ɵɵelementStart(7, "div")(8, "div", 9)(9, "h1", 10);
1122
1141
  i0.ɵɵtext(10);
1123
1142
  i0.ɵɵelementEnd();
1124
- i0.ɵɵconditionalCreate(11, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_11_Template, 2, 3, "span", 10);
1143
+ i0.ɵɵconditionalCreate(11, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_11_Template, 2, 3, "span", 11);
1125
1144
  i0.ɵɵelementEnd();
1126
- i0.ɵɵelementStart(12, "div", 11);
1145
+ i0.ɵɵelementStart(12, "div", 12);
1127
1146
  i0.ɵɵtext(13);
1128
1147
  i0.ɵɵelementEnd()()();
1129
- i0.ɵɵelementStart(14, "div", 12)(15, "div", 13)(16, "div")(17, "span", 14);
1148
+ i0.ɵɵelementStart(14, "div", 13)(15, "div", 14)(16, "div")(17, "span", 15);
1130
1149
  i0.ɵɵtext(18);
1131
1150
  i0.ɵɵelementEnd();
1132
- i0.ɵɵelementStart(19, "span", 15);
1151
+ i0.ɵɵelementStart(19, "span", 16);
1133
1152
  i0.ɵɵtext(20);
1134
1153
  i0.ɵɵelementEnd()();
1135
- i0.ɵɵelementStart(21, "div")(22, "span", 14);
1154
+ i0.ɵɵelementStart(21, "div")(22, "span", 15);
1136
1155
  i0.ɵɵtext(23, "Paid");
1137
1156
  i0.ɵɵelementEnd();
1138
- i0.ɵɵelementStart(24, "span", 15);
1157
+ i0.ɵɵelementStart(24, "span", 16);
1139
1158
  i0.ɵɵtext(25);
1140
1159
  i0.ɵɵelementEnd()();
1141
- i0.ɵɵelementStart(26, "div")(27, "span", 14);
1160
+ i0.ɵɵelementStart(26, "div")(27, "span", 15);
1142
1161
  i0.ɵɵtext(28, "Balance");
1143
1162
  i0.ɵɵelementEnd();
1144
- i0.ɵɵelementStart(29, "span", 15);
1163
+ i0.ɵɵelementStart(29, "span", 16);
1145
1164
  i0.ɵɵtext(30);
1146
1165
  i0.ɵɵelementEnd()()();
1147
- i0.ɵɵelementStart(31, "button", 16);
1166
+ i0.ɵɵelementStart(31, "button", 17);
1148
1167
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_button_click_31_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ToggleHeader()); });
1149
- i0.ɵɵelement(32, "i", 17);
1168
+ i0.ɵɵelement(32, "i", 18);
1150
1169
  i0.ɵɵelementEnd()()();
1151
1170
  i0.ɵɵconditionalCreate(33, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template, 48, 60);
1152
1171
  i0.ɵɵelementEnd();
1153
- i0.ɵɵelement(34, "mj-form-panel-slot", 18);
1154
- i0.ɵɵelementStart(35, "mj-collapsible-panel", 19)(36, "mjo-order-lines-editor", 20);
1172
+ i0.ɵɵelement(34, "mj-form-panel-slot", 19);
1173
+ i0.ɵɵelementStart(35, "mj-collapsible-panel", 20)(36, "mjo-order-lines-editor", 21);
1155
1174
  i0.ɵɵlistener("PricingChanged", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_mjo_order_lines_editor_PricingChanged_36_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnPricingChanged($event)); })("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_mjo_order_lines_editor_Navigate_36_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1156
1175
  i0.ɵɵelementEnd()();
1157
- i0.ɵɵelement(37, "mj-form-panel-slot", 21)(38, "mj-form-panel-slot", 22);
1176
+ i0.ɵɵelement(37, "mj-form-panel-slot", 22)(38, "mj-form-panel-slot", 23);
1158
1177
  i0.ɵɵelementEnd();
1159
1178
  } if (rf & 2) {
1160
1179
  const ctx_r1 = i0.ɵɵnextContext();
@@ -1808,6 +1827,20 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1808
1827
  OpenProduct(id) {
1809
1828
  this.openRecord(MJO_ENTITIES.Product, id);
1810
1829
  }
1830
+ /** The initial payment's received day (`YYYY-MM-DD`), or '' when it takes the order's date. */
1831
+ get InitialPaymentReceivedDay() {
1832
+ return ToISODate(this.record?.InitialPaymentReceivedDate) ?? '';
1833
+ }
1834
+ SetInitialPaymentReceivedDay(value) {
1835
+ if (!this.record)
1836
+ return;
1837
+ this.record.InitialPaymentReceivedDate = AsDateValue(value);
1838
+ }
1839
+ get InitialPaymentReceivedHint() {
1840
+ return this.InitialPaymentReceivedDay
1841
+ ? 'The payment is dated this day.'
1842
+ : "Leave blank to date the payment on the order's date.";
1843
+ }
1811
1844
  get PaymentParams() {
1812
1845
  if (!this.record?.IsSaved || !this.record.ID)
1813
1846
  return null;
@@ -2042,11 +2075,11 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
2042
2075
  });
2043
2076
  }
2044
2077
  static ɵfac = /*@__PURE__*/ (() => { let ɵBizAppsOrderHeaderFormComponent_BaseFactory; return function BizAppsOrderHeaderFormComponent_Factory(__ngFactoryType__) { return (ɵBizAppsOrderHeaderFormComponent_BaseFactory || (ɵBizAppsOrderHeaderFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BizAppsOrderHeaderFormComponent)))(__ngFactoryType__ || BizAppsOrderHeaderFormComponent); }; })();
2045
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsOrderHeaderFormComponent, selectors: [["bizapps-order-header-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "Record", "FormComponent"], [3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-hero"], [1, "mjo-oh-hero__top"], [1, "mjo-oh-who"], [1, "mjo-oh-avatar"], [1, "fa-solid", "fa-file-invoice-dollar"], [1, "mjo-oh-title-row"], [1, "mjo-oh-title"], [3, "class"], [1, "mjo-oh-sub"], [1, "mjo-oh-hero__aside"], [1, "mjo-oh-money"], [1, "mjo-oh-kicker"], [1, "mjo-oh-amt"], ["type", "button", 1, "mjo-oh-hero__toggle", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-solid"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsOrdersOrderLines", "SectionName", "Lines", "Icon", "fa fa-list-ol", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "PricingChanged", "Navigate", "Order", "EditMode"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-facts"], [1, "mjo-oh-fact"], ["FieldName", "OrderType", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "CompanyID", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "OrderDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-hint"], [1, "mjo-oh-parties"], [1, "mjo-oh-bubble"], ["role", "button", "tabindex", "0", 1, "mjo-oh-bubble__hit", 3, "click", "keydown.enter", "keydown.space"], [1, "mjo-oh-bubble__ic"], [1, "fa-solid", "fa-truck-fast"], [1, "mjo-oh-bubble__copy"], [1, "mjo-oh-bubble__role"], [1, "mjo-oh-bubble__name"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name"], [1, "mjo-oh-bubble__detail"], [1, "fa-solid", "mjo-oh-bubble__chev"], [1, "mjo-oh-bubble__edit"], [1, "mjo-oh-todo"], ["role", "status", 1, "mjo-oh-todo"], [1, "mjo-oh-todo", "mjo-oh-todo--info"], ["role", "alert", 1, "mjo-oh-todo", "mjo-oh-todo--err"], ["role", "status", 1, "mjo-oh-todo", "mjo-oh-moved"], [1, "mjo-oh-tabs", 3, "TabChange", "Tabs", "ActiveKey"], [1, "mjo-oh-tabpane"], [3, "closed", "visible", "config"], ["aria-hidden", "true", 1, "fa-solid", "fa-lock"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name", 3, "click"], ["FieldName", "ShipToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ShipToPersonID", "Kind", "Person", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "ship", 3, "Order", "EditMode", "PersonName", "OrganizationName"], ["FieldName", "BillToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "BillToPersonID", "Kind", "Person", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PaymentTermsTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "bill", 3, "Order", "EditMode", "PersonName", "OrganizationName"], [1, "fa-solid", "fa-circle-exclamation"], [1, "mjo-oh-todo__hint"], ["type", "button"], ["type", "button", 3, "click"], [1, "fa-solid", "fa-circle-info"], [1, "mjo-oh-moved__list"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "fa-solid", "fa-building-circle-xmark"], ["type", "button", "aria-label", "Dismiss", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "fa-solid", "fa-calendar-xmark"], [1, "mjo-oh-fields"], ["FieldName", "InitialPaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "InitialPaymentAmount", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-ref"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], [1, "mjo-oh-ref__label"], ["placeholder", "Check number or confirmation ID", "autocomplete", "off", "aria-label", "Check or ACH reference", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], [1, "mjo-oh-subhead"], [1, "mjo-oh-je__table", "mjo-oh-je__table--detail"], [1, "is-num"], [1, "is-clickable"], [1, "is-clickable", 3, "click"], ["type", "button", 1, "mjo-oh-linkbtn"], [1, "mjo-oh-dim"], ["type", "button", 1, "mjo-oh-linkbtn", 3, "click"], ["FieldName", "RequestedDeliveryDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DueDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ExternalDocumentNumber", "Type", "textbox", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "FulfillmentStatus", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SalesRepUserID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Notes", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-acct__bar"], [1, "mjo-oh-acct__actions"], ["type", "button", "mjButton", "", "variant", "outline", "size", "sm", 3, "disabled"], ["role", "group", "aria-label", "Accounting view", 1, "mjo-oh-switch"], [1, "mjo-oh-switch__n"], [1, "fa-solid", "fa-chart-line"], [1, "mjo-oh-acct__controls"], [2, "padding", "12px 0"], ["type", "button", "mjButton", "", "variant", "outline", "size", "sm", 3, "click", "disabled"], [1, "fa-solid", "fa-file-export"], [1, "mjo-oh-asof"], ["type", "date", "aria-label", "Include entries dated on or before", 3, "change", "value"], ["type", "button", 1, "mjo-oh-asof__clear"], ["role", "group", "aria-label", "Date basis", 1, "mjo-oh-switch", "mjo-oh-switch--sm"], [1, "mjo-oh-acct__basis"], ["type", "button", 1, "mjo-oh-asof__clear", 3, "click"], [3, "JournalEntrySelected", "JournalEntries", "Title"], [1, "mjo-oh-acct__excluded"], [1, "mjo-oh-jecard"], [1, "mjo-oh-acct__note"], [1, "mjo-oh-jecard__head"], [1, "mjo-oh-jecard__co"], [1, "mjo-oh-jecard__sub"], [1, "mjo-oh-chip"], [1, "mjo-oh-je__table"], [1, "mjo-oh-acctline"], [1, "mjo-oh-acctline__code"], [1, "mjo-oh-acctline__name"], [1, "mjo-oh-acctline__meta"], [1, "mjo-oh-je__src"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"]], template: function BizAppsOrderHeaderFormComponent_Template(rf, ctx) { if (rf & 1) {
2046
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Template, 39, 45, "mj-record-form-container", 0);
2078
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsOrderHeaderFormComponent, selectors: [["bizapps-order-header-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["paymentGrid", ""], [3, "Record", "FormComponent"], [3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-hero"], [1, "mjo-oh-hero__top"], [1, "mjo-oh-who"], [1, "mjo-oh-avatar"], [1, "fa-solid", "fa-file-invoice-dollar"], [1, "mjo-oh-title-row"], [1, "mjo-oh-title"], [3, "class"], [1, "mjo-oh-sub"], [1, "mjo-oh-hero__aside"], [1, "mjo-oh-money"], [1, "mjo-oh-kicker"], [1, "mjo-oh-amt"], ["type", "button", 1, "mjo-oh-hero__toggle", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-solid"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsOrdersOrderLines", "SectionName", "Lines", "Icon", "fa fa-list-ol", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "PricingChanged", "Navigate", "Order", "EditMode"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-facts"], [1, "mjo-oh-fact"], ["FieldName", "OrderType", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "CompanyID", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "OrderDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-hint"], [1, "mjo-oh-parties"], [1, "mjo-oh-bubble"], ["role", "button", "tabindex", "0", 1, "mjo-oh-bubble__hit", 3, "click", "keydown.enter", "keydown.space"], [1, "mjo-oh-bubble__ic"], [1, "fa-solid", "fa-truck-fast"], [1, "mjo-oh-bubble__copy"], [1, "mjo-oh-bubble__role"], [1, "mjo-oh-bubble__name"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name"], [1, "mjo-oh-bubble__detail"], [1, "fa-solid", "mjo-oh-bubble__chev"], [1, "mjo-oh-bubble__edit"], [1, "mjo-oh-todo"], ["role", "status", 1, "mjo-oh-todo"], [1, "mjo-oh-todo", "mjo-oh-todo--info"], ["role", "alert", 1, "mjo-oh-todo", "mjo-oh-todo--err"], ["role", "status", 1, "mjo-oh-todo", "mjo-oh-moved"], [1, "mjo-oh-tabs", 3, "TabChange", "Tabs", "ActiveKey"], [1, "mjo-oh-tabpane"], [3, "closed", "visible", "config"], ["aria-hidden", "true", 1, "fa-solid", "fa-lock"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name", 3, "click"], ["FieldName", "ShipToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ShipToPersonID", "Kind", "Person", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "ship", 3, "Order", "EditMode", "PersonName", "OrganizationName"], ["FieldName", "BillToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "BillToPersonID", "Kind", "Person", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PaymentTermsTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "bill", 3, "Order", "EditMode", "PersonName", "OrganizationName"], [1, "fa-solid", "fa-circle-exclamation"], [1, "mjo-oh-todo__hint"], ["type", "button"], ["type", "button", 3, "click"], [1, "fa-solid", "fa-circle-info"], [1, "mjo-oh-moved__list"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "fa-solid", "fa-building-circle-xmark"], ["type", "button", "aria-label", "Dismiss", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "fa-solid", "fa-calendar-xmark"], [1, "mjo-oh-fields"], ["FieldName", "InitialPaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "InitialPaymentAmount", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-ref"], [1, "mjo-oh-ref__label"], ["type", "date", "aria-label", "Day the initial payment was received", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["placeholder", "Check number or confirmation ID", "autocomplete", "off", "aria-label", "Check or ACH reference", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], [3, "Changed", "OrderHeaderID"], [1, "mjo-oh-subhead"], [1, "mjo-oh-je__table", "mjo-oh-je__table--detail"], [1, "is-num"], [1, "is-clickable"], [1, "is-clickable", 3, "click"], ["type", "button", 1, "mjo-oh-linkbtn"], [1, "mjo-oh-dim"], ["type", "button", 1, "mjo-oh-linkbtn", 3, "click"], ["FieldName", "RequestedDeliveryDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DueDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ExternalDocumentNumber", "Type", "textbox", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "FulfillmentStatus", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SalesRepUserID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Notes", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-acct__bar"], [1, "mjo-oh-acct__actions"], ["type", "button", "mjButton", "", "variant", "outline", "size", "sm", 3, "disabled"], ["role", "group", "aria-label", "Accounting view", 1, "mjo-oh-switch"], [1, "mjo-oh-switch__n"], [1, "fa-solid", "fa-chart-line"], [1, "mjo-oh-acct__controls"], [2, "padding", "12px 0"], ["type", "button", "mjButton", "", "variant", "outline", "size", "sm", 3, "click", "disabled"], [1, "fa-solid", "fa-file-export"], [1, "mjo-oh-asof"], ["type", "date", "aria-label", "Include entries dated on or before", 3, "change", "value"], ["type", "button", 1, "mjo-oh-asof__clear"], ["role", "group", "aria-label", "Date basis", 1, "mjo-oh-switch", "mjo-oh-switch--sm"], [1, "mjo-oh-acct__basis"], ["type", "button", 1, "mjo-oh-asof__clear", 3, "click"], [3, "JournalEntrySelected", "JournalEntries", "Title"], [1, "mjo-oh-acct__excluded"], [1, "mjo-oh-jecard"], [1, "mjo-oh-acct__note"], [1, "mjo-oh-jecard__head"], [1, "mjo-oh-jecard__co"], [1, "mjo-oh-jecard__sub"], [1, "mjo-oh-chip"], [1, "mjo-oh-je__table"], [1, "mjo-oh-acctline"], [1, "mjo-oh-acctline__code"], [1, "mjo-oh-acctline__name"], [1, "mjo-oh-acctline__meta"], [1, "mjo-oh-je__src"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"]], template: function BizAppsOrderHeaderFormComponent_Template(rf, ctx) { if (rf & 1) {
2079
+ i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Template, 39, 45, "mj-record-form-container", 1);
2047
2080
  } if (rf & 2) {
2048
2081
  i0.ɵɵconditional(ctx.record ? 0 : -1);
2049
- } }, dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i2.MjFormFieldComponent, i2.MjCollapsiblePanelComponent, i2.MjRecordFormContainerComponent, i2.ExplorerEntityDataGridComponent, i2.FormPanelSlotComponent, i3.ExportDialogComponent, i4.MJButtonDirective, i4.MJTabNavComponent, i5.MJOOrderLinesEditorComponent, i6.MJOPartyAddressPickerComponent, i7.DeferredRevenueWaterfallComponent, i8.SellingCompanyFieldComponent, i8.PartyFieldComponent], styles: ["\n\n\n\n[_nghost-%COMP%] .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n max-height: none;\n}\n\n[_nghost-%COMP%] .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n}\n\n\n\n\n\n\n\n[_nghost-%COMP%] mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel {\n overflow: visible;\n}\n\n[_nghost-%COMP%] mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n overflow: visible;\n}\n\n[_nghost-%COMP%] mj-collapsible-panel:has(.mj-typeahead-list.is-open) {\n position: relative;\n z-index: 30;\n}\n\n.mjo-oh-hero[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] {\n padding: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-hero__top[_ngcontent-%COMP%] {\n align-items: center;\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-avatar[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n font-size: 14px;\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base);\n}\n\n.mjo-oh-hero__toggle[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n flex: 0 0 auto;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mjo-oh-hero__toggle[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-hero__top[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-hero__aside[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-confirm[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: var(--mj-space-1);\n min-width: 11rem;\n}\n\n.mjo-oh-confirm__hint[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n text-align: right;\n max-width: 14rem;\n line-height: 1.35;\n}\n\n.mjo-oh-who[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n min-width: 0;\n}\n\n.mjo-oh-avatar[_ngcontent-%COMP%] {\n width: 44px;\n height: 44px;\n border-radius: var(--mj-radius-md);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 18px;\n}\n\n.mjo-oh-title-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-primary);\n letter-spacing: -0.02em;\n}\n\n.mjo-oh-sub[_ngcontent-%COMP%] {\n margin-top: 2px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-kicker[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n padding: 2px 10px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-chip--ok[_ngcontent-%COMP%] {\n color: var(--mj-status-success-text);\n background: var(--mj-status-success-bg);\n border-color: var(--mj-status-success-border);\n}\n\n.mjo-oh-chip--void[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n background: var(--mj-status-error-bg);\n border-color: var(--mj-status-error-border);\n}\n\n.mjo-oh-money[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-5);\n padding: var(--mj-space-2) var(--mj-space-3);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-money[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-amt[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-facts[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n margin-top: var(--mj-space-4);\n padding: var(--mj-space-3);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n\n\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-oh-fields[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-parties[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--mj-space-3);\n align-items: start;\n margin: var(--mj-space-4) 0 var(--mj-space-3);\n}\n\n.mjo-oh-parties.is-bill[_ngcontent-%COMP%] {\n grid-template-columns: auto minmax(0, 1fr);\n}\n\n.mjo-oh-parties.is-none[_ngcontent-%COMP%] {\n grid-template-columns: 1fr 1fr;\n}\n\n.mjo-oh-bubble[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n min-width: 0;\n}\n\n.mjo-oh-bubble.is-open[_ngcontent-%COMP%] {\n border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] {\n width: 3.25rem;\n flex: 0 0 auto;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2);\n min-height: 5.5rem;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n align-items: center;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__role[_ngcontent-%COMP%] {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__name[_ngcontent-%COMP%], \n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__detail[_ngcontent-%COMP%], \n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__chev[_ngcontent-%COMP%] {\n display: none;\n}\n\n@media (max-width: 720px) {\n .mjo-oh-parties[_ngcontent-%COMP%], \n .mjo-oh-parties.is-bill[_ngcontent-%COMP%], \n .mjo-oh-parties.is-none[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] {\n width: auto;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n flex-direction: row;\n min-height: 0;\n padding: var(--mj-space-2) var(--mj-space-3);\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n align-items: flex-start;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__role[_ngcontent-%COMP%] {\n writing-mode: horizontal-tb;\n transform: none;\n }\n}\n\n.mjo-oh-bubble.is-needed[_ngcontent-%COMP%] {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: var(--mj-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__name.mjo-oh-link[_ngcontent-%COMP%] {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: inherit;\n font-weight: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__hit[_ngcontent-%COMP%]:hover { background: var(--mj-bg-surface-hover); }\n\n.mjo-oh-bubble__ic[_ngcontent-%COMP%] {\n width: var(--mj-space-8);\n height: var(--mj-space-8);\n border-radius: var(--mj-radius-sm);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-brand-primary);\n}\n\n.mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n min-width: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-bubble__role[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-bubble__name[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-bubble__detail[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-oh-bubble__chev[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-bubble__edit[_ngcontent-%COMP%] {\n padding: var(--mj-space-3);\n border-top: 1px solid var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-addr[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px dashed var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n\n.mjo-oh-addr__bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-addr__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-addr__btn[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n padding: 0;\n}\n\n.mjo-oh-addr__btn[_ngcontent-%COMP%]:disabled {\n color: var(--mj-text-disabled);\n cursor: default;\n}\n\n.mjo-oh-addr__row[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-link[_ngcontent-%COMP%] {\n color: var(--mj-text-link);\n text-decoration: none;\n}\n\n.mjo-oh-link[_ngcontent-%COMP%]:hover { text-decoration: underline; }\n\n.mjo-oh-todo[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-oh-todo[_ngcontent-%COMP%] button[_ngcontent-%COMP%], \n.mjo-oh-todo__hint[_ngcontent-%COMP%] {\n background: var(--mj-status-warning-bg);\n border: 1px solid var(--mj-status-warning-border);\n color: var(--mj-status-warning-text);\n border-radius: var(--mj-radius-full);\n padding: 2px 8px;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-todo[_ngcontent-%COMP%] button[_ngcontent-%COMP%] { cursor: pointer; }\n\n.mjo-oh-todo--err[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n}\n\n\n\n.mjo-oh-todo--info[_ngcontent-%COMP%] {\n color: var(--mj-status-info-text);\n}\n\n.mjo-oh-moved__list[_ngcontent-%COMP%] {\n flex-basis: 100%;\n margin: 0;\n padding-left: var(--mj-space-5);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-ref[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-ref__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-ref[_ngcontent-%COMP%] .mj-input[_ngcontent-%COMP%] {\n max-width: 22rem;\n}\n\n.mjo-oh-tabs[_ngcontent-%COMP%] {\n display: block;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-oh-tabpane[_ngcontent-%COMP%] { margin-top: var(--mj-space-3); }\n\n.mjo-oh-tabpane[_ngcontent-%COMP%] mj-explorer-entity-data-grid[_ngcontent-%COMP%] {\n display: block;\n}\n\n.mjo-oh-hint[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-2);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-subhead[_ngcontent-%COMP%] {\n margin: var(--mj-space-4) 0 var(--mj-space-2);\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 2px 0 0;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__actions[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] {\n display: inline-flex;\n padding: 2px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--mj-text-secondary);\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 5px 12px;\n border-radius: var(--mj-radius-full);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] button.is-on[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n box-shadow: 0 0 0 1px var(--mj-border-subtle);\n}\n\n.mjo-oh-switch__n[_ngcontent-%COMP%] {\n min-width: 1.25em;\n padding: 0 5px;\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-variant-numeric: tabular-nums;\n text-align: center;\n}\n\n\n\n.mjo-oh-acct__controls[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-asof[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-asof[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n font: inherit;\n font-weight: var(--mj-font-normal);\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-asof__clear[_ngcontent-%COMP%], \n.mjo-oh-linkbtn[_ngcontent-%COMP%] {\n appearance: none;\n border: 0;\n background: transparent;\n padding: 0;\n font: inherit;\n font-size: var(--mj-text-xs);\n color: var(--mj-brand-primary);\n cursor: pointer;\n text-decoration: underline;\n}\n\n.mjo-oh-switch--sm[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n padding: 4px 10px;\n}\n\n.mjo-oh-acct__basis[_ngcontent-%COMP%], \n.mjo-oh-acct__note[_ngcontent-%COMP%], \n.mjo-oh-acct__excluded[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__note[_ngcontent-%COMP%], \n.mjo-oh-acct__excluded[_ngcontent-%COMP%] {\n margin: var(--mj-space-2) 0 0;\n}\n\n.mjo-oh-je__table--detail[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.is-clickable[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.mjo-oh-je__table--detail[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.is-clickable[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-jecard[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n overflow: hidden;\n}\n\n.mjo-oh-jecard[_ngcontent-%COMP%] + .mjo-oh-jecard[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-jecard__head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-jecard__co[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-jecard__sub[_ngcontent-%COMP%] {\n margin-left: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], \n.mjo-oh-je__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: var(--mj-space-2) var(--mj-space-3);\n border-bottom: 1px solid var(--mj-border-subtle);\n text-align: left;\n vertical-align: top;\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n border-bottom: 0;\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] .is-num[_ngcontent-%COMP%] {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] .is-quiet[_ngcontent-%COMP%] {\n color: var(--mj-text-disabled);\n}\n\n.mjo-oh-acctline[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-acctline__code[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.02em;\n}\n\n.mjo-oh-acctline__name[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acctline__meta[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 4px;\n}\n\n.mjo-oh-dim[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n padding: 1px 8px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-je__src[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n@media (max-width: 760px) {\n .mjo-oh-parties[_ngcontent-%COMP%], \n .mjo-oh-facts[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n .mjo-oh-money[_ngcontent-%COMP%] { margin-left: 0; }\n}"] });
2082
+ } }, dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i2.MjFormFieldComponent, i2.MjCollapsiblePanelComponent, i2.MjRecordFormContainerComponent, i2.ExplorerEntityDataGridComponent, i2.FormPanelSlotComponent, i3.ExportDialogComponent, i4.MJButtonDirective, i4.MJTabNavComponent, i5.MJOOrderLinesEditorComponent, i6.MJOPartyAddressPickerComponent, i7.MJOOrderPaymentDatesComponent, i8.DeferredRevenueWaterfallComponent, i9.SellingCompanyFieldComponent, i9.PartyFieldComponent], styles: ["\n\n\n\n[_nghost-%COMP%] .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n max-height: none;\n}\n\n[_nghost-%COMP%] .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n}\n\n\n\n\n\n\n\n[_nghost-%COMP%] mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel {\n overflow: visible;\n}\n\n[_nghost-%COMP%] mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n overflow: visible;\n}\n\n[_nghost-%COMP%] mj-collapsible-panel:has(.mj-typeahead-list.is-open) {\n position: relative;\n z-index: 30;\n}\n\n.mjo-oh-hero[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] {\n padding: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-hero__top[_ngcontent-%COMP%] {\n align-items: center;\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-avatar[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n font-size: 14px;\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base);\n}\n\n.mjo-oh-hero__toggle[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n flex: 0 0 auto;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mjo-oh-hero__toggle[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-hero__top[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-hero__aside[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-confirm[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: var(--mj-space-1);\n min-width: 11rem;\n}\n\n.mjo-oh-confirm__hint[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n text-align: right;\n max-width: 14rem;\n line-height: 1.35;\n}\n\n.mjo-oh-who[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n min-width: 0;\n}\n\n.mjo-oh-avatar[_ngcontent-%COMP%] {\n width: 44px;\n height: 44px;\n border-radius: var(--mj-radius-md);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 18px;\n}\n\n.mjo-oh-title-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-primary);\n letter-spacing: -0.02em;\n}\n\n.mjo-oh-sub[_ngcontent-%COMP%] {\n margin-top: 2px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-kicker[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n padding: 2px 10px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-chip--ok[_ngcontent-%COMP%] {\n color: var(--mj-status-success-text);\n background: var(--mj-status-success-bg);\n border-color: var(--mj-status-success-border);\n}\n\n.mjo-oh-chip--void[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n background: var(--mj-status-error-bg);\n border-color: var(--mj-status-error-border);\n}\n\n.mjo-oh-money[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-5);\n padding: var(--mj-space-2) var(--mj-space-3);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-money[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-amt[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-facts[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n margin-top: var(--mj-space-4);\n padding: var(--mj-space-3);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n\n\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-oh-fields[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-parties[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--mj-space-3);\n align-items: start;\n margin: var(--mj-space-4) 0 var(--mj-space-3);\n}\n\n.mjo-oh-parties.is-bill[_ngcontent-%COMP%] {\n grid-template-columns: auto minmax(0, 1fr);\n}\n\n.mjo-oh-parties.is-none[_ngcontent-%COMP%] {\n grid-template-columns: 1fr 1fr;\n}\n\n.mjo-oh-bubble[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n min-width: 0;\n}\n\n.mjo-oh-bubble.is-open[_ngcontent-%COMP%] {\n border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] {\n width: 3.25rem;\n flex: 0 0 auto;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2);\n min-height: 5.5rem;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n align-items: center;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__role[_ngcontent-%COMP%] {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__name[_ngcontent-%COMP%], \n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__detail[_ngcontent-%COMP%], \n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__chev[_ngcontent-%COMP%] {\n display: none;\n}\n\n@media (max-width: 720px) {\n .mjo-oh-parties[_ngcontent-%COMP%], \n .mjo-oh-parties.is-bill[_ngcontent-%COMP%], \n .mjo-oh-parties.is-none[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] {\n width: auto;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n flex-direction: row;\n min-height: 0;\n padding: var(--mj-space-2) var(--mj-space-3);\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n align-items: flex-start;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__role[_ngcontent-%COMP%] {\n writing-mode: horizontal-tb;\n transform: none;\n }\n}\n\n.mjo-oh-bubble.is-needed[_ngcontent-%COMP%] {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: var(--mj-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__name.mjo-oh-link[_ngcontent-%COMP%] {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: inherit;\n font-weight: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__hit[_ngcontent-%COMP%]:hover { background: var(--mj-bg-surface-hover); }\n\n.mjo-oh-bubble__ic[_ngcontent-%COMP%] {\n width: var(--mj-space-8);\n height: var(--mj-space-8);\n border-radius: var(--mj-radius-sm);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-brand-primary);\n}\n\n.mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n min-width: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-bubble__role[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-bubble__name[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-bubble__detail[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-oh-bubble__chev[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-bubble__edit[_ngcontent-%COMP%] {\n padding: var(--mj-space-3);\n border-top: 1px solid var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-addr[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px dashed var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n\n.mjo-oh-addr__bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-addr__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-addr__btn[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n padding: 0;\n}\n\n.mjo-oh-addr__btn[_ngcontent-%COMP%]:disabled {\n color: var(--mj-text-disabled);\n cursor: default;\n}\n\n.mjo-oh-addr__row[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-link[_ngcontent-%COMP%] {\n color: var(--mj-text-link);\n text-decoration: none;\n}\n\n.mjo-oh-link[_ngcontent-%COMP%]:hover { text-decoration: underline; }\n\n.mjo-oh-todo[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-oh-todo[_ngcontent-%COMP%] button[_ngcontent-%COMP%], \n.mjo-oh-todo__hint[_ngcontent-%COMP%] {\n background: var(--mj-status-warning-bg);\n border: 1px solid var(--mj-status-warning-border);\n color: var(--mj-status-warning-text);\n border-radius: var(--mj-radius-full);\n padding: 2px 8px;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-todo[_ngcontent-%COMP%] button[_ngcontent-%COMP%] { cursor: pointer; }\n\n.mjo-oh-todo--err[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n}\n\n\n\n.mjo-oh-todo--info[_ngcontent-%COMP%] {\n color: var(--mj-status-info-text);\n}\n\n.mjo-oh-moved__list[_ngcontent-%COMP%] {\n flex-basis: 100%;\n margin: 0;\n padding-left: var(--mj-space-5);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-ref[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-ref__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-ref[_ngcontent-%COMP%] .mj-input[_ngcontent-%COMP%] {\n max-width: 22rem;\n}\n\n.mjo-oh-tabs[_ngcontent-%COMP%] {\n display: block;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-oh-tabpane[_ngcontent-%COMP%] { margin-top: var(--mj-space-3); }\n\n.mjo-oh-tabpane[_ngcontent-%COMP%] mj-explorer-entity-data-grid[_ngcontent-%COMP%] {\n display: block;\n}\n\n.mjo-oh-hint[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-2);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-subhead[_ngcontent-%COMP%] {\n margin: var(--mj-space-4) 0 var(--mj-space-2);\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 2px 0 0;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__actions[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] {\n display: inline-flex;\n padding: 2px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--mj-text-secondary);\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 5px 12px;\n border-radius: var(--mj-radius-full);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] button.is-on[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n box-shadow: 0 0 0 1px var(--mj-border-subtle);\n}\n\n.mjo-oh-switch__n[_ngcontent-%COMP%] {\n min-width: 1.25em;\n padding: 0 5px;\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-variant-numeric: tabular-nums;\n text-align: center;\n}\n\n\n\n.mjo-oh-acct__controls[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-asof[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-asof[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n font: inherit;\n font-weight: var(--mj-font-normal);\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-asof__clear[_ngcontent-%COMP%], \n.mjo-oh-linkbtn[_ngcontent-%COMP%] {\n appearance: none;\n border: 0;\n background: transparent;\n padding: 0;\n font: inherit;\n font-size: var(--mj-text-xs);\n color: var(--mj-brand-primary);\n cursor: pointer;\n text-decoration: underline;\n}\n\n.mjo-oh-switch--sm[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n padding: 4px 10px;\n}\n\n.mjo-oh-acct__basis[_ngcontent-%COMP%], \n.mjo-oh-acct__note[_ngcontent-%COMP%], \n.mjo-oh-acct__excluded[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__note[_ngcontent-%COMP%], \n.mjo-oh-acct__excluded[_ngcontent-%COMP%] {\n margin: var(--mj-space-2) 0 0;\n}\n\n.mjo-oh-je__table--detail[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.is-clickable[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.mjo-oh-je__table--detail[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.is-clickable[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-jecard[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n overflow: hidden;\n}\n\n.mjo-oh-jecard[_ngcontent-%COMP%] + .mjo-oh-jecard[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-jecard__head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-jecard__co[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-jecard__sub[_ngcontent-%COMP%] {\n margin-left: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], \n.mjo-oh-je__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: var(--mj-space-2) var(--mj-space-3);\n border-bottom: 1px solid var(--mj-border-subtle);\n text-align: left;\n vertical-align: top;\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n border-bottom: 0;\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] .is-num[_ngcontent-%COMP%] {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] .is-quiet[_ngcontent-%COMP%] {\n color: var(--mj-text-disabled);\n}\n\n.mjo-oh-acctline[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-acctline__code[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.02em;\n}\n\n.mjo-oh-acctline__name[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acctline__meta[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 4px;\n}\n\n.mjo-oh-dim[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n padding: 1px 8px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-je__src[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n@media (max-width: 760px) {\n .mjo-oh-parties[_ngcontent-%COMP%], \n .mjo-oh-facts[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n .mjo-oh-money[_ngcontent-%COMP%] { margin-left: 0; }\n}"] });
2050
2083
  };
2051
2084
  BizAppsOrderHeaderFormComponent = __decorate([
2052
2085
  RegisterClass(BaseFormComponent, 'MJ_BizApps_Orders: Order Headers', 2)
@@ -2054,9 +2087,9 @@ BizAppsOrderHeaderFormComponent = __decorate([
2054
2087
  export { BizAppsOrderHeaderFormComponent };
2055
2088
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsOrderHeaderFormComponent, [{
2056
2089
  type: Component,
2057
- args: [{ standalone: false, selector: 'bizapps-order-header-form', template: "@if (record) {\n<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <div class=\"mjo-oh-hero\" [class.is-collapsed]=\"!HeaderExpanded\">\n <div class=\"mjo-oh-hero__top\">\n <div class=\"mjo-oh-who\">\n <div class=\"mjo-oh-avatar\"><i class=\"fa-solid fa-file-invoice-dollar\"></i></div>\n <div>\n <div class=\"mjo-oh-title-row\">\n <h1 class=\"mjo-oh-title\">{{ HeaderTitle }}</h1>\n @if (ShowStatusChip) {\n <span [class]=\"StatusChipClass\">{{ record.Status }}</span>\n }\n </div>\n <div class=\"mjo-oh-sub\">{{ HeaderExpanded ? HeaderSubtitle : HeaderCollapsedMeta }}</div>\n </div>\n </div>\n <div class=\"mjo-oh-hero__aside\">\n <div class=\"mjo-oh-money\">\n <div>\n <span class=\"mjo-oh-kicker\">{{ TotalLabel }}</span>\n <span class=\"mjo-oh-amt\">{{ Money('total') }}</span>\n </div>\n <div>\n <span class=\"mjo-oh-kicker\">Paid</span>\n <span class=\"mjo-oh-amt\">{{ Money('paid') }}</span>\n </div>\n <div>\n <span class=\"mjo-oh-kicker\">Balance</span>\n <span class=\"mjo-oh-amt\">{{ Money('balance') }}</span>\n </div>\n </div>\n <button\n type=\"button\"\n class=\"mjo-oh-hero__toggle\"\n (click)=\"ToggleHeader()\"\n [attr.aria-expanded]=\"HeaderExpanded\"\n [attr.aria-label]=\"HeaderExpanded ? 'Collapse header' : 'Expand header'\"\n [title]=\"HeaderExpanded ? 'Collapse header' : 'Expand header'\">\n <i class=\"fa-solid\" [class.fa-chevron-up]=\"HeaderExpanded\" [class.fa-chevron-down]=\"!HeaderExpanded\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n\n @if (HeaderExpanded) {\n <div class=\"mjo-oh-facts\">\n <div class=\"mjo-oh-fact\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"OrderType\" Type=\"select\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n <div class=\"mjo-oh-fact\">\n <bizapps-selling-company-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"CompanyID\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-selling-company-field>\n </div>\n <div class=\"mjo-oh-fact\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"OrderDate\" Type=\"datepicker\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n @if (EditMode && record.MoneyLocked) {\n <div class=\"mjo-oh-hint\"><i class=\"fa-solid fa-lock\" aria-hidden=\"true\"></i> This order is booked, so its type, selling company, order date and bill-to are locked. Corrections go through a reversal order.</div>\n }\n\n <div class=\"mjo-oh-parties\" [class.is-ship]=\"ExpandedParty === 'ship'\" [class.is-bill]=\"ExpandedParty === 'bill'\" [class.is-none]=\"ExpandedParty === null\">\n <div class=\"mjo-oh-bubble\" [class.is-open]=\"ExpandedParty === 'ship'\" [class.is-rail]=\"ExpandedParty === 'bill'\">\n <div\n class=\"mjo-oh-bubble__hit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"ExpandedParty === 'ship'\"\n (click)=\"SelectParty('ship')\"\n (keydown.enter)=\"SelectParty('ship')\"\n (keydown.space)=\"SelectParty('ship'); $event.preventDefault()\">\n <span class=\"mjo-oh-bubble__ic\"><i class=\"fa-solid fa-truck-fast\"></i></span>\n <span class=\"mjo-oh-bubble__copy\">\n <span class=\"mjo-oh-bubble__role\">Ship to</span>\n @if (ShipToIsSame) {\n <span class=\"mjo-oh-bubble__name\">{{ ShipToName }}</span>\n } @else {\n <button type=\"button\" class=\"mjo-oh-link mjo-oh-bubble__name\" (click)=\"OpenShipTo($event)\">{{ ShipToName }}</button>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ ShipToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'ship'\" [class.fa-chevron-down]=\"ExpandedParty !== 'ship'\"></i>\n </div>\n @if (ExpandedParty === 'ship') {\n <div class=\"mjo-oh-bubble__edit\">\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ShipToOrganizationID\" Kind=\"Organization\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-party-field>\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ShipToPersonID\" Kind=\"Person\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('ShipTo', $event)\"></bizapps-party-field>\n <mjo-party-address-picker\n [Order]=\"record\"\n Side=\"ship\"\n [EditMode]=\"ComposeMode\"\n [PersonName]=\"record.ShipToPerson\"\n [OrganizationName]=\"record.ShipToOrganization\">\n </mjo-party-address-picker>\n </div>\n }\n </div>\n\n <div class=\"mjo-oh-bubble\" [class.is-open]=\"ExpandedParty === 'bill'\" [class.is-rail]=\"ExpandedParty === 'ship'\" [class.is-needed]=\"NeedsBillTo\">\n <div\n class=\"mjo-oh-bubble__hit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"ExpandedParty === 'bill'\"\n (click)=\"SelectParty('bill')\"\n (keydown.enter)=\"SelectParty('bill')\"\n (keydown.space)=\"SelectParty('bill'); $event.preventDefault()\">\n <span class=\"mjo-oh-bubble__ic\"><i class=\"fa-solid fa-file-invoice-dollar\"></i></span>\n <span class=\"mjo-oh-bubble__copy\">\n <span class=\"mjo-oh-bubble__role\">Bill to</span>\n @if (hasBillTo) {\n <button type=\"button\" class=\"mjo-oh-link mjo-oh-bubble__name\" (click)=\"OpenBillTo($event)\">{{ BillToName }}</button>\n } @else {\n <span class=\"mjo-oh-bubble__name\">{{ BillToName }}</span>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ BillToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'bill'\" [class.fa-chevron-down]=\"ExpandedParty !== 'bill'\"></i>\n </div>\n @if (ExpandedParty === 'bill') {\n <div class=\"mjo-oh-bubble__edit\">\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToOrganizationID\" Kind=\"Organization\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-party-field>\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToPersonID\" Kind=\"Person\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('BillTo', $event)\"></bizapps-party-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentTermsTypeID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mjo-party-address-picker\n [Order]=\"record\"\n Side=\"bill\"\n [EditMode]=\"ComposeMode\"\n [PersonName]=\"record.BillToPerson\"\n [OrganizationName]=\"record.BillToOrganization\">\n </mjo-party-address-picker>\n </div>\n }\n </div>\n </div>\n\n @if (ConfirmBlocked) {\n <div class=\"mjo-oh-todo\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <span>Before this can be confirmed</span>\n @if (ConfirmBlockedReason) {\n @if (NeedsBillTo) {\n <button type=\"button\" (click)=\"JumpToBill()\">Need a bill-to party</button>\n } @else if (NeedsPaymentReference) {\n <button type=\"button\" (click)=\"JumpToPayment()\">Need a check / ACH reference</button>\n } @else {\n <span class=\"mjo-oh-todo__hint\">{{ ConfirmBlockedReason }}</span>\n }\n }\n <!-- What the server's confirm gate would refuse on (golive #340), one item each. -->\n @for (problem of ConcessionBlockers; track $index) {\n <span class=\"mjo-oh-todo__hint\">{{ problem }}</span>\n }\n </div>\n }\n\n @if (ConcessionCheckError) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-circle-info\"></i>\n <span>{{ ConcessionCheckError }}</span>\n </div>\n }\n <!-- Subscription lengths other than the type's term (golive #338). They do not block confirm, so\n they sit under their own neutral heading rather than under \"Before this can be confirmed\". -->\n @if (TermLengthNotes.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-todo--info\">\n <i class=\"fa-solid fa-circle-info\"></i>\n <span>When this is confirmed</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (note of TermLengthNotes; track $index) {\n <li>{{ note }}</li>\n }\n </ul>\n </div>\n }\n\n @if (StatusError) {\n <div class=\"mjo-oh-todo mjo-oh-todo--err\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ StatusError }}</span>\n </div>\n }\n\n @if (ClearedEmployerNotice) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-building-circle-xmark\"></i>\n <span>{{ ClearedEmployerNotice.Message }}</span>\n <button type=\"button\" (click)=\"UndoClearedEmployers()\">Undo</button>\n <button type=\"button\" aria-label=\"Dismiss\" (click)=\"DismissClearedEmployers()\"><i class=\"fa-solid fa-xmark\"></i></button>\n </div>\n }\n\n @if (DisplacedStartNotices.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-moved\" role=\"status\">\n <i class=\"fa-solid fa-calendar-xmark\"></i>\n <span>Service dates changed at confirm</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (notice of DisplacedStartNotices; track $index) {\n <li>{{ notice }}</li>\n }\n </ul>\n </div>\n }\n\n <mj-tab-nav\n class=\"mjo-oh-tabs\"\n [Tabs]=\"ContextTabs\"\n [ActiveKey]=\"ActiveTab ?? ''\"\n (TabChange)=\"SelectTab($event)\">\n </mj-tab-nav>\n\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentTypeID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentAmount\" Type=\"number\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n @if (PaymentRequiresReference) {\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Check / ACH reference</span>\n <input\n class=\"mj-input\"\n [ngModel]=\"PaymentReference\"\n (ngModelChange)=\"SetPaymentReference($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"Check number or confirmation ID\"\n autocomplete=\"off\"\n aria-label=\"Check or ACH reference\">\n </label>\n }\n </div>\n @if (record.IsSaved && PaymentParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"PaymentParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n } @else {\n <div class=\"mjo-oh-hint\">Intent only \u2014 the payment is created when the order is confirmed.</div>\n }\n @if (record.IsSaved) {\n <h3 class=\"mjo-oh-subhead\">Payment schedule</h3>\n @if (InstalmentsError) {\n <div class=\"mjo-oh-hint\">{{ InstalmentsError }}</div>\n } @else if (Instalments === null) {\n <div class=\"mjo-oh-hint\">Loading payment schedule\u2026</div>\n } @else if (Instalments.length === 0) {\n <div class=\"mjo-oh-hint\">{{ NoScheduleNote }}</div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Instalment</th>\n <th>Due</th>\n <th class=\"is-num\">Amount</th>\n <th>Status</th>\n <th>Invoice</th>\n <th>AR raised</th>\n </tr>\n </thead>\n <tbody>\n @for (row of Instalments; track row.ID) {\n <tr class=\"is-clickable\" (click)=\"OpenInstalment(row)\">\n <td>{{ row.InstallmentNumber }}</td>\n <td>{{ InstalmentDue(row) }}</td>\n <td class=\"is-num\">{{ InstalmentAmount(row) }}</td>\n <td>{{ row.Status }}</td>\n <td>{{ row.DocumentNumber || '\u2014' }}</td>\n <td>\n @if (row.JournalEntryID) {\n <button type=\"button\" class=\"mjo-oh-linkbtn\" (click)=\"OpenInstalmentEntry($event, row)\">{{ InstalmentAR(row) }}</button>\n } @else {\n <span class=\"mjo-oh-dim\">{{ InstalmentAR(row) }}</span>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'details') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"RequestedDeliveryDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"DueDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ExternalDocumentNumber\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"FulfillmentStatus\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Status\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"SalesRepUserID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Description\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Notes\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n }\n\n @if (ActiveTab === 'charges' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (ChargeParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"ChargeParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n @if (record.MoneyLocked) {\n <div class=\"mjo-oh-hint\">Charges were booked with the order and cannot be edited.</div>\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'accounting' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-acct__bar\">\n <div>\n <h2>{{ AccountingView === 'summary' ? 'Order journal' : 'Journal entries' }}</h2>\n <p>\n @if (AccountingView === 'summary') {\n Gross debits and credits per account over this order's whole life \u2014 not a stored row\n } @else {\n Every stored journal this order caused, unnetted \u2014 open a row to drill in\n }\n </p>\n </div>\n <div class=\"mjo-oh-acct__actions\">\n @if (AccountingView !== 'waterfall') {\n <button type=\"button\" mjButton variant=\"outline\" size=\"sm\" [disabled]=\"!CanExportAccounting\" (click)=\"OpenAccountingExport()\">\n <i class=\"fa-solid fa-file-export\"></i> Export\n </button>\n }\n <div class=\"mjo-oh-switch\" role=\"group\" aria-label=\"Accounting view\">\n <button type=\"button\" [class.is-on]=\"AccountingView === 'summary'\" (click)=\"SetAccountingView('summary')\">Rolled up</button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'detail'\" (click)=\"SetAccountingView('detail')\">\n By line\n @if (RollupJournalCount) {\n <span class=\"mjo-oh-switch__n\">{{ RollupJournalCount }}</span>\n }\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'waterfall'\" (click)=\"SetAccountingView('waterfall')\">\n <i class=\"fa-solid fa-chart-line\"></i> Rev-Rec Waterfall\n </button>\n </div>\n </div>\n </div>\n\n <!-- One set of controls for both views, so they can never disagree about what is in. -->\n @if (AccountingView !== 'waterfall') {\n <div class=\"mjo-oh-acct__controls\">\n <label class=\"mjo-oh-asof\">\n <span>As of</span>\n <input\n type=\"date\"\n [value]=\"AccountingAsOf ?? ''\"\n (change)=\"OnAccountingAsOfChanged($any($event.target).value)\"\n aria-label=\"Include entries dated on or before\" />\n </label>\n @if (AccountingAsOf) {\n <button type=\"button\" class=\"mjo-oh-asof__clear\" (click)=\"OnAccountingAsOfChanged('')\">\n Lifetime\n </button>\n }\n <div class=\"mjo-oh-switch mjo-oh-switch--sm\" role=\"group\" aria-label=\"Date basis\">\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'effective'\" (click)=\"SetAccountingBasis('effective')\">\n Effective date\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'posting'\" (click)=\"SetAccountingBasis('posting')\">\n Posting date\n </button>\n </div>\n <span class=\"mjo-oh-acct__basis\">\n @if (AccountingBasis === 'posting') {\n GL date of the batch \u2014 Posted batches only\n } @else {\n Subledger date on the entry itself\n }\n </span>\n </div>\n }\n\n @if (AccountingView === 'waterfall') {\n <div style=\"padding: 12px 0;\">\n <mj-deferred-revenue-waterfall\n [JournalEntries]=\"RevRecJournalEntries\"\n [Title]=\"'Order Rev-Rec &amp; Deferred Revenue Schedule'\"\n (JournalEntrySelected)=\"OnJournalEntrySelected($event)\">\n </mj-deferred-revenue-waterfall>\n </div>\n } @else if (AccountingView === 'summary') {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Rolling up journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (RollupCards.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n @for (card of RollupCards; track card.CompanyID) {\n <article class=\"mjo-oh-jecard\">\n <header class=\"mjo-oh-jecard__head\">\n <div>\n <span class=\"mjo-oh-jecard__co\">{{ card.Company }}</span>\n <span class=\"mjo-oh-jecard__sub\">{{ card.Rows.length }} {{ card.Rows.length === 1 ? 'line' : 'lines' }}</span>\n </div>\n <span class=\"mjo-oh-chip\" [class.mjo-oh-chip--ok]=\"CardIsBalanced(card)\">\n {{ CardIsBalanced(card) ? 'Balanced' : 'Out of balance' }}\n </span>\n </header>\n <table class=\"mjo-oh-je__table\">\n <thead>\n <tr>\n <th>Account</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of card.Rows; track row.Key) {\n <tr>\n <td>\n <div class=\"mjo-oh-acctline\">\n @if (row.AccountCode) {\n <span class=\"mjo-oh-acctline__code\">{{ row.AccountCode }}</span>\n }\n <span class=\"mjo-oh-acctline__name\">{{ row.AccountName }}</span>\n </div>\n <div class=\"mjo-oh-acctline__meta\">\n @for (dim of row.Dimensions; track dim.Name + dim.Value) {\n <span class=\"mjo-oh-dim\">{{ dim.Name }} \u00B7 {{ dim.Value }}</span>\n }\n <span class=\"mjo-oh-je__src\">{{ SourceLineLabel(row.SourceLineCount) }}</span>\n </div>\n </td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n <tfoot>\n <tr>\n <th>Total</th>\n <td class=\"is-num\">{{ RollupAmount(card.TotalDebit) }}</td>\n <td class=\"is-num\">{{ RollupAmount(card.TotalCredit) }}</td>\n </tr>\n </tfoot>\n </table>\n </article>\n }\n @for (note of RollupSharedNotes; track note) {\n <p class=\"mjo-oh-acct__note\">{{ note }}</p>\n }\n }\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">\n {{ RollupExcludedLabel }} \u2014\n <button type=\"button\" class=\"mjo-oh-linkbtn\" (click)=\"SetAccountingView('detail')\">see By line</button>\n </p>\n }\n } @else {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Loading journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (JournalRows.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Entry</th>\n <th>Effective</th>\n <th>Batch</th>\n <th>Batch status</th>\n <th>Posting date</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of JournalRows; track row.ID) {\n <tr class=\"is-clickable\" (click)=\"OnJournalRowSelected(row.ID)\">\n <td>\n <div class=\"mjo-oh-acctline__name\">{{ row.EntryNumber }}</div>\n <div class=\"mjo-oh-acctline__meta\">\n <span>{{ row.Description }}</span>\n @if (row.SharedWithOtherOrders) {\n <span class=\"mjo-oh-dim\">{{ SharedOrdersLabel(row.SharedWithOtherOrders) }}</span>\n }\n </div>\n </td>\n <td>{{ JournalDate(row.EffectiveDate) }}</td>\n <td>{{ row.BatchNumber || '\u2014' }}</td>\n <td>{{ row.BatchStatus || 'Not batched' }}</td>\n <td>{{ JournalDate(row.BatchPostingDate) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n </table>\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">{{ RollupExcludedLabel }}, not listed above.</p>\n }\n }\n }\n </div>\n }\n\n <mj-export-dialog\n [visible]=\"AccountingExportVisible\"\n [config]=\"AccountingExportConfig\"\n (closed)=\"CloseAccountingExport()\">\n </mj-export-dialog>\n\n @if (ActiveTab === 'subs' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (SubscriptionParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"SubscriptionParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n }\n </div>\n }\n }\n </div>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersOrderLines\"\n SectionName=\"Lines\"\n Icon=\"fa fa-list-ol\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"LineBadge\"\n [DefaultExpanded]=\"true\">\n <mjo-order-lines-editor\n [Order]=\"record\"\n [EditMode]=\"ComposeMode\"\n (PricingChanged)=\"OnPricingChanged($event)\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mjo-order-lines-editor>\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-everything\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n</mj-record-form-container>\n}\n", styles: ["/* mj-form-field uses display:contents + a 200px|1fr internal grid.\n Wrap each field; never place the host as a CSS-grid item. */\n\n:host ::ng-deep .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n max-height: none;\n}\n\n:host ::ng-deep .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n}\n\n/* Product search results sit `position: absolute` under the add-product\n input at the bottom of Lines. The panel card and body both use\n overflow:hidden (rounded-corner clip + collapse animation), which\n shears the list off at the section edge. Collapse still forces\n overflow:hidden on the collapsed body. */\n:host ::ng-deep mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel {\n overflow: visible;\n}\n\n:host ::ng-deep mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n overflow: visible;\n}\n\n:host ::ng-deep mj-collapsible-panel:has(.mj-typeahead-list.is-open) {\n position: relative;\n z-index: 30;\n}\n\n.mjo-oh-hero {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed {\n padding: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-hero__top {\n align-items: center;\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-avatar {\n width: 32px;\n height: 32px;\n font-size: 14px;\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-title {\n font-size: var(--mj-text-base);\n}\n\n.mjo-oh-hero__toggle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n flex: 0 0 auto;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mjo-oh-hero__toggle:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-hero__top {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-hero__aside {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-confirm {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: var(--mj-space-1);\n min-width: 11rem;\n}\n\n.mjo-oh-confirm__hint {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n text-align: right;\n max-width: 14rem;\n line-height: 1.35;\n}\n\n.mjo-oh-who {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n min-width: 0;\n}\n\n.mjo-oh-avatar {\n width: 44px;\n height: 44px;\n border-radius: var(--mj-radius-md);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 18px;\n}\n\n.mjo-oh-title-row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-title {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-primary);\n letter-spacing: -0.02em;\n}\n\n.mjo-oh-sub {\n margin-top: 2px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-kicker {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-chip {\n display: inline-flex;\n align-items: center;\n padding: 2px 10px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-chip--ok {\n color: var(--mj-status-success-text);\n background: var(--mj-status-success-bg);\n border-color: var(--mj-status-success-border);\n}\n\n.mjo-oh-chip--void {\n color: var(--mj-status-error-text);\n background: var(--mj-status-error-bg);\n border-color: var(--mj-status-error-border);\n}\n\n.mjo-oh-money {\n display: flex;\n gap: var(--mj-space-5);\n padding: var(--mj-space-2) var(--mj-space-3);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-money > div {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-amt {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-facts {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n margin-top: var(--mj-space-4);\n padding: var(--mj-space-3);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-fact ::ng-deep .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-oh-fact ::ng-deep .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n/* The shared field hover adds negative margin + extra padding, which shoves\n the three header facts down. Keep the tint, drop the layout shift. */\n.mjo-oh-fact ::ng-deep .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-oh-fields {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-parties {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--mj-space-3);\n align-items: start;\n margin: var(--mj-space-4) 0 var(--mj-space-3);\n}\n\n.mjo-oh-parties.is-bill {\n grid-template-columns: auto minmax(0, 1fr);\n}\n\n.mjo-oh-parties.is-none {\n grid-template-columns: 1fr 1fr;\n}\n\n.mjo-oh-bubble {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n min-width: 0;\n}\n\n.mjo-oh-bubble.is-open {\n border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble.is-rail {\n width: 3.25rem;\n flex: 0 0 auto;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__hit {\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2);\n min-height: 5.5rem;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__copy {\n flex: 0 0 auto;\n align-items: center;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__role {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__name,\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__detail,\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__chev {\n display: none;\n}\n\n@media (max-width: 720px) {\n .mjo-oh-parties,\n .mjo-oh-parties.is-bill,\n .mjo-oh-parties.is-none {\n grid-template-columns: 1fr;\n }\n\n .mjo-oh-bubble.is-rail {\n width: auto;\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__hit {\n flex-direction: row;\n min-height: 0;\n padding: var(--mj-space-2) var(--mj-space-3);\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__copy {\n align-items: flex-start;\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__role {\n writing-mode: horizontal-tb;\n transform: none;\n }\n}\n\n.mjo-oh-bubble.is-needed {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble__hit {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: var(--mj-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__name.mjo-oh-link {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: inherit;\n font-weight: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__hit:hover { background: var(--mj-bg-surface-hover); }\n\n.mjo-oh-bubble__ic {\n width: var(--mj-space-8);\n height: var(--mj-space-8);\n border-radius: var(--mj-radius-sm);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-brand-primary);\n}\n\n.mjo-oh-bubble__copy {\n min-width: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-bubble__role {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-bubble__name {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-bubble__detail {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-oh-bubble__chev {\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-bubble__edit {\n padding: var(--mj-space-3);\n border-top: 1px solid var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-addr {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px dashed var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n\n.mjo-oh-addr__bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-addr__label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-addr__btn {\n border: 0;\n background: transparent;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n padding: 0;\n}\n\n.mjo-oh-addr__btn:disabled {\n color: var(--mj-text-disabled);\n cursor: default;\n}\n\n.mjo-oh-addr__row {\n display: grid;\n grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-link {\n color: var(--mj-text-link);\n text-decoration: none;\n}\n\n.mjo-oh-link:hover { text-decoration: underline; }\n\n.mjo-oh-todo {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-oh-todo button,\n.mjo-oh-todo__hint {\n background: var(--mj-status-warning-bg);\n border: 1px solid var(--mj-status-warning-border);\n color: var(--mj-status-warning-text);\n border-radius: var(--mj-radius-full);\n padding: 2px 8px;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-todo button { cursor: pointer; }\n\n.mjo-oh-todo--err {\n color: var(--mj-status-error-text);\n}\n\n/* Notes that do not block confirm: same layout, informational colour. */\n.mjo-oh-todo--info {\n color: var(--mj-status-info-text);\n}\n\n.mjo-oh-moved__list {\n flex-basis: 100%;\n margin: 0;\n padding-left: var(--mj-space-5);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-ref {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-ref__label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-ref .mj-input {\n max-width: 22rem;\n}\n\n.mjo-oh-tabs {\n display: block;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-oh-tabpane { margin-top: var(--mj-space-3); }\n\n.mjo-oh-tabpane mj-explorer-entity-data-grid {\n display: block;\n}\n\n.mjo-oh-hint {\n margin-top: var(--mj-space-2);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-subhead {\n margin: var(--mj-space-4) 0 var(--mj-space-2);\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-acct__bar h2 {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar p {\n margin: 2px 0 0;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__actions {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-switch {\n display: inline-flex;\n padding: 2px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-switch button {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--mj-text-secondary);\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 5px 12px;\n border-radius: var(--mj-radius-full);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-oh-switch button.is-on {\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n box-shadow: 0 0 0 1px var(--mj-border-subtle);\n}\n\n.mjo-oh-switch__n {\n min-width: 1.25em;\n padding: 0 5px;\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-variant-numeric: tabular-nums;\n text-align: center;\n}\n\n/* As-of + basis controls: one row above whichever of the two views is showing. */\n.mjo-oh-acct__controls {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-asof {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-asof input {\n font: inherit;\n font-weight: var(--mj-font-normal);\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-asof__clear,\n.mjo-oh-linkbtn {\n appearance: none;\n border: 0;\n background: transparent;\n padding: 0;\n font: inherit;\n font-size: var(--mj-text-xs);\n color: var(--mj-brand-primary);\n cursor: pointer;\n text-decoration: underline;\n}\n\n.mjo-oh-switch--sm button {\n padding: 4px 10px;\n}\n\n.mjo-oh-acct__basis,\n.mjo-oh-acct__note,\n.mjo-oh-acct__excluded {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__note,\n.mjo-oh-acct__excluded {\n margin: var(--mj-space-2) 0 0;\n}\n\n.mjo-oh-je__table--detail tbody tr.is-clickable {\n cursor: pointer;\n}\n\n.mjo-oh-je__table--detail tbody tr.is-clickable:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-jecard {\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n overflow: hidden;\n}\n\n.mjo-oh-jecard + .mjo-oh-jecard {\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-jecard__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-jecard__co {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-jecard__sub {\n margin-left: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-oh-je__table th,\n.mjo-oh-je__table td {\n padding: var(--mj-space-2) var(--mj-space-3);\n border-bottom: 1px solid var(--mj-border-subtle);\n text-align: left;\n vertical-align: top;\n}\n\n.mjo-oh-je__table thead th {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table tfoot th {\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n border-bottom: 0;\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-je__table .is-num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-oh-je__table .is-quiet {\n color: var(--mj-text-disabled);\n}\n\n.mjo-oh-acctline {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-acctline__code {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.02em;\n}\n\n.mjo-oh-acctline__name {\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acctline__meta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 4px;\n}\n\n.mjo-oh-dim {\n display: inline-flex;\n align-items: center;\n padding: 1px 8px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-je__src {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n@media (max-width: 760px) {\n .mjo-oh-parties,\n .mjo-oh-facts {\n grid-template-columns: 1fr;\n }\n .mjo-oh-money { margin-left: 0; }\n}\n"] }]
2090
+ args: [{ standalone: false, selector: 'bizapps-order-header-form', template: "@if (record) {\n<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <div class=\"mjo-oh-hero\" [class.is-collapsed]=\"!HeaderExpanded\">\n <div class=\"mjo-oh-hero__top\">\n <div class=\"mjo-oh-who\">\n <div class=\"mjo-oh-avatar\"><i class=\"fa-solid fa-file-invoice-dollar\"></i></div>\n <div>\n <div class=\"mjo-oh-title-row\">\n <h1 class=\"mjo-oh-title\">{{ HeaderTitle }}</h1>\n @if (ShowStatusChip) {\n <span [class]=\"StatusChipClass\">{{ record.Status }}</span>\n }\n </div>\n <div class=\"mjo-oh-sub\">{{ HeaderExpanded ? HeaderSubtitle : HeaderCollapsedMeta }}</div>\n </div>\n </div>\n <div class=\"mjo-oh-hero__aside\">\n <div class=\"mjo-oh-money\">\n <div>\n <span class=\"mjo-oh-kicker\">{{ TotalLabel }}</span>\n <span class=\"mjo-oh-amt\">{{ Money('total') }}</span>\n </div>\n <div>\n <span class=\"mjo-oh-kicker\">Paid</span>\n <span class=\"mjo-oh-amt\">{{ Money('paid') }}</span>\n </div>\n <div>\n <span class=\"mjo-oh-kicker\">Balance</span>\n <span class=\"mjo-oh-amt\">{{ Money('balance') }}</span>\n </div>\n </div>\n <button\n type=\"button\"\n class=\"mjo-oh-hero__toggle\"\n (click)=\"ToggleHeader()\"\n [attr.aria-expanded]=\"HeaderExpanded\"\n [attr.aria-label]=\"HeaderExpanded ? 'Collapse header' : 'Expand header'\"\n [title]=\"HeaderExpanded ? 'Collapse header' : 'Expand header'\">\n <i class=\"fa-solid\" [class.fa-chevron-up]=\"HeaderExpanded\" [class.fa-chevron-down]=\"!HeaderExpanded\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n\n @if (HeaderExpanded) {\n <div class=\"mjo-oh-facts\">\n <div class=\"mjo-oh-fact\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"OrderType\" Type=\"select\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n <div class=\"mjo-oh-fact\">\n <bizapps-selling-company-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"CompanyID\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-selling-company-field>\n </div>\n <div class=\"mjo-oh-fact\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"OrderDate\" Type=\"datepicker\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n @if (EditMode && record.MoneyLocked) {\n <div class=\"mjo-oh-hint\"><i class=\"fa-solid fa-lock\" aria-hidden=\"true\"></i> This order is booked, so its type, selling company, order date and bill-to are locked. Corrections go through a reversal order.</div>\n }\n\n <div class=\"mjo-oh-parties\" [class.is-ship]=\"ExpandedParty === 'ship'\" [class.is-bill]=\"ExpandedParty === 'bill'\" [class.is-none]=\"ExpandedParty === null\">\n <div class=\"mjo-oh-bubble\" [class.is-open]=\"ExpandedParty === 'ship'\" [class.is-rail]=\"ExpandedParty === 'bill'\">\n <div\n class=\"mjo-oh-bubble__hit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"ExpandedParty === 'ship'\"\n (click)=\"SelectParty('ship')\"\n (keydown.enter)=\"SelectParty('ship')\"\n (keydown.space)=\"SelectParty('ship'); $event.preventDefault()\">\n <span class=\"mjo-oh-bubble__ic\"><i class=\"fa-solid fa-truck-fast\"></i></span>\n <span class=\"mjo-oh-bubble__copy\">\n <span class=\"mjo-oh-bubble__role\">Ship to</span>\n @if (ShipToIsSame) {\n <span class=\"mjo-oh-bubble__name\">{{ ShipToName }}</span>\n } @else {\n <button type=\"button\" class=\"mjo-oh-link mjo-oh-bubble__name\" (click)=\"OpenShipTo($event)\">{{ ShipToName }}</button>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ ShipToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'ship'\" [class.fa-chevron-down]=\"ExpandedParty !== 'ship'\"></i>\n </div>\n @if (ExpandedParty === 'ship') {\n <div class=\"mjo-oh-bubble__edit\">\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ShipToOrganizationID\" Kind=\"Organization\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-party-field>\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ShipToPersonID\" Kind=\"Person\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('ShipTo', $event)\"></bizapps-party-field>\n <mjo-party-address-picker\n [Order]=\"record\"\n Side=\"ship\"\n [EditMode]=\"ComposeMode\"\n [PersonName]=\"record.ShipToPerson\"\n [OrganizationName]=\"record.ShipToOrganization\">\n </mjo-party-address-picker>\n </div>\n }\n </div>\n\n <div class=\"mjo-oh-bubble\" [class.is-open]=\"ExpandedParty === 'bill'\" [class.is-rail]=\"ExpandedParty === 'ship'\" [class.is-needed]=\"NeedsBillTo\">\n <div\n class=\"mjo-oh-bubble__hit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"ExpandedParty === 'bill'\"\n (click)=\"SelectParty('bill')\"\n (keydown.enter)=\"SelectParty('bill')\"\n (keydown.space)=\"SelectParty('bill'); $event.preventDefault()\">\n <span class=\"mjo-oh-bubble__ic\"><i class=\"fa-solid fa-file-invoice-dollar\"></i></span>\n <span class=\"mjo-oh-bubble__copy\">\n <span class=\"mjo-oh-bubble__role\">Bill to</span>\n @if (hasBillTo) {\n <button type=\"button\" class=\"mjo-oh-link mjo-oh-bubble__name\" (click)=\"OpenBillTo($event)\">{{ BillToName }}</button>\n } @else {\n <span class=\"mjo-oh-bubble__name\">{{ BillToName }}</span>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ BillToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'bill'\" [class.fa-chevron-down]=\"ExpandedParty !== 'bill'\"></i>\n </div>\n @if (ExpandedParty === 'bill') {\n <div class=\"mjo-oh-bubble__edit\">\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToOrganizationID\" Kind=\"Organization\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-party-field>\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToPersonID\" Kind=\"Person\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('BillTo', $event)\"></bizapps-party-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentTermsTypeID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mjo-party-address-picker\n [Order]=\"record\"\n Side=\"bill\"\n [EditMode]=\"ComposeMode\"\n [PersonName]=\"record.BillToPerson\"\n [OrganizationName]=\"record.BillToOrganization\">\n </mjo-party-address-picker>\n </div>\n }\n </div>\n </div>\n\n @if (ConfirmBlocked) {\n <div class=\"mjo-oh-todo\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <span>Before this can be confirmed</span>\n @if (ConfirmBlockedReason) {\n @if (NeedsBillTo) {\n <button type=\"button\" (click)=\"JumpToBill()\">Need a bill-to party</button>\n } @else if (NeedsPaymentReference) {\n <button type=\"button\" (click)=\"JumpToPayment()\">Need a check / ACH reference</button>\n } @else {\n <span class=\"mjo-oh-todo__hint\">{{ ConfirmBlockedReason }}</span>\n }\n }\n <!-- What the server's confirm gate would refuse on (golive #340), one item each. -->\n @for (problem of ConcessionBlockers; track $index) {\n <span class=\"mjo-oh-todo__hint\">{{ problem }}</span>\n }\n </div>\n }\n\n @if (ConcessionCheckError) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-circle-info\"></i>\n <span>{{ ConcessionCheckError }}</span>\n </div>\n }\n <!-- Subscription lengths other than the type's term (golive #338). They do not block confirm, so\n they sit under their own neutral heading rather than under \"Before this can be confirmed\". -->\n @if (TermLengthNotes.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-todo--info\">\n <i class=\"fa-solid fa-circle-info\"></i>\n <span>When this is confirmed</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (note of TermLengthNotes; track $index) {\n <li>{{ note }}</li>\n }\n </ul>\n </div>\n }\n\n @if (StatusError) {\n <div class=\"mjo-oh-todo mjo-oh-todo--err\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ StatusError }}</span>\n </div>\n }\n\n @if (ClearedEmployerNotice) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-building-circle-xmark\"></i>\n <span>{{ ClearedEmployerNotice.Message }}</span>\n <button type=\"button\" (click)=\"UndoClearedEmployers()\">Undo</button>\n <button type=\"button\" aria-label=\"Dismiss\" (click)=\"DismissClearedEmployers()\"><i class=\"fa-solid fa-xmark\"></i></button>\n </div>\n }\n\n @if (DisplacedStartNotices.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-moved\" role=\"status\">\n <i class=\"fa-solid fa-calendar-xmark\"></i>\n <span>Service dates changed at confirm</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (notice of DisplacedStartNotices; track $index) {\n <li>{{ notice }}</li>\n }\n </ul>\n </div>\n }\n\n <mj-tab-nav\n class=\"mjo-oh-tabs\"\n [Tabs]=\"ContextTabs\"\n [ActiveKey]=\"ActiveTab ?? ''\"\n (TabChange)=\"SelectTab($event)\">\n </mj-tab-nav>\n\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentTypeID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentAmount\" Type=\"number\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <!-- bc-aidp-next-golive#448: the day the money arrived, when it is not the order's date. -->\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Received on</span>\n <input\n type=\"date\"\n class=\"mj-input\"\n [ngModel]=\"InitialPaymentReceivedDay\"\n (ngModelChange)=\"SetInitialPaymentReceivedDay($event)\"\n [disabled]=\"!ComposeMode\"\n aria-label=\"Day the initial payment was received\">\n <span class=\"mjo-oh-hint\">{{ InitialPaymentReceivedHint }}</span>\n </label>\n @if (PaymentRequiresReference) {\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Check / ACH reference</span>\n <input\n class=\"mj-input\"\n [ngModel]=\"PaymentReference\"\n (ngModelChange)=\"SetPaymentReference($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"Check number or confirmation ID\"\n autocomplete=\"off\"\n aria-label=\"Check or ACH reference\">\n </label>\n }\n </div>\n @if (record.IsSaved && PaymentParams) {\n <mj-explorer-entity-data-grid\n #paymentGrid\n [Params]=\"PaymentParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n <mjo-order-payment-dates [OrderHeaderID]=\"record.ID\" (Changed)=\"paymentGrid.Refresh()\"></mjo-order-payment-dates>\n } @else {\n <div class=\"mjo-oh-hint\">Intent only \u2014 the payment is created when the order is confirmed.</div>\n }\n @if (record.IsSaved) {\n <h3 class=\"mjo-oh-subhead\">Payment schedule</h3>\n @if (InstalmentsError) {\n <div class=\"mjo-oh-hint\">{{ InstalmentsError }}</div>\n } @else if (Instalments === null) {\n <div class=\"mjo-oh-hint\">Loading payment schedule\u2026</div>\n } @else if (Instalments.length === 0) {\n <div class=\"mjo-oh-hint\">{{ NoScheduleNote }}</div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Instalment</th>\n <th>Due</th>\n <th class=\"is-num\">Amount</th>\n <th>Status</th>\n <th>Invoice</th>\n <th>AR raised</th>\n </tr>\n </thead>\n <tbody>\n @for (row of Instalments; track row.ID) {\n <tr class=\"is-clickable\" (click)=\"OpenInstalment(row)\">\n <td>{{ row.InstallmentNumber }}</td>\n <td>{{ InstalmentDue(row) }}</td>\n <td class=\"is-num\">{{ InstalmentAmount(row) }}</td>\n <td>{{ row.Status }}</td>\n <td>{{ row.DocumentNumber || '\u2014' }}</td>\n <td>\n @if (row.JournalEntryID) {\n <button type=\"button\" class=\"mjo-oh-linkbtn\" (click)=\"OpenInstalmentEntry($event, row)\">{{ InstalmentAR(row) }}</button>\n } @else {\n <span class=\"mjo-oh-dim\">{{ InstalmentAR(row) }}</span>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'details') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"RequestedDeliveryDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"DueDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ExternalDocumentNumber\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"FulfillmentStatus\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Status\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"SalesRepUserID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Description\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Notes\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n }\n\n @if (ActiveTab === 'charges' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (ChargeParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"ChargeParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n @if (record.MoneyLocked) {\n <div class=\"mjo-oh-hint\">Charges were booked with the order and cannot be edited.</div>\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'accounting' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-acct__bar\">\n <div>\n <h2>{{ AccountingView === 'summary' ? 'Order journal' : 'Journal entries' }}</h2>\n <p>\n @if (AccountingView === 'summary') {\n Gross debits and credits per account over this order's whole life \u2014 not a stored row\n } @else {\n Every stored journal this order caused, unnetted \u2014 open a row to drill in\n }\n </p>\n </div>\n <div class=\"mjo-oh-acct__actions\">\n @if (AccountingView !== 'waterfall') {\n <button type=\"button\" mjButton variant=\"outline\" size=\"sm\" [disabled]=\"!CanExportAccounting\" (click)=\"OpenAccountingExport()\">\n <i class=\"fa-solid fa-file-export\"></i> Export\n </button>\n }\n <div class=\"mjo-oh-switch\" role=\"group\" aria-label=\"Accounting view\">\n <button type=\"button\" [class.is-on]=\"AccountingView === 'summary'\" (click)=\"SetAccountingView('summary')\">Rolled up</button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'detail'\" (click)=\"SetAccountingView('detail')\">\n By line\n @if (RollupJournalCount) {\n <span class=\"mjo-oh-switch__n\">{{ RollupJournalCount }}</span>\n }\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'waterfall'\" (click)=\"SetAccountingView('waterfall')\">\n <i class=\"fa-solid fa-chart-line\"></i> Rev-Rec Waterfall\n </button>\n </div>\n </div>\n </div>\n\n <!-- One set of controls for both views, so they can never disagree about what is in. -->\n @if (AccountingView !== 'waterfall') {\n <div class=\"mjo-oh-acct__controls\">\n <label class=\"mjo-oh-asof\">\n <span>As of</span>\n <input\n type=\"date\"\n [value]=\"AccountingAsOf ?? ''\"\n (change)=\"OnAccountingAsOfChanged($any($event.target).value)\"\n aria-label=\"Include entries dated on or before\" />\n </label>\n @if (AccountingAsOf) {\n <button type=\"button\" class=\"mjo-oh-asof__clear\" (click)=\"OnAccountingAsOfChanged('')\">\n Lifetime\n </button>\n }\n <div class=\"mjo-oh-switch mjo-oh-switch--sm\" role=\"group\" aria-label=\"Date basis\">\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'effective'\" (click)=\"SetAccountingBasis('effective')\">\n Effective date\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'posting'\" (click)=\"SetAccountingBasis('posting')\">\n Posting date\n </button>\n </div>\n <span class=\"mjo-oh-acct__basis\">\n @if (AccountingBasis === 'posting') {\n GL date of the batch \u2014 Posted batches only\n } @else {\n Subledger date on the entry itself\n }\n </span>\n </div>\n }\n\n @if (AccountingView === 'waterfall') {\n <div style=\"padding: 12px 0;\">\n <mj-deferred-revenue-waterfall\n [JournalEntries]=\"RevRecJournalEntries\"\n [Title]=\"'Order Rev-Rec &amp; Deferred Revenue Schedule'\"\n (JournalEntrySelected)=\"OnJournalEntrySelected($event)\">\n </mj-deferred-revenue-waterfall>\n </div>\n } @else if (AccountingView === 'summary') {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Rolling up journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (RollupCards.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n @for (card of RollupCards; track card.CompanyID) {\n <article class=\"mjo-oh-jecard\">\n <header class=\"mjo-oh-jecard__head\">\n <div>\n <span class=\"mjo-oh-jecard__co\">{{ card.Company }}</span>\n <span class=\"mjo-oh-jecard__sub\">{{ card.Rows.length }} {{ card.Rows.length === 1 ? 'line' : 'lines' }}</span>\n </div>\n <span class=\"mjo-oh-chip\" [class.mjo-oh-chip--ok]=\"CardIsBalanced(card)\">\n {{ CardIsBalanced(card) ? 'Balanced' : 'Out of balance' }}\n </span>\n </header>\n <table class=\"mjo-oh-je__table\">\n <thead>\n <tr>\n <th>Account</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of card.Rows; track row.Key) {\n <tr>\n <td>\n <div class=\"mjo-oh-acctline\">\n @if (row.AccountCode) {\n <span class=\"mjo-oh-acctline__code\">{{ row.AccountCode }}</span>\n }\n <span class=\"mjo-oh-acctline__name\">{{ row.AccountName }}</span>\n </div>\n <div class=\"mjo-oh-acctline__meta\">\n @for (dim of row.Dimensions; track dim.Name + dim.Value) {\n <span class=\"mjo-oh-dim\">{{ dim.Name }} \u00B7 {{ dim.Value }}</span>\n }\n <span class=\"mjo-oh-je__src\">{{ SourceLineLabel(row.SourceLineCount) }}</span>\n </div>\n </td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n <tfoot>\n <tr>\n <th>Total</th>\n <td class=\"is-num\">{{ RollupAmount(card.TotalDebit) }}</td>\n <td class=\"is-num\">{{ RollupAmount(card.TotalCredit) }}</td>\n </tr>\n </tfoot>\n </table>\n </article>\n }\n @for (note of RollupSharedNotes; track note) {\n <p class=\"mjo-oh-acct__note\">{{ note }}</p>\n }\n }\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">\n {{ RollupExcludedLabel }} \u2014\n <button type=\"button\" class=\"mjo-oh-linkbtn\" (click)=\"SetAccountingView('detail')\">see By line</button>\n </p>\n }\n } @else {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Loading journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (JournalRows.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Entry</th>\n <th>Effective</th>\n <th>Batch</th>\n <th>Batch status</th>\n <th>Posting date</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of JournalRows; track row.ID) {\n <tr class=\"is-clickable\" (click)=\"OnJournalRowSelected(row.ID)\">\n <td>\n <div class=\"mjo-oh-acctline__name\">{{ row.EntryNumber }}</div>\n <div class=\"mjo-oh-acctline__meta\">\n <span>{{ row.Description }}</span>\n @if (row.SharedWithOtherOrders) {\n <span class=\"mjo-oh-dim\">{{ SharedOrdersLabel(row.SharedWithOtherOrders) }}</span>\n }\n </div>\n </td>\n <td>{{ JournalDate(row.EffectiveDate) }}</td>\n <td>{{ row.BatchNumber || '\u2014' }}</td>\n <td>{{ row.BatchStatus || 'Not batched' }}</td>\n <td>{{ JournalDate(row.BatchPostingDate) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n </table>\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">{{ RollupExcludedLabel }}, not listed above.</p>\n }\n }\n }\n </div>\n }\n\n <mj-export-dialog\n [visible]=\"AccountingExportVisible\"\n [config]=\"AccountingExportConfig\"\n (closed)=\"CloseAccountingExport()\">\n </mj-export-dialog>\n\n @if (ActiveTab === 'subs' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (SubscriptionParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"SubscriptionParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n }\n </div>\n }\n }\n </div>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersOrderLines\"\n SectionName=\"Lines\"\n Icon=\"fa fa-list-ol\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"LineBadge\"\n [DefaultExpanded]=\"true\">\n <mjo-order-lines-editor\n [Order]=\"record\"\n [EditMode]=\"ComposeMode\"\n (PricingChanged)=\"OnPricingChanged($event)\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mjo-order-lines-editor>\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-everything\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n</mj-record-form-container>\n}\n", styles: ["/* mj-form-field uses display:contents + a 200px|1fr internal grid.\n Wrap each field; never place the host as a CSS-grid item. */\n\n:host ::ng-deep .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n max-height: none;\n}\n\n:host ::ng-deep .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n}\n\n/* Product search results sit `position: absolute` under the add-product\n input at the bottom of Lines. The panel card and body both use\n overflow:hidden (rounded-corner clip + collapse animation), which\n shears the list off at the section edge. Collapse still forces\n overflow:hidden on the collapsed body. */\n:host ::ng-deep mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel {\n overflow: visible;\n}\n\n:host ::ng-deep mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n overflow: visible;\n}\n\n:host ::ng-deep mj-collapsible-panel:has(.mj-typeahead-list.is-open) {\n position: relative;\n z-index: 30;\n}\n\n.mjo-oh-hero {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed {\n padding: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-hero__top {\n align-items: center;\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-avatar {\n width: 32px;\n height: 32px;\n font-size: 14px;\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-title {\n font-size: var(--mj-text-base);\n}\n\n.mjo-oh-hero__toggle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n flex: 0 0 auto;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mjo-oh-hero__toggle:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-hero__top {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-hero__aside {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-confirm {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: var(--mj-space-1);\n min-width: 11rem;\n}\n\n.mjo-oh-confirm__hint {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n text-align: right;\n max-width: 14rem;\n line-height: 1.35;\n}\n\n.mjo-oh-who {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n min-width: 0;\n}\n\n.mjo-oh-avatar {\n width: 44px;\n height: 44px;\n border-radius: var(--mj-radius-md);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 18px;\n}\n\n.mjo-oh-title-row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-title {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-primary);\n letter-spacing: -0.02em;\n}\n\n.mjo-oh-sub {\n margin-top: 2px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-kicker {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-chip {\n display: inline-flex;\n align-items: center;\n padding: 2px 10px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-chip--ok {\n color: var(--mj-status-success-text);\n background: var(--mj-status-success-bg);\n border-color: var(--mj-status-success-border);\n}\n\n.mjo-oh-chip--void {\n color: var(--mj-status-error-text);\n background: var(--mj-status-error-bg);\n border-color: var(--mj-status-error-border);\n}\n\n.mjo-oh-money {\n display: flex;\n gap: var(--mj-space-5);\n padding: var(--mj-space-2) var(--mj-space-3);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-money > div {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-amt {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-facts {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n margin-top: var(--mj-space-4);\n padding: var(--mj-space-3);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-fact ::ng-deep .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-oh-fact ::ng-deep .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n/* The shared field hover adds negative margin + extra padding, which shoves\n the three header facts down. Keep the tint, drop the layout shift. */\n.mjo-oh-fact ::ng-deep .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-oh-fields {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-parties {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--mj-space-3);\n align-items: start;\n margin: var(--mj-space-4) 0 var(--mj-space-3);\n}\n\n.mjo-oh-parties.is-bill {\n grid-template-columns: auto minmax(0, 1fr);\n}\n\n.mjo-oh-parties.is-none {\n grid-template-columns: 1fr 1fr;\n}\n\n.mjo-oh-bubble {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n min-width: 0;\n}\n\n.mjo-oh-bubble.is-open {\n border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble.is-rail {\n width: 3.25rem;\n flex: 0 0 auto;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__hit {\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2);\n min-height: 5.5rem;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__copy {\n flex: 0 0 auto;\n align-items: center;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__role {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__name,\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__detail,\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__chev {\n display: none;\n}\n\n@media (max-width: 720px) {\n .mjo-oh-parties,\n .mjo-oh-parties.is-bill,\n .mjo-oh-parties.is-none {\n grid-template-columns: 1fr;\n }\n\n .mjo-oh-bubble.is-rail {\n width: auto;\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__hit {\n flex-direction: row;\n min-height: 0;\n padding: var(--mj-space-2) var(--mj-space-3);\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__copy {\n align-items: flex-start;\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__role {\n writing-mode: horizontal-tb;\n transform: none;\n }\n}\n\n.mjo-oh-bubble.is-needed {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble__hit {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: var(--mj-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__name.mjo-oh-link {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: inherit;\n font-weight: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__hit:hover { background: var(--mj-bg-surface-hover); }\n\n.mjo-oh-bubble__ic {\n width: var(--mj-space-8);\n height: var(--mj-space-8);\n border-radius: var(--mj-radius-sm);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-brand-primary);\n}\n\n.mjo-oh-bubble__copy {\n min-width: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-bubble__role {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-bubble__name {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-bubble__detail {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-oh-bubble__chev {\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-bubble__edit {\n padding: var(--mj-space-3);\n border-top: 1px solid var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-addr {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px dashed var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n\n.mjo-oh-addr__bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-addr__label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-addr__btn {\n border: 0;\n background: transparent;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n padding: 0;\n}\n\n.mjo-oh-addr__btn:disabled {\n color: var(--mj-text-disabled);\n cursor: default;\n}\n\n.mjo-oh-addr__row {\n display: grid;\n grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-link {\n color: var(--mj-text-link);\n text-decoration: none;\n}\n\n.mjo-oh-link:hover { text-decoration: underline; }\n\n.mjo-oh-todo {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-oh-todo button,\n.mjo-oh-todo__hint {\n background: var(--mj-status-warning-bg);\n border: 1px solid var(--mj-status-warning-border);\n color: var(--mj-status-warning-text);\n border-radius: var(--mj-radius-full);\n padding: 2px 8px;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-todo button { cursor: pointer; }\n\n.mjo-oh-todo--err {\n color: var(--mj-status-error-text);\n}\n\n/* Notes that do not block confirm: same layout, informational colour. */\n.mjo-oh-todo--info {\n color: var(--mj-status-info-text);\n}\n\n.mjo-oh-moved__list {\n flex-basis: 100%;\n margin: 0;\n padding-left: var(--mj-space-5);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-ref {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-ref__label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-ref .mj-input {\n max-width: 22rem;\n}\n\n.mjo-oh-tabs {\n display: block;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-oh-tabpane { margin-top: var(--mj-space-3); }\n\n.mjo-oh-tabpane mj-explorer-entity-data-grid {\n display: block;\n}\n\n.mjo-oh-hint {\n margin-top: var(--mj-space-2);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-subhead {\n margin: var(--mj-space-4) 0 var(--mj-space-2);\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-acct__bar h2 {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar p {\n margin: 2px 0 0;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__actions {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-switch {\n display: inline-flex;\n padding: 2px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-switch button {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--mj-text-secondary);\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 5px 12px;\n border-radius: var(--mj-radius-full);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-oh-switch button.is-on {\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n box-shadow: 0 0 0 1px var(--mj-border-subtle);\n}\n\n.mjo-oh-switch__n {\n min-width: 1.25em;\n padding: 0 5px;\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-variant-numeric: tabular-nums;\n text-align: center;\n}\n\n/* As-of + basis controls: one row above whichever of the two views is showing. */\n.mjo-oh-acct__controls {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-asof {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-asof input {\n font: inherit;\n font-weight: var(--mj-font-normal);\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-asof__clear,\n.mjo-oh-linkbtn {\n appearance: none;\n border: 0;\n background: transparent;\n padding: 0;\n font: inherit;\n font-size: var(--mj-text-xs);\n color: var(--mj-brand-primary);\n cursor: pointer;\n text-decoration: underline;\n}\n\n.mjo-oh-switch--sm button {\n padding: 4px 10px;\n}\n\n.mjo-oh-acct__basis,\n.mjo-oh-acct__note,\n.mjo-oh-acct__excluded {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__note,\n.mjo-oh-acct__excluded {\n margin: var(--mj-space-2) 0 0;\n}\n\n.mjo-oh-je__table--detail tbody tr.is-clickable {\n cursor: pointer;\n}\n\n.mjo-oh-je__table--detail tbody tr.is-clickable:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-jecard {\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n overflow: hidden;\n}\n\n.mjo-oh-jecard + .mjo-oh-jecard {\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-jecard__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-jecard__co {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-jecard__sub {\n margin-left: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-oh-je__table th,\n.mjo-oh-je__table td {\n padding: var(--mj-space-2) var(--mj-space-3);\n border-bottom: 1px solid var(--mj-border-subtle);\n text-align: left;\n vertical-align: top;\n}\n\n.mjo-oh-je__table thead th {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table tfoot th {\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n border-bottom: 0;\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-je__table .is-num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-oh-je__table .is-quiet {\n color: var(--mj-text-disabled);\n}\n\n.mjo-oh-acctline {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-acctline__code {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.02em;\n}\n\n.mjo-oh-acctline__name {\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acctline__meta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 4px;\n}\n\n.mjo-oh-dim {\n display: inline-flex;\n align-items: center;\n padding: 1px 8px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-je__src {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n@media (max-width: 760px) {\n .mjo-oh-parties,\n .mjo-oh-facts {\n grid-template-columns: 1fr;\n }\n .mjo-oh-money { margin-left: 0; }\n}\n"] }]
2058
2091
  }], null, null); })();
2059
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsOrderHeaderFormComponent, { className: "BizAppsOrderHeaderFormComponent", filePath: "lib/custom/OrderHeader/order-header-form.component.ts", lineNumber: 111 }); })();
2092
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsOrderHeaderFormComponent, { className: "BizAppsOrderHeaderFormComponent", filePath: "lib/custom/OrderHeader/order-header-form.component.ts", lineNumber: 113 }); })();
2060
2093
  /** Tree-shaking prevention anchor. */
2061
2094
  export function LoadOrderHeaderFormComponent() {
2062
2095
  void BizAppsOrderHeaderFormComponent;