@mj-biz-apps/orders-ng 5.50.2 → 5.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/checkout-element/main.js +58 -3
  2. package/dist/lib/checkout-widget/checkout-public-host.component.d.ts +10 -2
  3. package/dist/lib/checkout-widget/checkout-public-host.component.d.ts.map +1 -1
  4. package/dist/lib/checkout-widget/checkout-public-host.component.js +30 -3
  5. package/dist/lib/checkout-widget/checkout-public-host.component.js.map +1 -1
  6. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +8 -1
  7. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
  8. package/dist/lib/custom/OrderHeader/order-header-form.component.js +257 -172
  9. package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
  10. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +37 -2
  11. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -1
  12. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +178 -39
  13. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
  14. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +9 -0
  15. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
  16. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +28 -6
  17. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
  18. package/dist/lib/data/orders-queries.d.ts +56 -5
  19. package/dist/lib/data/orders-queries.d.ts.map +1 -1
  20. package/dist/lib/data/orders-queries.js +115 -11
  21. package/dist/lib/data/orders-queries.js.map +1 -1
  22. package/dist/lib/data/preset-view.d.ts +4 -3
  23. package/dist/lib/data/preset-view.d.ts.map +1 -1
  24. package/dist/lib/data/preset-view.js +4 -3
  25. package/dist/lib/data/preset-view.js.map +1 -1
  26. package/dist/lib/form-panels/external-invoices.panel.d.ts +4 -0
  27. package/dist/lib/form-panels/external-invoices.panel.d.ts.map +1 -1
  28. package/dist/lib/form-panels/external-invoices.panel.js +73 -10
  29. package/dist/lib/form-panels/external-invoices.panel.js.map +1 -1
  30. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts.map +1 -1
  31. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js +24 -6
  32. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js.map +1 -1
  33. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthorityMixTier/mjbizappsorderssalesauthoritymixtier.form.component.d.ts +10 -0
  34. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthorityMixTier/mjbizappsorderssalesauthoritymixtier.form.component.d.ts.map +1 -0
  35. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthorityMixTier/mjbizappsorderssalesauthoritymixtier.form.component.js +67 -0
  36. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthorityMixTier/mjbizappsorderssalesauthoritymixtier.form.component.js.map +1 -0
  37. package/dist/lib/generated/generated-forms.module.d.ts +105 -104
  38. package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
  39. package/dist/lib/generated/generated-forms.module.js +5 -2
  40. package/dist/lib/generated/generated-forms.module.js.map +1 -1
  41. package/dist/lib/pages/orders/orders-dashboard.page.d.ts +16 -1
  42. package/dist/lib/pages/orders/orders-dashboard.page.d.ts.map +1 -1
  43. package/dist/lib/pages/orders/orders-dashboard.page.js +33 -10
  44. package/dist/lib/pages/orders/orders-dashboard.page.js.map +1 -1
  45. package/dist/lib/pages/orders/return.page.d.ts +17 -1
  46. package/dist/lib/pages/orders/return.page.d.ts.map +1 -1
  47. package/dist/lib/pages/orders/return.page.js +160 -87
  48. package/dist/lib/pages/orders/return.page.js.map +1 -1
  49. package/dist/lib/pages/receivables/customer-ar-page.model.d.ts +265 -0
  50. package/dist/lib/pages/receivables/customer-ar-page.model.d.ts.map +1 -0
  51. package/dist/lib/pages/receivables/customer-ar-page.model.js +576 -0
  52. package/dist/lib/pages/receivables/customer-ar-page.model.js.map +1 -0
  53. package/dist/lib/pages/receivables/customer-ar.page.d.ts +209 -73
  54. package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -1
  55. package/dist/lib/pages/receivables/customer-ar.page.js +2182 -556
  56. package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -1
  57. package/dist/lib/pages/receivables/external-invoicing-queue.page.js +55 -55
  58. package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
  59. package/dist/lib/panels/aging-bar.component.d.ts +59 -0
  60. package/dist/lib/panels/aging-bar.component.d.ts.map +1 -1
  61. package/dist/lib/panels/aging-bar.component.js +76 -1
  62. package/dist/lib/panels/aging-bar.component.js.map +1 -1
  63. package/dist/lib/panels/stat-tile.component.d.ts +10 -1
  64. package/dist/lib/panels/stat-tile.component.d.ts.map +1 -1
  65. package/dist/lib/panels/stat-tile.component.js +27 -6
  66. package/dist/lib/panels/stat-tile.component.js.map +1 -1
  67. package/dist/lib/sections/orders-sections.component.d.ts +33 -1
  68. package/dist/lib/sections/orders-sections.component.d.ts.map +1 -1
  69. package/dist/lib/sections/orders-sections.component.js +92 -7
  70. package/dist/lib/sections/orders-sections.component.js.map +1 -1
  71. package/dist/lib/sections/section-nav.model.js +5 -5
  72. package/dist/lib/sections/section-nav.model.js.map +1 -1
  73. package/dist/lib/services/pricing-scheduler.service.d.ts.map +1 -1
  74. package/dist/lib/services/pricing-scheduler.service.js +10 -3
  75. package/dist/lib/services/pricing-scheduler.service.js.map +1 -1
  76. package/dist/public-api.d.ts +6 -0
  77. package/dist/public-api.d.ts.map +1 -1
  78. package/dist/public-api.js +6 -0
  79. package/dist/public-api.js.map +1 -1
  80. package/package.json +35 -35
@@ -10,7 +10,8 @@ import { UserInfoEngine } from '@memberjunction/core-entities';
10
10
  import { RegisterClass, UUIDsEqual } from '@memberjunction/global';
11
11
  import { BaseFormComponent } from '@memberjunction/ng-base-forms';
12
12
  import { NavigationService } from '@memberjunction/ng-shared';
13
- import { AsDateValue, CanOfferConfirm, DescribeClearedEmployers, DescribeDisplacedTermStart, LoadOrdersEngine, OrdersConfirmReadinessOperation, ToISODate, } from '@mj-biz-apps/orders-entities';
13
+ import { MJConfirmService } from '@memberjunction/ng-ui-components';
14
+ import { AsDateValue, CanOfferConfirm, DescribeClearedEmployers, DescribeDisplacedTermStart, LoadOrdersEngine, OrdersConfirmReadinessOperation, OrdersPollExternalPaymentsOperation, ToISODate, } from '@mj-biz-apps/orders-entities';
14
15
  import { MJO_ACCOUNTING_ENTITIES, MJO_COMMON_ENTITIES, MJO_ENTITIES } from '../../data/entity-names.js';
15
16
  import { BuildOrderJournalEntryRows, BuildOrderJournalLineExport, BuildOrderJournalRollup, BuildOrderJournalRollupExport, ExcludedEntriesLabel, GetOrderJournalOrigins, GetPaymentTypes, LoadOrderJournalData, LoadRevRecJournalEntries, SubscriptionViewParams, } from '../../data/orders-queries.js';
16
17
  import { FormatDate, FormatMoney, HasCents } from '../../panels/money-format.js';
@@ -288,16 +289,52 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
288
289
  i0.ɵɵadvance(3);
289
290
  i0.ɵɵproperty("ngModel", ctx_r1.PaymentReference)("disabled", !ctx_r1.ComposeMode);
290
291
  } }
292
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
293
+ i0.ɵɵelementStart(0, "span", 60);
294
+ i0.ɵɵtext(1);
295
+ i0.ɵɵelementEnd();
296
+ } if (rf & 2) {
297
+ const ctx_r1 = i0.ɵɵnextContext(6);
298
+ i0.ɵɵadvance();
299
+ i0.ɵɵtextInterpolate(ctx_r1.ExternalPaymentNotice);
300
+ } }
301
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Conditional_0_Template(rf, ctx) { if (rf & 1) {
302
+ const _r17 = i0.ɵɵgetCurrentView();
303
+ i0.ɵɵelementStart(0, "div", 77);
304
+ i0.ɵɵelement(1, "i", 80);
305
+ i0.ɵɵelementStart(2, "span");
306
+ i0.ɵɵtext(3);
307
+ i0.ɵɵelementEnd();
308
+ i0.ɵɵelementStart(4, "button", 81);
309
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Conditional_0_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.CheckExternalPaymentsNow()); });
310
+ i0.ɵɵtext(5);
311
+ i0.ɵɵelementEnd();
312
+ i0.ɵɵconditionalCreate(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Conditional_0_Conditional_6_Template, 2, 1, "span", 60);
313
+ i0.ɵɵelementEnd();
314
+ } if (rf & 2) {
315
+ const ctx_r1 = i0.ɵɵnextContext(5);
316
+ i0.ɵɵadvance(3);
317
+ i0.ɵɵtextInterpolate1("Paid on the invoicing rail (", ctx_r1.record.ExternalDocumentNumber, ")?");
318
+ i0.ɵɵadvance();
319
+ i0.ɵɵproperty("disabled", ctx_r1.CheckingExternalPayments);
320
+ i0.ɵɵadvance();
321
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.CheckingExternalPayments ? "Checking\u2026" : "Check for payments now", " ");
322
+ i0.ɵɵadvance();
323
+ i0.ɵɵconditional(ctx_r1.ExternalPaymentNotice ? 6 : -1);
324
+ } }
291
325
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template(rf, ctx) { if (rf & 1) {
292
326
  const _r16 = i0.ɵɵgetCurrentView();
293
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 77, 0);
294
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
327
+ i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Conditional_0_Template, 7, 4, "div", 77);
328
+ i0.ɵɵelementStart(1, "mj-explorer-entity-data-grid", 78, 0);
329
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
295
330
  i0.ɵɵelementEnd();
296
- i0.ɵɵelementStart(2, "mjo-order-payment-dates", 78);
297
- i0.ɵɵlistener("Changed", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template_mjo_order_payment_dates_Changed_2_listener() { i0.ɵɵrestoreView(_r16); const paymentGrid_r17 = i0.ɵɵreference(1); return i0.ɵɵresetView(paymentGrid_r17.Refresh()); });
331
+ i0.ɵɵelementStart(3, "mjo-order-payment-dates", 79);
332
+ i0.ɵɵlistener("Changed", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template_mjo_order_payment_dates_Changed_3_listener() { i0.ɵɵrestoreView(_r16); const paymentGrid_r18 = i0.ɵɵreference(2); return i0.ɵɵresetView(paymentGrid_r18.Refresh()); });
298
333
  i0.ɵɵelementEnd();
299
334
  } if (rf & 2) {
300
335
  const ctx_r1 = i0.ɵɵnextContext(4);
336
+ i0.ɵɵconditional(ctx_r1.ShowCheckExternalPayments ? 0 : -1);
337
+ i0.ɵɵadvance();
301
338
  i0.ɵɵproperty("Params", ctx_r1.PaymentParams)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", false)("ShowDeleteButton", false)("Height", "fit-content")("MaxHeight", ctx_r1.RelatedGridHeight);
302
339
  i0.ɵɵadvance(2);
303
340
  i0.ɵɵproperty("OrderHeaderID", ctx_r1.record.ID);
@@ -331,38 +368,38 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
331
368
  i0.ɵɵtextInterpolate(ctx_r1.NoScheduleNote);
332
369
  } }
333
370
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_12_Template(rf, ctx) { if (rf & 1) {
334
- const _r20 = i0.ɵɵgetCurrentView();
335
- i0.ɵɵelementStart(0, "button", 86);
336
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_12_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r20); const row_r19 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OpenInstalmentEntry($event, row_r19)); });
371
+ const _r21 = i0.ɵɵgetCurrentView();
372
+ i0.ɵɵelementStart(0, "button", 89);
373
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_12_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r21); const row_r20 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OpenInstalmentEntry($event, row_r20)); });
337
374
  i0.ɵɵtext(1);
338
375
  i0.ɵɵelementEnd();
339
376
  } if (rf & 2) {
340
- const row_r19 = i0.ɵɵnextContext().$implicit;
377
+ const row_r20 = i0.ɵɵnextContext().$implicit;
341
378
  const ctx_r1 = i0.ɵɵnextContext(6);
342
379
  i0.ɵɵadvance();
343
- i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r19));
380
+ i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r20));
344
381
  } }
345
382
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
346
- i0.ɵɵelementStart(0, "span", 85);
383
+ i0.ɵɵelementStart(0, "span", 88);
347
384
  i0.ɵɵtext(1);
348
385
  i0.ɵɵelementEnd();
349
386
  } if (rf & 2) {
350
- const row_r19 = i0.ɵɵnextContext().$implicit;
387
+ const row_r20 = i0.ɵɵnextContext().$implicit;
351
388
  const ctx_r1 = i0.ɵɵnextContext(6);
352
389
  i0.ɵɵadvance();
353
- i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r19));
390
+ i0.ɵɵtextInterpolate(ctx_r1.InstalmentAR(row_r20));
354
391
  } }
355
392
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Template(rf, ctx) { if (rf & 1) {
356
- const _r18 = i0.ɵɵgetCurrentView();
357
- i0.ɵɵelementStart(0, "tr", 83);
358
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Template_tr_click_0_listener() { const row_r19 = i0.ɵɵrestoreView(_r18).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OpenInstalment(row_r19)); });
393
+ const _r19 = i0.ɵɵgetCurrentView();
394
+ i0.ɵɵelementStart(0, "tr", 86);
395
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Template_tr_click_0_listener() { const row_r20 = i0.ɵɵrestoreView(_r19).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OpenInstalment(row_r20)); });
359
396
  i0.ɵɵelementStart(1, "td");
360
397
  i0.ɵɵtext(2);
361
398
  i0.ɵɵelementEnd();
362
399
  i0.ɵɵelementStart(3, "td");
363
400
  i0.ɵɵtext(4);
364
401
  i0.ɵɵelementEnd();
365
- i0.ɵɵelementStart(5, "td", 81);
402
+ i0.ɵɵelementStart(5, "td", 84);
366
403
  i0.ɵɵtext(6);
367
404
  i0.ɵɵelementEnd();
368
405
  i0.ɵɵelementStart(7, "td");
@@ -372,32 +409,32 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
372
409
  i0.ɵɵtext(10);
373
410
  i0.ɵɵelementEnd();
374
411
  i0.ɵɵelementStart(11, "td");
375
- i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_12_Template, 2, 1, "button", 84)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_13_Template, 2, 1, "span", 85);
412
+ i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_12_Template, 2, 1, "button", 87)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Conditional_13_Template, 2, 1, "span", 88);
376
413
  i0.ɵɵelementEnd()();
377
414
  } if (rf & 2) {
378
- const row_r19 = ctx.$implicit;
415
+ const row_r20 = ctx.$implicit;
379
416
  const ctx_r1 = i0.ɵɵnextContext(6);
380
417
  i0.ɵɵadvance(2);
381
- i0.ɵɵtextInterpolate(row_r19.InstallmentNumber);
418
+ i0.ɵɵtextInterpolate(row_r20.InstallmentNumber);
382
419
  i0.ɵɵadvance(2);
383
- i0.ɵɵtextInterpolate(ctx_r1.InstalmentDue(row_r19));
420
+ i0.ɵɵtextInterpolate(ctx_r1.InstalmentDue(row_r20));
384
421
  i0.ɵɵadvance(2);
385
- i0.ɵɵtextInterpolate(ctx_r1.InstalmentAmount(row_r19));
422
+ i0.ɵɵtextInterpolate(ctx_r1.InstalmentAmount(row_r20));
386
423
  i0.ɵɵadvance(2);
387
- i0.ɵɵtextInterpolate(row_r19.Status);
424
+ i0.ɵɵtextInterpolate(row_r20.Status);
388
425
  i0.ɵɵadvance(2);
389
- i0.ɵɵtextInterpolate(row_r19.DocumentNumber || "\u2014");
426
+ i0.ɵɵtextInterpolate(row_r20.DocumentNumber || "\u2014");
390
427
  i0.ɵɵadvance(2);
391
- i0.ɵɵconditional(row_r19.JournalEntryID ? 12 : 13);
428
+ i0.ɵɵconditional(row_r20.JournalEntryID ? 12 : 13);
392
429
  } }
393
430
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_Template(rf, ctx) { if (rf & 1) {
394
- i0.ɵɵelementStart(0, "table", 80)(1, "thead")(2, "tr")(3, "th");
395
- i0.ɵɵtext(4, "Instalment");
431
+ i0.ɵɵelementStart(0, "table", 83)(1, "thead")(2, "tr")(3, "th");
432
+ i0.ɵɵtext(4, "Installment");
396
433
  i0.ɵɵelementEnd();
397
434
  i0.ɵɵelementStart(5, "th");
398
435
  i0.ɵɵtext(6, "Due");
399
436
  i0.ɵɵelementEnd();
400
- i0.ɵɵelementStart(7, "th", 81);
437
+ i0.ɵɵelementStart(7, "th", 84);
401
438
  i0.ɵɵtext(8, "Amount");
402
439
  i0.ɵɵelementEnd();
403
440
  i0.ɵɵelementStart(9, "th");
@@ -410,7 +447,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
410
447
  i0.ɵɵtext(14, "AR raised");
411
448
  i0.ɵɵelementEnd()()();
412
449
  i0.ɵɵelementStart(15, "tbody");
413
- i0.ɵɵrepeaterCreate(16, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Template, 14, 6, "tr", 82, _forTrack0);
450
+ i0.ɵɵrepeaterCreate(16, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_For_17_Template, 14, 6, "tr", 85, _forTrack0);
414
451
  i0.ɵɵelementEnd()();
415
452
  } if (rf & 2) {
416
453
  const ctx_r1 = i0.ɵɵnextContext(5);
@@ -418,10 +455,10 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
418
455
  i0.ɵɵrepeater(ctx_r1.Instalments);
419
456
  } }
420
457
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Template(rf, ctx) { if (rf & 1) {
421
- i0.ɵɵelementStart(0, "h3", 79);
458
+ i0.ɵɵelementStart(0, "h3", 82);
422
459
  i0.ɵɵtext(1, "Payment schedule");
423
460
  i0.ɵɵelementEnd();
424
- i0.ɵɵconditionalCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_2_Template, 2, 1, "div", 29)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_3_Template, 2, 0, "div", 29)(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_4_Template, 2, 1, "div", 29)(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_Template, 18, 0, "table", 80);
461
+ i0.ɵɵconditionalCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_2_Template, 2, 1, "div", 29)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_3_Template, 2, 0, "div", 29)(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_4_Template, 2, 1, "div", 29)(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Conditional_5_Template, 18, 0, "table", 83);
425
462
  } if (rf & 2) {
426
463
  const ctx_r1 = i0.ɵɵnextContext(4);
427
464
  i0.ɵɵadvance(2);
@@ -446,7 +483,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
446
483
  i0.ɵɵelementEnd()();
447
484
  i0.ɵɵconditionalCreate(10, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_10_Template, 4, 2, "label", 73);
448
485
  i0.ɵɵelementEnd();
449
- i0.ɵɵconditionalCreate(11, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template, 3, 8)(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_12_Template, 2, 0, "div", 29);
486
+ i0.ɵɵconditionalCreate(11, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_11_Template, 4, 9)(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_12_Template, 2, 0, "div", 29);
450
487
  i0.ɵɵconditionalCreate(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Template, 6, 1);
451
488
  i0.ɵɵelementEnd();
452
489
  } if (rf & 2) {
@@ -467,30 +504,30 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
467
504
  i0.ɵɵconditional(ctx_r1.record.IsSaved ? 13 : -1);
468
505
  } }
469
506
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template(rf, ctx) { if (rf & 1) {
470
- const _r21 = i0.ɵɵgetCurrentView();
471
- i0.ɵɵelementStart(0, "div", 48)(1, "div", 70)(2, "mj-form-field", 87);
472
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
507
+ const _r22 = i0.ɵɵgetCurrentView();
508
+ i0.ɵɵelementStart(0, "div", 48)(1, "div", 70)(2, "mj-form-field", 90);
509
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
473
510
  i0.ɵɵelementEnd();
474
- i0.ɵɵelementStart(3, "mj-form-field", 88);
475
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
511
+ i0.ɵɵelementStart(3, "mj-form-field", 91);
512
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
476
513
  i0.ɵɵelementEnd();
477
- i0.ɵɵelementStart(4, "mj-form-field", 89);
478
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
514
+ i0.ɵɵelementStart(4, "mj-form-field", 92);
515
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
479
516
  i0.ɵɵelementEnd();
480
- i0.ɵɵelementStart(5, "mj-form-field", 90);
481
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_5_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
517
+ i0.ɵɵelementStart(5, "mj-form-field", 93);
518
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_5_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
482
519
  i0.ɵɵelementEnd();
483
- i0.ɵɵelementStart(6, "mj-form-field", 91);
484
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
520
+ i0.ɵɵelementStart(6, "mj-form-field", 94);
521
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
485
522
  i0.ɵɵelementEnd();
486
- i0.ɵɵelementStart(7, "mj-form-field", 92);
487
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_7_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
523
+ i0.ɵɵelementStart(7, "mj-form-field", 95);
524
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_7_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
488
525
  i0.ɵɵelementEnd();
489
- i0.ɵɵelementStart(8, "mj-form-field", 93);
490
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
526
+ i0.ɵɵelementStart(8, "mj-form-field", 96);
527
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
491
528
  i0.ɵɵelementEnd();
492
- i0.ɵɵelementStart(9, "mj-form-field", 94);
493
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
529
+ i0.ɵɵelementStart(9, "mj-form-field", 97);
530
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
494
531
  i0.ɵɵelementEnd()()();
495
532
  } if (rf & 2) {
496
533
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -517,9 +554,9 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
517
554
  i0.ɵɵelementEnd();
518
555
  } }
519
556
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template(rf, ctx) { if (rf & 1) {
520
- const _r22 = i0.ɵɵgetCurrentView();
521
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 77);
522
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
557
+ const _r23 = i0.ɵɵgetCurrentView();
558
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 78);
559
+ 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(_r23); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
523
560
  i0.ɵɵelementEnd();
524
561
  i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Conditional_1_Template, 2, 0, "div", 29);
525
562
  } if (rf & 2) {
@@ -544,10 +581,10 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
544
581
  i0.ɵɵtext(0, " Every stored journal this order caused, unnetted \u2014 open a row to drill in ");
545
582
  } }
546
583
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template(rf, ctx) { if (rf & 1) {
547
- const _r24 = i0.ɵɵgetCurrentView();
548
- i0.ɵɵelementStart(0, "button", 103);
549
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OpenAccountingExport()); });
550
- i0.ɵɵelement(1, "i", 104);
584
+ const _r25 = i0.ɵɵgetCurrentView();
585
+ i0.ɵɵelementStart(0, "button", 106);
586
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OpenAccountingExport()); });
587
+ i0.ɵɵelement(1, "i", 107);
551
588
  i0.ɵɵtext(2, " Export ");
552
589
  i0.ɵɵelementEnd();
553
590
  } if (rf & 2) {
@@ -555,7 +592,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
555
592
  i0.ɵɵproperty("disabled", !ctx_r1.CanExportAccounting);
556
593
  } }
557
594
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_15_Template(rf, ctx) { if (rf & 1) {
558
- i0.ɵɵelementStart(0, "span", 99);
595
+ i0.ɵɵelementStart(0, "span", 102);
559
596
  i0.ɵɵtext(1);
560
597
  i0.ɵɵelementEnd();
561
598
  } if (rf & 2) {
@@ -564,9 +601,9 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
564
601
  i0.ɵɵtextInterpolate(ctx_r1.RollupJournalCount);
565
602
  } }
566
603
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template(rf, ctx) { if (rf & 1) {
567
- const _r26 = i0.ɵɵgetCurrentView();
568
- i0.ɵɵelementStart(0, "button", 110);
569
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged("")); });
604
+ const _r27 = i0.ɵɵgetCurrentView();
605
+ i0.ɵɵelementStart(0, "button", 113);
606
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged("")); });
570
607
  i0.ɵɵtext(1, " Lifetime ");
571
608
  i0.ɵɵelementEnd();
572
609
  } }
@@ -577,23 +614,23 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
577
614
  i0.ɵɵtext(0, " Subledger date on the entry itself ");
578
615
  } }
579
616
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template(rf, ctx) { if (rf & 1) {
580
- const _r25 = i0.ɵɵgetCurrentView();
581
- i0.ɵɵelementStart(0, "div", 101)(1, "label", 105)(2, "span");
617
+ const _r26 = i0.ɵɵgetCurrentView();
618
+ i0.ɵɵelementStart(0, "div", 104)(1, "label", 108)(2, "span");
582
619
  i0.ɵɵtext(3, "As of");
583
620
  i0.ɵɵelementEnd();
584
- i0.ɵɵelementStart(4, "input", 106);
585
- i0.ɵɵlistener("change", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged($event.target.value)); });
621
+ i0.ɵɵelementStart(4, "input", 109);
622
+ i0.ɵɵlistener("change", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged($event.target.value)); });
586
623
  i0.ɵɵelementEnd()();
587
- i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template, 2, 0, "button", 107);
588
- i0.ɵɵelementStart(6, "div", 108)(7, "button", 62);
589
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("effective")); });
624
+ i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Conditional_5_Template, 2, 0, "button", 110);
625
+ i0.ɵɵelementStart(6, "div", 111)(7, "button", 62);
626
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("effective")); });
590
627
  i0.ɵɵtext(8, " Effective date ");
591
628
  i0.ɵɵelementEnd();
592
629
  i0.ɵɵelementStart(9, "button", 62);
593
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("posting")); });
630
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("posting")); });
594
631
  i0.ɵɵtext(10, " Posting date ");
595
632
  i0.ɵɵelementEnd()();
596
- i0.ɵɵelementStart(11, "span", 109);
633
+ i0.ɵɵelementStart(11, "span", 112);
597
634
  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);
598
635
  i0.ɵɵelementEnd()();
599
636
  } if (rf & 2) {
@@ -610,9 +647,9 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
610
647
  i0.ɵɵconditional(ctx_r1.AccountingBasis === "posting" ? 12 : 13);
611
648
  } }
612
649
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template(rf, ctx) { if (rf & 1) {
613
- const _r27 = i0.ɵɵgetCurrentView();
614
- i0.ɵɵelementStart(0, "div", 102)(1, "mj-deferred-revenue-waterfall", 111);
615
- i0.ɵɵlistener("JournalEntrySelected", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template_mj_deferred_revenue_waterfall_JournalEntrySelected_1_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnJournalEntrySelected($event)); });
650
+ const _r28 = i0.ɵɵgetCurrentView();
651
+ i0.ɵɵelementStart(0, "div", 105)(1, "mj-deferred-revenue-waterfall", 114);
652
+ i0.ɵɵlistener("JournalEntrySelected", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template_mj_deferred_revenue_waterfall_JournalEntrySelected_1_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnJournalEntrySelected($event)); });
616
653
  i0.ɵɵelementEnd()();
617
654
  } if (rf & 2) {
618
655
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -652,77 +689,77 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
652
689
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 1 : 2);
653
690
  } }
654
691
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
655
- i0.ɵɵelementStart(0, "span", 121);
692
+ i0.ɵɵelementStart(0, "span", 124);
656
693
  i0.ɵɵtext(1);
657
694
  i0.ɵɵelementEnd();
658
695
  } if (rf & 2) {
659
- const row_r28 = i0.ɵɵnextContext().$implicit;
696
+ const row_r29 = i0.ɵɵnextContext().$implicit;
660
697
  i0.ɵɵadvance();
661
- i0.ɵɵtextInterpolate(row_r28.AccountCode);
698
+ i0.ɵɵtextInterpolate(row_r29.AccountCode);
662
699
  } }
663
700
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_For_8_Template(rf, ctx) { if (rf & 1) {
664
- i0.ɵɵelementStart(0, "span", 85);
701
+ i0.ɵɵelementStart(0, "span", 88);
665
702
  i0.ɵɵtext(1);
666
703
  i0.ɵɵelementEnd();
667
704
  } if (rf & 2) {
668
- const dim_r29 = ctx.$implicit;
705
+ const dim_r30 = ctx.$implicit;
669
706
  i0.ɵɵadvance();
670
- i0.ɵɵtextInterpolate2("", dim_r29.Name, " \u00B7 ", dim_r29.Value);
707
+ i0.ɵɵtextInterpolate2("", dim_r30.Name, " \u00B7 ", dim_r30.Value);
671
708
  } }
672
709
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Template(rf, ctx) { if (rf & 1) {
673
- i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 120);
674
- i0.ɵɵconditionalCreate(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Conditional_3_Template, 2, 1, "span", 121);
675
- i0.ɵɵelementStart(4, "span", 122);
710
+ i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 123);
711
+ i0.ɵɵconditionalCreate(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_Conditional_3_Template, 2, 1, "span", 124);
712
+ i0.ɵɵelementStart(4, "span", 125);
676
713
  i0.ɵɵtext(5);
677
714
  i0.ɵɵelementEnd()();
678
- i0.ɵɵelementStart(6, "div", 123);
679
- i0.ɵɵrepeaterCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_For_8_Template, 2, 2, "span", 85, _forTrack3);
680
- i0.ɵɵelementStart(9, "span", 124);
715
+ i0.ɵɵelementStart(6, "div", 126);
716
+ i0.ɵɵrepeaterCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_For_20_For_8_Template, 2, 2, "span", 88, _forTrack3);
717
+ i0.ɵɵelementStart(9, "span", 127);
681
718
  i0.ɵɵtext(10);
682
719
  i0.ɵɵelementEnd()()();
683
- i0.ɵɵelementStart(11, "td", 81);
720
+ i0.ɵɵelementStart(11, "td", 84);
684
721
  i0.ɵɵtext(12);
685
722
  i0.ɵɵelementEnd();
686
- i0.ɵɵelementStart(13, "td", 81);
723
+ i0.ɵɵelementStart(13, "td", 84);
687
724
  i0.ɵɵtext(14);
688
725
  i0.ɵɵelementEnd()();
689
726
  } if (rf & 2) {
690
- const row_r28 = ctx.$implicit;
727
+ const row_r29 = ctx.$implicit;
691
728
  const ctx_r1 = i0.ɵɵnextContext(7);
692
729
  i0.ɵɵadvance(3);
693
- i0.ɵɵconditional(row_r28.AccountCode ? 3 : -1);
730
+ i0.ɵɵconditional(row_r29.AccountCode ? 3 : -1);
694
731
  i0.ɵɵadvance(2);
695
- i0.ɵɵtextInterpolate(row_r28.AccountName);
732
+ i0.ɵɵtextInterpolate(row_r29.AccountName);
696
733
  i0.ɵɵadvance(2);
697
- i0.ɵɵrepeater(row_r28.Dimensions);
734
+ i0.ɵɵrepeater(row_r29.Dimensions);
698
735
  i0.ɵɵadvance(3);
699
- i0.ɵɵtextInterpolate(ctx_r1.SourceLineLabel(row_r28.SourceLineCount));
736
+ i0.ɵɵtextInterpolate(ctx_r1.SourceLineLabel(row_r29.SourceLineCount));
700
737
  i0.ɵɵadvance();
701
- i0.ɵɵclassProp("is-quiet", !row_r28.Debit);
738
+ i0.ɵɵclassProp("is-quiet", !row_r29.Debit);
702
739
  i0.ɵɵadvance();
703
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r28.Debit));
740
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r29.Debit));
704
741
  i0.ɵɵadvance();
705
- i0.ɵɵclassProp("is-quiet", !row_r28.Credit);
742
+ i0.ɵɵclassProp("is-quiet", !row_r29.Credit);
706
743
  i0.ɵɵadvance();
707
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r28.Credit));
744
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r29.Credit));
708
745
  } }
709
746
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_Template(rf, ctx) { if (rf & 1) {
710
- i0.ɵɵelementStart(0, "article", 113)(1, "header", 115)(2, "div")(3, "span", 116);
747
+ i0.ɵɵelementStart(0, "article", 116)(1, "header", 118)(2, "div")(3, "span", 119);
711
748
  i0.ɵɵtext(4);
712
749
  i0.ɵɵelementEnd();
713
- i0.ɵɵelementStart(5, "span", 117);
750
+ i0.ɵɵelementStart(5, "span", 120);
714
751
  i0.ɵɵtext(6);
715
752
  i0.ɵɵelementEnd()();
716
- i0.ɵɵelementStart(7, "span", 118);
753
+ i0.ɵɵelementStart(7, "span", 121);
717
754
  i0.ɵɵtext(8);
718
755
  i0.ɵɵelementEnd()();
719
- i0.ɵɵelementStart(9, "table", 119)(10, "thead")(11, "tr")(12, "th");
756
+ i0.ɵɵelementStart(9, "table", 122)(10, "thead")(11, "tr")(12, "th");
720
757
  i0.ɵɵtext(13, "Account");
721
758
  i0.ɵɵelementEnd();
722
- i0.ɵɵelementStart(14, "th", 81);
759
+ i0.ɵɵelementStart(14, "th", 84);
723
760
  i0.ɵɵtext(15, "Debit");
724
761
  i0.ɵɵelementEnd();
725
- i0.ɵɵelementStart(16, "th", 81);
762
+ i0.ɵɵelementStart(16, "th", 84);
726
763
  i0.ɵɵtext(17, "Credit");
727
764
  i0.ɵɵelementEnd()()();
728
765
  i0.ɵɵelementStart(18, "tbody");
@@ -731,42 +768,42 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
731
768
  i0.ɵɵelementStart(21, "tfoot")(22, "tr")(23, "th");
732
769
  i0.ɵɵtext(24, "Total");
733
770
  i0.ɵɵelementEnd();
734
- i0.ɵɵelementStart(25, "td", 81);
771
+ i0.ɵɵelementStart(25, "td", 84);
735
772
  i0.ɵɵtext(26);
736
773
  i0.ɵɵelementEnd();
737
- i0.ɵɵelementStart(27, "td", 81);
774
+ i0.ɵɵelementStart(27, "td", 84);
738
775
  i0.ɵɵtext(28);
739
776
  i0.ɵɵelementEnd()()()()();
740
777
  } if (rf & 2) {
741
- const card_r30 = ctx.$implicit;
778
+ const card_r31 = ctx.$implicit;
742
779
  const ctx_r1 = i0.ɵɵnextContext(6);
743
780
  i0.ɵɵadvance(4);
744
- i0.ɵɵtextInterpolate(card_r30.Company);
781
+ i0.ɵɵtextInterpolate(card_r31.Company);
745
782
  i0.ɵɵadvance(2);
746
- i0.ɵɵtextInterpolate2("", card_r30.Rows.length, " ", card_r30.Rows.length === 1 ? "line" : "lines");
783
+ i0.ɵɵtextInterpolate2("", card_r31.Rows.length, " ", card_r31.Rows.length === 1 ? "line" : "lines");
747
784
  i0.ɵɵadvance();
748
- i0.ɵɵclassProp("mjo-oh-chip--ok", ctx_r1.CardIsBalanced(card_r30));
785
+ i0.ɵɵclassProp("mjo-oh-chip--ok", ctx_r1.CardIsBalanced(card_r31));
749
786
  i0.ɵɵadvance();
750
- i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r30) ? "Balanced" : "Out of balance", " ");
787
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r31) ? "Balanced" : "Out of balance", " ");
751
788
  i0.ɵɵadvance(11);
752
- i0.ɵɵrepeater(card_r30.Rows);
789
+ i0.ɵɵrepeater(card_r31.Rows);
753
790
  i0.ɵɵadvance(7);
754
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r30.TotalDebit));
791
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r31.TotalDebit));
755
792
  i0.ɵɵadvance(2);
756
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r30.TotalCredit));
793
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r31.TotalCredit));
757
794
  } }
758
795
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_3_Template(rf, ctx) { if (rf & 1) {
759
- i0.ɵɵelementStart(0, "p", 114);
796
+ i0.ɵɵelementStart(0, "p", 117);
760
797
  i0.ɵɵtext(1);
761
798
  i0.ɵɵelementEnd();
762
799
  } if (rf & 2) {
763
- const note_r31 = ctx.$implicit;
800
+ const note_r32 = ctx.$implicit;
764
801
  i0.ɵɵadvance();
765
- i0.ɵɵtextInterpolate(note_r31);
802
+ i0.ɵɵtextInterpolate(note_r32);
766
803
  } }
767
804
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_Template(rf, ctx) { if (rf & 1) {
768
- i0.ɵɵrepeaterCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_Template, 29, 8, "article", 113, _forTrack1);
769
- i0.ɵɵrepeaterCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_3_Template, 2, 1, "p", 114, i0.ɵɵrepeaterTrackByIdentity);
805
+ i0.ɵɵrepeaterCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_1_Template, 29, 8, "article", 116, _forTrack1);
806
+ i0.ɵɵrepeaterCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_For_3_Template, 2, 1, "p", 117, i0.ɵɵrepeaterTrackByIdentity);
770
807
  } if (rf & 2) {
771
808
  const ctx_r1 = i0.ɵɵnextContext(5);
772
809
  i0.ɵɵrepeater(ctx_r1.RollupCards);
@@ -774,11 +811,11 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
774
811
  i0.ɵɵrepeater(ctx_r1.RollupSharedNotes);
775
812
  } }
776
813
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template(rf, ctx) { if (rf & 1) {
777
- const _r32 = i0.ɵɵgetCurrentView();
778
- i0.ɵɵelementStart(0, "p", 112);
814
+ const _r33 = i0.ɵɵgetCurrentView();
815
+ i0.ɵɵelementStart(0, "p", 115);
779
816
  i0.ɵɵtext(1);
780
- i0.ɵɵelementStart(2, "button", 86);
781
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r32); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
817
+ i0.ɵɵelementStart(2, "button", 89);
818
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r33); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
782
819
  i0.ɵɵtext(3, "see By line");
783
820
  i0.ɵɵelementEnd()();
784
821
  } if (rf & 2) {
@@ -788,7 +825,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
788
825
  } }
789
826
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Template(rf, ctx) { if (rf & 1) {
790
827
  i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_0_Template, 2, 0, "div", 29)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_1_Template, 2, 1, "div", 29)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_2_Template, 3, 1, "div", 29)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_3_Template, 4, 0);
791
- i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template, 4, 1, "p", 112);
828
+ i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Conditional_4_Template, 4, 1, "p", 115);
792
829
  } if (rf & 2) {
793
830
  const ctx_r1 = i0.ɵɵnextContext(4);
794
831
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.RollupCards.length === 0 ? 2 : 3);
@@ -828,26 +865,26 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
828
865
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 1 : 2);
829
866
  } }
830
867
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Conditional_7_Template(rf, ctx) { if (rf & 1) {
831
- i0.ɵɵelementStart(0, "span", 85);
868
+ i0.ɵɵelementStart(0, "span", 88);
832
869
  i0.ɵɵtext(1);
833
870
  i0.ɵɵelementEnd();
834
871
  } if (rf & 2) {
835
- const row_r34 = i0.ɵɵnextContext().$implicit;
872
+ const row_r35 = i0.ɵɵnextContext().$implicit;
836
873
  const ctx_r1 = i0.ɵɵnextContext(6);
837
874
  i0.ɵɵadvance();
838
- i0.ɵɵtextInterpolate(ctx_r1.SharedOrdersLabel(row_r34.SharedWithOtherOrders));
875
+ i0.ɵɵtextInterpolate(ctx_r1.SharedOrdersLabel(row_r35.SharedWithOtherOrders));
839
876
  } }
840
877
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template(rf, ctx) { if (rf & 1) {
841
- const _r33 = i0.ɵɵgetCurrentView();
842
- i0.ɵɵelementStart(0, "tr", 126);
843
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template_tr_click_0_listener() { const row_r34 = i0.ɵɵrestoreView(_r33).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnJournalRowSelected(row_r34.ID)); });
844
- i0.ɵɵelementStart(1, "td")(2, "div", 122);
878
+ const _r34 = i0.ɵɵgetCurrentView();
879
+ i0.ɵɵelementStart(0, "tr", 129);
880
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template_tr_click_0_listener() { const row_r35 = i0.ɵɵrestoreView(_r34).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnJournalRowSelected(row_r35.ID)); });
881
+ i0.ɵɵelementStart(1, "td")(2, "div", 125);
845
882
  i0.ɵɵtext(3);
846
883
  i0.ɵɵelementEnd();
847
- i0.ɵɵelementStart(4, "div", 123)(5, "span");
884
+ i0.ɵɵelementStart(4, "div", 126)(5, "span");
848
885
  i0.ɵɵtext(6);
849
886
  i0.ɵɵelementEnd();
850
- i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Conditional_7_Template, 2, 1, "span", 85);
887
+ i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Conditional_7_Template, 2, 1, "span", 88);
851
888
  i0.ɵɵelementEnd()();
852
889
  i0.ɵɵelementStart(8, "td");
853
890
  i0.ɵɵtext(9);
@@ -861,41 +898,41 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
861
898
  i0.ɵɵelementStart(14, "td");
862
899
  i0.ɵɵtext(15);
863
900
  i0.ɵɵelementEnd();
864
- i0.ɵɵelementStart(16, "td", 81);
901
+ i0.ɵɵelementStart(16, "td", 84);
865
902
  i0.ɵɵtext(17);
866
903
  i0.ɵɵelementEnd();
867
- i0.ɵɵelementStart(18, "td", 81);
904
+ i0.ɵɵelementStart(18, "td", 84);
868
905
  i0.ɵɵtext(19);
869
906
  i0.ɵɵelementEnd()();
870
907
  } if (rf & 2) {
871
- const row_r34 = ctx.$implicit;
908
+ const row_r35 = ctx.$implicit;
872
909
  const ctx_r1 = i0.ɵɵnextContext(6);
873
- i0.ɵɵproperty("EntityName", ctx_r1.JournalEntryEntity)("RecordID", row_r34.ID)("DisplayName", row_r34.EntryNumber)("HandleClick", false);
910
+ i0.ɵɵproperty("EntityName", ctx_r1.JournalEntryEntity)("RecordID", row_r35.ID)("DisplayName", row_r35.EntryNumber)("HandleClick", false);
874
911
  i0.ɵɵadvance(3);
875
- i0.ɵɵtextInterpolate(row_r34.EntryNumber);
912
+ i0.ɵɵtextInterpolate(row_r35.EntryNumber);
876
913
  i0.ɵɵadvance(3);
877
- i0.ɵɵtextInterpolate(row_r34.Description);
914
+ i0.ɵɵtextInterpolate(row_r35.Description);
878
915
  i0.ɵɵadvance();
879
- i0.ɵɵconditional(row_r34.SharedWithOtherOrders ? 7 : -1);
916
+ i0.ɵɵconditional(row_r35.SharedWithOtherOrders ? 7 : -1);
880
917
  i0.ɵɵadvance(2);
881
- i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r34.EffectiveDate));
918
+ i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r35.EffectiveDate));
882
919
  i0.ɵɵadvance(2);
883
- i0.ɵɵtextInterpolate(row_r34.BatchNumber || "\u2014");
920
+ i0.ɵɵtextInterpolate(row_r35.BatchNumber || "\u2014");
884
921
  i0.ɵɵadvance(2);
885
- i0.ɵɵtextInterpolate(row_r34.BatchStatus || "Not batched");
922
+ i0.ɵɵtextInterpolate(row_r35.BatchStatus || "Not batched");
886
923
  i0.ɵɵadvance(2);
887
- i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r34.BatchPostingDate));
924
+ i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r35.BatchPostingDate));
888
925
  i0.ɵɵadvance();
889
- i0.ɵɵclassProp("is-quiet", !row_r34.Debit);
926
+ i0.ɵɵclassProp("is-quiet", !row_r35.Debit);
890
927
  i0.ɵɵadvance();
891
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r34.Debit));
928
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r35.Debit));
892
929
  i0.ɵɵadvance();
893
- i0.ɵɵclassProp("is-quiet", !row_r34.Credit);
930
+ i0.ɵɵclassProp("is-quiet", !row_r35.Credit);
894
931
  i0.ɵɵadvance();
895
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r34.Credit));
932
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r35.Credit));
896
933
  } }
897
934
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Conditional_20_Template(rf, ctx) { if (rf & 1) {
898
- i0.ɵɵelementStart(0, "p", 112);
935
+ i0.ɵɵelementStart(0, "p", 115);
899
936
  i0.ɵɵtext(1);
900
937
  i0.ɵɵelementEnd();
901
938
  } if (rf & 2) {
@@ -904,7 +941,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
904
941
  i0.ɵɵtextInterpolate1("", ctx_r1.RollupExcludedLabel, ", not listed above.");
905
942
  } }
906
943
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Template(rf, ctx) { if (rf & 1) {
907
- i0.ɵɵelementStart(0, "table", 80)(1, "thead")(2, "tr")(3, "th");
944
+ i0.ɵɵelementStart(0, "table", 83)(1, "thead")(2, "tr")(3, "th");
908
945
  i0.ɵɵtext(4, "Entry");
909
946
  i0.ɵɵelementEnd();
910
947
  i0.ɵɵelementStart(5, "th");
@@ -919,16 +956,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
919
956
  i0.ɵɵelementStart(11, "th");
920
957
  i0.ɵɵtext(12, "Posting date");
921
958
  i0.ɵɵelementEnd();
922
- i0.ɵɵelementStart(13, "th", 81);
959
+ i0.ɵɵelementStart(13, "th", 84);
923
960
  i0.ɵɵtext(14, "Debit");
924
961
  i0.ɵɵelementEnd();
925
- i0.ɵɵelementStart(15, "th", 81);
962
+ i0.ɵɵelementStart(15, "th", 84);
926
963
  i0.ɵɵtext(16, "Credit");
927
964
  i0.ɵɵelementEnd()()();
928
965
  i0.ɵɵelementStart(17, "tbody");
929
- i0.ɵɵrepeaterCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template, 20, 17, "tr", 125, _forTrack0);
966
+ i0.ɵɵrepeaterCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_For_19_Template, 20, 17, "tr", 128, _forTrack0);
930
967
  i0.ɵɵelementEnd()();
931
- i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Conditional_20_Template, 2, 1, "p", 112);
968
+ i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Conditional_3_Conditional_20_Template, 2, 1, "p", 115);
932
969
  } if (rf & 2) {
933
970
  const ctx_r1 = i0.ɵɵnextContext(5);
934
971
  i0.ɵɵadvance(18);
@@ -943,31 +980,31 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
943
980
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.JournalRows.length === 0 ? 2 : 3);
944
981
  } }
945
982
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template(rf, ctx) { if (rf & 1) {
946
- const _r23 = i0.ɵɵgetCurrentView();
947
- i0.ɵɵelementStart(0, "div", 48)(1, "div", 95)(2, "div")(3, "h2");
983
+ const _r24 = i0.ɵɵgetCurrentView();
984
+ i0.ɵɵelementStart(0, "div", 48)(1, "div", 98)(2, "div")(3, "h2");
948
985
  i0.ɵɵtext(4);
949
986
  i0.ɵɵelementEnd();
950
987
  i0.ɵɵelementStart(5, "p");
951
988
  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);
952
989
  i0.ɵɵelementEnd()();
953
- i0.ɵɵelementStart(8, "div", 96);
954
- i0.ɵɵconditionalCreate(9, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template, 3, 1, "button", 97);
955
- i0.ɵɵelementStart(10, "div", 98)(11, "button", 62);
956
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
990
+ i0.ɵɵelementStart(8, "div", 99);
991
+ i0.ɵɵconditionalCreate(9, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_9_Template, 3, 1, "button", 100);
992
+ i0.ɵɵelementStart(10, "div", 101)(11, "button", 62);
993
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
957
994
  i0.ɵɵtext(12, "Rolled up");
958
995
  i0.ɵɵelementEnd();
959
996
  i0.ɵɵelementStart(13, "button", 62);
960
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_13_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
997
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_13_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
961
998
  i0.ɵɵtext(14, " By line ");
962
- i0.ɵɵconditionalCreate(15, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_15_Template, 2, 1, "span", 99);
999
+ i0.ɵɵconditionalCreate(15, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_15_Template, 2, 1, "span", 102);
963
1000
  i0.ɵɵelementEnd();
964
1001
  i0.ɵɵelementStart(16, "button", 62);
965
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("waterfall")); });
966
- i0.ɵɵelement(17, "i", 100);
1002
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("waterfall")); });
1003
+ i0.ɵɵelement(17, "i", 103);
967
1004
  i0.ɵɵtext(18, " Rev-Rec Waterfall ");
968
1005
  i0.ɵɵelementEnd()()()();
969
- i0.ɵɵconditionalCreate(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template, 14, 7, "div", 101);
970
- i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template, 2, 2, "div", 102)(21, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_21_Template, 5, 2)(22, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_22_Template, 4, 1);
1006
+ i0.ɵɵconditionalCreate(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_19_Template, 14, 7, "div", 104);
1007
+ i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_45_Conditional_20_Template, 2, 2, "div", 105)(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);
971
1008
  i0.ɵɵelementEnd();
972
1009
  } if (rf & 2) {
973
1010
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -991,9 +1028,9 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
991
1028
  i0.ɵɵconditional(ctx_r1.AccountingView === "waterfall" ? 20 : ctx_r1.AccountingView === "summary" ? 21 : 22);
992
1029
  } }
993
1030
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template(rf, ctx) { if (rf & 1) {
994
- const _r35 = i0.ɵɵgetCurrentView();
995
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 128);
996
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r35); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1031
+ const _r36 = i0.ɵɵgetCurrentView();
1032
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 131);
1033
+ 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(_r36); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
997
1034
  i0.ɵɵelementEnd();
998
1035
  } if (rf & 2) {
999
1036
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -1001,7 +1038,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
1001
1038
  } }
1002
1039
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Template(rf, ctx) { if (rf & 1) {
1003
1040
  i0.ɵɵelementStart(0, "div", 48);
1004
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template, 1, 6, "mj-explorer-entity-data-grid", 127);
1041
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_47_Conditional_1_Template, 1, 6, "mj-explorer-entity-data-grid", 130);
1005
1042
  i0.ɵɵelementEnd();
1006
1043
  } if (rf & 2) {
1007
1044
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -1211,7 +1248,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Template(rf, ctx) { if (r
1211
1248
  i0.ɵɵadvance();
1212
1249
  i0.ɵɵproperty("Form", ctx_r1)("FormContext", ctx_r1.formContext)("BadgeCount", ctx_r1.LineBadge)("DefaultExpanded", true);
1213
1250
  i0.ɵɵadvance();
1214
- i0.ɵɵproperty("Order", ctx_r1.record)("EditMode", ctx_r1.ComposeMode);
1251
+ i0.ɵɵproperty("Order", ctx_r1.record)("EditMode", ctx_r1.ComposeMode)("Instalments", ctx_r1.Instalments);
1215
1252
  i0.ɵɵadvance();
1216
1253
  i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx_r1.record.EntityInfo.Name))("Record", ctx_r1.record)("FormComponent", ctx_r1)("FormContext", ctx_r1.formContext);
1217
1254
  i0.ɵɵadvance();
@@ -1282,6 +1319,8 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1282
1319
  AccountingExportVisible = false;
1283
1320
  AccountingExportConfig = null;
1284
1321
  Confirming = false;
1322
+ CheckingExternalPayments = false;
1323
+ ExternalPaymentNotice = null;
1285
1324
  StatusError = null;
1286
1325
  /**
1287
1326
  * One sentence per subscription line whose stated start the confirm replaced (golive #299).
@@ -1319,6 +1358,7 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1319
1358
  return this.EditMode && !this.record?.MoneyLocked;
1320
1359
  }
1321
1360
  navigationService = inject(NavigationService, { optional: true });
1361
+ confirmService = inject(MJConfirmService);
1322
1362
  OnFormNavigate(event) {
1323
1363
  this.Navigate.emit(event);
1324
1364
  DispatchFormNavigation(event, this.navigationService);
@@ -1533,6 +1573,51 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1533
1573
  this.recordEvents = null;
1534
1574
  super.ngOnDestroy();
1535
1575
  }
1576
+ /** True when this booked order has an external invoice document number and an open balance waiting on payment. */
1577
+ get ShowCheckExternalPayments() {
1578
+ return (!!this.record?.IsSaved &&
1579
+ !!this.record?.IsBookedOrder &&
1580
+ Number(this.record?.Balance ?? 0) > 0 &&
1581
+ !!this.record?.ExternalDocumentNumber?.trim());
1582
+ }
1583
+ /** Run the external payment poll from the order's Payment tab and refresh the order if money arrived. */
1584
+ async CheckExternalPaymentsNow() {
1585
+ if (!this.record?.IsSaved || this.CheckingExternalPayments)
1586
+ return;
1587
+ // The poll is not scoped to this order, so it asks first, as the invoicing queue does.
1588
+ if (!(await this.confirmService.Confirm({
1589
+ title: 'Check the rail for payments now?',
1590
+ message: 'This reads every payment the rail reported since the last poll, for all orders on it, not only this one, and records each cleared one as cash against its order.',
1591
+ detail: 'The scheduled poll would do this on its own at its next run.',
1592
+ type: 'warning',
1593
+ confirmText: 'Check and record',
1594
+ cancelText: 'Not yet',
1595
+ })))
1596
+ return;
1597
+ this.CheckingExternalPayments = true;
1598
+ this.ExternalPaymentNotice = null;
1599
+ this.StatusError = null;
1600
+ this.cdr?.detectChanges();
1601
+ try {
1602
+ const result = await new OrdersPollExternalPaymentsOperation().Execute({ Preview: false });
1603
+ const out = result.Output;
1604
+ if (!result.Success || !out) {
1605
+ this.StatusError = result.ErrorMessage?.trim() || 'The payment check could not run.';
1606
+ return;
1607
+ }
1608
+ this.ExternalPaymentNotice = out.Message ?? `${out.Captured} payment(s) recorded.`;
1609
+ if (out.Captured > 0) {
1610
+ await this.RefreshRecord();
1611
+ }
1612
+ }
1613
+ catch (error) {
1614
+ this.StatusError = error instanceof Error ? error.message : String(error);
1615
+ }
1616
+ finally {
1617
+ this.CheckingExternalPayments = false;
1618
+ this.cdr?.detectChanges();
1619
+ }
1620
+ }
1536
1621
  /** Void or reopen. A refusal leaves the previous status in place and shows the reason. */
1537
1622
  async RunStatusChange(status, fallbackMessage) {
1538
1623
  if (!this.record)
@@ -2089,8 +2174,8 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
2089
2174
  });
2090
2175
  }
2091
2176
  static ɵfac = /*@__PURE__*/ (() => { let ɵBizAppsOrderHeaderFormComponent_BaseFactory; return function BizAppsOrderHeaderFormComponent_Factory(__ngFactoryType__) { return (ɵBizAppsOrderHeaderFormComponent_BaseFactory || (ɵBizAppsOrderHeaderFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BizAppsOrderHeaderFormComponent)))(__ngFactoryType__ || BizAppsOrderHeaderFormComponent); }; })();
2092
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsOrderHeaderFormComponent, selectors: [["bizapps-order-header-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["paymentGrid", ""], [3, "Record", "FormComponent"], [3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-hero"], [1, "mjo-oh-hero__top"], [1, "mjo-oh-who"], [1, "mjo-oh-avatar"], [1, "fa-solid", "fa-file-invoice-dollar"], [1, "mjo-oh-title-row"], [1, "mjo-oh-title"], [3, "class"], [1, "mjo-oh-sub"], [1, "mjo-oh-hero__aside"], [1, "mjo-oh-money"], [1, "mjo-oh-kicker"], [1, "mjo-oh-amt"], ["type", "button", 1, "mjo-oh-hero__toggle", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-solid"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsOrdersOrderLines", "SectionName", "Lines", "Icon", "fa fa-list-ol", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "PricingChanged", "Navigate", "Order", "EditMode"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-facts"], [1, "mjo-oh-fact"], ["FieldName", "OrderType", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "CompanyID", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "OrderDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-hint"], [1, "mjo-oh-parties"], [1, "mjo-oh-bubble"], ["role", "button", "tabindex", "0", 1, "mjo-oh-bubble__hit", 3, "click", "keydown.enter", "keydown.space"], [1, "mjo-oh-bubble__ic"], [1, "fa-solid", "fa-truck-fast"], [1, "mjo-oh-bubble__copy"], [1, "mjo-oh-bubble__role"], [1, "mjo-oh-bubble__name"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name", 3, "mjRecordLink", "FieldName", "HandleClick"], [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", "mjRecordLink", "FieldName", "HandleClick"], ["FieldName", "ShipToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ShipToPersonID", "Kind", "Person", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "ship", 3, "Order", "EditMode", "PersonName", "OrganizationName"], ["FieldName", "BillToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "BillToPersonID", "Kind", "Person", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PaymentTermsTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "bill", 3, "Order", "EditMode", "PersonName", "OrganizationName"], [1, "fa-solid", "fa-circle-exclamation"], [1, "mjo-oh-todo__hint"], ["type", "button"], ["type", "button", 3, "click"], [1, "fa-solid", "fa-circle-info"], [1, "mjo-oh-moved__list"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "fa-solid", "fa-building-circle-xmark"], ["type", "button", "aria-label", "Dismiss", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "fa-solid", "fa-calendar-xmark"], [1, "mjo-oh-fields"], ["FieldName", "InitialPaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "InitialPaymentAmount", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-ref"], [1, "mjo-oh-ref__label"], ["type", "date", "aria-label", "Day the initial payment was received", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["placeholder", "Check number or confirmation ID", "autocomplete", "off", "aria-label", "Check or ACH reference", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], [3, "Changed", "OrderHeaderID"], [1, "mjo-oh-subhead"], [1, "mjo-oh-je__table", "mjo-oh-je__table--detail"], [1, "is-num"], [1, "is-clickable"], [1, "is-clickable", 3, "click"], ["type", "button", 1, "mjo-oh-linkbtn"], [1, "mjo-oh-dim"], ["type", "button", 1, "mjo-oh-linkbtn", 3, "click"], ["FieldName", "RequestedDeliveryDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DueDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ExternalDocumentNumber", "Type", "textbox", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "FulfillmentStatus", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SalesRepUserID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Notes", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-acct__bar"], [1, "mjo-oh-acct__actions"], ["type", "button", "mjButton", "", "variant", "outline", "size", "sm", 3, "disabled"], ["role", "group", "aria-label", "Accounting view", 1, "mjo-oh-switch"], [1, "mjo-oh-switch__n"], [1, "fa-solid", "fa-chart-line"], [1, "mjo-oh-acct__controls"], [2, "padding", "12px 0"], ["type", "button", "mjButton", "", "variant", "outline", "size", "sm", 3, "click", "disabled"], [1, "fa-solid", "fa-file-export"], [1, "mjo-oh-asof"], ["type", "date", "aria-label", "Include entries dated on or before", 3, "change", "value"], ["type", "button", 1, "mjo-oh-asof__clear"], ["role", "group", "aria-label", "Date basis", 1, "mjo-oh-switch", "mjo-oh-switch--sm"], [1, "mjo-oh-acct__basis"], ["type", "button", 1, "mjo-oh-asof__clear", 3, "click"], [3, "JournalEntrySelected", "JournalEntries", "Title"], [1, "mjo-oh-acct__excluded"], [1, "mjo-oh-jecard"], [1, "mjo-oh-acct__note"], [1, "mjo-oh-jecard__head"], [1, "mjo-oh-jecard__co"], [1, "mjo-oh-jecard__sub"], [1, "mjo-oh-chip"], [1, "mjo-oh-je__table"], [1, "mjo-oh-acctline"], [1, "mjo-oh-acctline__code"], [1, "mjo-oh-acctline__name"], [1, "mjo-oh-acctline__meta"], [1, "mjo-oh-je__src"], ["mjRecordLink", "", 1, "is-clickable", 3, "EntityName", "RecordID", "DisplayName", "HandleClick"], ["mjRecordLink", "", 1, "is-clickable", 3, "click", "EntityName", "RecordID", "DisplayName", "HandleClick"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"]], template: function BizAppsOrderHeaderFormComponent_Template(rf, ctx) { if (rf & 1) {
2093
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Template, 39, 45, "mj-record-form-container", 1);
2177
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsOrderHeaderFormComponent, selectors: [["bizapps-order-header-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["paymentGrid", ""], [3, "Record", "FormComponent"], [3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-hero"], [1, "mjo-oh-hero__top"], [1, "mjo-oh-who"], [1, "mjo-oh-avatar"], [1, "fa-solid", "fa-file-invoice-dollar"], [1, "mjo-oh-title-row"], [1, "mjo-oh-title"], [3, "class"], [1, "mjo-oh-sub"], [1, "mjo-oh-hero__aside"], [1, "mjo-oh-money"], [1, "mjo-oh-kicker"], [1, "mjo-oh-amt"], ["type", "button", 1, "mjo-oh-hero__toggle", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-solid"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsOrdersOrderLines", "SectionName", "Lines", "Icon", "fa fa-list-ol", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "PricingChanged", "Navigate", "Order", "EditMode", "Instalments"], ["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", 3, "mjRecordLink", "FieldName", "HandleClick"], [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", "mjRecordLink", "FieldName", "HandleClick"], ["FieldName", "ShipToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ShipToPersonID", "Kind", "Person", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "ship", 3, "Order", "EditMode", "PersonName", "OrganizationName"], ["FieldName", "BillToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "BillToPersonID", "Kind", "Person", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PaymentTermsTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "bill", 3, "Order", "EditMode", "PersonName", "OrganizationName"], [1, "fa-solid", "fa-circle-exclamation"], [1, "mjo-oh-todo__hint"], ["type", "button"], ["type", "button", 3, "click"], [1, "fa-solid", "fa-circle-info"], [1, "mjo-oh-moved__list"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "fa-solid", "fa-building-circle-xmark"], ["type", "button", "aria-label", "Dismiss", 3, "click"], [1, "fa-solid", "fa-xmark"], [1, "fa-solid", "fa-calendar-xmark"], [1, "mjo-oh-fields"], ["FieldName", "InitialPaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "InitialPaymentAmount", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-ref"], [1, "mjo-oh-ref__label"], ["type", "date", "aria-label", "Day the initial payment was received", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["placeholder", "Check number or confirmation ID", "autocomplete", "off", "aria-label", "Check or ACH reference", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["data-testid", "order-check-external-payments", 1, "mjo-oh-todo", "mjo-oh-todo--info"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], [3, "Changed", "OrderHeaderID"], ["aria-hidden", "true", 1, "fa-solid", "fa-rotate"], ["type", "button", 3, "click", "disabled"], [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"], ["mjRecordLink", "", 1, "is-clickable", 3, "EntityName", "RecordID", "DisplayName", "HandleClick"], ["mjRecordLink", "", 1, "is-clickable", 3, "click", "EntityName", "RecordID", "DisplayName", "HandleClick"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"]], template: function BizAppsOrderHeaderFormComponent_Template(rf, ctx) { if (rf & 1) {
2178
+ i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Template, 39, 46, "mj-record-form-container", 1);
2094
2179
  } if (rf & 2) {
2095
2180
  i0.ɵɵconditional(ctx.record ? 0 : -1);
2096
2181
  } }, dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i2.MjFormFieldComponent, i2.MjCollapsiblePanelComponent, i2.MjRecordFormContainerComponent, i2.ExplorerEntityDataGridComponent, i2.FormPanelSlotComponent, i2.MjRecordLinkDirective, i3.ExportDialogComponent, i4.MJButtonDirective, i4.MJTabNavComponent, i5.MJOOrderLinesEditorComponent, i6.MJOPartyAddressPickerComponent, i7.MJOOrderPaymentDatesComponent, i8.DeferredRevenueWaterfallComponent, i9.SellingCompanyFieldComponent, i9.PartyFieldComponent], styles: ["\n\n\n\n[_nghost-%COMP%] .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n max-height: none;\n}\n\n[_nghost-%COMP%] .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n}\n\n\n\n\n\n\n\n[_nghost-%COMP%] mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel {\n overflow: visible;\n}\n\n[_nghost-%COMP%] mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n overflow: visible;\n}\n\n[_nghost-%COMP%] mj-collapsible-panel:has(.mj-typeahead-list.is-open) {\n position: relative;\n z-index: 30;\n}\n\n.mjo-oh-hero[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] {\n padding: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-hero__top[_ngcontent-%COMP%] {\n align-items: center;\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-avatar[_ngcontent-%COMP%] {\n width: 32px;\n height: 32px;\n font-size: 14px;\n}\n\n.mjo-oh-hero.is-collapsed[_ngcontent-%COMP%] .mjo-oh-title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base);\n}\n\n.mjo-oh-hero__toggle[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n flex: 0 0 auto;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mjo-oh-hero__toggle[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-hero__top[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-hero__aside[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-confirm[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: var(--mj-space-1);\n min-width: 11rem;\n}\n\n.mjo-oh-confirm__hint[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n text-align: right;\n max-width: 14rem;\n line-height: 1.35;\n}\n\n.mjo-oh-who[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n min-width: 0;\n}\n\n.mjo-oh-avatar[_ngcontent-%COMP%] {\n width: 44px;\n height: 44px;\n border-radius: var(--mj-radius-md);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 18px;\n}\n\n.mjo-oh-title-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-primary);\n letter-spacing: -0.02em;\n}\n\n.mjo-oh-sub[_ngcontent-%COMP%] {\n margin-top: 2px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-kicker[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n padding: 2px 10px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-chip--ok[_ngcontent-%COMP%] {\n color: var(--mj-status-success-text);\n background: var(--mj-status-success-bg);\n border-color: var(--mj-status-success-border);\n}\n\n.mjo-oh-chip--void[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n background: var(--mj-status-error-bg);\n border-color: var(--mj-status-error-border);\n}\n\n.mjo-oh-money[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-5);\n padding: var(--mj-space-2) var(--mj-space-3);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-money[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-amt[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-facts[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n margin-top: var(--mj-space-4);\n padding: var(--mj-space-3);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n\n\n\n.mjo-oh-fact[_ngcontent-%COMP%] .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-oh-fields[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-parties[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--mj-space-3);\n align-items: start;\n margin: var(--mj-space-4) 0 var(--mj-space-3);\n}\n\n.mjo-oh-parties.is-bill[_ngcontent-%COMP%] {\n grid-template-columns: auto minmax(0, 1fr);\n}\n\n.mjo-oh-parties.is-none[_ngcontent-%COMP%] {\n grid-template-columns: 1fr 1fr;\n}\n\n.mjo-oh-bubble[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n min-width: 0;\n}\n\n.mjo-oh-bubble.is-open[_ngcontent-%COMP%] {\n border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] {\n width: 3.25rem;\n flex: 0 0 auto;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2);\n min-height: 5.5rem;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n align-items: center;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__role[_ngcontent-%COMP%] {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n}\n\n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__name[_ngcontent-%COMP%], \n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__detail[_ngcontent-%COMP%], \n.mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__chev[_ngcontent-%COMP%] {\n display: none;\n}\n\n@media (max-width: 720px) {\n .mjo-oh-parties[_ngcontent-%COMP%], \n .mjo-oh-parties.is-bill[_ngcontent-%COMP%], \n .mjo-oh-parties.is-none[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] {\n width: auto;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n flex-direction: row;\n min-height: 0;\n padding: var(--mj-space-2) var(--mj-space-3);\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n align-items: flex-start;\n }\n\n .mjo-oh-bubble.is-rail[_ngcontent-%COMP%] .mjo-oh-bubble__role[_ngcontent-%COMP%] {\n writing-mode: horizontal-tb;\n transform: none;\n }\n}\n\n.mjo-oh-bubble.is-needed[_ngcontent-%COMP%] {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble__hit[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: var(--mj-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__name.mjo-oh-link[_ngcontent-%COMP%] {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: inherit;\n font-weight: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__hit[_ngcontent-%COMP%]:hover { background: var(--mj-bg-surface-hover); }\n\n.mjo-oh-bubble__ic[_ngcontent-%COMP%] {\n width: var(--mj-space-8);\n height: var(--mj-space-8);\n border-radius: var(--mj-radius-sm);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-brand-primary);\n}\n\n.mjo-oh-bubble__copy[_ngcontent-%COMP%] {\n min-width: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-bubble__role[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-bubble__name[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-bubble__detail[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-oh-bubble__chev[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-bubble__edit[_ngcontent-%COMP%] {\n padding: var(--mj-space-3);\n border-top: 1px solid var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-addr[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px dashed var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n\n.mjo-oh-addr__bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-addr__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-addr__btn[_ngcontent-%COMP%] {\n border: 0;\n background: transparent;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n padding: 0;\n}\n\n.mjo-oh-addr__btn[_ngcontent-%COMP%]:disabled {\n color: var(--mj-text-disabled);\n cursor: default;\n}\n\n.mjo-oh-addr__row[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-link[_ngcontent-%COMP%] {\n color: var(--mj-text-link);\n text-decoration: none;\n}\n\n.mjo-oh-link[_ngcontent-%COMP%]:hover { text-decoration: underline; }\n\n.mjo-oh-todo[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-oh-todo[_ngcontent-%COMP%] button[_ngcontent-%COMP%], \n.mjo-oh-todo__hint[_ngcontent-%COMP%] {\n background: var(--mj-status-warning-bg);\n border: 1px solid var(--mj-status-warning-border);\n color: var(--mj-status-warning-text);\n border-radius: var(--mj-radius-full);\n padding: 2px 8px;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-todo[_ngcontent-%COMP%] button[_ngcontent-%COMP%] { cursor: pointer; }\n\n.mjo-oh-todo--err[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n}\n\n\n\n.mjo-oh-todo--info[_ngcontent-%COMP%] {\n color: var(--mj-status-info-text);\n}\n\n.mjo-oh-moved__list[_ngcontent-%COMP%] {\n flex-basis: 100%;\n margin: 0;\n padding-left: var(--mj-space-5);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-ref[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-ref__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-ref[_ngcontent-%COMP%] .mj-input[_ngcontent-%COMP%] {\n max-width: 22rem;\n}\n\n.mjo-oh-tabs[_ngcontent-%COMP%] {\n display: block;\n margin-top: var(--mj-space-2);\n}\n\n.mjo-oh-tabpane[_ngcontent-%COMP%] { margin-top: var(--mj-space-3); }\n\n.mjo-oh-tabpane[_ngcontent-%COMP%] mj-explorer-entity-data-grid[_ngcontent-%COMP%] {\n display: block;\n}\n\n.mjo-oh-hint[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-2);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-subhead[_ngcontent-%COMP%] {\n margin: var(--mj-space-4) 0 var(--mj-space-2);\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 2px 0 0;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__actions[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] {\n display: inline-flex;\n padding: 2px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--mj-text-secondary);\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 5px 12px;\n border-radius: var(--mj-radius-full);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-oh-switch[_ngcontent-%COMP%] button.is-on[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n box-shadow: 0 0 0 1px var(--mj-border-subtle);\n}\n\n.mjo-oh-switch__n[_ngcontent-%COMP%] {\n min-width: 1.25em;\n padding: 0 5px;\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-variant-numeric: tabular-nums;\n text-align: center;\n}\n\n\n\n.mjo-oh-acct__controls[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-asof[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-asof[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n font: inherit;\n font-weight: var(--mj-font-normal);\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-asof__clear[_ngcontent-%COMP%], \n.mjo-oh-linkbtn[_ngcontent-%COMP%] {\n appearance: none;\n border: 0;\n background: transparent;\n padding: 0;\n font: inherit;\n font-size: var(--mj-text-xs);\n color: var(--mj-brand-primary);\n cursor: pointer;\n text-decoration: underline;\n}\n\n.mjo-oh-switch--sm[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n padding: 4px 10px;\n}\n\n.mjo-oh-acct__basis[_ngcontent-%COMP%], \n.mjo-oh-acct__note[_ngcontent-%COMP%], \n.mjo-oh-acct__excluded[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__note[_ngcontent-%COMP%], \n.mjo-oh-acct__excluded[_ngcontent-%COMP%] {\n margin: var(--mj-space-2) 0 0;\n}\n\n.mjo-oh-je__table--detail[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.is-clickable[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.mjo-oh-je__table--detail[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.is-clickable[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-jecard[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n overflow: hidden;\n}\n\n.mjo-oh-jecard[_ngcontent-%COMP%] + .mjo-oh-jecard[_ngcontent-%COMP%] {\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-jecard__head[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-jecard__co[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-jecard__sub[_ngcontent-%COMP%] {\n margin-left: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], \n.mjo-oh-je__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: var(--mj-space-2) var(--mj-space-3);\n border-bottom: 1px solid var(--mj-border-subtle);\n text-align: left;\n vertical-align: top;\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n border-bottom: 0;\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] .is-num[_ngcontent-%COMP%] {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-oh-je__table[_ngcontent-%COMP%] .is-quiet[_ngcontent-%COMP%] {\n color: var(--mj-text-disabled);\n}\n\n.mjo-oh-acctline[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-acctline__code[_ngcontent-%COMP%] {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.02em;\n}\n\n.mjo-oh-acctline__name[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acctline__meta[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 4px;\n}\n\n.mjo-oh-dim[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n padding: 1px 8px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-je__src[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n@media (max-width: 760px) {\n .mjo-oh-parties[_ngcontent-%COMP%], \n .mjo-oh-facts[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n .mjo-oh-money[_ngcontent-%COMP%] { margin-left: 0; }\n}"] });
@@ -2101,9 +2186,9 @@ BizAppsOrderHeaderFormComponent = __decorate([
2101
2186
  export { BizAppsOrderHeaderFormComponent };
2102
2187
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsOrderHeaderFormComponent, [{
2103
2188
  type: Component,
2104
- 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\" [mjRecordLink]=\"record\" [FieldName]=\"ShipToFieldName\" [HandleClick]=\"false\" (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\" [mjRecordLink]=\"record\" [FieldName]=\"BillToFieldName\" [HandleClick]=\"false\" (click)=\"OpenBillTo($event)\">{{ BillToName }}</button>\n } @else {\n <span class=\"mjo-oh-bubble__name\">{{ BillToName }}</span>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ BillToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'bill'\" [class.fa-chevron-down]=\"ExpandedParty !== 'bill'\"></i>\n </div>\n @if (ExpandedParty === 'bill') {\n <div class=\"mjo-oh-bubble__edit\">\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToOrganizationID\" Kind=\"Organization\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-party-field>\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToPersonID\" Kind=\"Person\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('BillTo', $event)\"></bizapps-party-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentTermsTypeID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mjo-party-address-picker\n [Order]=\"record\"\n Side=\"bill\"\n [EditMode]=\"ComposeMode\"\n [PersonName]=\"record.BillToPerson\"\n [OrganizationName]=\"record.BillToOrganization\">\n </mjo-party-address-picker>\n </div>\n }\n </div>\n </div>\n\n @if (ConfirmBlocked) {\n <div class=\"mjo-oh-todo\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <span>Before this can be confirmed</span>\n @if (ConfirmBlockedReason) {\n @if (NeedsBillTo) {\n <button type=\"button\" (click)=\"JumpToBill()\">Need a bill-to party</button>\n } @else if (NeedsPaymentReference) {\n <button type=\"button\" (click)=\"JumpToPayment()\">Need a check / ACH reference</button>\n } @else {\n <span class=\"mjo-oh-todo__hint\">{{ ConfirmBlockedReason }}</span>\n }\n }\n <!-- What the server's confirm gate would refuse on (golive #340), one item each. -->\n @for (problem of ConcessionBlockers; track $index) {\n <span class=\"mjo-oh-todo__hint\">{{ problem }}</span>\n }\n </div>\n }\n\n @if (ConcessionCheckError) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-circle-info\"></i>\n <span>{{ ConcessionCheckError }}</span>\n </div>\n }\n <!-- Subscription lengths other than the type's term (golive #338). They do not block confirm, so\n they sit under their own neutral heading rather than under \"Before this can be confirmed\". -->\n @if (TermLengthNotes.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-todo--info\">\n <i class=\"fa-solid fa-circle-info\"></i>\n <span>When this is confirmed</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (note of TermLengthNotes; track $index) {\n <li>{{ note }}</li>\n }\n </ul>\n </div>\n }\n\n @if (StatusError) {\n <div class=\"mjo-oh-todo mjo-oh-todo--err\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ StatusError }}</span>\n </div>\n }\n\n @if (ClearedEmployerNotice) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-building-circle-xmark\"></i>\n <span>{{ ClearedEmployerNotice.Message }}</span>\n <button type=\"button\" (click)=\"UndoClearedEmployers()\">Undo</button>\n <button type=\"button\" aria-label=\"Dismiss\" (click)=\"DismissClearedEmployers()\"><i class=\"fa-solid fa-xmark\"></i></button>\n </div>\n }\n\n @if (DisplacedStartNotices.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-moved\" role=\"status\">\n <i class=\"fa-solid fa-calendar-xmark\"></i>\n <span>Service dates changed at confirm</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (notice of DisplacedStartNotices; track $index) {\n <li>{{ notice }}</li>\n }\n </ul>\n </div>\n }\n\n <mj-tab-nav\n class=\"mjo-oh-tabs\"\n [Tabs]=\"ContextTabs\"\n [ActiveKey]=\"ActiveTab ?? ''\"\n (TabChange)=\"SelectTab($event)\">\n </mj-tab-nav>\n\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentTypeID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentAmount\" Type=\"number\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <!-- bc-aidp-next-golive#448: the day the money arrived, when it is not the order's date. -->\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Received on</span>\n <input\n type=\"date\"\n class=\"mj-input\"\n [ngModel]=\"InitialPaymentReceivedDay\"\n (ngModelChange)=\"SetInitialPaymentReceivedDay($event)\"\n [disabled]=\"!ComposeMode\"\n aria-label=\"Day the initial payment was received\">\n <span class=\"mjo-oh-hint\">{{ InitialPaymentReceivedHint }}</span>\n </label>\n @if (PaymentRequiresReference) {\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Check / ACH reference</span>\n <input\n class=\"mj-input\"\n [ngModel]=\"PaymentReference\"\n (ngModelChange)=\"SetPaymentReference($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"Check number or confirmation ID\"\n autocomplete=\"off\"\n aria-label=\"Check or ACH reference\">\n </label>\n }\n </div>\n @if (record.IsSaved && PaymentParams) {\n <mj-explorer-entity-data-grid\n #paymentGrid\n [Params]=\"PaymentParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n <mjo-order-payment-dates [OrderHeaderID]=\"record.ID\" (Changed)=\"paymentGrid.Refresh()\"></mjo-order-payment-dates>\n } @else {\n <div class=\"mjo-oh-hint\">Intent only \u2014 the payment is created when the order is confirmed.</div>\n }\n @if (record.IsSaved) {\n <h3 class=\"mjo-oh-subhead\">Payment schedule</h3>\n @if (InstalmentsError) {\n <div class=\"mjo-oh-hint\">{{ InstalmentsError }}</div>\n } @else if (Instalments === null) {\n <div class=\"mjo-oh-hint\">Loading payment schedule\u2026</div>\n } @else if (Instalments.length === 0) {\n <div class=\"mjo-oh-hint\">{{ NoScheduleNote }}</div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Instalment</th>\n <th>Due</th>\n <th class=\"is-num\">Amount</th>\n <th>Status</th>\n <th>Invoice</th>\n <th>AR raised</th>\n </tr>\n </thead>\n <tbody>\n @for (row of Instalments; track row.ID) {\n <tr class=\"is-clickable\" (click)=\"OpenInstalment(row)\">\n <td>{{ row.InstallmentNumber }}</td>\n <td>{{ InstalmentDue(row) }}</td>\n <td class=\"is-num\">{{ InstalmentAmount(row) }}</td>\n <td>{{ row.Status }}</td>\n <td>{{ row.DocumentNumber || '\u2014' }}</td>\n <td>\n @if (row.JournalEntryID) {\n <button type=\"button\" class=\"mjo-oh-linkbtn\" (click)=\"OpenInstalmentEntry($event, row)\">{{ InstalmentAR(row) }}</button>\n } @else {\n <span class=\"mjo-oh-dim\">{{ InstalmentAR(row) }}</span>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'details') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"RequestedDeliveryDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"DueDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ExternalDocumentNumber\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"FulfillmentStatus\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Status\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"SalesRepUserID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Description\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Notes\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n }\n\n @if (ActiveTab === 'charges' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (ChargeParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"ChargeParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n @if (record.MoneyLocked) {\n <div class=\"mjo-oh-hint\">Charges were booked with the order and cannot be edited.</div>\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'accounting' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-acct__bar\">\n <div>\n <h2>{{ AccountingView === 'summary' ? 'Order journal' : 'Journal entries' }}</h2>\n <p>\n @if (AccountingView === 'summary') {\n Gross debits and credits per account over this order's whole life \u2014 not a stored row\n } @else {\n Every stored journal this order caused, unnetted \u2014 open a row to drill in\n }\n </p>\n </div>\n <div class=\"mjo-oh-acct__actions\">\n @if (AccountingView !== 'waterfall') {\n <button type=\"button\" mjButton variant=\"outline\" size=\"sm\" [disabled]=\"!CanExportAccounting\" (click)=\"OpenAccountingExport()\">\n <i class=\"fa-solid fa-file-export\"></i> Export\n </button>\n }\n <div class=\"mjo-oh-switch\" role=\"group\" aria-label=\"Accounting view\">\n <button type=\"button\" [class.is-on]=\"AccountingView === 'summary'\" (click)=\"SetAccountingView('summary')\">Rolled up</button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'detail'\" (click)=\"SetAccountingView('detail')\">\n By line\n @if (RollupJournalCount) {\n <span class=\"mjo-oh-switch__n\">{{ RollupJournalCount }}</span>\n }\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'waterfall'\" (click)=\"SetAccountingView('waterfall')\">\n <i class=\"fa-solid fa-chart-line\"></i> Rev-Rec Waterfall\n </button>\n </div>\n </div>\n </div>\n\n <!-- One set of controls for both views, so they can never disagree about what is in. -->\n @if (AccountingView !== 'waterfall') {\n <div class=\"mjo-oh-acct__controls\">\n <label class=\"mjo-oh-asof\">\n <span>As of</span>\n <input\n type=\"date\"\n [value]=\"AccountingAsOf ?? ''\"\n (change)=\"OnAccountingAsOfChanged($any($event.target).value)\"\n aria-label=\"Include entries dated on or before\" />\n </label>\n @if (AccountingAsOf) {\n <button type=\"button\" class=\"mjo-oh-asof__clear\" (click)=\"OnAccountingAsOfChanged('')\">\n Lifetime\n </button>\n }\n <div class=\"mjo-oh-switch mjo-oh-switch--sm\" role=\"group\" aria-label=\"Date basis\">\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'effective'\" (click)=\"SetAccountingBasis('effective')\">\n Effective date\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'posting'\" (click)=\"SetAccountingBasis('posting')\">\n Posting date\n </button>\n </div>\n <span class=\"mjo-oh-acct__basis\">\n @if (AccountingBasis === 'posting') {\n GL date of the batch \u2014 Posted batches only\n } @else {\n Subledger date on the entry itself\n }\n </span>\n </div>\n }\n\n @if (AccountingView === 'waterfall') {\n <div style=\"padding: 12px 0;\">\n <mj-deferred-revenue-waterfall\n [JournalEntries]=\"RevRecJournalEntries\"\n [Title]=\"'Order Rev-Rec &amp; Deferred Revenue Schedule'\"\n (JournalEntrySelected)=\"OnJournalEntrySelected($event)\">\n </mj-deferred-revenue-waterfall>\n </div>\n } @else if (AccountingView === 'summary') {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Rolling up journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (RollupCards.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n @for (card of RollupCards; track card.CompanyID) {\n <article class=\"mjo-oh-jecard\">\n <header class=\"mjo-oh-jecard__head\">\n <div>\n <span class=\"mjo-oh-jecard__co\">{{ card.Company }}</span>\n <span class=\"mjo-oh-jecard__sub\">{{ card.Rows.length }} {{ card.Rows.length === 1 ? 'line' : 'lines' }}</span>\n </div>\n <span class=\"mjo-oh-chip\" [class.mjo-oh-chip--ok]=\"CardIsBalanced(card)\">\n {{ CardIsBalanced(card) ? 'Balanced' : 'Out of balance' }}\n </span>\n </header>\n <table class=\"mjo-oh-je__table\">\n <thead>\n <tr>\n <th>Account</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of card.Rows; track row.Key) {\n <tr>\n <td>\n <div class=\"mjo-oh-acctline\">\n @if (row.AccountCode) {\n <span class=\"mjo-oh-acctline__code\">{{ row.AccountCode }}</span>\n }\n <span class=\"mjo-oh-acctline__name\">{{ row.AccountName }}</span>\n </div>\n <div class=\"mjo-oh-acctline__meta\">\n @for (dim of row.Dimensions; track dim.Name + dim.Value) {\n <span class=\"mjo-oh-dim\">{{ dim.Name }} \u00B7 {{ dim.Value }}</span>\n }\n <span class=\"mjo-oh-je__src\">{{ SourceLineLabel(row.SourceLineCount) }}</span>\n </div>\n </td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n <tfoot>\n <tr>\n <th>Total</th>\n <td class=\"is-num\">{{ RollupAmount(card.TotalDebit) }}</td>\n <td class=\"is-num\">{{ RollupAmount(card.TotalCredit) }}</td>\n </tr>\n </tfoot>\n </table>\n </article>\n }\n @for (note of RollupSharedNotes; track note) {\n <p class=\"mjo-oh-acct__note\">{{ note }}</p>\n }\n }\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">\n {{ RollupExcludedLabel }} \u2014\n <button type=\"button\" class=\"mjo-oh-linkbtn\" (click)=\"SetAccountingView('detail')\">see By line</button>\n </p>\n }\n } @else {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Loading journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (JournalRows.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Entry</th>\n <th>Effective</th>\n <th>Batch</th>\n <th>Batch status</th>\n <th>Posting date</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of JournalRows; track row.ID) {\n <tr class=\"is-clickable\" mjRecordLink [EntityName]=\"JournalEntryEntity\" [RecordID]=\"row.ID\" [DisplayName]=\"row.EntryNumber\" [HandleClick]=\"false\" (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"] }]
2189
+ 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\" [mjRecordLink]=\"record\" [FieldName]=\"ShipToFieldName\" [HandleClick]=\"false\" (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\" [mjRecordLink]=\"record\" [FieldName]=\"BillToFieldName\" [HandleClick]=\"false\" (click)=\"OpenBillTo($event)\">{{ BillToName }}</button>\n } @else {\n <span class=\"mjo-oh-bubble__name\">{{ BillToName }}</span>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ BillToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'bill'\" [class.fa-chevron-down]=\"ExpandedParty !== 'bill'\"></i>\n </div>\n @if (ExpandedParty === 'bill') {\n <div class=\"mjo-oh-bubble__edit\">\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToOrganizationID\" Kind=\"Organization\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-party-field>\n <bizapps-party-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToPersonID\" Kind=\"Person\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('BillTo', $event)\"></bizapps-party-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentTermsTypeID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mjo-party-address-picker\n [Order]=\"record\"\n Side=\"bill\"\n [EditMode]=\"ComposeMode\"\n [PersonName]=\"record.BillToPerson\"\n [OrganizationName]=\"record.BillToOrganization\">\n </mjo-party-address-picker>\n </div>\n }\n </div>\n </div>\n\n @if (ConfirmBlocked) {\n <div class=\"mjo-oh-todo\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <span>Before this can be confirmed</span>\n @if (ConfirmBlockedReason) {\n @if (NeedsBillTo) {\n <button type=\"button\" (click)=\"JumpToBill()\">Need a bill-to party</button>\n } @else if (NeedsPaymentReference) {\n <button type=\"button\" (click)=\"JumpToPayment()\">Need a check / ACH reference</button>\n } @else {\n <span class=\"mjo-oh-todo__hint\">{{ ConfirmBlockedReason }}</span>\n }\n }\n <!-- What the server's confirm gate would refuse on (golive #340), one item each. -->\n @for (problem of ConcessionBlockers; track $index) {\n <span class=\"mjo-oh-todo__hint\">{{ problem }}</span>\n }\n </div>\n }\n\n @if (ConcessionCheckError) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-circle-info\"></i>\n <span>{{ ConcessionCheckError }}</span>\n </div>\n }\n <!-- Subscription lengths other than the type's term (golive #338). They do not block confirm, so\n they sit under their own neutral heading rather than under \"Before this can be confirmed\". -->\n @if (TermLengthNotes.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-todo--info\">\n <i class=\"fa-solid fa-circle-info\"></i>\n <span>When this is confirmed</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (note of TermLengthNotes; track $index) {\n <li>{{ note }}</li>\n }\n </ul>\n </div>\n }\n\n @if (StatusError) {\n <div class=\"mjo-oh-todo mjo-oh-todo--err\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ StatusError }}</span>\n </div>\n }\n\n @if (ClearedEmployerNotice) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-building-circle-xmark\"></i>\n <span>{{ ClearedEmployerNotice.Message }}</span>\n <button type=\"button\" (click)=\"UndoClearedEmployers()\">Undo</button>\n <button type=\"button\" aria-label=\"Dismiss\" (click)=\"DismissClearedEmployers()\"><i class=\"fa-solid fa-xmark\"></i></button>\n </div>\n }\n\n @if (DisplacedStartNotices.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-moved\" role=\"status\">\n <i class=\"fa-solid fa-calendar-xmark\"></i>\n <span>Service dates changed at confirm</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (notice of DisplacedStartNotices; track $index) {\n <li>{{ notice }}</li>\n }\n </ul>\n </div>\n }\n\n <mj-tab-nav\n class=\"mjo-oh-tabs\"\n [Tabs]=\"ContextTabs\"\n [ActiveKey]=\"ActiveTab ?? ''\"\n (TabChange)=\"SelectTab($event)\">\n </mj-tab-nav>\n\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentTypeID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentAmount\" Type=\"number\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <!-- bc-aidp-next-golive#448: the day the money arrived, when it is not the order's date. -->\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Received on</span>\n <input\n type=\"date\"\n class=\"mj-input\"\n [ngModel]=\"InitialPaymentReceivedDay\"\n (ngModelChange)=\"SetInitialPaymentReceivedDay($event)\"\n [disabled]=\"!ComposeMode\"\n aria-label=\"Day the initial payment was received\">\n <span class=\"mjo-oh-hint\">{{ InitialPaymentReceivedHint }}</span>\n </label>\n @if (PaymentRequiresReference) {\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Check / ACH reference</span>\n <input\n class=\"mj-input\"\n [ngModel]=\"PaymentReference\"\n (ngModelChange)=\"SetPaymentReference($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"Check number or confirmation ID\"\n autocomplete=\"off\"\n aria-label=\"Check or ACH reference\">\n </label>\n }\n </div>\n @if (record.IsSaved && PaymentParams) {\n @if (ShowCheckExternalPayments) {\n <div class=\"mjo-oh-todo mjo-oh-todo--info\" data-testid=\"order-check-external-payments\">\n <i class=\"fa-solid fa-rotate\" aria-hidden=\"true\"></i>\n <span>Paid on the invoicing rail ({{ record.ExternalDocumentNumber }})?</span>\n <button type=\"button\" [disabled]=\"CheckingExternalPayments\" (click)=\"CheckExternalPaymentsNow()\">\n {{ CheckingExternalPayments ? 'Checking\u2026' : 'Check for payments now' }}\n </button>\n @if (ExternalPaymentNotice) {\n <span class=\"mjo-oh-todo__hint\">{{ ExternalPaymentNotice }}</span>\n }\n </div>\n }\n <mj-explorer-entity-data-grid\n #paymentGrid\n [Params]=\"PaymentParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n <mjo-order-payment-dates [OrderHeaderID]=\"record.ID\" (Changed)=\"paymentGrid.Refresh()\"></mjo-order-payment-dates>\n } @else {\n <div class=\"mjo-oh-hint\">Intent only \u2014 the payment is created when the order is confirmed.</div>\n }\n @if (record.IsSaved) {\n <h3 class=\"mjo-oh-subhead\">Payment schedule</h3>\n @if (InstalmentsError) {\n <div class=\"mjo-oh-hint\">{{ InstalmentsError }}</div>\n } @else if (Instalments === null) {\n <div class=\"mjo-oh-hint\">Loading payment schedule\u2026</div>\n } @else if (Instalments.length === 0) {\n <div class=\"mjo-oh-hint\">{{ NoScheduleNote }}</div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Installment</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\" mjRecordLink [EntityName]=\"JournalEntryEntity\" [RecordID]=\"row.ID\" [DisplayName]=\"row.EntryNumber\" [HandleClick]=\"false\" (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 [Instalments]=\"Instalments\"\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"] }]
2105
2190
  }], null, null); })();
2106
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsOrderHeaderFormComponent, { className: "BizAppsOrderHeaderFormComponent", filePath: "lib/custom/OrderHeader/order-header-form.component.ts", lineNumber: 113 }); })();
2191
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsOrderHeaderFormComponent, { className: "BizAppsOrderHeaderFormComponent", filePath: "lib/custom/OrderHeader/order-header-form.component.ts", lineNumber: 114 }); })();
2107
2192
  /** Tree-shaking prevention anchor. */
2108
2193
  export function LoadOrderHeaderFormComponent() {
2109
2194
  void BizAppsOrderHeaderFormComponent;