@mj-biz-apps/orders-ng 5.40.0 → 5.41.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.
@@ -12,7 +12,7 @@ import { BaseFormComponent } from '@memberjunction/ng-base-forms';
12
12
  import { NavigationService } from '@memberjunction/ng-shared';
13
13
  import { CanOfferConfirm, DescribeClearedEmployers, DescribeDisplacedTermStart, LoadOrdersEngine, OrdersConfirmReadinessOperation, } from '@mj-biz-apps/orders-entities';
14
14
  import { MJO_ACCOUNTING_ENTITIES, MJO_COMMON_ENTITIES, MJO_ENTITIES } from '../../data/entity-names.js';
15
- import { BuildOrderJournalEntryRows, BuildOrderJournalRollup, ExcludedEntriesLabel, GetOrderJournalOrigins, GetPaymentTypes, LoadOrderJournalData, LoadRevRecJournalEntries, SubscriptionViewParams, } from '../../data/orders-queries.js';
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';
17
17
  import { mjBizAppsOrdersOrderHeaderFormComponent } from '../../generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js';
18
18
  import { DispatchFormNavigation } from '../form-navigation-helper.js';
@@ -21,11 +21,12 @@ import { ExpandedPartyFromPref, FormatPartyAddress, FormatSoldAddress, NextExpan
21
21
  import * as i0 from "@angular/core";
22
22
  import * as i1 from "@angular/forms";
23
23
  import * as i2 from "@memberjunction/ng-base-forms";
24
- import * as i3 from "@memberjunction/ng-ui-components";
25
- import * as i4 from "./order-lines-editor.component.js";
26
- import * as i5 from "./party-address-picker.component.js";
27
- import * as i6 from "@mj-biz-apps/accounting-ng";
28
- import * as i7 from "@mj-biz-apps/common-ng";
24
+ import * as i3 from "@memberjunction/ng-export-service";
25
+ import * as i4 from "@memberjunction/ng-ui-components";
26
+ import * as i5 from "./order-lines-editor.component.js";
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";
29
30
  const _forTrack0 = ($index, $item) => $item.ID;
30
31
  const _forTrack1 = ($index, $item) => $item.CompanyID;
31
32
  const _forTrack2 = ($index, $item) => $item.Key;
@@ -42,7 +43,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_11_Template(r
42
43
  } }
43
44
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_7_Template(rf, ctx) { if (rf & 1) {
44
45
  i0.ɵɵelementStart(0, "div", 28);
45
- i0.ɵɵelement(1, "i", 48);
46
+ i0.ɵɵelement(1, "i", 49);
46
47
  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.");
47
48
  i0.ɵɵelementEnd();
48
49
  } }
@@ -57,7 +58,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
57
58
  } }
58
59
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_17_Template(rf, ctx) { if (rf & 1) {
59
60
  const _r4 = i0.ɵɵgetCurrentView();
60
- i0.ɵɵelementStart(0, "button", 49);
61
+ i0.ɵɵelementStart(0, "button", 50);
61
62
  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)); });
62
63
  i0.ɵɵtext(1);
63
64
  i0.ɵɵelementEnd();
@@ -68,13 +69,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
68
69
  } }
69
70
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template(rf, ctx) { if (rf & 1) {
70
71
  const _r5 = i0.ɵɵgetCurrentView();
71
- i0.ɵɵelementStart(0, "div", 40)(1, "bizapps-party-field", 50);
72
+ i0.ɵɵelementStart(0, "div", 40)(1, "bizapps-party-field", 51);
72
73
  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)); });
73
74
  i0.ɵɵelementEnd();
74
- i0.ɵɵelementStart(2, "bizapps-party-field", 51);
75
+ i0.ɵɵelementStart(2, "bizapps-party-field", 52);
75
76
  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)); });
76
77
  i0.ɵɵelementEnd();
77
- i0.ɵɵelement(3, "mjo-party-address-picker", 52);
78
+ i0.ɵɵelement(3, "mjo-party-address-picker", 53);
78
79
  i0.ɵɵelementEnd();
79
80
  } if (rf & 2) {
80
81
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -87,7 +88,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
87
88
  } }
88
89
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_29_Template(rf, ctx) { if (rf & 1) {
89
90
  const _r6 = i0.ɵɵgetCurrentView();
90
- i0.ɵɵelementStart(0, "button", 49);
91
+ i0.ɵɵelementStart(0, "button", 50);
91
92
  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)); });
92
93
  i0.ɵɵtext(1);
93
94
  i0.ɵɵelementEnd();
@@ -107,16 +108,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
107
108
  } }
108
109
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template(rf, ctx) { if (rf & 1) {
109
110
  const _r7 = i0.ɵɵgetCurrentView();
110
- i0.ɵɵelementStart(0, "div", 40)(1, "bizapps-party-field", 53);
111
+ i0.ɵɵelementStart(0, "div", 40)(1, "bizapps-party-field", 54);
111
112
  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)); });
112
113
  i0.ɵɵelementEnd();
113
- i0.ɵɵelementStart(2, "bizapps-party-field", 54);
114
+ i0.ɵɵelementStart(2, "bizapps-party-field", 55);
114
115
  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)); });
115
116
  i0.ɵɵelementEnd();
116
- i0.ɵɵelementStart(3, "mj-form-field", 55);
117
+ i0.ɵɵelementStart(3, "mj-form-field", 56);
117
118
  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)); });
118
119
  i0.ɵɵelementEnd();
119
- i0.ɵɵelement(4, "mjo-party-address-picker", 56);
120
+ i0.ɵɵelement(4, "mjo-party-address-picker", 57);
120
121
  i0.ɵɵelementEnd();
121
122
  } if (rf & 2) {
122
123
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -131,20 +132,20 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
131
132
  } }
132
133
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
133
134
  const _r8 = i0.ɵɵgetCurrentView();
134
- i0.ɵɵelementStart(0, "button", 60);
135
+ i0.ɵɵelementStart(0, "button", 61);
135
136
  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()); });
136
137
  i0.ɵɵtext(1, "Need a bill-to party");
137
138
  i0.ɵɵelementEnd();
138
139
  } }
139
140
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
140
141
  const _r9 = i0.ɵɵgetCurrentView();
141
- i0.ɵɵelementStart(0, "button", 60);
142
+ i0.ɵɵelementStart(0, "button", 61);
142
143
  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()); });
143
144
  i0.ɵɵtext(1, "Need a check / ACH reference");
144
145
  i0.ɵɵelementEnd();
145
146
  } }
146
147
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
147
- i0.ɵɵelementStart(0, "span", 58);
148
+ i0.ɵɵelementStart(0, "span", 59);
148
149
  i0.ɵɵtext(1);
149
150
  i0.ɵɵelementEnd();
150
151
  } if (rf & 2) {
@@ -153,13 +154,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
153
154
  i0.ɵɵtextInterpolate(ctx_r1.ConfirmBlockedReason);
154
155
  } }
155
156
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Template(rf, ctx) { if (rf & 1) {
156
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_0_Template, 2, 0, "button", 59)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_1_Template, 2, 0, "button", 59)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Conditional_2_Template, 2, 1, "span", 58);
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);
157
158
  } if (rf & 2) {
158
159
  const ctx_r1 = i0.ɵɵnextContext(4);
159
160
  i0.ɵɵconditional(ctx_r1.NeedsBillTo ? 0 : ctx_r1.NeedsPaymentReference ? 1 : 2);
160
161
  } }
161
162
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_For_6_Template(rf, ctx) { if (rf & 1) {
162
- i0.ɵɵelementStart(0, "span", 58);
163
+ i0.ɵɵelementStart(0, "span", 59);
163
164
  i0.ɵɵtext(1);
164
165
  i0.ɵɵelementEnd();
165
166
  } if (rf & 2) {
@@ -169,12 +170,12 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
169
170
  } }
170
171
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Template(rf, ctx) { if (rf & 1) {
171
172
  i0.ɵɵelementStart(0, "div", 41);
172
- i0.ɵɵelement(1, "i", 57);
173
+ i0.ɵɵelement(1, "i", 58);
173
174
  i0.ɵɵelementStart(2, "span");
174
175
  i0.ɵɵtext(3, "Before this can be confirmed");
175
176
  i0.ɵɵelementEnd();
176
177
  i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Template, 3, 1);
177
- i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_For_6_Template, 2, 1, "span", 58, i0.ɵɵrepeaterTrackByIndex);
178
+ i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_For_6_Template, 2, 1, "span", 59, i0.ɵɵrepeaterTrackByIndex);
178
179
  i0.ɵɵelementEnd();
179
180
  } if (rf & 2) {
180
181
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -185,7 +186,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
185
186
  } }
186
187
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_36_Template(rf, ctx) { if (rf & 1) {
187
188
  i0.ɵɵelementStart(0, "div", 42);
188
- i0.ɵɵelement(1, "i", 61);
189
+ i0.ɵɵelement(1, "i", 62);
189
190
  i0.ɵɵelementStart(2, "span");
190
191
  i0.ɵɵtext(3);
191
192
  i0.ɵɵelementEnd()();
@@ -205,11 +206,11 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
205
206
  } }
206
207
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template(rf, ctx) { if (rf & 1) {
207
208
  i0.ɵɵelementStart(0, "div", 43);
208
- i0.ɵɵelement(1, "i", 61);
209
+ i0.ɵɵelement(1, "i", 62);
209
210
  i0.ɵɵelementStart(2, "span");
210
211
  i0.ɵɵtext(3, "When this is confirmed");
211
212
  i0.ɵɵelementEnd();
212
- i0.ɵɵelementStart(4, "ul", 62);
213
+ i0.ɵɵelementStart(4, "ul", 63);
213
214
  i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_For_6_Template, 2, 1, "li", null, i0.ɵɵrepeaterTrackByIndex);
214
215
  i0.ɵɵelementEnd()();
215
216
  } if (rf & 2) {
@@ -219,7 +220,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
219
220
  } }
220
221
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_38_Template(rf, ctx) { if (rf & 1) {
221
222
  i0.ɵɵelementStart(0, "div", 44);
222
- i0.ɵɵelement(1, "i", 63);
223
+ i0.ɵɵelement(1, "i", 64);
223
224
  i0.ɵɵelementStart(2, "span");
224
225
  i0.ɵɵtext(3);
225
226
  i0.ɵɵelementEnd()();
@@ -231,17 +232,17 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
231
232
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template(rf, ctx) { if (rf & 1) {
232
233
  const _r12 = i0.ɵɵgetCurrentView();
233
234
  i0.ɵɵelementStart(0, "div", 42);
234
- i0.ɵɵelement(1, "i", 64);
235
+ i0.ɵɵelement(1, "i", 65);
235
236
  i0.ɵɵelementStart(2, "span");
236
237
  i0.ɵɵtext(3);
237
238
  i0.ɵɵelementEnd();
238
- i0.ɵɵelementStart(4, "button", 60);
239
+ i0.ɵɵelementStart(4, "button", 61);
239
240
  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()); });
240
241
  i0.ɵɵtext(5, "Undo");
241
242
  i0.ɵɵelementEnd();
242
- i0.ɵɵelementStart(6, "button", 65);
243
+ i0.ɵɵelementStart(6, "button", 66);
243
244
  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()); });
244
- i0.ɵɵelement(7, "i", 66);
245
+ i0.ɵɵelement(7, "i", 67);
245
246
  i0.ɵɵelementEnd()();
246
247
  } if (rf & 2) {
247
248
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -259,11 +260,11 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
259
260
  } }
260
261
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template(rf, ctx) { if (rf & 1) {
261
262
  i0.ɵɵelementStart(0, "div", 45);
262
- i0.ɵɵelement(1, "i", 67);
263
+ i0.ɵɵelement(1, "i", 68);
263
264
  i0.ɵɵelementStart(2, "span");
264
265
  i0.ɵɵtext(3, "Service dates changed at confirm");
265
266
  i0.ɵɵelementEnd();
266
- i0.ɵɵelementStart(4, "ul", 62);
267
+ i0.ɵɵelementStart(4, "ul", 63);
267
268
  i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_For_6_Template, 2, 1, "li", null, i0.ɵɵrepeaterTrackByIndex);
268
269
  i0.ɵɵelementEnd()();
269
270
  } if (rf & 2) {
@@ -273,10 +274,10 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
273
274
  } }
274
275
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_4_Template(rf, ctx) { if (rf & 1) {
275
276
  const _r15 = i0.ɵɵgetCurrentView();
276
- i0.ɵɵelementStart(0, "label", 71)(1, "span", 73);
277
+ i0.ɵɵelementStart(0, "label", 72)(1, "span", 74);
277
278
  i0.ɵɵtext(2, "Check / ACH reference");
278
279
  i0.ɵɵelementEnd();
279
- i0.ɵɵelementStart(3, "input", 74);
280
+ i0.ɵɵelementStart(3, "input", 75);
280
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
282
  i0.ɵɵelementEnd()();
282
283
  } if (rf & 2) {
@@ -286,7 +287,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
286
287
  } }
287
288
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_5_Template(rf, ctx) { if (rf & 1) {
288
289
  const _r16 = i0.ɵɵgetCurrentView();
289
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 75);
290
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 76);
290
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
292
  i0.ɵɵelementEnd();
292
293
  } if (rf & 2) {
@@ -323,7 +324,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
323
324
  } }
324
325
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_12_Template(rf, ctx) { if (rf & 1) {
325
326
  const _r19 = i0.ɵɵgetCurrentView();
326
- i0.ɵɵelementStart(0, "button", 83);
327
+ i0.ɵɵelementStart(0, "button", 84);
327
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)); });
328
329
  i0.ɵɵtext(1);
329
330
  i0.ɵɵelementEnd();
@@ -334,7 +335,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
334
335
  i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r18));
335
336
  } }
336
337
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
337
- i0.ɵɵelementStart(0, "span", 82);
338
+ i0.ɵɵelementStart(0, "span", 83);
338
339
  i0.ɵɵtext(1);
339
340
  i0.ɵɵelementEnd();
340
341
  } if (rf & 2) {
@@ -345,7 +346,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
345
346
  } }
346
347
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Template(rf, ctx) { if (rf & 1) {
347
348
  const _r17 = i0.ɵɵgetCurrentView();
348
- i0.ɵɵelementStart(0, "tr", 80);
349
+ i0.ɵɵelementStart(0, "tr", 81);
349
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)); });
350
351
  i0.ɵɵelementStart(1, "td");
351
352
  i0.ɵɵtext(2);
@@ -353,7 +354,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
353
354
  i0.ɵɵelementStart(3, "td");
354
355
  i0.ɵɵtext(4);
355
356
  i0.ɵɵelementEnd();
356
- i0.ɵɵelementStart(5, "td", 78);
357
+ i0.ɵɵelementStart(5, "td", 79);
357
358
  i0.ɵɵtext(6);
358
359
  i0.ɵɵelementEnd();
359
360
  i0.ɵɵelementStart(7, "td");
@@ -363,7 +364,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
363
364
  i0.ɵɵtext(10);
364
365
  i0.ɵɵelementEnd();
365
366
  i0.ɵɵelementStart(11, "td");
366
- i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_12_Template, 2, 1, "button", 81)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Conditional_13_Template, 2, 1, "span", 82);
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);
367
368
  i0.ɵɵelementEnd()();
368
369
  } if (rf & 2) {
369
370
  const row_r18 = ctx.$implicit;
@@ -382,13 +383,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
382
383
  i0.ɵɵconditional(row_r18.JournalEntryID ? 12 : 13);
383
384
  } }
384
385
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_Template(rf, ctx) { if (rf & 1) {
385
- i0.ɵɵelementStart(0, "table", 77)(1, "thead")(2, "tr")(3, "th");
386
+ i0.ɵɵelementStart(0, "table", 78)(1, "thead")(2, "tr")(3, "th");
386
387
  i0.ɵɵtext(4, "Instalment");
387
388
  i0.ɵɵelementEnd();
388
389
  i0.ɵɵelementStart(5, "th");
389
390
  i0.ɵɵtext(6, "Due");
390
391
  i0.ɵɵelementEnd();
391
- i0.ɵɵelementStart(7, "th", 78);
392
+ i0.ɵɵelementStart(7, "th", 79);
392
393
  i0.ɵɵtext(8, "Amount");
393
394
  i0.ɵɵelementEnd();
394
395
  i0.ɵɵelementStart(9, "th");
@@ -401,7 +402,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
401
402
  i0.ɵɵtext(14, "AR raised");
402
403
  i0.ɵɵelementEnd()()();
403
404
  i0.ɵɵelementStart(15, "tbody");
404
- i0.ɵɵrepeaterCreate(16, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Template, 14, 6, "tr", 79, _forTrack0);
405
+ i0.ɵɵrepeaterCreate(16, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Conditional_5_For_17_Template, 14, 6, "tr", 80, _forTrack0);
405
406
  i0.ɵɵelementEnd()();
406
407
  } if (rf & 2) {
407
408
  const ctx_r1 = i0.ɵɵnextContext(5);
@@ -409,10 +410,10 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
409
410
  i0.ɵɵrepeater(ctx_r1.Instalments);
410
411
  } }
411
412
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Template(rf, ctx) { if (rf & 1) {
412
- i0.ɵɵelementStart(0, "h3", 76);
413
+ i0.ɵɵelementStart(0, "h3", 77);
413
414
  i0.ɵɵtext(1, "Payment schedule");
414
415
  i0.ɵɵelementEnd();
415
- 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", 77);
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);
416
417
  } if (rf & 2) {
417
418
  const ctx_r1 = i0.ɵɵnextContext(4);
418
419
  i0.ɵɵadvance(2);
@@ -420,15 +421,15 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
420
421
  } }
421
422
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template(rf, ctx) { if (rf & 1) {
422
423
  const _r14 = i0.ɵɵgetCurrentView();
423
- i0.ɵɵelementStart(0, "div", 47)(1, "div", 68)(2, "mj-form-field", 69);
424
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 69)(2, "mj-form-field", 70);
424
425
  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)); });
425
426
  i0.ɵɵelementEnd();
426
- i0.ɵɵelementStart(3, "mj-form-field", 70);
427
+ i0.ɵɵelementStart(3, "mj-form-field", 71);
427
428
  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)); });
428
429
  i0.ɵɵelementEnd();
429
- i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_4_Template, 4, 2, "label", 71);
430
+ i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_4_Template, 4, 2, "label", 72);
430
431
  i0.ɵɵelementEnd();
431
- i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_5_Template, 1, 7, "mj-explorer-entity-data-grid", 72)(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_6_Template, 2, 0, "div", 28);
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);
432
433
  i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Template, 6, 1);
433
434
  i0.ɵɵelementEnd();
434
435
  } if (rf & 2) {
@@ -446,28 +447,28 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
446
447
  } }
447
448
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template(rf, ctx) { if (rf & 1) {
448
449
  const _r20 = i0.ɵɵgetCurrentView();
449
- i0.ɵɵelementStart(0, "div", 47)(1, "div", 68)(2, "mj-form-field", 84);
450
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 69)(2, "mj-form-field", 85);
450
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)); });
451
452
  i0.ɵɵelementEnd();
452
- i0.ɵɵelementStart(3, "mj-form-field", 85);
453
+ i0.ɵɵelementStart(3, "mj-form-field", 86);
453
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)); });
454
455
  i0.ɵɵelementEnd();
455
- i0.ɵɵelementStart(4, "mj-form-field", 86);
456
+ i0.ɵɵelementStart(4, "mj-form-field", 87);
456
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)); });
457
458
  i0.ɵɵelementEnd();
458
- i0.ɵɵelementStart(5, "mj-form-field", 87);
459
+ i0.ɵɵelementStart(5, "mj-form-field", 88);
459
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)); });
460
461
  i0.ɵɵelementEnd();
461
- i0.ɵɵelementStart(6, "mj-form-field", 88);
462
+ i0.ɵɵelementStart(6, "mj-form-field", 89);
462
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)); });
463
464
  i0.ɵɵelementEnd();
464
- i0.ɵɵelementStart(7, "mj-form-field", 89);
465
+ i0.ɵɵelementStart(7, "mj-form-field", 90);
465
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)); });
466
467
  i0.ɵɵelementEnd();
467
- i0.ɵɵelementStart(8, "mj-form-field", 90);
468
+ i0.ɵɵelementStart(8, "mj-form-field", 91);
468
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)); });
469
470
  i0.ɵɵelementEnd();
470
- i0.ɵɵelementStart(9, "mj-form-field", 91);
471
+ i0.ɵɵelementStart(9, "mj-form-field", 92);
471
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)); });
472
473
  i0.ɵɵelementEnd()()();
473
474
  } if (rf & 2) {
@@ -496,7 +497,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
496
497
  } }
497
498
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template(rf, ctx) { if (rf & 1) {
498
499
  const _r21 = i0.ɵɵgetCurrentView();
499
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 75);
500
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 76);
500
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)); });
501
502
  i0.ɵɵelementEnd();
502
503
  i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Conditional_1_Template, 2, 0, "div", 28);
@@ -521,8 +522,19 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
521
522
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_7_Template(rf, ctx) { if (rf & 1) {
522
523
  i0.ɵɵtext(0, " Every stored journal this order caused, unnetted \u2014 open a row to drill in ");
523
524
  } }
524
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_13_Template(rf, ctx) { if (rf & 1) {
525
- i0.ɵɵelementStart(0, "span", 94);
525
+ 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);
530
+ i0.ɵɵtext(2, " Export ");
531
+ i0.ɵɵelementEnd();
532
+ } if (rf & 2) {
533
+ const ctx_r1 = i0.ɵɵnextContext(4);
534
+ i0.ɵɵproperty("disabled", !ctx_r1.CanExportAccounting);
535
+ } }
536
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_15_Template(rf, ctx) { if (rf & 1) {
537
+ i0.ɵɵelementStart(0, "span", 97);
526
538
  i0.ɵɵtext(1);
527
539
  i0.ɵɵelementEnd();
528
540
  } if (rf & 2) {
@@ -530,38 +542,38 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
530
542
  i0.ɵɵadvance();
531
543
  i0.ɵɵtextInterpolate(ctx_r1.RollupJournalCount);
532
544
  } }
533
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Conditional_5_Template(rf, ctx) { if (rf & 1) {
534
- const _r24 = i0.ɵɵgetCurrentView();
535
- i0.ɵɵelementStart(0, "button", 103);
536
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged("")); });
545
+ 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("")); });
537
549
  i0.ɵɵtext(1, " Lifetime ");
538
550
  i0.ɵɵelementEnd();
539
551
  } }
540
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Conditional_12_Template(rf, ctx) { if (rf & 1) {
552
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_12_Template(rf, ctx) { if (rf & 1) {
541
553
  i0.ɵɵtext(0, " GL date of the batch \u2014 Posted batches only ");
542
554
  } }
543
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
555
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_13_Template(rf, ctx) { if (rf & 1) {
544
556
  i0.ɵɵtext(0, " Subledger date on the entry itself ");
545
557
  } }
546
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Template(rf, ctx) { if (rf & 1) {
547
- const _r23 = i0.ɵɵgetCurrentView();
548
- i0.ɵɵelementStart(0, "div", 96)(1, "label", 98)(2, "span");
558
+ 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");
549
561
  i0.ɵɵtext(3, "As of");
550
562
  i0.ɵɵelementEnd();
551
- i0.ɵɵelementStart(4, "input", 99);
552
- i0.ɵɵlistener("change", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged($event.target.value)); });
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)); });
553
565
  i0.ɵɵelementEnd()();
554
- i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Conditional_5_Template, 2, 0, "button", 100);
555
- i0.ɵɵelementStart(6, "div", 101)(7, "button", 60);
556
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("effective")); });
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")); });
557
569
  i0.ɵɵtext(8, " Effective date ");
558
570
  i0.ɵɵelementEnd();
559
- i0.ɵɵelementStart(9, "button", 60);
560
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("posting")); });
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")); });
561
573
  i0.ɵɵtext(10, " Posting date ");
562
574
  i0.ɵɵelementEnd()();
563
- i0.ɵɵelementStart(11, "span", 102);
564
- i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Conditional_12_Template, 1, 0)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Conditional_13_Template, 1, 0);
575
+ i0.ɵɵelementStart(11, "span", 107);
576
+ 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);
565
577
  i0.ɵɵelementEnd()();
566
578
  } if (rf & 2) {
567
579
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -576,22 +588,22 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
576
588
  i0.ɵɵadvance(3);
577
589
  i0.ɵɵconditional(ctx_r1.AccountingBasis === "posting" ? 12 : 13);
578
590
  } }
579
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_18_Template(rf, ctx) { if (rf & 1) {
580
- const _r25 = i0.ɵɵgetCurrentView();
581
- i0.ɵɵelementStart(0, "div", 97)(1, "mj-deferred-revenue-waterfall", 104);
582
- i0.ɵɵlistener("JournalEntrySelected", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_18_Template_mj_deferred_revenue_waterfall_JournalEntrySelected_1_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnJournalEntrySelected($event)); });
591
+ 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)); });
583
595
  i0.ɵɵelementEnd()();
584
596
  } if (rf & 2) {
585
597
  const ctx_r1 = i0.ɵɵnextContext(4);
586
598
  i0.ɵɵadvance();
587
599
  i0.ɵɵproperty("JournalEntries", ctx_r1.RevRecJournalEntries)("Title", "Order Rev-Rec & Deferred Revenue Schedule");
588
600
  } }
589
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_0_Template(rf, ctx) { if (rf & 1) {
601
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_0_Template(rf, ctx) { if (rf & 1) {
590
602
  i0.ɵɵelementStart(0, "div", 28);
591
603
  i0.ɵɵtext(1, "Rolling up journals\u2026");
592
604
  i0.ɵɵelementEnd();
593
605
  } }
594
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_1_Template(rf, ctx) { if (rf & 1) {
606
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_1_Template(rf, ctx) { if (rf & 1) {
595
607
  i0.ɵɵelementStart(0, "div", 28);
596
608
  i0.ɵɵtext(1);
597
609
  i0.ɵɵelementEnd();
@@ -600,152 +612,152 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
600
612
  i0.ɵɵadvance();
601
613
  i0.ɵɵtextInterpolate(ctx_r1.RollupError);
602
614
  } }
603
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
615
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
604
616
  i0.ɵɵtext(0);
605
617
  } if (rf & 2) {
606
618
  const ctx_r1 = i0.ɵɵnextContext(6);
607
619
  i0.ɵɵtextInterpolate1(" Nothing in view \u2014 ", ctx_r1.RollupExcludedLabel, ". ");
608
620
  } }
609
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
621
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
610
622
  i0.ɵɵtext(0, " No journals yet \u2014 they appear when the order is confirmed. ");
611
623
  } }
612
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_2_Template(rf, ctx) { if (rf & 1) {
624
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Template(rf, ctx) { if (rf & 1) {
613
625
  i0.ɵɵelementStart(0, "div", 28);
614
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_2_Conditional_1_Template, 1, 1)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_2_Conditional_2_Template, 1, 0);
626
+ 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);
615
627
  i0.ɵɵelementEnd();
616
628
  } if (rf & 2) {
617
629
  const ctx_r1 = i0.ɵɵnextContext(5);
618
630
  i0.ɵɵadvance();
619
631
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 1 : 2);
620
632
  } }
621
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_1_For_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
622
- i0.ɵɵelementStart(0, "span", 114);
633
+ 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);
623
635
  i0.ɵɵtext(1);
624
636
  i0.ɵɵelementEnd();
625
637
  } if (rf & 2) {
626
- const row_r26 = i0.ɵɵnextContext().$implicit;
638
+ const row_r27 = i0.ɵɵnextContext().$implicit;
627
639
  i0.ɵɵadvance();
628
- i0.ɵɵtextInterpolate(row_r26.AccountCode);
640
+ i0.ɵɵtextInterpolate(row_r27.AccountCode);
629
641
  } }
630
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_1_For_20_For_8_Template(rf, ctx) { if (rf & 1) {
631
- i0.ɵɵelementStart(0, "span", 82);
642
+ 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);
632
644
  i0.ɵɵtext(1);
633
645
  i0.ɵɵelementEnd();
634
646
  } if (rf & 2) {
635
- const dim_r27 = ctx.$implicit;
647
+ const dim_r28 = ctx.$implicit;
636
648
  i0.ɵɵadvance();
637
- i0.ɵɵtextInterpolate2("", dim_r27.Name, " \u00B7 ", dim_r27.Value);
649
+ i0.ɵɵtextInterpolate2("", dim_r28.Name, " \u00B7 ", dim_r28.Value);
638
650
  } }
639
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_1_For_20_Template(rf, ctx) { if (rf & 1) {
640
- i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 113);
641
- i0.ɵɵconditionalCreate(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_1_For_20_Conditional_3_Template, 2, 1, "span", 114);
642
- i0.ɵɵelementStart(4, "span", 115);
651
+ 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);
643
655
  i0.ɵɵtext(5);
644
656
  i0.ɵɵelementEnd()();
645
- i0.ɵɵelementStart(6, "div", 116);
646
- i0.ɵɵrepeaterCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_1_For_20_For_8_Template, 2, 2, "span", 82, _forTrack3);
647
- i0.ɵɵelementStart(9, "span", 117);
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);
648
660
  i0.ɵɵtext(10);
649
661
  i0.ɵɵelementEnd()()();
650
- i0.ɵɵelementStart(11, "td", 78);
662
+ i0.ɵɵelementStart(11, "td", 79);
651
663
  i0.ɵɵtext(12);
652
664
  i0.ɵɵelementEnd();
653
- i0.ɵɵelementStart(13, "td", 78);
665
+ i0.ɵɵelementStart(13, "td", 79);
654
666
  i0.ɵɵtext(14);
655
667
  i0.ɵɵelementEnd()();
656
668
  } if (rf & 2) {
657
- const row_r26 = ctx.$implicit;
669
+ const row_r27 = ctx.$implicit;
658
670
  const ctx_r1 = i0.ɵɵnextContext(7);
659
671
  i0.ɵɵadvance(3);
660
- i0.ɵɵconditional(row_r26.AccountCode ? 3 : -1);
672
+ i0.ɵɵconditional(row_r27.AccountCode ? 3 : -1);
661
673
  i0.ɵɵadvance(2);
662
- i0.ɵɵtextInterpolate(row_r26.AccountName);
674
+ i0.ɵɵtextInterpolate(row_r27.AccountName);
663
675
  i0.ɵɵadvance(2);
664
- i0.ɵɵrepeater(row_r26.Dimensions);
676
+ i0.ɵɵrepeater(row_r27.Dimensions);
665
677
  i0.ɵɵadvance(3);
666
- i0.ɵɵtextInterpolate(ctx_r1.SourceLineLabel(row_r26.SourceLineCount));
678
+ i0.ɵɵtextInterpolate(ctx_r1.SourceLineLabel(row_r27.SourceLineCount));
667
679
  i0.ɵɵadvance();
668
- i0.ɵɵclassProp("is-quiet", !row_r26.Debit);
680
+ i0.ɵɵclassProp("is-quiet", !row_r27.Debit);
669
681
  i0.ɵɵadvance();
670
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r26.Debit));
682
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r27.Debit));
671
683
  i0.ɵɵadvance();
672
- i0.ɵɵclassProp("is-quiet", !row_r26.Credit);
684
+ i0.ɵɵclassProp("is-quiet", !row_r27.Credit);
673
685
  i0.ɵɵadvance();
674
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r26.Credit));
686
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r27.Credit));
675
687
  } }
676
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_1_Template(rf, ctx) { if (rf & 1) {
677
- i0.ɵɵelementStart(0, "article", 106)(1, "header", 108)(2, "div")(3, "span", 109);
688
+ 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);
678
690
  i0.ɵɵtext(4);
679
691
  i0.ɵɵelementEnd();
680
- i0.ɵɵelementStart(5, "span", 110);
692
+ i0.ɵɵelementStart(5, "span", 115);
681
693
  i0.ɵɵtext(6);
682
694
  i0.ɵɵelementEnd()();
683
- i0.ɵɵelementStart(7, "span", 111);
695
+ i0.ɵɵelementStart(7, "span", 116);
684
696
  i0.ɵɵtext(8);
685
697
  i0.ɵɵelementEnd()();
686
- i0.ɵɵelementStart(9, "table", 112)(10, "thead")(11, "tr")(12, "th");
698
+ i0.ɵɵelementStart(9, "table", 117)(10, "thead")(11, "tr")(12, "th");
687
699
  i0.ɵɵtext(13, "Account");
688
700
  i0.ɵɵelementEnd();
689
- i0.ɵɵelementStart(14, "th", 78);
701
+ i0.ɵɵelementStart(14, "th", 79);
690
702
  i0.ɵɵtext(15, "Debit");
691
703
  i0.ɵɵelementEnd();
692
- i0.ɵɵelementStart(16, "th", 78);
704
+ i0.ɵɵelementStart(16, "th", 79);
693
705
  i0.ɵɵtext(17, "Credit");
694
706
  i0.ɵɵelementEnd()()();
695
707
  i0.ɵɵelementStart(18, "tbody");
696
- i0.ɵɵrepeaterCreate(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_1_For_20_Template, 15, 9, "tr", null, _forTrack2);
708
+ i0.ɵɵrepeaterCreate(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Template, 15, 9, "tr", null, _forTrack2);
697
709
  i0.ɵɵelementEnd();
698
710
  i0.ɵɵelementStart(21, "tfoot")(22, "tr")(23, "th");
699
711
  i0.ɵɵtext(24, "Total");
700
712
  i0.ɵɵelementEnd();
701
- i0.ɵɵelementStart(25, "td", 78);
713
+ i0.ɵɵelementStart(25, "td", 79);
702
714
  i0.ɵɵtext(26);
703
715
  i0.ɵɵelementEnd();
704
- i0.ɵɵelementStart(27, "td", 78);
716
+ i0.ɵɵelementStart(27, "td", 79);
705
717
  i0.ɵɵtext(28);
706
718
  i0.ɵɵelementEnd()()()()();
707
719
  } if (rf & 2) {
708
- const card_r28 = ctx.$implicit;
720
+ const card_r29 = ctx.$implicit;
709
721
  const ctx_r1 = i0.ɵɵnextContext(6);
710
722
  i0.ɵɵadvance(4);
711
- i0.ɵɵtextInterpolate(card_r28.Company);
723
+ i0.ɵɵtextInterpolate(card_r29.Company);
712
724
  i0.ɵɵadvance(2);
713
- i0.ɵɵtextInterpolate2("", card_r28.Rows.length, " ", card_r28.Rows.length === 1 ? "line" : "lines");
725
+ i0.ɵɵtextInterpolate2("", card_r29.Rows.length, " ", card_r29.Rows.length === 1 ? "line" : "lines");
714
726
  i0.ɵɵadvance();
715
- i0.ɵɵclassProp("mjo-oh-chip--ok", ctx_r1.CardIsBalanced(card_r28));
727
+ i0.ɵɵclassProp("mjo-oh-chip--ok", ctx_r1.CardIsBalanced(card_r29));
716
728
  i0.ɵɵadvance();
717
- i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r28) ? "Balanced" : "Out of balance", " ");
729
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r29) ? "Balanced" : "Out of balance", " ");
718
730
  i0.ɵɵadvance(11);
719
- i0.ɵɵrepeater(card_r28.Rows);
731
+ i0.ɵɵrepeater(card_r29.Rows);
720
732
  i0.ɵɵadvance(7);
721
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r28.TotalDebit));
733
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r29.TotalDebit));
722
734
  i0.ɵɵadvance(2);
723
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r28.TotalCredit));
735
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r29.TotalCredit));
724
736
  } }
725
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_3_Template(rf, ctx) { if (rf & 1) {
726
- i0.ɵɵelementStart(0, "p", 107);
737
+ 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);
727
739
  i0.ɵɵtext(1);
728
740
  i0.ɵɵelementEnd();
729
741
  } if (rf & 2) {
730
- const note_r29 = ctx.$implicit;
742
+ const note_r30 = ctx.$implicit;
731
743
  i0.ɵɵadvance();
732
- i0.ɵɵtextInterpolate(note_r29);
744
+ i0.ɵɵtextInterpolate(note_r30);
733
745
  } }
734
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_Template(rf, ctx) { if (rf & 1) {
735
- i0.ɵɵrepeaterCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_1_Template, 29, 8, "article", 106, _forTrack1);
736
- i0.ɵɵrepeaterCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_For_3_Template, 2, 1, "p", 107, i0.ɵɵrepeaterTrackByIdentity);
746
+ 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);
737
749
  } if (rf & 2) {
738
750
  const ctx_r1 = i0.ɵɵnextContext(5);
739
751
  i0.ɵɵrepeater(ctx_r1.RollupCards);
740
752
  i0.ɵɵadvance(2);
741
753
  i0.ɵɵrepeater(ctx_r1.RollupSharedNotes);
742
754
  } }
743
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_4_Template(rf, ctx) { if (rf & 1) {
744
- const _r30 = i0.ɵɵgetCurrentView();
745
- i0.ɵɵelementStart(0, "p", 105);
755
+ 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);
746
758
  i0.ɵɵtext(1);
747
- i0.ɵɵelementStart(2, "button", 83);
748
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_4_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r30); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
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")); });
749
761
  i0.ɵɵtext(3, "see By line");
750
762
  i0.ɵɵelementEnd()();
751
763
  } if (rf & 2) {
@@ -753,21 +765,21 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
753
765
  i0.ɵɵadvance();
754
766
  i0.ɵɵtextInterpolate1(" ", ctx_r1.RollupExcludedLabel, " \u2014 ");
755
767
  } }
756
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template(rf, ctx) { if (rf & 1) {
757
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_0_Template, 2, 0, "div", 28)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_1_Template, 2, 1, "div", 28)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_2_Template, 3, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_3_Template, 4, 0);
758
- i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_4_Template, 4, 1, "p", 105);
768
+ 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);
759
771
  } if (rf & 2) {
760
772
  const ctx_r1 = i0.ɵɵnextContext(4);
761
773
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.RollupCards.length === 0 ? 2 : 3);
762
774
  i0.ɵɵadvance(4);
763
775
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 4 : -1);
764
776
  } }
765
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_0_Template(rf, ctx) { if (rf & 1) {
777
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_0_Template(rf, ctx) { if (rf & 1) {
766
778
  i0.ɵɵelementStart(0, "div", 28);
767
779
  i0.ɵɵtext(1, "Loading journals\u2026");
768
780
  i0.ɵɵelementEnd();
769
781
  } }
770
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_1_Template(rf, ctx) { if (rf & 1) {
782
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_1_Template(rf, ctx) { if (rf & 1) {
771
783
  i0.ɵɵelementStart(0, "div", 28);
772
784
  i0.ɵɵtext(1);
773
785
  i0.ɵɵelementEnd();
@@ -776,45 +788,45 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
776
788
  i0.ɵɵadvance();
777
789
  i0.ɵɵtextInterpolate(ctx_r1.RollupError);
778
790
  } }
779
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
791
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
780
792
  i0.ɵɵtext(0);
781
793
  } if (rf & 2) {
782
794
  const ctx_r1 = i0.ɵɵnextContext(6);
783
795
  i0.ɵɵtextInterpolate1(" Nothing in view \u2014 ", ctx_r1.RollupExcludedLabel, ". ");
784
796
  } }
785
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
797
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
786
798
  i0.ɵɵtext(0, " No journals yet \u2014 they appear when the order is confirmed. ");
787
799
  } }
788
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_2_Template(rf, ctx) { if (rf & 1) {
800
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_2_Template(rf, ctx) { if (rf & 1) {
789
801
  i0.ɵɵelementStart(0, "div", 28);
790
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_2_Conditional_1_Template, 1, 1)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_2_Conditional_2_Template, 1, 0);
802
+ 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);
791
803
  i0.ɵɵelementEnd();
792
804
  } if (rf & 2) {
793
805
  const ctx_r1 = i0.ɵɵnextContext(5);
794
806
  i0.ɵɵadvance();
795
807
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 1 : 2);
796
808
  } }
797
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_For_19_Conditional_7_Template(rf, ctx) { if (rf & 1) {
798
- i0.ɵɵelementStart(0, "span", 82);
809
+ 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);
799
811
  i0.ɵɵtext(1);
800
812
  i0.ɵɵelementEnd();
801
813
  } if (rf & 2) {
802
- const row_r32 = i0.ɵɵnextContext().$implicit;
814
+ const row_r33 = i0.ɵɵnextContext().$implicit;
803
815
  const ctx_r1 = i0.ɵɵnextContext(6);
804
816
  i0.ɵɵadvance();
805
- i0.ɵɵtextInterpolate(ctx_r1.SharedOrdersLabel(row_r32.SharedWithOtherOrders));
817
+ i0.ɵɵtextInterpolate(ctx_r1.SharedOrdersLabel(row_r33.SharedWithOtherOrders));
806
818
  } }
807
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_For_19_Template(rf, ctx) { if (rf & 1) {
808
- const _r31 = i0.ɵɵgetCurrentView();
809
- i0.ɵɵelementStart(0, "tr", 80);
810
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_For_19_Template_tr_click_0_listener() { const row_r32 = i0.ɵɵrestoreView(_r31).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnJournalRowSelected(row_r32.ID)); });
811
- i0.ɵɵelementStart(1, "td")(2, "div", 115);
819
+ 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);
812
824
  i0.ɵɵtext(3);
813
825
  i0.ɵɵelementEnd();
814
- i0.ɵɵelementStart(4, "div", 116)(5, "span");
826
+ i0.ɵɵelementStart(4, "div", 121)(5, "span");
815
827
  i0.ɵɵtext(6);
816
828
  i0.ɵɵelementEnd();
817
- i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_For_19_Conditional_7_Template, 2, 1, "span", 82);
829
+ i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Conditional_7_Template, 2, 1, "span", 83);
818
830
  i0.ɵɵelementEnd()();
819
831
  i0.ɵɵelementStart(8, "td");
820
832
  i0.ɵɵtext(9);
@@ -828,40 +840,40 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
828
840
  i0.ɵɵelementStart(14, "td");
829
841
  i0.ɵɵtext(15);
830
842
  i0.ɵɵelementEnd();
831
- i0.ɵɵelementStart(16, "td", 78);
843
+ i0.ɵɵelementStart(16, "td", 79);
832
844
  i0.ɵɵtext(17);
833
845
  i0.ɵɵelementEnd();
834
- i0.ɵɵelementStart(18, "td", 78);
846
+ i0.ɵɵelementStart(18, "td", 79);
835
847
  i0.ɵɵtext(19);
836
848
  i0.ɵɵelementEnd()();
837
849
  } if (rf & 2) {
838
- const row_r32 = ctx.$implicit;
850
+ const row_r33 = ctx.$implicit;
839
851
  const ctx_r1 = i0.ɵɵnextContext(6);
840
852
  i0.ɵɵadvance(3);
841
- i0.ɵɵtextInterpolate(row_r32.EntryNumber);
853
+ i0.ɵɵtextInterpolate(row_r33.EntryNumber);
842
854
  i0.ɵɵadvance(3);
843
- i0.ɵɵtextInterpolate(row_r32.Description);
855
+ i0.ɵɵtextInterpolate(row_r33.Description);
844
856
  i0.ɵɵadvance();
845
- i0.ɵɵconditional(row_r32.SharedWithOtherOrders ? 7 : -1);
857
+ i0.ɵɵconditional(row_r33.SharedWithOtherOrders ? 7 : -1);
846
858
  i0.ɵɵadvance(2);
847
- i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r32.EffectiveDate));
859
+ i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r33.EffectiveDate));
848
860
  i0.ɵɵadvance(2);
849
- i0.ɵɵtextInterpolate(row_r32.BatchNumber || "\u2014");
861
+ i0.ɵɵtextInterpolate(row_r33.BatchNumber || "\u2014");
850
862
  i0.ɵɵadvance(2);
851
- i0.ɵɵtextInterpolate(row_r32.BatchStatus || "Not batched");
863
+ i0.ɵɵtextInterpolate(row_r33.BatchStatus || "Not batched");
852
864
  i0.ɵɵadvance(2);
853
- i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r32.BatchPostingDate));
865
+ i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r33.BatchPostingDate));
854
866
  i0.ɵɵadvance();
855
- i0.ɵɵclassProp("is-quiet", !row_r32.Debit);
867
+ i0.ɵɵclassProp("is-quiet", !row_r33.Debit);
856
868
  i0.ɵɵadvance();
857
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r32.Debit));
869
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r33.Debit));
858
870
  i0.ɵɵadvance();
859
- i0.ɵɵclassProp("is-quiet", !row_r32.Credit);
871
+ i0.ɵɵclassProp("is-quiet", !row_r33.Credit);
860
872
  i0.ɵɵadvance();
861
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r32.Credit));
873
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r33.Credit));
862
874
  } }
863
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_Conditional_20_Template(rf, ctx) { if (rf & 1) {
864
- i0.ɵɵelementStart(0, "p", 105);
875
+ 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);
865
877
  i0.ɵɵtext(1);
866
878
  i0.ɵɵelementEnd();
867
879
  } if (rf & 2) {
@@ -869,8 +881,8 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
869
881
  i0.ɵɵadvance();
870
882
  i0.ɵɵtextInterpolate1("", ctx_r1.RollupExcludedLabel, ", not listed above.");
871
883
  } }
872
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
873
- i0.ɵɵelementStart(0, "table", 77)(1, "thead")(2, "tr")(3, "th");
884
+ 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");
874
886
  i0.ɵɵtext(4, "Entry");
875
887
  i0.ɵɵelementEnd();
876
888
  i0.ɵɵelementStart(5, "th");
@@ -885,16 +897,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
885
897
  i0.ɵɵelementStart(11, "th");
886
898
  i0.ɵɵtext(12, "Posting date");
887
899
  i0.ɵɵelementEnd();
888
- i0.ɵɵelementStart(13, "th", 78);
900
+ i0.ɵɵelementStart(13, "th", 79);
889
901
  i0.ɵɵtext(14, "Debit");
890
902
  i0.ɵɵelementEnd();
891
- i0.ɵɵelementStart(15, "th", 78);
903
+ i0.ɵɵelementStart(15, "th", 79);
892
904
  i0.ɵɵtext(16, "Credit");
893
905
  i0.ɵɵelementEnd()()();
894
906
  i0.ɵɵelementStart(17, "tbody");
895
- i0.ɵɵrepeaterCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_For_19_Template, 20, 13, "tr", 79, _forTrack0);
907
+ i0.ɵɵrepeaterCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template, 20, 13, "tr", 80, _forTrack0);
896
908
  i0.ɵɵelementEnd()();
897
- i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_Conditional_20_Template, 2, 1, "p", 105);
909
+ i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Conditional_20_Template, 2, 1, "p", 110);
898
910
  } if (rf & 2) {
899
911
  const ctx_r1 = i0.ɵɵnextContext(5);
900
912
  i0.ɵɵadvance(18);
@@ -902,36 +914,38 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
902
914
  i0.ɵɵadvance(2);
903
915
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 20 : -1);
904
916
  } }
905
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template(rf, ctx) { if (rf & 1) {
906
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_0_Template, 2, 0, "div", 28)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_1_Template, 2, 1, "div", 28)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_2_Template, 3, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Conditional_3_Template, 21, 1);
917
+ 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);
907
919
  } if (rf & 2) {
908
920
  const ctx_r1 = i0.ɵɵnextContext(4);
909
921
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.JournalRows.length === 0 ? 2 : 3);
910
922
  } }
911
923
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template(rf, ctx) { if (rf & 1) {
912
924
  const _r22 = i0.ɵɵgetCurrentView();
913
- i0.ɵɵelementStart(0, "div", 47)(1, "div", 92)(2, "div")(3, "h2");
925
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 93)(2, "div")(3, "h2");
914
926
  i0.ɵɵtext(4);
915
927
  i0.ɵɵelementEnd();
916
928
  i0.ɵɵelementStart(5, "p");
917
929
  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);
918
930
  i0.ɵɵelementEnd()();
919
- i0.ɵɵelementStart(8, "div", 93)(9, "button", 60);
920
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
921
- i0.ɵɵtext(10, "Rolled up");
922
- i0.ɵɵelementEnd();
923
- i0.ɵɵelementStart(11, "button", 60);
924
- 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("detail")); });
925
- i0.ɵɵtext(12, " By line ");
926
- i0.ɵɵconditionalCreate(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_13_Template, 2, 1, "span", 94);
927
- i0.ɵɵelementEnd();
928
- i0.ɵɵelementStart(14, "button", 60);
929
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("waterfall")); });
930
- i0.ɵɵelement(15, "i", 95);
931
- i0.ɵɵtext(16, " Rev-Rec Waterfall ");
932
- i0.ɵɵelementEnd()()();
933
- i0.ɵɵconditionalCreate(17, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_17_Template, 14, 7, "div", 96);
934
- i0.ɵɵconditionalCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_18_Template, 2, 2, "div", 97)(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template, 5, 2)(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template, 4, 1);
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")); });
935
+ i0.ɵɵtext(12, "Rolled up");
936
+ 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")); });
939
+ i0.ɵɵtext(14, " By line ");
940
+ i0.ɵɵconditionalCreate(15, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_15_Template, 2, 1, "span", 97);
941
+ 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);
945
+ i0.ɵɵtext(18, " Rev-Rec Waterfall ");
946
+ 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);
935
949
  i0.ɵɵelementEnd();
936
950
  } if (rf & 2) {
937
951
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -940,30 +954,32 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
940
954
  i0.ɵɵadvance(2);
941
955
  i0.ɵɵconditional(ctx_r1.AccountingView === "summary" ? 6 : 7);
942
956
  i0.ɵɵadvance(3);
957
+ i0.ɵɵconditional(ctx_r1.AccountingView !== "waterfall" ? 9 : -1);
958
+ i0.ɵɵadvance(2);
943
959
  i0.ɵɵclassProp("is-on", ctx_r1.AccountingView === "summary");
944
960
  i0.ɵɵadvance(2);
945
961
  i0.ɵɵclassProp("is-on", ctx_r1.AccountingView === "detail");
946
962
  i0.ɵɵadvance(2);
947
- i0.ɵɵconditional(ctx_r1.RollupJournalCount ? 13 : -1);
963
+ i0.ɵɵconditional(ctx_r1.RollupJournalCount ? 15 : -1);
948
964
  i0.ɵɵadvance();
949
965
  i0.ɵɵclassProp("is-on", ctx_r1.AccountingView === "waterfall");
950
966
  i0.ɵɵadvance(3);
951
- i0.ɵɵconditional(ctx_r1.AccountingView !== "waterfall" ? 17 : -1);
967
+ i0.ɵɵconditional(ctx_r1.AccountingView !== "waterfall" ? 19 : -1);
952
968
  i0.ɵɵadvance();
953
- i0.ɵɵconditional(ctx_r1.AccountingView === "waterfall" ? 18 : ctx_r1.AccountingView === "summary" ? 19 : 20);
969
+ i0.ɵɵconditional(ctx_r1.AccountingView === "waterfall" ? 20 : ctx_r1.AccountingView === "summary" ? 21 : 22);
954
970
  } }
955
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_46_Conditional_1_Template(rf, ctx) { if (rf & 1) {
956
- const _r33 = i0.ɵɵgetCurrentView();
957
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 119);
958
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_46_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
971
+ 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)); });
959
975
  i0.ɵɵelementEnd();
960
976
  } if (rf & 2) {
961
977
  const ctx_r1 = i0.ɵɵnextContext(4);
962
978
  i0.ɵɵproperty("Params", ctx_r1.SubscriptionParams)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", false)("Height", "fit-content")("MaxHeight", ctx_r1.RelatedGridHeight);
963
979
  } }
964
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_46_Template(rf, ctx) { if (rf & 1) {
980
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Template(rf, ctx) { if (rf & 1) {
965
981
  i0.ɵɵelementStart(0, "div", 47);
966
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_46_Conditional_1_Template, 1, 6, "mj-explorer-entity-data-grid", 118);
982
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template, 1, 6, "mj-explorer-entity-data-grid", 123);
967
983
  i0.ɵɵelementEnd();
968
984
  } if (rf & 2) {
969
985
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -1026,8 +1042,11 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template(r
1026
1042
  i0.ɵɵconditionalCreate(42, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template, 8, 11, "div", 47);
1027
1043
  i0.ɵɵconditionalCreate(43, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template, 10, 32, "div", 47);
1028
1044
  i0.ɵɵconditionalCreate(44, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Template, 2, 1, "div", 47);
1029
- i0.ɵɵconditionalCreate(45, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template, 21, 11, "div", 47);
1030
- i0.ɵɵconditionalCreate(46, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_46_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);
1047
+ 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
+ i0.ɵɵelementEnd();
1049
+ i0.ɵɵconditionalCreate(47, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Template, 2, 1, "div", 47);
1031
1050
  } if (rf & 2) {
1032
1051
  const ctx_r1 = i0.ɵɵnextContext(2);
1033
1052
  i0.ɵɵadvance(2);
@@ -1087,7 +1106,9 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template(r
1087
1106
  i0.ɵɵadvance();
1088
1107
  i0.ɵɵconditional(ctx_r1.ActiveTab === "accounting" && ctx_r1.record.IsSaved ? 45 : -1);
1089
1108
  i0.ɵɵadvance();
1090
- i0.ɵɵconditional(ctx_r1.ActiveTab === "subs" && ctx_r1.record.IsSaved ? 46 : -1);
1109
+ i0.ɵɵproperty("visible", ctx_r1.AccountingExportVisible)("config", ctx_r1.AccountingExportConfig);
1110
+ i0.ɵɵadvance();
1111
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "subs" && ctx_r1.record.IsSaved ? 47 : -1);
1091
1112
  } }
1092
1113
  function BizAppsOrderHeaderFormComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1093
1114
  const _r1 = i0.ɵɵgetCurrentView();
@@ -1127,7 +1148,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Template(rf, ctx) { if (r
1127
1148
  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()); });
1128
1149
  i0.ɵɵelement(32, "i", 17);
1129
1150
  i0.ɵɵelementEnd()()();
1130
- i0.ɵɵconditionalCreate(33, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template, 47, 58);
1151
+ i0.ɵɵconditionalCreate(33, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template, 48, 60);
1131
1152
  i0.ɵɵelementEnd();
1132
1153
  i0.ɵɵelement(34, "mj-form-panel-slot", 18);
1133
1154
  i0.ɵɵelementStart(35, "mj-collapsible-panel", 19)(36, "mjo-order-lines-editor", 20);
@@ -1234,6 +1255,9 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1234
1255
  */
1235
1256
  AccountingAsOf = null;
1236
1257
  AccountingBasis = 'effective';
1258
+ /** The Export dialog on Rolled up and By line. Built when opened, from what the view shows. */
1259
+ AccountingExportVisible = false;
1260
+ AccountingExportConfig = null;
1237
1261
  Confirming = false;
1238
1262
  StatusError = null;
1239
1263
  /**
@@ -1944,6 +1968,44 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1944
1968
  this.RollupSharedNotes = rollup.SharedPaymentNotes;
1945
1969
  this.JournalRows = BuildOrderJournalEntryRows(data, options);
1946
1970
  }
1971
+ /** Whether the current view has anything to export. */
1972
+ get CanExportAccounting() {
1973
+ if (this.RollupLoading || this.RollupError)
1974
+ return false;
1975
+ if (this.AccountingView === 'summary')
1976
+ return this.RollupCards.length > 0;
1977
+ if (this.AccountingView === 'detail')
1978
+ return this.JournalRows.length > 0;
1979
+ return false;
1980
+ }
1981
+ /**
1982
+ * Open MJ's export dialog on the current view, under the same As-of date and basis as the screen.
1983
+ * By line exports one row per journal line (account and dimensions live on lines, not entries).
1984
+ */
1985
+ OpenAccountingExport() {
1986
+ const data = this.journalData;
1987
+ if (!data || !this.CanExportAccounting)
1988
+ return;
1989
+ const options = { AsOf: this.AccountingAsOf, Basis: this.AccountingBasis };
1990
+ const byLine = this.AccountingView === 'detail';
1991
+ const result = byLine
1992
+ ? BuildOrderJournalLineExport(data, options)
1993
+ : BuildOrderJournalRollupExport(BuildOrderJournalRollup(data, options));
1994
+ const order = this.record?.OrderNumber || 'order';
1995
+ const asOf = this.AccountingAsOf ? `-as-of-${this.AccountingAsOf}` : '';
1996
+ this.AccountingExportConfig = {
1997
+ data: result.Rows,
1998
+ columns: result.Columns,
1999
+ defaultFileName: `${order}-journal-${byLine ? 'by-line' : 'rolled-up'}${asOf}`,
2000
+ availableFormats: ['excel', 'csv'],
2001
+ defaultFormat: 'excel',
2002
+ dialogTitle: byLine ? 'Export journal lines' : 'Export rolled-up journal',
2003
+ };
2004
+ this.AccountingExportVisible = true;
2005
+ }
2006
+ CloseAccountingExport() {
2007
+ this.AccountingExportVisible = false;
2008
+ }
1947
2009
  /** The As-of box. Blank means lifetime, which is the default and the point of item 1. */
1948
2010
  OnAccountingAsOfChanged(value) {
1949
2011
  this.AccountingAsOf = value || null;
@@ -1979,11 +2041,11 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1979
2041
  });
1980
2042
  }
1981
2043
  static ɵfac = /*@__PURE__*/ (() => { let ɵBizAppsOrderHeaderFormComponent_BaseFactory; return function BizAppsOrderHeaderFormComponent_Factory(__ngFactoryType__) { return (ɵBizAppsOrderHeaderFormComponent_BaseFactory || (ɵBizAppsOrderHeaderFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BizAppsOrderHeaderFormComponent)))(__ngFactoryType__ || BizAppsOrderHeaderFormComponent); }; })();
1982
- 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"], ["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"], ["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"], [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) {
2044
+ 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) {
1983
2045
  i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Template, 39, 45, "mj-record-form-container", 0);
1984
2046
  } if (rf & 2) {
1985
2047
  i0.ɵɵconditional(ctx.record ? 0 : -1);
1986
- } }, dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i2.MjFormFieldComponent, i2.MjCollapsiblePanelComponent, i2.MjRecordFormContainerComponent, i2.ExplorerEntityDataGridComponent, i2.FormPanelSlotComponent, i3.MJTabNavComponent, i4.MJOOrderLinesEditorComponent, i5.MJOPartyAddressPickerComponent, i6.DeferredRevenueWaterfallComponent, i7.SellingCompanyFieldComponent, i7.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-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}"] });
2048
+ } }, 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}"] });
1987
2049
  };
1988
2050
  BizAppsOrderHeaderFormComponent = __decorate([
1989
2051
  RegisterClass(BaseFormComponent, 'MJ_BizApps_Orders: Order Headers', 2)
@@ -1991,9 +2053,9 @@ BizAppsOrderHeaderFormComponent = __decorate([
1991
2053
  export { BizAppsOrderHeaderFormComponent };
1992
2054
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsOrderHeaderFormComponent, [{
1993
2055
  type: Component,
1994
- 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-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\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 @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-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"] }]
2056
+ 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"] }]
1995
2057
  }], null, null); })();
1996
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsOrderHeaderFormComponent, { className: "BizAppsOrderHeaderFormComponent", filePath: "lib/custom/OrderHeader/order-header-form.component.ts", lineNumber: 108 }); })();
2058
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsOrderHeaderFormComponent, { className: "BizAppsOrderHeaderFormComponent", filePath: "lib/custom/OrderHeader/order-header-form.component.ts", lineNumber: 111 }); })();
1997
2059
  /** Tree-shaking prevention anchor. */
1998
2060
  export function LoadOrderHeaderFormComponent() {
1999
2061
  void BizAppsOrderHeaderFormComponent;