@mj-biz-apps/orders-ng 5.29.0 → 5.30.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 (143) hide show
  1. package/dist/checkout-element/main.js +2 -2
  2. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +11 -1
  3. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
  4. package/dist/lib/custom/OrderHeader/order-header-form.component.js +291 -244
  5. package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
  6. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +5 -0
  7. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -1
  8. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +13 -7
  9. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
  10. package/dist/lib/custom/Product/product-form.component.d.ts +19 -0
  11. package/dist/lib/custom/Product/product-form.component.d.ts.map +1 -1
  12. package/dist/lib/custom/Product/product-form.component.js +47 -3
  13. package/dist/lib/custom/Product/product-form.component.js.map +1 -1
  14. package/dist/lib/custom/Product/product-save-guard-form.component.js +68 -65
  15. package/dist/lib/custom/Product/product-save-guard-form.component.js.map +1 -1
  16. package/dist/lib/custom/Product/written-key.d.ts +20 -0
  17. package/dist/lib/custom/Product/written-key.d.ts.map +1 -0
  18. package/dist/lib/custom/Product/written-key.js +22 -0
  19. package/dist/lib/custom/Product/written-key.js.map +1 -0
  20. package/dist/lib/data/orders-queries.d.ts +5 -6
  21. package/dist/lib/data/orders-queries.d.ts.map +1 -1
  22. package/dist/lib/data/orders-queries.js +12 -25
  23. package/dist/lib/data/orders-queries.js.map +1 -1
  24. package/dist/lib/form-panels/order-access-overrides.panel.d.ts +27 -6
  25. package/dist/lib/form-panels/order-access-overrides.panel.d.ts.map +1 -1
  26. package/dist/lib/form-panels/order-access-overrides.panel.js +129 -23
  27. package/dist/lib/form-panels/order-access-overrides.panel.js.map +1 -1
  28. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js +8 -10
  29. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js.map +1 -1
  30. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSessionStep/mjbizappsorderscheckoutsessionstep.form.component.d.ts.map +1 -1
  31. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSessionStep/mjbizappsorderscheckoutsessionstep.form.component.js +22 -7
  32. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSessionStep/mjbizappsorderscheckoutsessionstep.form.component.js.map +1 -1
  33. package/dist/lib/generated/Entities/mjBizAppsOrdersDimensionDefault/mjbizappsordersdimensiondefault.form.component.d.ts.map +1 -1
  34. package/dist/lib/generated/Entities/mjBizAppsOrdersDimensionDefault/mjbizappsordersdimensiondefault.form.component.js +22 -7
  35. package/dist/lib/generated/Entities/mjBizAppsOrdersDimensionDefault/mjbizappsordersdimensiondefault.form.component.js.map +1 -1
  36. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementAccessOverride/mjbizappsordersentitlementaccessoverride.form.component.d.ts.map +1 -1
  37. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementAccessOverride/mjbizappsordersentitlementaccessoverride.form.component.js +28 -7
  38. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementAccessOverride/mjbizappsordersentitlementaccessoverride.form.component.js.map +1 -1
  39. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.js +9 -11
  40. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.js.map +1 -1
  41. package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js +11 -13
  42. package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js.map +1 -1
  43. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.d.ts.map +1 -1
  44. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js +10 -16
  45. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js.map +1 -1
  46. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalCustomer/mjbizappsordersexternalcustomer.form.component.d.ts.map +1 -1
  47. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalCustomer/mjbizappsordersexternalcustomer.form.component.js +16 -7
  48. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalCustomer/mjbizappsordersexternalcustomer.form.component.js.map +1 -1
  49. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalInvoice/mjbizappsordersexternalinvoice.form.component.d.ts.map +1 -1
  50. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalInvoice/mjbizappsordersexternalinvoice.form.component.js +28 -7
  51. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalInvoice/mjbizappsordersexternalinvoice.form.component.js.map +1 -1
  52. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalPayment/mjbizappsordersexternalpayment.form.component.d.ts.map +1 -1
  53. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalPayment/mjbizappsordersexternalpayment.form.component.js +28 -7
  54. package/dist/lib/generated/Entities/mjBizAppsOrdersExternalPayment/mjbizappsordersexternalpayment.form.component.js.map +1 -1
  55. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCheckoutAnswer/mjbizappsordersordercheckoutanswer.form.component.d.ts.map +1 -1
  56. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCheckoutAnswer/mjbizappsordersordercheckoutanswer.form.component.js +16 -7
  57. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCheckoutAnswer/mjbizappsordersordercheckoutanswer.form.component.js.map +1 -1
  58. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.d.ts.map +1 -1
  59. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js +8 -14
  60. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js.map +1 -1
  61. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderConcession/mjbizappsordersorderconcession.form.component.d.ts.map +1 -1
  62. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderConcession/mjbizappsordersorderconcession.form.component.js +28 -7
  63. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderConcession/mjbizappsordersorderconcession.form.component.js.map +1 -1
  64. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeaderPaymentSchedule/mjbizappsordersorderheaderpaymentschedule.form.component.d.ts.map +1 -1
  65. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeaderPaymentSchedule/mjbizappsordersorderheaderpaymentschedule.form.component.js +39 -18
  66. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeaderPaymentSchedule/mjbizappsordersorderheaderpaymentschedule.form.component.js.map +1 -1
  67. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js +20 -22
  68. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js.map +1 -1
  69. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineChoice/mjbizappsordersorderlinechoice.form.component.d.ts.map +1 -1
  70. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineChoice/mjbizappsordersorderlinechoice.form.component.js +16 -7
  71. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineChoice/mjbizappsordersorderlinechoice.form.component.js.map +1 -1
  72. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineProgressMeasurement/mjbizappsordersorderlineprogressmeasurement.form.component.d.ts.map +1 -1
  73. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineProgressMeasurement/mjbizappsordersorderlineprogressmeasurement.form.component.js +28 -13
  74. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineProgressMeasurement/mjbizappsordersorderlineprogressmeasurement.form.component.js.map +1 -1
  75. package/dist/lib/generated/Entities/mjBizAppsOrdersOutboundDelivery/mjbizappsordersoutbounddelivery.form.component.d.ts.map +1 -1
  76. package/dist/lib/generated/Entities/mjBizAppsOrdersOutboundDelivery/mjbizappsordersoutbounddelivery.form.component.js +22 -7
  77. package/dist/lib/generated/Entities/mjBizAppsOrdersOutboundDelivery/mjbizappsordersoutbounddelivery.form.component.js.map +1 -1
  78. package/dist/lib/generated/Entities/mjBizAppsOrdersOutboundEvent/mjbizappsordersoutboundevent.form.component.d.ts.map +1 -1
  79. package/dist/lib/generated/Entities/mjBizAppsOrdersOutboundEvent/mjbizappsordersoutboundevent.form.component.js +22 -13
  80. package/dist/lib/generated/Entities/mjBizAppsOrdersOutboundEvent/mjbizappsordersoutboundevent.form.component.js.map +1 -1
  81. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js +8 -10
  82. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js.map +1 -1
  83. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.d.ts.map +1 -1
  84. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js +24 -6
  85. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js.map +1 -1
  86. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.js +10 -12
  87. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.js.map +1 -1
  88. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.d.ts.map +1 -1
  89. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.js +35 -19
  90. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.js.map +1 -1
  91. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderSyncState/mjbizappsorderspaymentprovidersyncstate.form.component.d.ts.map +1 -1
  92. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderSyncState/mjbizappsorderspaymentprovidersyncstate.form.component.js +16 -7
  93. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderSyncState/mjbizappsorderspaymentprovidersyncstate.form.component.js.map +1 -1
  94. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentWebhookDelivery/mjbizappsorderspaymentwebhookdelivery.form.component.d.ts +10 -0
  95. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentWebhookDelivery/mjbizappsorderspaymentwebhookdelivery.form.component.d.ts.map +1 -0
  96. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentWebhookDelivery/mjbizappsorderspaymentwebhookdelivery.form.component.js +108 -0
  97. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentWebhookDelivery/mjbizappsorderspaymentwebhookdelivery.form.component.js.map +1 -0
  98. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.d.ts.map +1 -1
  99. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js +69 -65
  100. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js.map +1 -1
  101. package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.d.ts.map +1 -1
  102. package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js +35 -41
  103. package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js.map +1 -1
  104. package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.d.ts.map +1 -1
  105. package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.js +17 -23
  106. package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.js.map +1 -1
  107. package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.js +18 -20
  108. package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.js.map +1 -1
  109. package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.d.ts.map +1 -1
  110. package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js +14 -20
  111. package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js.map +1 -1
  112. package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.d.ts.map +1 -1
  113. package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.js +26 -32
  114. package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.js.map +1 -1
  115. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts.map +1 -1
  116. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js +19 -25
  117. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js.map +1 -1
  118. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.js +11 -14
  119. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.js.map +1 -1
  120. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionFamily/mjbizappsorderssubscriptionfamily.form.component.d.ts.map +1 -1
  121. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionFamily/mjbizappsorderssubscriptionfamily.form.component.js +22 -13
  122. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionFamily/mjbizappsorderssubscriptionfamily.form.component.js.map +1 -1
  123. package/dist/lib/generated/generated-forms.module.d.ts +7 -6
  124. package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
  125. package/dist/lib/generated/generated-forms.module.js +3 -0
  126. package/dist/lib/generated/generated-forms.module.js.map +1 -1
  127. package/dist/lib/pages/payments/account-credit.page.d.ts +1 -0
  128. package/dist/lib/pages/payments/account-credit.page.d.ts.map +1 -1
  129. package/dist/lib/pages/payments/account-credit.page.js +5 -2
  130. package/dist/lib/pages/payments/account-credit.page.js.map +1 -1
  131. package/dist/lib/panels/allocation-grid.component.d.ts +2 -0
  132. package/dist/lib/panels/allocation-grid.component.d.ts.map +1 -1
  133. package/dist/lib/panels/allocation-grid.component.js +10 -3
  134. package/dist/lib/panels/allocation-grid.component.js.map +1 -1
  135. package/dist/lib/panels/allocation-math.d.ts +8 -0
  136. package/dist/lib/panels/allocation-math.d.ts.map +1 -1
  137. package/dist/lib/panels/allocation-math.js +11 -0
  138. package/dist/lib/panels/allocation-math.js.map +1 -1
  139. package/dist/lib/panels/legal-entity-hint.d.ts +9 -0
  140. package/dist/lib/panels/legal-entity-hint.d.ts.map +1 -0
  141. package/dist/lib/panels/legal-entity-hint.js +19 -0
  142. package/dist/lib/panels/legal-entity-hint.js.map +1 -0
  143. package/package.json +39 -24
@@ -10,7 +10,7 @@ import { UserInfoEngine } from '@memberjunction/core-entities';
10
10
  import { RegisterClass, UUIDsEqual } from '@memberjunction/global';
11
11
  import { BaseFormComponent } from '@memberjunction/ng-base-forms';
12
12
  import { NavigationService } from '@memberjunction/ng-shared';
13
- import { DescribeDisplacedTermStart, LoadOrdersEngine } from '@mj-biz-apps/orders-entities';
13
+ import { DescribeClearedEmployers, DescribeDisplacedTermStart, LoadOrdersEngine, } from '@mj-biz-apps/orders-entities';
14
14
  import { MJO_ACCOUNTING_ENTITIES, MJO_COMMON_ENTITIES, MJO_ENTITIES } from '../../data/entity-names.js';
15
15
  import { BuildOrderJournalEntryRows, BuildOrderJournalRollup, ExcludedEntriesLabel, GetOrderJournalOrigins, GetPaymentTypes, LoadOrderJournalData, LoadRevRecJournalEntries, SubscriptionViewParams, } from '../../data/orders-queries.js';
16
16
  import { FormatDate, FormatMoney, HasCents } from '../../panels/money-format.js';
@@ -41,7 +41,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_11_Template(r
41
41
  } }
42
42
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_7_Template(rf, ctx) { if (rf & 1) {
43
43
  i0.ɵɵelementStart(0, "div", 28);
44
- i0.ɵɵelement(1, "i", 46);
44
+ i0.ɵɵelement(1, "i", 47);
45
45
  i0.ɵɵtext(2, " This order is booked, so its type, selling company, order date and bill-to are locked. Corrections go through a reversal order.");
46
46
  i0.ɵɵelementEnd();
47
47
  } }
@@ -56,7 +56,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
56
56
  } }
57
57
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_17_Template(rf, ctx) { if (rf & 1) {
58
58
  const _r4 = i0.ɵɵgetCurrentView();
59
- i0.ɵɵelementStart(0, "button", 47);
59
+ i0.ɵɵelementStart(0, "button", 48);
60
60
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_17_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenShipTo($event)); });
61
61
  i0.ɵɵtext(1);
62
62
  i0.ɵɵelementEnd();
@@ -67,13 +67,13 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
67
67
  } }
68
68
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template(rf, ctx) { if (rf & 1) {
69
69
  const _r5 = i0.ɵɵgetCurrentView();
70
- i0.ɵɵelementStart(0, "div", 40)(1, "mj-form-field", 48);
70
+ i0.ɵɵelementStart(0, "div", 40)(1, "mj-form-field", 49);
71
71
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template_mj_form_field_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
72
72
  i0.ɵɵelementEnd();
73
- i0.ɵɵelementStart(2, "mj-form-field", 49);
73
+ i0.ɵɵelementStart(2, "mj-form-field", 50);
74
74
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("ValueChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_21_Template_mj_form_field_ValueChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnPartyPersonChange("ShipTo", $event)); });
75
75
  i0.ɵɵelementEnd();
76
- i0.ɵɵelement(3, "mjo-party-address-picker", 50);
76
+ i0.ɵɵelement(3, "mjo-party-address-picker", 51);
77
77
  i0.ɵɵelementEnd();
78
78
  } if (rf & 2) {
79
79
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -86,7 +86,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
86
86
  } }
87
87
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_29_Template(rf, ctx) { if (rf & 1) {
88
88
  const _r6 = i0.ɵɵgetCurrentView();
89
- i0.ɵɵelementStart(0, "button", 47);
89
+ i0.ɵɵelementStart(0, "button", 48);
90
90
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_29_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OpenBillTo($event)); });
91
91
  i0.ɵɵtext(1);
92
92
  i0.ɵɵelementEnd();
@@ -106,16 +106,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
106
106
  } }
107
107
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template(rf, ctx) { if (rf & 1) {
108
108
  const _r7 = i0.ɵɵgetCurrentView();
109
- i0.ɵɵelementStart(0, "div", 40)(1, "mj-form-field", 51);
109
+ i0.ɵɵelementStart(0, "div", 40)(1, "mj-form-field", 52);
110
110
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template_mj_form_field_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
111
111
  i0.ɵɵelementEnd();
112
- i0.ɵɵelementStart(2, "mj-form-field", 52);
112
+ i0.ɵɵelementStart(2, "mj-form-field", 53);
113
113
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("ValueChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template_mj_form_field_ValueChange_2_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnPartyPersonChange("BillTo", $event)); });
114
114
  i0.ɵɵelementEnd();
115
- i0.ɵɵelementStart(3, "mj-form-field", 53);
115
+ i0.ɵɵelementStart(3, "mj-form-field", 54);
116
116
  i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_34_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
117
117
  i0.ɵɵelementEnd();
118
- i0.ɵɵelement(4, "mjo-party-address-picker", 54);
118
+ i0.ɵɵelement(4, "mjo-party-address-picker", 55);
119
119
  i0.ɵɵelementEnd();
120
120
  } if (rf & 2) {
121
121
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -130,20 +130,20 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
130
130
  } }
131
131
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Template(rf, ctx) { if (rf & 1) {
132
132
  const _r8 = i0.ɵɵgetCurrentView();
133
- i0.ɵɵelementStart(0, "button", 58);
133
+ i0.ɵɵelementStart(0, "button", 59);
134
134
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.JumpToBill()); });
135
135
  i0.ɵɵtext(1, "Need a bill-to party");
136
136
  i0.ɵɵelementEnd();
137
137
  } }
138
138
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_5_Template(rf, ctx) { if (rf & 1) {
139
139
  const _r9 = i0.ɵɵgetCurrentView();
140
- i0.ɵɵelementStart(0, "button", 58);
140
+ i0.ɵɵelementStart(0, "button", 59);
141
141
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.JumpToPayment()); });
142
142
  i0.ɵɵtext(1, "Need a check / ACH reference");
143
143
  i0.ɵɵelementEnd();
144
144
  } }
145
145
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_6_Template(rf, ctx) { if (rf & 1) {
146
- i0.ɵɵelementStart(0, "span", 57);
146
+ i0.ɵɵelementStart(0, "span", 58);
147
147
  i0.ɵɵtext(1);
148
148
  i0.ɵɵelementEnd();
149
149
  } if (rf & 2) {
@@ -153,11 +153,11 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
153
153
  } }
154
154
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Template(rf, ctx) { if (rf & 1) {
155
155
  i0.ɵɵelementStart(0, "div", 41);
156
- i0.ɵɵelement(1, "i", 55);
156
+ i0.ɵɵelement(1, "i", 56);
157
157
  i0.ɵɵelementStart(2, "span");
158
158
  i0.ɵɵtext(3, "Before this can be confirmed");
159
159
  i0.ɵɵelementEnd();
160
- i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Template, 2, 0, "button", 56)(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_5_Template, 2, 0, "button", 56)(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_6_Template, 2, 1, "span", 57);
160
+ i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_4_Template, 2, 0, "button", 57)(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_5_Template, 2, 0, "button", 57)(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Conditional_6_Template, 2, 1, "span", 58);
161
161
  i0.ɵɵelementEnd();
162
162
  } if (rf & 2) {
163
163
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -166,7 +166,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
166
166
  } }
167
167
  function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_36_Template(rf, ctx) { if (rf & 1) {
168
168
  i0.ɵɵelementStart(0, "div", 42);
169
- i0.ɵɵelement(1, "i", 59);
169
+ i0.ɵɵelement(1, "i", 60);
170
170
  i0.ɵɵelementStart(2, "span");
171
171
  i0.ɵɵtext(3);
172
172
  i0.ɵɵelementEnd()();
@@ -175,67 +175,87 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
175
175
  i0.ɵɵadvance(3);
176
176
  i0.ɵɵtextInterpolate(ctx_r1.StatusError);
177
177
  } }
178
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_For_6_Template(rf, ctx) { if (rf & 1) {
178
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template(rf, ctx) { if (rf & 1) {
179
+ const _r10 = i0.ɵɵgetCurrentView();
180
+ i0.ɵɵelementStart(0, "div", 43);
181
+ i0.ɵɵelement(1, "i", 61);
182
+ i0.ɵɵelementStart(2, "span");
183
+ i0.ɵɵtext(3);
184
+ i0.ɵɵelementEnd();
185
+ i0.ɵɵelementStart(4, "button", 59);
186
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.UndoClearedEmployers()); });
187
+ i0.ɵɵtext(5, "Undo");
188
+ i0.ɵɵelementEnd();
189
+ i0.ɵɵelementStart(6, "button", 62);
190
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.DismissClearedEmployers()); });
191
+ i0.ɵɵelement(7, "i", 63);
192
+ i0.ɵɵelementEnd()();
193
+ } if (rf & 2) {
194
+ const ctx_r1 = i0.ɵɵnextContext(3);
195
+ i0.ɵɵadvance(3);
196
+ i0.ɵɵtextInterpolate(ctx_r1.ClearedEmployerNotice.Message);
197
+ } }
198
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_38_For_6_Template(rf, ctx) { if (rf & 1) {
179
199
  i0.ɵɵelementStart(0, "li");
180
200
  i0.ɵɵtext(1);
181
201
  i0.ɵɵelementEnd();
182
202
  } if (rf & 2) {
183
- const notice_r10 = ctx.$implicit;
203
+ const notice_r11 = ctx.$implicit;
184
204
  i0.ɵɵadvance();
185
- i0.ɵɵtextInterpolate(notice_r10);
205
+ i0.ɵɵtextInterpolate(notice_r11);
186
206
  } }
187
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template(rf, ctx) { if (rf & 1) {
188
- i0.ɵɵelementStart(0, "div", 43);
189
- i0.ɵɵelement(1, "i", 60);
207
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_38_Template(rf, ctx) { if (rf & 1) {
208
+ i0.ɵɵelementStart(0, "div", 44);
209
+ i0.ɵɵelement(1, "i", 64);
190
210
  i0.ɵɵelementStart(2, "span");
191
211
  i0.ɵɵtext(3, "Service dates changed at confirm");
192
212
  i0.ɵɵelementEnd();
193
- i0.ɵɵelementStart(4, "ul", 61);
194
- i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_For_6_Template, 2, 1, "li", null, i0.ɵɵrepeaterTrackByIndex);
213
+ i0.ɵɵelementStart(4, "ul", 65);
214
+ i0.ɵɵrepeaterCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_38_For_6_Template, 2, 1, "li", null, i0.ɵɵrepeaterTrackByIndex);
195
215
  i0.ɵɵelementEnd()();
196
216
  } if (rf & 2) {
197
217
  const ctx_r1 = i0.ɵɵnextContext(3);
198
218
  i0.ɵɵadvance(5);
199
219
  i0.ɵɵrepeater(ctx_r1.DisplacedStartNotices);
200
220
  } }
201
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Conditional_4_Template(rf, ctx) { if (rf & 1) {
202
- const _r12 = i0.ɵɵgetCurrentView();
203
- i0.ɵɵelementStart(0, "label", 65)(1, "span", 67);
221
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Conditional_4_Template(rf, ctx) { if (rf & 1) {
222
+ const _r13 = i0.ɵɵgetCurrentView();
223
+ i0.ɵɵelementStart(0, "label", 69)(1, "span", 71);
204
224
  i0.ɵɵtext(2, "Check / ACH reference");
205
225
  i0.ɵɵelementEnd();
206
- i0.ɵɵelementStart(3, "input", 68);
207
- i0.ɵɵlistener("ngModelChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Conditional_4_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetPaymentReference($event)); });
226
+ i0.ɵɵelementStart(3, "input", 72);
227
+ i0.ɵɵlistener("ngModelChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Conditional_4_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetPaymentReference($event)); });
208
228
  i0.ɵɵelementEnd()();
209
229
  } if (rf & 2) {
210
230
  const ctx_r1 = i0.ɵɵnextContext(4);
211
231
  i0.ɵɵadvance(3);
212
232
  i0.ɵɵproperty("ngModel", ctx_r1.PaymentReference)("disabled", !ctx_r1.ComposeMode);
213
233
  } }
214
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Conditional_5_Template(rf, ctx) { if (rf & 1) {
215
- const _r13 = i0.ɵɵgetCurrentView();
216
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 69);
217
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Conditional_5_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
234
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Conditional_5_Template(rf, ctx) { if (rf & 1) {
235
+ const _r14 = i0.ɵɵgetCurrentView();
236
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 73);
237
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Conditional_5_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
218
238
  i0.ɵɵelementEnd();
219
239
  } if (rf & 2) {
220
240
  const ctx_r1 = i0.ɵɵnextContext(4);
221
241
  i0.ɵɵproperty("Params", ctx_r1.PaymentParams)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", false)("ShowDeleteButton", false)("Height", "fit-content")("MaxHeight", ctx_r1.RelatedGridHeight);
222
242
  } }
223
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Conditional_6_Template(rf, ctx) { if (rf & 1) {
243
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Conditional_6_Template(rf, ctx) { if (rf & 1) {
224
244
  i0.ɵɵelementStart(0, "div", 28);
225
245
  i0.ɵɵtext(1, "Intent only \u2014 the payment is created when the order is confirmed.");
226
246
  i0.ɵɵelementEnd();
227
247
  } }
228
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template(rf, ctx) { if (rf & 1) {
229
- const _r11 = i0.ɵɵgetCurrentView();
230
- i0.ɵɵelementStart(0, "div", 45)(1, "div", 62)(2, "mj-form-field", 63);
231
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
248
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template(rf, ctx) { if (rf & 1) {
249
+ const _r12 = i0.ɵɵgetCurrentView();
250
+ i0.ɵɵelementStart(0, "div", 46)(1, "div", 66)(2, "mj-form-field", 67);
251
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
232
252
  i0.ɵɵelementEnd();
233
- i0.ɵɵelementStart(3, "mj-form-field", 64);
234
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
253
+ i0.ɵɵelementStart(3, "mj-form-field", 68);
254
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
235
255
  i0.ɵɵelementEnd();
236
- i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Conditional_4_Template, 4, 2, "label", 65);
256
+ i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Conditional_4_Template, 4, 2, "label", 69);
237
257
  i0.ɵɵelementEnd();
238
- i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Conditional_5_Template, 1, 7, "mj-explorer-entity-data-grid", 66)(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Conditional_6_Template, 2, 0, "div", 28);
258
+ i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Conditional_5_Template, 1, 7, "mj-explorer-entity-data-grid", 70)(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Conditional_6_Template, 2, 0, "div", 28);
239
259
  i0.ɵɵelementEnd();
240
260
  } if (rf & 2) {
241
261
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -248,31 +268,31 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
248
268
  i0.ɵɵadvance();
249
269
  i0.ɵɵconditional(ctx_r1.record.IsSaved && ctx_r1.PaymentParams ? 5 : 6);
250
270
  } }
251
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template(rf, ctx) { if (rf & 1) {
252
- const _r14 = i0.ɵɵgetCurrentView();
253
- i0.ɵɵelementStart(0, "div", 45)(1, "div", 62)(2, "mj-form-field", 70);
254
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
271
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template(rf, ctx) { if (rf & 1) {
272
+ const _r15 = i0.ɵɵgetCurrentView();
273
+ i0.ɵɵelementStart(0, "div", 46)(1, "div", 66)(2, "mj-form-field", 74);
274
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template_mj_form_field_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
255
275
  i0.ɵɵelementEnd();
256
- i0.ɵɵelementStart(3, "mj-form-field", 71);
257
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
276
+ i0.ɵɵelementStart(3, "mj-form-field", 75);
277
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template_mj_form_field_Navigate_3_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
258
278
  i0.ɵɵelementEnd();
259
- i0.ɵɵelementStart(4, "mj-form-field", 72);
260
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
279
+ i0.ɵɵelementStart(4, "mj-form-field", 76);
280
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template_mj_form_field_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
261
281
  i0.ɵɵelementEnd();
262
- i0.ɵɵelementStart(5, "mj-form-field", 73);
263
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_5_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
282
+ i0.ɵɵelementStart(5, "mj-form-field", 77);
283
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template_mj_form_field_Navigate_5_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
264
284
  i0.ɵɵelementEnd();
265
- i0.ɵɵelementStart(6, "mj-form-field", 74);
266
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
285
+ i0.ɵɵelementStart(6, "mj-form-field", 78);
286
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template_mj_form_field_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
267
287
  i0.ɵɵelementEnd();
268
- i0.ɵɵelementStart(7, "mj-form-field", 75);
269
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_7_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
288
+ i0.ɵɵelementStart(7, "mj-form-field", 79);
289
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template_mj_form_field_Navigate_7_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
270
290
  i0.ɵɵelementEnd();
271
- i0.ɵɵelementStart(8, "mj-form-field", 76);
272
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
291
+ i0.ɵɵelementStart(8, "mj-form-field", 80);
292
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
273
293
  i0.ɵɵelementEnd();
274
- i0.ɵɵelementStart(9, "mj-form-field", 77);
275
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
294
+ i0.ɵɵelementStart(9, "mj-form-field", 81);
295
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
276
296
  i0.ɵɵelementEnd()()();
277
297
  } if (rf & 2) {
278
298
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -293,40 +313,40 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
293
313
  i0.ɵɵadvance();
294
314
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
295
315
  } }
296
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
316
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
297
317
  i0.ɵɵelementStart(0, "div", 28);
298
318
  i0.ɵɵtext(1, "Charges were booked with the order and cannot be edited.");
299
319
  i0.ɵɵelementEnd();
300
320
  } }
301
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Conditional_1_Template(rf, ctx) { if (rf & 1) {
302
- const _r15 = i0.ɵɵgetCurrentView();
303
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 69);
304
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
321
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_1_Template(rf, ctx) { if (rf & 1) {
322
+ const _r16 = i0.ɵɵgetCurrentView();
323
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 73);
324
+ i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_1_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)); });
305
325
  i0.ɵɵelementEnd();
306
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Conditional_1_Conditional_1_Template, 2, 0, "div", 28);
326
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_1_Conditional_1_Template, 2, 0, "div", 28);
307
327
  } if (rf & 2) {
308
328
  const ctx_r1 = i0.ɵɵnextContext(4);
309
329
  i0.ɵɵproperty("Params", ctx_r1.ChargeParams)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", false)("ShowDeleteButton", false)("Height", "fit-content")("MaxHeight", ctx_r1.RelatedGridHeight);
310
330
  i0.ɵɵadvance();
311
331
  i0.ɵɵconditional(ctx_r1.record.MoneyLocked ? 1 : -1);
312
332
  } }
313
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template(rf, ctx) { if (rf & 1) {
314
- i0.ɵɵelementStart(0, "div", 45);
315
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Conditional_1_Template, 2, 8);
333
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template(rf, ctx) { if (rf & 1) {
334
+ i0.ɵɵelementStart(0, "div", 46);
335
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_1_Template, 2, 8);
316
336
  i0.ɵɵelementEnd();
317
337
  } if (rf & 2) {
318
338
  const ctx_r1 = i0.ɵɵnextContext(3);
319
339
  i0.ɵɵadvance();
320
340
  i0.ɵɵconditional(ctx_r1.ChargeParams ? 1 : -1);
321
341
  } }
322
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_6_Template(rf, ctx) { if (rf & 1) {
342
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_6_Template(rf, ctx) { if (rf & 1) {
323
343
  i0.ɵɵtext(0, " Gross debits and credits per account over this order's whole life \u2014 not a stored row ");
324
344
  } }
325
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Template(rf, ctx) { if (rf & 1) {
345
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_7_Template(rf, ctx) { if (rf & 1) {
326
346
  i0.ɵɵtext(0, " Every stored journal this order caused, unnetted \u2014 open a row to drill in ");
327
347
  } }
328
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Template(rf, ctx) { if (rf & 1) {
329
- i0.ɵɵelementStart(0, "span", 80);
348
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_13_Template(rf, ctx) { if (rf & 1) {
349
+ i0.ɵɵelementStart(0, "span", 84);
330
350
  i0.ɵɵtext(1);
331
351
  i0.ɵɵelementEnd();
332
352
  } if (rf & 2) {
@@ -334,38 +354,38 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
334
354
  i0.ɵɵadvance();
335
355
  i0.ɵɵtextInterpolate(ctx_r1.RollupJournalCount);
336
356
  } }
337
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Conditional_5_Template(rf, ctx) { if (rf & 1) {
338
- const _r18 = i0.ɵɵgetCurrentView();
339
- i0.ɵɵelementStart(0, "button", 89);
340
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged("")); });
357
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Conditional_5_Template(rf, ctx) { if (rf & 1) {
358
+ const _r19 = i0.ɵɵgetCurrentView();
359
+ i0.ɵɵelementStart(0, "button", 93);
360
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Conditional_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged("")); });
341
361
  i0.ɵɵtext(1, " Lifetime ");
342
362
  i0.ɵɵelementEnd();
343
363
  } }
344
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Conditional_12_Template(rf, ctx) { if (rf & 1) {
364
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Conditional_12_Template(rf, ctx) { if (rf & 1) {
345
365
  i0.ɵɵtext(0, " GL date of the batch \u2014 Posted batches only ");
346
366
  } }
347
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
367
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
348
368
  i0.ɵɵtext(0, " Subledger date on the entry itself ");
349
369
  } }
350
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Template(rf, ctx) { if (rf & 1) {
351
- const _r17 = i0.ɵɵgetCurrentView();
352
- i0.ɵɵelementStart(0, "div", 82)(1, "label", 84)(2, "span");
370
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Template(rf, ctx) { if (rf & 1) {
371
+ const _r18 = i0.ɵɵgetCurrentView();
372
+ i0.ɵɵelementStart(0, "div", 86)(1, "label", 88)(2, "span");
353
373
  i0.ɵɵtext(3, "As of");
354
374
  i0.ɵɵelementEnd();
355
- i0.ɵɵelementStart(4, "input", 85);
356
- i0.ɵɵlistener("change", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged($event.target.value)); });
375
+ i0.ɵɵelementStart(4, "input", 89);
376
+ i0.ɵɵlistener("change", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnAccountingAsOfChanged($event.target.value)); });
357
377
  i0.ɵɵelementEnd()();
358
- i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Conditional_5_Template, 2, 0, "button", 86);
359
- i0.ɵɵelementStart(6, "div", 87)(7, "button", 58);
360
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("effective")); });
378
+ i0.ɵɵconditionalCreate(5, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Conditional_5_Template, 2, 0, "button", 90);
379
+ i0.ɵɵelementStart(6, "div", 91)(7, "button", 59);
380
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("effective")); });
361
381
  i0.ɵɵtext(8, " Effective date ");
362
382
  i0.ɵɵelementEnd();
363
- i0.ɵɵelementStart(9, "button", 58);
364
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("posting")); });
383
+ i0.ɵɵelementStart(9, "button", 59);
384
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r18); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetAccountingBasis("posting")); });
365
385
  i0.ɵɵtext(10, " Posting date ");
366
386
  i0.ɵɵelementEnd()();
367
- i0.ɵɵelementStart(11, "span", 88);
368
- i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Conditional_12_Template, 1, 0)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Conditional_13_Template, 1, 0);
387
+ i0.ɵɵelementStart(11, "span", 92);
388
+ i0.ɵɵconditionalCreate(12, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Conditional_12_Template, 1, 0)(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Conditional_13_Template, 1, 0);
369
389
  i0.ɵɵelementEnd()();
370
390
  } if (rf & 2) {
371
391
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -380,22 +400,22 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
380
400
  i0.ɵɵadvance(3);
381
401
  i0.ɵɵconditional(ctx_r1.AccountingBasis === "posting" ? 12 : 13);
382
402
  } }
383
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_18_Template(rf, ctx) { if (rf & 1) {
384
- const _r19 = i0.ɵɵgetCurrentView();
385
- i0.ɵɵelementStart(0, "div", 83)(1, "mj-deferred-revenue-waterfall", 90);
386
- i0.ɵɵlistener("JournalEntrySelected", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_18_Template_mj_deferred_revenue_waterfall_JournalEntrySelected_1_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnJournalEntrySelected($event)); });
403
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_18_Template(rf, ctx) { if (rf & 1) {
404
+ const _r20 = i0.ɵɵgetCurrentView();
405
+ i0.ɵɵelementStart(0, "div", 87)(1, "mj-deferred-revenue-waterfall", 94);
406
+ i0.ɵɵlistener("JournalEntrySelected", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_18_Template_mj_deferred_revenue_waterfall_JournalEntrySelected_1_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnJournalEntrySelected($event)); });
387
407
  i0.ɵɵelementEnd()();
388
408
  } if (rf & 2) {
389
409
  const ctx_r1 = i0.ɵɵnextContext(4);
390
410
  i0.ɵɵadvance();
391
411
  i0.ɵɵproperty("JournalEntries", ctx_r1.RevRecJournalEntries)("Title", "Order Rev-Rec & Deferred Revenue Schedule");
392
412
  } }
393
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_0_Template(rf, ctx) { if (rf & 1) {
413
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_0_Template(rf, ctx) { if (rf & 1) {
394
414
  i0.ɵɵelementStart(0, "div", 28);
395
415
  i0.ɵɵtext(1, "Rolling up journals\u2026");
396
416
  i0.ɵɵelementEnd();
397
417
  } }
398
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_1_Template(rf, ctx) { if (rf & 1) {
418
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_1_Template(rf, ctx) { if (rf & 1) {
399
419
  i0.ɵɵelementStart(0, "div", 28);
400
420
  i0.ɵɵtext(1);
401
421
  i0.ɵɵelementEnd();
@@ -404,152 +424,152 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
404
424
  i0.ɵɵadvance();
405
425
  i0.ɵɵtextInterpolate(ctx_r1.RollupError);
406
426
  } }
407
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
427
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
408
428
  i0.ɵɵtext(0);
409
429
  } if (rf & 2) {
410
430
  const ctx_r1 = i0.ɵɵnextContext(6);
411
431
  i0.ɵɵtextInterpolate1(" Nothing in view \u2014 ", ctx_r1.RollupExcludedLabel, ". ");
412
432
  } }
413
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
433
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
414
434
  i0.ɵɵtext(0, " No journals yet \u2014 they appear when the order is confirmed. ");
415
435
  } }
416
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_2_Template(rf, ctx) { if (rf & 1) {
436
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_2_Template(rf, ctx) { if (rf & 1) {
417
437
  i0.ɵɵelementStart(0, "div", 28);
418
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_2_Conditional_1_Template, 1, 1)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_2_Conditional_2_Template, 1, 0);
438
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_2_Conditional_1_Template, 1, 1)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_2_Conditional_2_Template, 1, 0);
419
439
  i0.ɵɵelementEnd();
420
440
  } if (rf & 2) {
421
441
  const ctx_r1 = i0.ɵɵnextContext(5);
422
442
  i0.ɵɵadvance();
423
443
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 1 : 2);
424
444
  } }
425
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_1_For_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
426
- i0.ɵɵelementStart(0, "span", 101);
445
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_1_For_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
446
+ i0.ɵɵelementStart(0, "span", 105);
427
447
  i0.ɵɵtext(1);
428
448
  i0.ɵɵelementEnd();
429
449
  } if (rf & 2) {
430
- const row_r20 = i0.ɵɵnextContext().$implicit;
450
+ const row_r21 = i0.ɵɵnextContext().$implicit;
431
451
  i0.ɵɵadvance();
432
- i0.ɵɵtextInterpolate(row_r20.AccountCode);
452
+ i0.ɵɵtextInterpolate(row_r21.AccountCode);
433
453
  } }
434
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_1_For_20_For_8_Template(rf, ctx) { if (rf & 1) {
435
- i0.ɵɵelementStart(0, "span", 104);
454
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_1_For_20_For_8_Template(rf, ctx) { if (rf & 1) {
455
+ i0.ɵɵelementStart(0, "span", 108);
436
456
  i0.ɵɵtext(1);
437
457
  i0.ɵɵelementEnd();
438
458
  } if (rf & 2) {
439
- const dim_r21 = ctx.$implicit;
459
+ const dim_r22 = ctx.$implicit;
440
460
  i0.ɵɵadvance();
441
- i0.ɵɵtextInterpolate2("", dim_r21.Name, " \u00B7 ", dim_r21.Value);
461
+ i0.ɵɵtextInterpolate2("", dim_r22.Name, " \u00B7 ", dim_r22.Value);
442
462
  } }
443
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_1_For_20_Template(rf, ctx) { if (rf & 1) {
444
- i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 100);
445
- i0.ɵɵconditionalCreate(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_1_For_20_Conditional_3_Template, 2, 1, "span", 101);
446
- i0.ɵɵelementStart(4, "span", 102);
463
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_1_For_20_Template(rf, ctx) { if (rf & 1) {
464
+ i0.ɵɵelementStart(0, "tr")(1, "td")(2, "div", 104);
465
+ i0.ɵɵconditionalCreate(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_1_For_20_Conditional_3_Template, 2, 1, "span", 105);
466
+ i0.ɵɵelementStart(4, "span", 106);
447
467
  i0.ɵɵtext(5);
448
468
  i0.ɵɵelementEnd()();
449
- i0.ɵɵelementStart(6, "div", 103);
450
- i0.ɵɵrepeaterCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_1_For_20_For_8_Template, 2, 2, "span", 104, _forTrack2);
451
- i0.ɵɵelementStart(9, "span", 105);
469
+ i0.ɵɵelementStart(6, "div", 107);
470
+ i0.ɵɵrepeaterCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_1_For_20_For_8_Template, 2, 2, "span", 108, _forTrack2);
471
+ i0.ɵɵelementStart(9, "span", 109);
452
472
  i0.ɵɵtext(10);
453
473
  i0.ɵɵelementEnd()()();
454
- i0.ɵɵelementStart(11, "td", 99);
474
+ i0.ɵɵelementStart(11, "td", 103);
455
475
  i0.ɵɵtext(12);
456
476
  i0.ɵɵelementEnd();
457
- i0.ɵɵelementStart(13, "td", 99);
477
+ i0.ɵɵelementStart(13, "td", 103);
458
478
  i0.ɵɵtext(14);
459
479
  i0.ɵɵelementEnd()();
460
480
  } if (rf & 2) {
461
- const row_r20 = ctx.$implicit;
481
+ const row_r21 = ctx.$implicit;
462
482
  const ctx_r1 = i0.ɵɵnextContext(7);
463
483
  i0.ɵɵadvance(3);
464
- i0.ɵɵconditional(row_r20.AccountCode ? 3 : -1);
484
+ i0.ɵɵconditional(row_r21.AccountCode ? 3 : -1);
465
485
  i0.ɵɵadvance(2);
466
- i0.ɵɵtextInterpolate(row_r20.AccountName);
486
+ i0.ɵɵtextInterpolate(row_r21.AccountName);
467
487
  i0.ɵɵadvance(2);
468
- i0.ɵɵrepeater(row_r20.Dimensions);
488
+ i0.ɵɵrepeater(row_r21.Dimensions);
469
489
  i0.ɵɵadvance(3);
470
- i0.ɵɵtextInterpolate(ctx_r1.SourceLineLabel(row_r20.SourceLineCount));
490
+ i0.ɵɵtextInterpolate(ctx_r1.SourceLineLabel(row_r21.SourceLineCount));
471
491
  i0.ɵɵadvance();
472
- i0.ɵɵclassProp("is-quiet", !row_r20.Debit);
492
+ i0.ɵɵclassProp("is-quiet", !row_r21.Debit);
473
493
  i0.ɵɵadvance();
474
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r20.Debit));
494
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r21.Debit));
475
495
  i0.ɵɵadvance();
476
- i0.ɵɵclassProp("is-quiet", !row_r20.Credit);
496
+ i0.ɵɵclassProp("is-quiet", !row_r21.Credit);
477
497
  i0.ɵɵadvance();
478
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r20.Credit));
498
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r21.Credit));
479
499
  } }
480
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_1_Template(rf, ctx) { if (rf & 1) {
481
- i0.ɵɵelementStart(0, "article", 92)(1, "header", 94)(2, "div")(3, "span", 95);
500
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_1_Template(rf, ctx) { if (rf & 1) {
501
+ i0.ɵɵelementStart(0, "article", 96)(1, "header", 98)(2, "div")(3, "span", 99);
482
502
  i0.ɵɵtext(4);
483
503
  i0.ɵɵelementEnd();
484
- i0.ɵɵelementStart(5, "span", 96);
504
+ i0.ɵɵelementStart(5, "span", 100);
485
505
  i0.ɵɵtext(6);
486
506
  i0.ɵɵelementEnd()();
487
- i0.ɵɵelementStart(7, "span", 97);
507
+ i0.ɵɵelementStart(7, "span", 101);
488
508
  i0.ɵɵtext(8);
489
509
  i0.ɵɵelementEnd()();
490
- i0.ɵɵelementStart(9, "table", 98)(10, "thead")(11, "tr")(12, "th");
510
+ i0.ɵɵelementStart(9, "table", 102)(10, "thead")(11, "tr")(12, "th");
491
511
  i0.ɵɵtext(13, "Account");
492
512
  i0.ɵɵelementEnd();
493
- i0.ɵɵelementStart(14, "th", 99);
513
+ i0.ɵɵelementStart(14, "th", 103);
494
514
  i0.ɵɵtext(15, "Debit");
495
515
  i0.ɵɵelementEnd();
496
- i0.ɵɵelementStart(16, "th", 99);
516
+ i0.ɵɵelementStart(16, "th", 103);
497
517
  i0.ɵɵtext(17, "Credit");
498
518
  i0.ɵɵelementEnd()()();
499
519
  i0.ɵɵelementStart(18, "tbody");
500
- i0.ɵɵrepeaterCreate(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_1_For_20_Template, 15, 9, "tr", null, _forTrack1);
520
+ i0.ɵɵrepeaterCreate(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_1_For_20_Template, 15, 9, "tr", null, _forTrack1);
501
521
  i0.ɵɵelementEnd();
502
522
  i0.ɵɵelementStart(21, "tfoot")(22, "tr")(23, "th");
503
523
  i0.ɵɵtext(24, "Total");
504
524
  i0.ɵɵelementEnd();
505
- i0.ɵɵelementStart(25, "td", 99);
525
+ i0.ɵɵelementStart(25, "td", 103);
506
526
  i0.ɵɵtext(26);
507
527
  i0.ɵɵelementEnd();
508
- i0.ɵɵelementStart(27, "td", 99);
528
+ i0.ɵɵelementStart(27, "td", 103);
509
529
  i0.ɵɵtext(28);
510
530
  i0.ɵɵelementEnd()()()()();
511
531
  } if (rf & 2) {
512
- const card_r22 = ctx.$implicit;
532
+ const card_r23 = ctx.$implicit;
513
533
  const ctx_r1 = i0.ɵɵnextContext(6);
514
534
  i0.ɵɵadvance(4);
515
- i0.ɵɵtextInterpolate(card_r22.Company);
535
+ i0.ɵɵtextInterpolate(card_r23.Company);
516
536
  i0.ɵɵadvance(2);
517
- i0.ɵɵtextInterpolate2("", card_r22.Rows.length, " ", card_r22.Rows.length === 1 ? "line" : "lines");
537
+ i0.ɵɵtextInterpolate2("", card_r23.Rows.length, " ", card_r23.Rows.length === 1 ? "line" : "lines");
518
538
  i0.ɵɵadvance();
519
- i0.ɵɵclassProp("mjo-oh-chip--ok", ctx_r1.CardIsBalanced(card_r22));
539
+ i0.ɵɵclassProp("mjo-oh-chip--ok", ctx_r1.CardIsBalanced(card_r23));
520
540
  i0.ɵɵadvance();
521
- i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r22) ? "Balanced" : "Out of balance", " ");
541
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r23) ? "Balanced" : "Out of balance", " ");
522
542
  i0.ɵɵadvance(11);
523
- i0.ɵɵrepeater(card_r22.Rows);
543
+ i0.ɵɵrepeater(card_r23.Rows);
524
544
  i0.ɵɵadvance(7);
525
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r22.TotalDebit));
545
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r23.TotalDebit));
526
546
  i0.ɵɵadvance(2);
527
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r22.TotalCredit));
547
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(card_r23.TotalCredit));
528
548
  } }
529
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_3_Template(rf, ctx) { if (rf & 1) {
530
- i0.ɵɵelementStart(0, "p", 93);
549
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_3_Template(rf, ctx) { if (rf & 1) {
550
+ i0.ɵɵelementStart(0, "p", 97);
531
551
  i0.ɵɵtext(1);
532
552
  i0.ɵɵelementEnd();
533
553
  } if (rf & 2) {
534
- const note_r23 = ctx.$implicit;
554
+ const note_r24 = ctx.$implicit;
535
555
  i0.ɵɵadvance();
536
- i0.ɵɵtextInterpolate(note_r23);
556
+ i0.ɵɵtextInterpolate(note_r24);
537
557
  } }
538
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_Template(rf, ctx) { if (rf & 1) {
539
- i0.ɵɵrepeaterCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_1_Template, 29, 8, "article", 92, _forTrack0);
540
- i0.ɵɵrepeaterCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_For_3_Template, 2, 1, "p", 93, i0.ɵɵrepeaterTrackByIdentity);
558
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_Template(rf, ctx) { if (rf & 1) {
559
+ i0.ɵɵrepeaterCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_1_Template, 29, 8, "article", 96, _forTrack0);
560
+ i0.ɵɵrepeaterCreate(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_For_3_Template, 2, 1, "p", 97, i0.ɵɵrepeaterTrackByIdentity);
541
561
  } if (rf & 2) {
542
562
  const ctx_r1 = i0.ɵɵnextContext(5);
543
563
  i0.ɵɵrepeater(ctx_r1.RollupCards);
544
564
  i0.ɵɵadvance(2);
545
565
  i0.ɵɵrepeater(ctx_r1.RollupSharedNotes);
546
566
  } }
547
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_4_Template(rf, ctx) { if (rf & 1) {
548
- const _r24 = i0.ɵɵgetCurrentView();
549
- i0.ɵɵelementStart(0, "p", 91);
567
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_4_Template(rf, ctx) { if (rf & 1) {
568
+ const _r25 = i0.ɵɵgetCurrentView();
569
+ i0.ɵɵelementStart(0, "p", 95);
550
570
  i0.ɵɵtext(1);
551
- i0.ɵɵelementStart(2, "button", 106);
552
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_4_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r24); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
571
+ i0.ɵɵelementStart(2, "button", 110);
572
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_4_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
553
573
  i0.ɵɵtext(3, "see By line");
554
574
  i0.ɵɵelementEnd()();
555
575
  } if (rf & 2) {
@@ -557,21 +577,21 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
557
577
  i0.ɵɵadvance();
558
578
  i0.ɵɵtextInterpolate1(" ", ctx_r1.RollupExcludedLabel, " \u2014 ");
559
579
  } }
560
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Template(rf, ctx) { if (rf & 1) {
561
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_0_Template, 2, 0, "div", 28)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_1_Template, 2, 1, "div", 28)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_2_Template, 3, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_3_Template, 4, 0);
562
- i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Conditional_4_Template, 4, 1, "p", 91);
580
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Template(rf, ctx) { if (rf & 1) {
581
+ i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_0_Template, 2, 0, "div", 28)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_1_Template, 2, 1, "div", 28)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_2_Template, 3, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_3_Template, 4, 0);
582
+ i0.ɵɵconditionalCreate(4, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Conditional_4_Template, 4, 1, "p", 95);
563
583
  } if (rf & 2) {
564
584
  const ctx_r1 = i0.ɵɵnextContext(4);
565
585
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.RollupCards.length === 0 ? 2 : 3);
566
586
  i0.ɵɵadvance(4);
567
587
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 4 : -1);
568
588
  } }
569
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_0_Template(rf, ctx) { if (rf & 1) {
589
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_0_Template(rf, ctx) { if (rf & 1) {
570
590
  i0.ɵɵelementStart(0, "div", 28);
571
591
  i0.ɵɵtext(1, "Loading journals\u2026");
572
592
  i0.ɵɵelementEnd();
573
593
  } }
574
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_1_Template(rf, ctx) { if (rf & 1) {
594
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_1_Template(rf, ctx) { if (rf & 1) {
575
595
  i0.ɵɵelementStart(0, "div", 28);
576
596
  i0.ɵɵtext(1);
577
597
  i0.ɵɵelementEnd();
@@ -580,45 +600,45 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
580
600
  i0.ɵɵadvance();
581
601
  i0.ɵɵtextInterpolate(ctx_r1.RollupError);
582
602
  } }
583
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
603
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
584
604
  i0.ɵɵtext(0);
585
605
  } if (rf & 2) {
586
606
  const ctx_r1 = i0.ɵɵnextContext(6);
587
607
  i0.ɵɵtextInterpolate1(" Nothing in view \u2014 ", ctx_r1.RollupExcludedLabel, ". ");
588
608
  } }
589
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
609
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
590
610
  i0.ɵɵtext(0, " No journals yet \u2014 they appear when the order is confirmed. ");
591
611
  } }
592
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_2_Template(rf, ctx) { if (rf & 1) {
612
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_2_Template(rf, ctx) { if (rf & 1) {
593
613
  i0.ɵɵelementStart(0, "div", 28);
594
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_2_Conditional_1_Template, 1, 1)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_2_Conditional_2_Template, 1, 0);
614
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_2_Conditional_1_Template, 1, 1)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_2_Conditional_2_Template, 1, 0);
595
615
  i0.ɵɵelementEnd();
596
616
  } if (rf & 2) {
597
617
  const ctx_r1 = i0.ɵɵnextContext(5);
598
618
  i0.ɵɵadvance();
599
619
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 1 : 2);
600
620
  } }
601
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_For_19_Conditional_7_Template(rf, ctx) { if (rf & 1) {
602
- i0.ɵɵelementStart(0, "span", 104);
621
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_For_19_Conditional_7_Template(rf, ctx) { if (rf & 1) {
622
+ i0.ɵɵelementStart(0, "span", 108);
603
623
  i0.ɵɵtext(1);
604
624
  i0.ɵɵelementEnd();
605
625
  } if (rf & 2) {
606
- const row_r26 = i0.ɵɵnextContext().$implicit;
626
+ const row_r27 = i0.ɵɵnextContext().$implicit;
607
627
  const ctx_r1 = i0.ɵɵnextContext(6);
608
628
  i0.ɵɵadvance();
609
- i0.ɵɵtextInterpolate(ctx_r1.SharedOrdersLabel(row_r26.SharedWithOtherOrders));
629
+ i0.ɵɵtextInterpolate(ctx_r1.SharedOrdersLabel(row_r27.SharedWithOtherOrders));
610
630
  } }
611
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_For_19_Template(rf, ctx) { if (rf & 1) {
612
- const _r25 = i0.ɵɵgetCurrentView();
613
- i0.ɵɵelementStart(0, "tr", 109);
614
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_For_19_Template_tr_click_0_listener() { const row_r26 = i0.ɵɵrestoreView(_r25).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnJournalRowSelected(row_r26.ID)); });
615
- i0.ɵɵelementStart(1, "td")(2, "div", 102);
631
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_For_19_Template(rf, ctx) { if (rf & 1) {
632
+ const _r26 = i0.ɵɵgetCurrentView();
633
+ i0.ɵɵelementStart(0, "tr", 113);
634
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_For_19_Template_tr_click_0_listener() { const row_r27 = i0.ɵɵrestoreView(_r26).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.OnJournalRowSelected(row_r27.ID)); });
635
+ i0.ɵɵelementStart(1, "td")(2, "div", 106);
616
636
  i0.ɵɵtext(3);
617
637
  i0.ɵɵelementEnd();
618
- i0.ɵɵelementStart(4, "div", 103)(5, "span");
638
+ i0.ɵɵelementStart(4, "div", 107)(5, "span");
619
639
  i0.ɵɵtext(6);
620
640
  i0.ɵɵelementEnd();
621
- i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_For_19_Conditional_7_Template, 2, 1, "span", 104);
641
+ i0.ɵɵconditionalCreate(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_For_19_Conditional_7_Template, 2, 1, "span", 108);
622
642
  i0.ɵɵelementEnd()();
623
643
  i0.ɵɵelementStart(8, "td");
624
644
  i0.ɵɵtext(9);
@@ -632,40 +652,40 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
632
652
  i0.ɵɵelementStart(14, "td");
633
653
  i0.ɵɵtext(15);
634
654
  i0.ɵɵelementEnd();
635
- i0.ɵɵelementStart(16, "td", 99);
655
+ i0.ɵɵelementStart(16, "td", 103);
636
656
  i0.ɵɵtext(17);
637
657
  i0.ɵɵelementEnd();
638
- i0.ɵɵelementStart(18, "td", 99);
658
+ i0.ɵɵelementStart(18, "td", 103);
639
659
  i0.ɵɵtext(19);
640
660
  i0.ɵɵelementEnd()();
641
661
  } if (rf & 2) {
642
- const row_r26 = ctx.$implicit;
662
+ const row_r27 = ctx.$implicit;
643
663
  const ctx_r1 = i0.ɵɵnextContext(6);
644
664
  i0.ɵɵadvance(3);
645
- i0.ɵɵtextInterpolate(row_r26.EntryNumber);
665
+ i0.ɵɵtextInterpolate(row_r27.EntryNumber);
646
666
  i0.ɵɵadvance(3);
647
- i0.ɵɵtextInterpolate(row_r26.Description);
667
+ i0.ɵɵtextInterpolate(row_r27.Description);
648
668
  i0.ɵɵadvance();
649
- i0.ɵɵconditional(row_r26.SharedWithOtherOrders ? 7 : -1);
669
+ i0.ɵɵconditional(row_r27.SharedWithOtherOrders ? 7 : -1);
650
670
  i0.ɵɵadvance(2);
651
- i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r26.EffectiveDate));
671
+ i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r27.EffectiveDate));
652
672
  i0.ɵɵadvance(2);
653
- i0.ɵɵtextInterpolate(row_r26.BatchNumber || "\u2014");
673
+ i0.ɵɵtextInterpolate(row_r27.BatchNumber || "\u2014");
654
674
  i0.ɵɵadvance(2);
655
- i0.ɵɵtextInterpolate(row_r26.BatchStatus || "Not batched");
675
+ i0.ɵɵtextInterpolate(row_r27.BatchStatus || "Not batched");
656
676
  i0.ɵɵadvance(2);
657
- i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r26.BatchPostingDate));
677
+ i0.ɵɵtextInterpolate(ctx_r1.JournalDate(row_r27.BatchPostingDate));
658
678
  i0.ɵɵadvance();
659
- i0.ɵɵclassProp("is-quiet", !row_r26.Debit);
679
+ i0.ɵɵclassProp("is-quiet", !row_r27.Debit);
660
680
  i0.ɵɵadvance();
661
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r26.Debit));
681
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r27.Debit));
662
682
  i0.ɵɵadvance();
663
- i0.ɵɵclassProp("is-quiet", !row_r26.Credit);
683
+ i0.ɵɵclassProp("is-quiet", !row_r27.Credit);
664
684
  i0.ɵɵadvance();
665
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r26.Credit));
685
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(row_r27.Credit));
666
686
  } }
667
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_Conditional_20_Template(rf, ctx) { if (rf & 1) {
668
- i0.ɵɵelementStart(0, "p", 91);
687
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_Conditional_20_Template(rf, ctx) { if (rf & 1) {
688
+ i0.ɵɵelementStart(0, "p", 95);
669
689
  i0.ɵɵtext(1);
670
690
  i0.ɵɵelementEnd();
671
691
  } if (rf & 2) {
@@ -673,8 +693,8 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
673
693
  i0.ɵɵadvance();
674
694
  i0.ɵɵtextInterpolate1("", ctx_r1.RollupExcludedLabel, ", not listed above.");
675
695
  } }
676
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
677
- i0.ɵɵelementStart(0, "table", 107)(1, "thead")(2, "tr")(3, "th");
696
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_Template(rf, ctx) { if (rf & 1) {
697
+ i0.ɵɵelementStart(0, "table", 111)(1, "thead")(2, "tr")(3, "th");
678
698
  i0.ɵɵtext(4, "Entry");
679
699
  i0.ɵɵelementEnd();
680
700
  i0.ɵɵelementStart(5, "th");
@@ -689,16 +709,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
689
709
  i0.ɵɵelementStart(11, "th");
690
710
  i0.ɵɵtext(12, "Posting date");
691
711
  i0.ɵɵelementEnd();
692
- i0.ɵɵelementStart(13, "th", 99);
712
+ i0.ɵɵelementStart(13, "th", 103);
693
713
  i0.ɵɵtext(14, "Debit");
694
714
  i0.ɵɵelementEnd();
695
- i0.ɵɵelementStart(15, "th", 99);
715
+ i0.ɵɵelementStart(15, "th", 103);
696
716
  i0.ɵɵtext(16, "Credit");
697
717
  i0.ɵɵelementEnd()()();
698
718
  i0.ɵɵelementStart(17, "tbody");
699
- i0.ɵɵrepeaterCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_For_19_Template, 20, 13, "tr", 108, _forTrack3);
719
+ i0.ɵɵrepeaterCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_For_19_Template, 20, 13, "tr", 112, _forTrack3);
700
720
  i0.ɵɵelementEnd()();
701
- i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_Conditional_20_Template, 2, 1, "p", 91);
721
+ i0.ɵɵconditionalCreate(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_Conditional_20_Template, 2, 1, "p", 95);
702
722
  } if (rf & 2) {
703
723
  const ctx_r1 = i0.ɵɵnextContext(5);
704
724
  i0.ɵɵadvance(18);
@@ -706,36 +726,36 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
706
726
  i0.ɵɵadvance(2);
707
727
  i0.ɵɵconditional(ctx_r1.RollupExcludedLabel ? 20 : -1);
708
728
  } }
709
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Template(rf, ctx) { if (rf & 1) {
710
- i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_0_Template, 2, 0, "div", 28)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_1_Template, 2, 1, "div", 28)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_2_Template, 3, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Conditional_3_Template, 21, 1);
729
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Template(rf, ctx) { if (rf & 1) {
730
+ i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_0_Template, 2, 0, "div", 28)(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_1_Template, 2, 1, "div", 28)(2, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_2_Template, 3, 1, "div", 28)(3, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Conditional_3_Template, 21, 1);
711
731
  } if (rf & 2) {
712
732
  const ctx_r1 = i0.ɵɵnextContext(4);
713
733
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.JournalRows.length === 0 ? 2 : 3);
714
734
  } }
715
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template(rf, ctx) { if (rf & 1) {
716
- const _r16 = i0.ɵɵgetCurrentView();
717
- i0.ɵɵelementStart(0, "div", 45)(1, "div", 78)(2, "div")(3, "h2");
735
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template(rf, ctx) { if (rf & 1) {
736
+ const _r17 = i0.ɵɵgetCurrentView();
737
+ i0.ɵɵelementStart(0, "div", 46)(1, "div", 82)(2, "div")(3, "h2");
718
738
  i0.ɵɵtext(4);
719
739
  i0.ɵɵelementEnd();
720
740
  i0.ɵɵelementStart(5, "p");
721
- i0.ɵɵconditionalCreate(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_6_Template, 1, 0)(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_7_Template, 1, 0);
741
+ i0.ɵɵconditionalCreate(6, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_6_Template, 1, 0)(7, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_7_Template, 1, 0);
722
742
  i0.ɵɵelementEnd()();
723
- i0.ɵɵelementStart(8, "div", 79)(9, "button", 58);
724
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
743
+ i0.ɵɵelementStart(8, "div", 83)(9, "button", 59);
744
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
725
745
  i0.ɵɵtext(10, "Rolled up");
726
746
  i0.ɵɵelementEnd();
727
- i0.ɵɵelementStart(11, "button", 58);
728
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
747
+ i0.ɵɵelementStart(11, "button", 59);
748
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
729
749
  i0.ɵɵtext(12, " By line ");
730
- i0.ɵɵconditionalCreate(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_13_Template, 2, 1, "span", 80);
750
+ i0.ɵɵconditionalCreate(13, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_13_Template, 2, 1, "span", 84);
731
751
  i0.ɵɵelementEnd();
732
- i0.ɵɵelementStart(14, "button", 58);
733
- i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("waterfall")); });
734
- i0.ɵɵelement(15, "i", 81);
752
+ i0.ɵɵelementStart(14, "button", 59);
753
+ i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template_button_click_14_listener() { i0.ɵɵrestoreView(_r17); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.SetAccountingView("waterfall")); });
754
+ i0.ɵɵelement(15, "i", 85);
735
755
  i0.ɵɵtext(16, " Rev-Rec Waterfall ");
736
756
  i0.ɵɵelementEnd()()();
737
- i0.ɵɵconditionalCreate(17, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_17_Template, 14, 7, "div", 82);
738
- i0.ɵɵconditionalCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_18_Template, 2, 2, "div", 83)(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_19_Template, 5, 2)(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Conditional_20_Template, 4, 1);
757
+ i0.ɵɵconditionalCreate(17, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_17_Template, 14, 7, "div", 86);
758
+ i0.ɵɵconditionalCreate(18, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_18_Template, 2, 2, "div", 87)(19, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_19_Template, 5, 2)(20, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_20_Template, 4, 1);
739
759
  i0.ɵɵelementEnd();
740
760
  } if (rf & 2) {
741
761
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -756,18 +776,18 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditiona
756
776
  i0.ɵɵadvance();
757
777
  i0.ɵɵconditional(ctx_r1.AccountingView === "waterfall" ? 18 : ctx_r1.AccountingView === "summary" ? 19 : 20);
758
778
  } }
759
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_1_Template(rf, ctx) { if (rf & 1) {
760
- const _r27 = i0.ɵɵgetCurrentView();
761
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 111);
762
- i0.ɵɵlistener("Navigate", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_1_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
779
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template(rf, ctx) { if (rf & 1) {
780
+ const _r28 = i0.ɵɵgetCurrentView();
781
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 115);
782
+ 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(_r28); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
763
783
  i0.ɵɵelementEnd();
764
784
  } if (rf & 2) {
765
785
  const ctx_r1 = i0.ɵɵnextContext(4);
766
786
  i0.ɵɵproperty("Params", ctx_r1.SubscriptionParams)("AllowLoad", true)("ShowToolbar", true)("ShowNewButton", false)("Height", "fit-content")("MaxHeight", ctx_r1.RelatedGridHeight);
767
787
  } }
768
- function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template(rf, ctx) { if (rf & 1) {
769
- i0.ɵɵelementStart(0, "div", 45);
770
- i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Conditional_1_Template, 1, 6, "mj-explorer-entity-data-grid", 110);
788
+ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Template(rf, ctx) { if (rf & 1) {
789
+ i0.ɵɵelementStart(0, "div", 46);
790
+ i0.ɵɵconditionalCreate(1, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Conditional_1_Template, 1, 6, "mj-explorer-entity-data-grid", 114);
771
791
  i0.ɵɵelementEnd();
772
792
  } if (rf & 2) {
773
793
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -820,15 +840,16 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template(r
820
840
  i0.ɵɵelementEnd()();
821
841
  i0.ɵɵconditionalCreate(35, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_35_Template, 7, 1, "div", 41);
822
842
  i0.ɵɵconditionalCreate(36, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_36_Template, 4, 1, "div", 42);
823
- i0.ɵɵconditionalCreate(37, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template, 7, 0, "div", 43);
824
- i0.ɵɵelementStart(38, "mj-tab-nav", 44);
825
- i0.ɵɵlistener("TabChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_mj_tab_nav_TabChange_38_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SelectTab($event)); });
826
- i0.ɵɵelementEnd();
827
- i0.ɵɵconditionalCreate(39, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_39_Template, 7, 10, "div", 45);
828
- i0.ɵɵconditionalCreate(40, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template, 10, 32, "div", 45);
829
- i0.ɵɵconditionalCreate(41, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template, 2, 1, "div", 45);
830
- i0.ɵɵconditionalCreate(42, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template, 21, 11, "div", 45);
831
- i0.ɵɵconditionalCreate(43, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template, 2, 1, "div", 45);
843
+ i0.ɵɵconditionalCreate(37, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_37_Template, 8, 1, "div", 43);
844
+ i0.ɵɵconditionalCreate(38, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_38_Template, 7, 0, "div", 44);
845
+ i0.ɵɵelementStart(39, "mj-tab-nav", 45);
846
+ i0.ɵɵlistener("TabChange", function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template_mj_tab_nav_TabChange_39_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SelectTab($event)); });
847
+ i0.ɵɵelementEnd();
848
+ i0.ɵɵconditionalCreate(40, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_40_Template, 7, 10, "div", 46);
849
+ i0.ɵɵconditionalCreate(41, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_41_Template, 10, 32, "div", 46);
850
+ i0.ɵɵconditionalCreate(42, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_42_Template, 2, 1, "div", 46);
851
+ i0.ɵɵconditionalCreate(43, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_43_Template, 21, 11, "div", 46);
852
+ i0.ɵɵconditionalCreate(44, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Conditional_44_Template, 2, 1, "div", 46);
832
853
  } if (rf & 2) {
833
854
  const ctx_r1 = i0.ɵɵnextContext(2);
834
855
  i0.ɵɵadvance(2);
@@ -870,19 +891,21 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template(r
870
891
  i0.ɵɵadvance();
871
892
  i0.ɵɵconditional(ctx_r1.StatusError ? 36 : -1);
872
893
  i0.ɵɵadvance();
873
- i0.ɵɵconditional(ctx_r1.DisplacedStartNotices.length > 0 ? 37 : -1);
894
+ i0.ɵɵconditional(ctx_r1.ClearedEmployerNotice ? 37 : -1);
895
+ i0.ɵɵadvance();
896
+ i0.ɵɵconditional(ctx_r1.DisplacedStartNotices.length > 0 ? 38 : -1);
874
897
  i0.ɵɵadvance();
875
898
  i0.ɵɵproperty("Tabs", ctx_r1.ContextTabs)("ActiveKey", ctx_r1.ActiveTab ?? "");
876
899
  i0.ɵɵadvance();
877
- i0.ɵɵconditional(ctx_r1.ActiveTab === "payment" ? 39 : -1);
900
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "payment" ? 40 : -1);
878
901
  i0.ɵɵadvance();
879
- i0.ɵɵconditional(ctx_r1.ActiveTab === "details" ? 40 : -1);
902
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "details" ? 41 : -1);
880
903
  i0.ɵɵadvance();
881
- i0.ɵɵconditional(ctx_r1.ActiveTab === "charges" && ctx_r1.record.IsSaved ? 41 : -1);
904
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "charges" && ctx_r1.record.IsSaved ? 42 : -1);
882
905
  i0.ɵɵadvance();
883
- i0.ɵɵconditional(ctx_r1.ActiveTab === "accounting" && ctx_r1.record.IsSaved ? 42 : -1);
906
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "accounting" && ctx_r1.record.IsSaved ? 43 : -1);
884
907
  i0.ɵɵadvance();
885
- i0.ɵɵconditional(ctx_r1.ActiveTab === "subs" && ctx_r1.record.IsSaved ? 43 : -1);
908
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "subs" && ctx_r1.record.IsSaved ? 44 : -1);
886
909
  } }
887
910
  function BizAppsOrderHeaderFormComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
888
911
  const _r1 = i0.ɵɵgetCurrentView();
@@ -922,7 +945,7 @@ function BizAppsOrderHeaderFormComponent_Conditional_0_Template(rf, ctx) { if (r
922
945
  i0.ɵɵlistener("click", function BizAppsOrderHeaderFormComponent_Conditional_0_Template_button_click_31_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.ToggleHeader()); });
923
946
  i0.ɵɵelement(32, "i", 17);
924
947
  i0.ɵɵelementEnd()()();
925
- i0.ɵɵconditionalCreate(33, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template, 44, 55);
948
+ i0.ɵɵconditionalCreate(33, BizAppsOrderHeaderFormComponent_Conditional_0_Conditional_33_Template, 45, 56);
926
949
  i0.ɵɵelementEnd();
927
950
  i0.ɵɵelement(34, "mj-form-panel-slot", 18);
928
951
  i0.ɵɵelementStart(35, "mj-collapsible-panel", 19)(36, "mjo-order-lines-editor", 20);
@@ -1322,16 +1345,40 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1322
1345
  return true;
1323
1346
  return !this.record.ShipToOrganizationID && !this.record.ShipToPersonID && !this.record.ShipToAddressID;
1324
1347
  }
1348
+ /**
1349
+ * Organizations cleared with the person they employed, which the user can put back (#356).
1350
+ * Nothing records that a default stamped them, so the form says what it did.
1351
+ */
1352
+ ClearedEmployerNotice = null;
1325
1353
  async OnPartyPersonChange(side, change) {
1326
1354
  if (!this.record || !this.EditMode)
1327
1355
  return;
1356
+ const record = this.record;
1357
+ // Read before the clear: the name columns still describe the previous party until reload.
1358
+ const names = {
1359
+ BillToOrganizationID: record.BillToOrganization,
1360
+ ShipToOrganizationID: record.ShipToOrganization,
1361
+ };
1328
1362
  // The defaults the previous person brought with them go first, so a replacement person
1329
1363
  // brings their own instead of inheriting the old copies.
1330
- this.record.ClearPersonParty(side, change.OldValue || null);
1364
+ const cleared = await record.ClearPersonParty(side, change.OldValue || null);
1331
1365
  if (change.NewValue)
1332
- await this.record.ApplyPersonPartyDefaults(side);
1366
+ await record.ApplyPersonPartyDefaults(side);
1367
+ // A replacement at the same employer brought the same organization back: nothing to undo.
1368
+ const lost = cleared.filter((c) => !UUIDsEqual(record.Get(c.Field), c.OrganizationID));
1369
+ this.ClearedEmployerNotice = lost.length ? { Message: DescribeClearedEmployers(lost, names), Cleared: lost } : null;
1370
+ this.cdr.detectChanges();
1371
+ }
1372
+ UndoClearedEmployers() {
1373
+ if (!this.record || !this.ClearedEmployerNotice)
1374
+ return;
1375
+ this.record.RestorePartyOrganizations(this.ClearedEmployerNotice.Cleared);
1376
+ this.ClearedEmployerNotice = null;
1333
1377
  this.cdr.detectChanges();
1334
1378
  }
1379
+ DismissClearedEmployers() {
1380
+ this.ClearedEmployerNotice = null;
1381
+ }
1335
1382
  get hasBillTo() {
1336
1383
  return !!(this.record?.BillToOrganizationID || this.record?.BillToPersonID);
1337
1384
  }
@@ -1604,7 +1651,7 @@ let BizAppsOrderHeaderFormComponent = class BizAppsOrderHeaderFormComponent exte
1604
1651
  });
1605
1652
  }
1606
1653
  static ɵfac = /*@__PURE__*/ (() => { let ɵBizAppsOrderHeaderFormComponent_BaseFactory; return function BizAppsOrderHeaderFormComponent_Factory(__ngFactoryType__) { return (ɵBizAppsOrderHeaderFormComponent_BaseFactory || (ɵBizAppsOrderHeaderFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BizAppsOrderHeaderFormComponent)))(__ngFactoryType__ || BizAppsOrderHeaderFormComponent); }; })();
1607
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsOrderHeaderFormComponent, selectors: [["bizapps-order-header-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "Record", "FormComponent"], [3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-hero"], [1, "mjo-oh-hero__top"], [1, "mjo-oh-who"], [1, "mjo-oh-avatar"], [1, "fa-solid", "fa-file-invoice-dollar"], [1, "mjo-oh-title-row"], [1, "mjo-oh-title"], [3, "class"], [1, "mjo-oh-sub"], [1, "mjo-oh-hero__aside"], [1, "mjo-oh-money"], [1, "mjo-oh-kicker"], [1, "mjo-oh-amt"], ["type", "button", 1, "mjo-oh-hero__toggle", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-solid"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsOrdersOrderLines", "SectionName", "Lines", "Icon", "fa fa-list-ol", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "PricingChanged", "Navigate", "Order", "EditMode"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-facts"], [1, "mjo-oh-fact"], ["FieldName", "OrderType", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "CompanyID", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "OrderDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-hint"], [1, "mjo-oh-parties"], [1, "mjo-oh-bubble"], ["role", "button", "tabindex", "0", 1, "mjo-oh-bubble__hit", 3, "click", "keydown.enter", "keydown.space"], [1, "mjo-oh-bubble__ic"], [1, "fa-solid", "fa-truck-fast"], [1, "mjo-oh-bubble__copy"], [1, "mjo-oh-bubble__role"], [1, "mjo-oh-bubble__name"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name"], [1, "mjo-oh-bubble__detail"], [1, "fa-solid", "mjo-oh-bubble__chev"], [1, "mjo-oh-bubble__edit"], [1, "mjo-oh-todo"], ["role", "alert", 1, "mjo-oh-todo", "mjo-oh-todo--err"], ["role", "status", 1, "mjo-oh-todo", "mjo-oh-moved"], [1, "mjo-oh-tabs", 3, "TabChange", "Tabs", "ActiveKey"], [1, "mjo-oh-tabpane"], ["aria-hidden", "true", 1, "fa-solid", "fa-lock"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name", 3, "click"], ["FieldName", "ShipToOrganizationID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ShipToPersonID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "ship", 3, "Order", "EditMode", "PersonName", "OrganizationName"], ["FieldName", "BillToOrganizationID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "BillToPersonID", "Type", "textbox", "LinkType", "Record", 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"], ["type", "button"], [1, "mjo-oh-todo__hint"], ["type", "button", 3, "click"], [1, "fa-solid", "fa-triangle-exclamation"], [1, "fa-solid", "fa-calendar-xmark"], [1, "mjo-oh-moved__list"], [1, "mjo-oh-fields"], ["FieldName", "InitialPaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "InitialPaymentAmount", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-ref"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], [1, "mjo-oh-ref__label"], ["placeholder", "Check number or confirmation ID", "autocomplete", "off", "aria-label", "Check or ACH reference", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], ["FieldName", "RequestedDeliveryDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DueDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ExternalDocumentNumber", "Type", "textbox", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "FulfillmentStatus", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SalesRepUserID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Notes", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-acct__bar"], ["role", "group", "aria-label", "Accounting view", 1, "mjo-oh-switch"], [1, "mjo-oh-switch__n"], [1, "fa-solid", "fa-chart-line"], [1, "mjo-oh-acct__controls"], [2, "padding", "12px 0"], [1, "mjo-oh-asof"], ["type", "date", "aria-label", "Include entries dated on or before", 3, "change", "value"], ["type", "button", 1, "mjo-oh-asof__clear"], ["role", "group", "aria-label", "Date basis", 1, "mjo-oh-switch", "mjo-oh-switch--sm"], [1, "mjo-oh-acct__basis"], ["type", "button", 1, "mjo-oh-asof__clear", 3, "click"], [3, "JournalEntrySelected", "JournalEntries", "Title"], [1, "mjo-oh-acct__excluded"], [1, "mjo-oh-jecard"], [1, "mjo-oh-acct__note"], [1, "mjo-oh-jecard__head"], [1, "mjo-oh-jecard__co"], [1, "mjo-oh-jecard__sub"], [1, "mjo-oh-chip"], [1, "mjo-oh-je__table"], [1, "is-num"], [1, "mjo-oh-acctline"], [1, "mjo-oh-acctline__code"], [1, "mjo-oh-acctline__name"], [1, "mjo-oh-acctline__meta"], [1, "mjo-oh-dim"], [1, "mjo-oh-je__src"], ["type", "button", 1, "mjo-oh-linkbtn", 3, "click"], [1, "mjo-oh-je__table", "mjo-oh-je__table--detail"], [1, "is-clickable"], [1, "is-clickable", 3, "click"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"]], template: function BizAppsOrderHeaderFormComponent_Template(rf, ctx) { if (rf & 1) {
1654
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsOrderHeaderFormComponent, selectors: [["bizapps-order-header-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "Record", "FormComponent"], [3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-hero"], [1, "mjo-oh-hero__top"], [1, "mjo-oh-who"], [1, "mjo-oh-avatar"], [1, "fa-solid", "fa-file-invoice-dollar"], [1, "mjo-oh-title-row"], [1, "mjo-oh-title"], [3, "class"], [1, "mjo-oh-sub"], [1, "mjo-oh-hero__aside"], [1, "mjo-oh-money"], [1, "mjo-oh-kicker"], [1, "mjo-oh-amt"], ["type", "button", 1, "mjo-oh-hero__toggle", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-solid"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsOrdersOrderLines", "SectionName", "Lines", "Icon", "fa fa-list-ol", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "PricingChanged", "Navigate", "Order", "EditMode"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"], ["Slot", "after-everything", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-oh-facts"], [1, "mjo-oh-fact"], ["FieldName", "OrderType", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "CompanyID", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "OrderDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-hint"], [1, "mjo-oh-parties"], [1, "mjo-oh-bubble"], ["role", "button", "tabindex", "0", 1, "mjo-oh-bubble__hit", 3, "click", "keydown.enter", "keydown.space"], [1, "mjo-oh-bubble__ic"], [1, "fa-solid", "fa-truck-fast"], [1, "mjo-oh-bubble__copy"], [1, "mjo-oh-bubble__role"], [1, "mjo-oh-bubble__name"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name"], [1, "mjo-oh-bubble__detail"], [1, "fa-solid", "mjo-oh-bubble__chev"], [1, "mjo-oh-bubble__edit"], [1, "mjo-oh-todo"], ["role", "alert", 1, "mjo-oh-todo", "mjo-oh-todo--err"], ["role", "status", 1, "mjo-oh-todo"], ["role", "status", 1, "mjo-oh-todo", "mjo-oh-moved"], [1, "mjo-oh-tabs", 3, "TabChange", "Tabs", "ActiveKey"], [1, "mjo-oh-tabpane"], ["aria-hidden", "true", 1, "fa-solid", "fa-lock"], ["type", "button", 1, "mjo-oh-link", "mjo-oh-bubble__name", 3, "click"], ["FieldName", "ShipToOrganizationID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ShipToPersonID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "ValueChange", "Record", "ShowLabel", "EditMode", "FormContext"], ["Side", "ship", 3, "Order", "EditMode", "PersonName", "OrganizationName"], ["FieldName", "BillToOrganizationID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "BillToPersonID", "Type", "textbox", "LinkType", "Record", 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"], ["type", "button"], [1, "mjo-oh-todo__hint"], ["type", "button", 3, "click"], [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-moved__list"], [1, "mjo-oh-fields"], ["FieldName", "InitialPaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "InitialPaymentAmount", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-ref"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], [1, "mjo-oh-ref__label"], ["placeholder", "Check number or confirmation ID", "autocomplete", "off", "aria-label", "Check or ACH reference", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "ShowDeleteButton", "Height", "MaxHeight"], ["FieldName", "RequestedDeliveryDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DueDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ExternalDocumentNumber", "Type", "textbox", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "FulfillmentStatus", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SalesRepUserID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Notes", "Type", "textarea", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-oh-acct__bar"], ["role", "group", "aria-label", "Accounting view", 1, "mjo-oh-switch"], [1, "mjo-oh-switch__n"], [1, "fa-solid", "fa-chart-line"], [1, "mjo-oh-acct__controls"], [2, "padding", "12px 0"], [1, "mjo-oh-asof"], ["type", "date", "aria-label", "Include entries dated on or before", 3, "change", "value"], ["type", "button", 1, "mjo-oh-asof__clear"], ["role", "group", "aria-label", "Date basis", 1, "mjo-oh-switch", "mjo-oh-switch--sm"], [1, "mjo-oh-acct__basis"], ["type", "button", 1, "mjo-oh-asof__clear", 3, "click"], [3, "JournalEntrySelected", "JournalEntries", "Title"], [1, "mjo-oh-acct__excluded"], [1, "mjo-oh-jecard"], [1, "mjo-oh-acct__note"], [1, "mjo-oh-jecard__head"], [1, "mjo-oh-jecard__co"], [1, "mjo-oh-jecard__sub"], [1, "mjo-oh-chip"], [1, "mjo-oh-je__table"], [1, "is-num"], [1, "mjo-oh-acctline"], [1, "mjo-oh-acctline__code"], [1, "mjo-oh-acctline__name"], [1, "mjo-oh-acctline__meta"], [1, "mjo-oh-dim"], [1, "mjo-oh-je__src"], ["type", "button", 1, "mjo-oh-linkbtn", 3, "click"], [1, "mjo-oh-je__table", "mjo-oh-je__table--detail"], [1, "is-clickable"], [1, "is-clickable", 3, "click"], [3, "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"], [3, "Navigate", "Params", "AllowLoad", "ShowToolbar", "ShowNewButton", "Height", "MaxHeight"]], template: function BizAppsOrderHeaderFormComponent_Template(rf, ctx) { if (rf & 1) {
1608
1655
  i0.ɵɵconditionalCreate(0, BizAppsOrderHeaderFormComponent_Conditional_0_Template, 39, 45, "mj-record-form-container", 0);
1609
1656
  } if (rf & 2) {
1610
1657
  i0.ɵɵconditional(ctx.record ? 0 : -1);
@@ -1616,9 +1663,9 @@ BizAppsOrderHeaderFormComponent = __decorate([
1616
1663
  export { BizAppsOrderHeaderFormComponent };
1617
1664
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsOrderHeaderFormComponent, [{
1618
1665
  type: Component,
1619
- args: [{ standalone: false, selector: 'bizapps-order-header-form', template: "@if (record) {\n<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <div class=\"mjo-oh-hero\" [class.is-collapsed]=\"!HeaderExpanded\">\n <div class=\"mjo-oh-hero__top\">\n <div class=\"mjo-oh-who\">\n <div class=\"mjo-oh-avatar\"><i class=\"fa-solid fa-file-invoice-dollar\"></i></div>\n <div>\n <div class=\"mjo-oh-title-row\">\n <h1 class=\"mjo-oh-title\">{{ HeaderTitle }}</h1>\n @if (ShowStatusChip) {\n <span [class]=\"StatusChipClass\">{{ record.Status }}</span>\n }\n </div>\n <div class=\"mjo-oh-sub\">{{ HeaderExpanded ? HeaderSubtitle : HeaderCollapsedMeta }}</div>\n </div>\n </div>\n <div class=\"mjo-oh-hero__aside\">\n <div class=\"mjo-oh-money\">\n <div>\n <span class=\"mjo-oh-kicker\">{{ TotalLabel }}</span>\n <span class=\"mjo-oh-amt\">{{ Money('total') }}</span>\n </div>\n <div>\n <span class=\"mjo-oh-kicker\">Paid</span>\n <span class=\"mjo-oh-amt\">{{ Money('paid') }}</span>\n </div>\n <div>\n <span class=\"mjo-oh-kicker\">Balance</span>\n <span class=\"mjo-oh-amt\">{{ Money('balance') }}</span>\n </div>\n </div>\n <button\n type=\"button\"\n class=\"mjo-oh-hero__toggle\"\n (click)=\"ToggleHeader()\"\n [attr.aria-expanded]=\"HeaderExpanded\"\n [attr.aria-label]=\"HeaderExpanded ? 'Collapse header' : 'Expand header'\"\n [title]=\"HeaderExpanded ? 'Collapse header' : 'Expand header'\">\n <i class=\"fa-solid\" [class.fa-chevron-up]=\"HeaderExpanded\" [class.fa-chevron-down]=\"!HeaderExpanded\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n\n @if (HeaderExpanded) {\n <div class=\"mjo-oh-facts\">\n <div class=\"mjo-oh-fact\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"OrderType\" Type=\"select\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n <div class=\"mjo-oh-fact\">\n <bizapps-selling-company-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"CompanyID\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-selling-company-field>\n </div>\n <div class=\"mjo-oh-fact\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"OrderDate\" Type=\"datepicker\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n @if (EditMode && record.MoneyLocked) {\n <div class=\"mjo-oh-hint\"><i class=\"fa-solid fa-lock\" aria-hidden=\"true\"></i> This order is booked, so its type, selling company, order date and bill-to are locked. Corrections go through a reversal order.</div>\n }\n\n <div class=\"mjo-oh-parties\" [class.is-ship]=\"ExpandedParty === 'ship'\" [class.is-bill]=\"ExpandedParty === 'bill'\" [class.is-none]=\"ExpandedParty === null\">\n <div class=\"mjo-oh-bubble\" [class.is-open]=\"ExpandedParty === 'ship'\" [class.is-rail]=\"ExpandedParty === 'bill'\">\n <div\n class=\"mjo-oh-bubble__hit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"ExpandedParty === 'ship'\"\n (click)=\"SelectParty('ship')\"\n (keydown.enter)=\"SelectParty('ship')\"\n (keydown.space)=\"SelectParty('ship'); $event.preventDefault()\">\n <span class=\"mjo-oh-bubble__ic\"><i class=\"fa-solid fa-truck-fast\"></i></span>\n <span class=\"mjo-oh-bubble__copy\">\n <span class=\"mjo-oh-bubble__role\">Ship to</span>\n @if (ShipToIsSame) {\n <span class=\"mjo-oh-bubble__name\">{{ ShipToName }}</span>\n } @else {\n <button type=\"button\" class=\"mjo-oh-link mjo-oh-bubble__name\" (click)=\"OpenShipTo($event)\">{{ ShipToName }}</button>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ ShipToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'ship'\" [class.fa-chevron-down]=\"ExpandedParty !== 'ship'\"></i>\n </div>\n @if (ExpandedParty === 'ship') {\n <div class=\"mjo-oh-bubble__edit\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ShipToOrganizationID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ShipToPersonID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('ShipTo', $event)\"></mj-form-field>\n <mjo-party-address-picker\n [Order]=\"record\"\n Side=\"ship\"\n [EditMode]=\"ComposeMode\"\n [PersonName]=\"record.ShipToPerson\"\n [OrganizationName]=\"record.ShipToOrganization\">\n </mjo-party-address-picker>\n </div>\n }\n </div>\n\n <div class=\"mjo-oh-bubble\" [class.is-open]=\"ExpandedParty === 'bill'\" [class.is-rail]=\"ExpandedParty === 'ship'\" [class.is-needed]=\"NeedsBillTo\">\n <div\n class=\"mjo-oh-bubble__hit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"ExpandedParty === 'bill'\"\n (click)=\"SelectParty('bill')\"\n (keydown.enter)=\"SelectParty('bill')\"\n (keydown.space)=\"SelectParty('bill'); $event.preventDefault()\">\n <span class=\"mjo-oh-bubble__ic\"><i class=\"fa-solid fa-file-invoice-dollar\"></i></span>\n <span class=\"mjo-oh-bubble__copy\">\n <span class=\"mjo-oh-bubble__role\">Bill to</span>\n @if (hasBillTo) {\n <button type=\"button\" class=\"mjo-oh-link mjo-oh-bubble__name\" (click)=\"OpenBillTo($event)\">{{ BillToName }}</button>\n } @else {\n <span class=\"mjo-oh-bubble__name\">{{ BillToName }}</span>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ BillToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'bill'\" [class.fa-chevron-down]=\"ExpandedParty !== 'bill'\"></i>\n </div>\n @if (ExpandedParty === 'bill') {\n <div class=\"mjo-oh-bubble__edit\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToOrganizationID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToPersonID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('BillTo', $event)\"></mj-form-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 (ConfirmBlockedReason) {\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 (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 </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 (DisplacedStartNotices.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-moved\" role=\"status\">\n <i class=\"fa-solid fa-calendar-xmark\"></i>\n <span>Service dates changed at confirm</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (notice of DisplacedStartNotices; track $index) {\n <li>{{ notice }}</li>\n }\n </ul>\n </div>\n }\n\n <mj-tab-nav\n class=\"mjo-oh-tabs\"\n [Tabs]=\"ContextTabs\"\n [ActiveKey]=\"ActiveTab ?? ''\"\n (TabChange)=\"SelectTab($event)\">\n </mj-tab-nav>\n\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentTypeID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentAmount\" Type=\"number\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n @if (PaymentRequiresReference) {\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Check / ACH reference</span>\n <input\n class=\"mj-input\"\n [ngModel]=\"PaymentReference\"\n (ngModelChange)=\"SetPaymentReference($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"Check number or confirmation ID\"\n autocomplete=\"off\"\n aria-label=\"Check or ACH reference\">\n </label>\n }\n </div>\n @if (record.IsSaved && PaymentParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"PaymentParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n } @else {\n <div class=\"mjo-oh-hint\">Intent only \u2014 the payment is created when the order is confirmed.</div>\n }\n </div>\n }\n\n @if (ActiveTab === 'details') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"RequestedDeliveryDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"DueDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ExternalDocumentNumber\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"FulfillmentStatus\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Status\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"SalesRepUserID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Description\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Notes\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n }\n\n @if (ActiveTab === 'charges' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (ChargeParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"ChargeParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n @if (record.MoneyLocked) {\n <div class=\"mjo-oh-hint\">Charges were booked with the order and cannot be edited.</div>\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'accounting' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-acct__bar\">\n <div>\n <h2>{{ AccountingView === 'summary' ? 'Order journal' : 'Journal entries' }}</h2>\n <p>\n @if (AccountingView === 'summary') {\n Gross debits and credits per account over this order's whole life \u2014 not a stored row\n } @else {\n Every stored journal this order caused, unnetted \u2014 open a row to drill in\n }\n </p>\n </div>\n <div class=\"mjo-oh-switch\" role=\"group\" aria-label=\"Accounting view\">\n <button type=\"button\" [class.is-on]=\"AccountingView === 'summary'\" (click)=\"SetAccountingView('summary')\">Rolled up</button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'detail'\" (click)=\"SetAccountingView('detail')\">\n By line\n @if (RollupJournalCount) {\n <span class=\"mjo-oh-switch__n\">{{ RollupJournalCount }}</span>\n }\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'waterfall'\" (click)=\"SetAccountingView('waterfall')\">\n <i class=\"fa-solid fa-chart-line\"></i> Rev-Rec Waterfall\n </button>\n </div>\n </div>\n\n <!-- One set of controls for both views, so they can never disagree about what is in. -->\n @if (AccountingView !== 'waterfall') {\n <div class=\"mjo-oh-acct__controls\">\n <label class=\"mjo-oh-asof\">\n <span>As of</span>\n <input\n type=\"date\"\n [value]=\"AccountingAsOf ?? ''\"\n (change)=\"OnAccountingAsOfChanged($any($event.target).value)\"\n aria-label=\"Include entries dated on or before\" />\n </label>\n @if (AccountingAsOf) {\n <button type=\"button\" class=\"mjo-oh-asof__clear\" (click)=\"OnAccountingAsOfChanged('')\">\n Lifetime\n </button>\n }\n <div class=\"mjo-oh-switch mjo-oh-switch--sm\" role=\"group\" aria-label=\"Date basis\">\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'effective'\" (click)=\"SetAccountingBasis('effective')\">\n Effective date\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'posting'\" (click)=\"SetAccountingBasis('posting')\">\n Posting date\n </button>\n </div>\n <span class=\"mjo-oh-acct__basis\">\n @if (AccountingBasis === 'posting') {\n GL date of the batch \u2014 Posted batches only\n } @else {\n Subledger date on the entry itself\n }\n </span>\n </div>\n }\n\n @if (AccountingView === 'waterfall') {\n <div style=\"padding: 12px 0;\">\n <mj-deferred-revenue-waterfall\n [JournalEntries]=\"RevRecJournalEntries\"\n [Title]=\"'Order Rev-Rec &amp; Deferred Revenue Schedule'\"\n (JournalEntrySelected)=\"OnJournalEntrySelected($event)\">\n </mj-deferred-revenue-waterfall>\n </div>\n } @else if (AccountingView === 'summary') {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Rolling up journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (RollupCards.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n @for (card of RollupCards; track card.CompanyID) {\n <article class=\"mjo-oh-jecard\">\n <header class=\"mjo-oh-jecard__head\">\n <div>\n <span class=\"mjo-oh-jecard__co\">{{ card.Company }}</span>\n <span class=\"mjo-oh-jecard__sub\">{{ card.Rows.length }} {{ card.Rows.length === 1 ? 'line' : 'lines' }}</span>\n </div>\n <span class=\"mjo-oh-chip\" [class.mjo-oh-chip--ok]=\"CardIsBalanced(card)\">\n {{ CardIsBalanced(card) ? 'Balanced' : 'Out of balance' }}\n </span>\n </header>\n <table class=\"mjo-oh-je__table\">\n <thead>\n <tr>\n <th>Account</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of card.Rows; track row.Key) {\n <tr>\n <td>\n <div class=\"mjo-oh-acctline\">\n @if (row.AccountCode) {\n <span class=\"mjo-oh-acctline__code\">{{ row.AccountCode }}</span>\n }\n <span class=\"mjo-oh-acctline__name\">{{ row.AccountName }}</span>\n </div>\n <div class=\"mjo-oh-acctline__meta\">\n @for (dim of row.Dimensions; track dim.Name + dim.Value) {\n <span class=\"mjo-oh-dim\">{{ dim.Name }} \u00B7 {{ dim.Value }}</span>\n }\n <span class=\"mjo-oh-je__src\">{{ SourceLineLabel(row.SourceLineCount) }}</span>\n </div>\n </td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n <tfoot>\n <tr>\n <th>Total</th>\n <td class=\"is-num\">{{ RollupAmount(card.TotalDebit) }}</td>\n <td class=\"is-num\">{{ RollupAmount(card.TotalCredit) }}</td>\n </tr>\n </tfoot>\n </table>\n </article>\n }\n @for (note of RollupSharedNotes; track note) {\n <p class=\"mjo-oh-acct__note\">{{ note }}</p>\n }\n }\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">\n {{ RollupExcludedLabel }} \u2014\n <button type=\"button\" class=\"mjo-oh-linkbtn\" (click)=\"SetAccountingView('detail')\">see By line</button>\n </p>\n }\n } @else {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Loading journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (JournalRows.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Entry</th>\n <th>Effective</th>\n <th>Batch</th>\n <th>Batch status</th>\n <th>Posting date</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of JournalRows; track row.ID) {\n <tr class=\"is-clickable\" (click)=\"OnJournalRowSelected(row.ID)\">\n <td>\n <div class=\"mjo-oh-acctline__name\">{{ row.EntryNumber }}</div>\n <div class=\"mjo-oh-acctline__meta\">\n <span>{{ row.Description }}</span>\n @if (row.SharedWithOtherOrders) {\n <span class=\"mjo-oh-dim\">{{ SharedOrdersLabel(row.SharedWithOtherOrders) }}</span>\n }\n </div>\n </td>\n <td>{{ JournalDate(row.EffectiveDate) }}</td>\n <td>{{ row.BatchNumber || '\u2014' }}</td>\n <td>{{ row.BatchStatus || 'Not batched' }}</td>\n <td>{{ JournalDate(row.BatchPostingDate) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n </table>\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">{{ RollupExcludedLabel }}, not listed above.</p>\n }\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'subs' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (SubscriptionParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"SubscriptionParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n }\n </div>\n }\n }\n </div>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersOrderLines\"\n SectionName=\"Lines\"\n Icon=\"fa fa-list-ol\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"LineBadge\"\n [DefaultExpanded]=\"true\">\n <mjo-order-lines-editor\n [Order]=\"record\"\n [EditMode]=\"ComposeMode\"\n (PricingChanged)=\"OnPricingChanged($event)\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mjo-order-lines-editor>\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-everything\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n</mj-record-form-container>\n}\n", styles: ["/* mj-form-field uses display:contents + a 200px|1fr internal grid.\n Wrap each field; never place the host as a CSS-grid item. */\n\n:host ::ng-deep .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n max-height: none;\n}\n\n:host ::ng-deep .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n}\n\n/* Product search results sit `position: absolute` under the add-product\n input at the bottom of Lines. The panel card and body both use\n overflow:hidden (rounded-corner clip + collapse animation), which\n shears the list off at the section edge. Collapse still forces\n overflow:hidden on the collapsed body. */\n:host ::ng-deep mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel {\n overflow: visible;\n}\n\n:host ::ng-deep mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n overflow: visible;\n}\n\n:host ::ng-deep mj-collapsible-panel:has(.mj-typeahead-list.is-open) {\n position: relative;\n z-index: 30;\n}\n\n.mjo-oh-hero {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed {\n padding: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-hero__top {\n align-items: center;\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-avatar {\n width: 32px;\n height: 32px;\n font-size: 14px;\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-title {\n font-size: var(--mj-text-base);\n}\n\n.mjo-oh-hero__toggle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n flex: 0 0 auto;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mjo-oh-hero__toggle:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-hero__top {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-hero__aside {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-confirm {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: var(--mj-space-1);\n min-width: 11rem;\n}\n\n.mjo-oh-confirm__hint {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n text-align: right;\n max-width: 14rem;\n line-height: 1.35;\n}\n\n.mjo-oh-who {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n min-width: 0;\n}\n\n.mjo-oh-avatar {\n width: 44px;\n height: 44px;\n border-radius: var(--mj-radius-md);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 18px;\n}\n\n.mjo-oh-title-row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-title {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-primary);\n letter-spacing: -0.02em;\n}\n\n.mjo-oh-sub {\n margin-top: 2px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-kicker {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-chip {\n display: inline-flex;\n align-items: center;\n padding: 2px 10px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-chip--ok {\n color: var(--mj-status-success-text);\n background: var(--mj-status-success-bg);\n border-color: var(--mj-status-success-border);\n}\n\n.mjo-oh-chip--void {\n color: var(--mj-status-error-text);\n background: var(--mj-status-error-bg);\n border-color: var(--mj-status-error-border);\n}\n\n.mjo-oh-money {\n display: flex;\n gap: var(--mj-space-5);\n padding: var(--mj-space-2) var(--mj-space-3);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-money > div {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-amt {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-facts {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n margin-top: var(--mj-space-4);\n padding: var(--mj-space-3);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-fact ::ng-deep .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-oh-fact ::ng-deep .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n/* The shared field hover adds negative margin + extra padding, which shoves\n the three header facts down. Keep the tint, drop the layout shift. */\n.mjo-oh-fact ::ng-deep .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-oh-fields {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-parties {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--mj-space-3);\n align-items: start;\n margin: var(--mj-space-4) 0 var(--mj-space-3);\n}\n\n.mjo-oh-parties.is-bill {\n grid-template-columns: auto minmax(0, 1fr);\n}\n\n.mjo-oh-parties.is-none {\n grid-template-columns: 1fr 1fr;\n}\n\n.mjo-oh-bubble {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n min-width: 0;\n}\n\n.mjo-oh-bubble.is-open {\n border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble.is-rail {\n width: 3.25rem;\n flex: 0 0 auto;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__hit {\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2);\n min-height: 5.5rem;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__copy {\n flex: 0 0 auto;\n align-items: center;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__role {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__name,\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__detail,\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__chev {\n display: none;\n}\n\n@media (max-width: 720px) {\n .mjo-oh-parties,\n .mjo-oh-parties.is-bill,\n .mjo-oh-parties.is-none {\n grid-template-columns: 1fr;\n }\n\n .mjo-oh-bubble.is-rail {\n width: auto;\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__hit {\n flex-direction: row;\n min-height: 0;\n padding: var(--mj-space-2) var(--mj-space-3);\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__copy {\n align-items: flex-start;\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__role {\n writing-mode: horizontal-tb;\n transform: none;\n }\n}\n\n.mjo-oh-bubble.is-needed {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble__hit {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: var(--mj-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__name.mjo-oh-link {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: inherit;\n font-weight: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__hit:hover { background: var(--mj-bg-surface-hover); }\n\n.mjo-oh-bubble__ic {\n width: var(--mj-space-8);\n height: var(--mj-space-8);\n border-radius: var(--mj-radius-sm);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-brand-primary);\n}\n\n.mjo-oh-bubble__copy {\n min-width: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-bubble__role {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-bubble__name {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-bubble__detail {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-oh-bubble__chev {\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-bubble__edit {\n padding: var(--mj-space-3);\n border-top: 1px solid var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-addr {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px dashed var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n\n.mjo-oh-addr__bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-addr__label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-addr__btn {\n border: 0;\n background: transparent;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n padding: 0;\n}\n\n.mjo-oh-addr__btn:disabled {\n color: var(--mj-text-disabled);\n cursor: default;\n}\n\n.mjo-oh-addr__row {\n display: grid;\n grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-link {\n color: var(--mj-text-link);\n text-decoration: none;\n}\n\n.mjo-oh-link:hover { text-decoration: underline; }\n\n.mjo-oh-todo {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-oh-todo button,\n.mjo-oh-todo__hint {\n background: var(--mj-status-warning-bg);\n border: 1px solid var(--mj-status-warning-border);\n color: var(--mj-status-warning-text);\n border-radius: var(--mj-radius-full);\n padding: 2px 8px;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-todo button { cursor: pointer; }\n\n.mjo-oh-todo--err {\n color: var(--mj-status-error-text);\n}\n\n.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-acct__bar {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-acct__bar h2 {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar p {\n margin: 2px 0 0;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-switch {\n display: inline-flex;\n padding: 2px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-switch button {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--mj-text-secondary);\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 5px 12px;\n border-radius: var(--mj-radius-full);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-oh-switch button.is-on {\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n box-shadow: 0 0 0 1px var(--mj-border-subtle);\n}\n\n.mjo-oh-switch__n {\n min-width: 1.25em;\n padding: 0 5px;\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-variant-numeric: tabular-nums;\n text-align: center;\n}\n\n/* As-of + basis controls: one row above whichever of the two views is showing. */\n.mjo-oh-acct__controls {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-asof {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-asof input {\n font: inherit;\n font-weight: var(--mj-font-normal);\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-asof__clear,\n.mjo-oh-linkbtn {\n appearance: none;\n border: 0;\n background: transparent;\n padding: 0;\n font: inherit;\n font-size: var(--mj-text-xs);\n color: var(--mj-brand-primary);\n cursor: pointer;\n text-decoration: underline;\n}\n\n.mjo-oh-switch--sm button {\n padding: 4px 10px;\n}\n\n.mjo-oh-acct__basis,\n.mjo-oh-acct__note,\n.mjo-oh-acct__excluded {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__note,\n.mjo-oh-acct__excluded {\n margin: var(--mj-space-2) 0 0;\n}\n\n.mjo-oh-je__table--detail tbody tr.is-clickable {\n cursor: pointer;\n}\n\n.mjo-oh-je__table--detail tbody tr.is-clickable:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-jecard {\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n overflow: hidden;\n}\n\n.mjo-oh-jecard + .mjo-oh-jecard {\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-jecard__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-jecard__co {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-jecard__sub {\n margin-left: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-oh-je__table th,\n.mjo-oh-je__table td {\n padding: var(--mj-space-2) var(--mj-space-3);\n border-bottom: 1px solid var(--mj-border-subtle);\n text-align: left;\n vertical-align: top;\n}\n\n.mjo-oh-je__table thead th {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table tfoot th {\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n border-bottom: 0;\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-je__table .is-num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-oh-je__table .is-quiet {\n color: var(--mj-text-disabled);\n}\n\n.mjo-oh-acctline {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-acctline__code {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.02em;\n}\n\n.mjo-oh-acctline__name {\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acctline__meta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 4px;\n}\n\n.mjo-oh-dim {\n display: inline-flex;\n align-items: center;\n padding: 1px 8px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-je__src {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n@media (max-width: 760px) {\n .mjo-oh-parties,\n .mjo-oh-facts {\n grid-template-columns: 1fr;\n }\n .mjo-oh-money { margin-left: 0; }\n}\n"] }]
1666
+ args: [{ standalone: false, selector: 'bizapps-order-header-form', template: "@if (record) {\n<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <div class=\"mjo-oh-hero\" [class.is-collapsed]=\"!HeaderExpanded\">\n <div class=\"mjo-oh-hero__top\">\n <div class=\"mjo-oh-who\">\n <div class=\"mjo-oh-avatar\"><i class=\"fa-solid fa-file-invoice-dollar\"></i></div>\n <div>\n <div class=\"mjo-oh-title-row\">\n <h1 class=\"mjo-oh-title\">{{ HeaderTitle }}</h1>\n @if (ShowStatusChip) {\n <span [class]=\"StatusChipClass\">{{ record.Status }}</span>\n }\n </div>\n <div class=\"mjo-oh-sub\">{{ HeaderExpanded ? HeaderSubtitle : HeaderCollapsedMeta }}</div>\n </div>\n </div>\n <div class=\"mjo-oh-hero__aside\">\n <div class=\"mjo-oh-money\">\n <div>\n <span class=\"mjo-oh-kicker\">{{ TotalLabel }}</span>\n <span class=\"mjo-oh-amt\">{{ Money('total') }}</span>\n </div>\n <div>\n <span class=\"mjo-oh-kicker\">Paid</span>\n <span class=\"mjo-oh-amt\">{{ Money('paid') }}</span>\n </div>\n <div>\n <span class=\"mjo-oh-kicker\">Balance</span>\n <span class=\"mjo-oh-amt\">{{ Money('balance') }}</span>\n </div>\n </div>\n <button\n type=\"button\"\n class=\"mjo-oh-hero__toggle\"\n (click)=\"ToggleHeader()\"\n [attr.aria-expanded]=\"HeaderExpanded\"\n [attr.aria-label]=\"HeaderExpanded ? 'Collapse header' : 'Expand header'\"\n [title]=\"HeaderExpanded ? 'Collapse header' : 'Expand header'\">\n <i class=\"fa-solid\" [class.fa-chevron-up]=\"HeaderExpanded\" [class.fa-chevron-down]=\"!HeaderExpanded\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n\n @if (HeaderExpanded) {\n <div class=\"mjo-oh-facts\">\n <div class=\"mjo-oh-fact\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"OrderType\" Type=\"select\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n <div class=\"mjo-oh-fact\">\n <bizapps-selling-company-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"CompanyID\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></bizapps-selling-company-field>\n </div>\n <div class=\"mjo-oh-fact\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"OrderDate\" Type=\"datepicker\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n @if (EditMode && record.MoneyLocked) {\n <div class=\"mjo-oh-hint\"><i class=\"fa-solid fa-lock\" aria-hidden=\"true\"></i> This order is booked, so its type, selling company, order date and bill-to are locked. Corrections go through a reversal order.</div>\n }\n\n <div class=\"mjo-oh-parties\" [class.is-ship]=\"ExpandedParty === 'ship'\" [class.is-bill]=\"ExpandedParty === 'bill'\" [class.is-none]=\"ExpandedParty === null\">\n <div class=\"mjo-oh-bubble\" [class.is-open]=\"ExpandedParty === 'ship'\" [class.is-rail]=\"ExpandedParty === 'bill'\">\n <div\n class=\"mjo-oh-bubble__hit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"ExpandedParty === 'ship'\"\n (click)=\"SelectParty('ship')\"\n (keydown.enter)=\"SelectParty('ship')\"\n (keydown.space)=\"SelectParty('ship'); $event.preventDefault()\">\n <span class=\"mjo-oh-bubble__ic\"><i class=\"fa-solid fa-truck-fast\"></i></span>\n <span class=\"mjo-oh-bubble__copy\">\n <span class=\"mjo-oh-bubble__role\">Ship to</span>\n @if (ShipToIsSame) {\n <span class=\"mjo-oh-bubble__name\">{{ ShipToName }}</span>\n } @else {\n <button type=\"button\" class=\"mjo-oh-link mjo-oh-bubble__name\" (click)=\"OpenShipTo($event)\">{{ ShipToName }}</button>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ ShipToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'ship'\" [class.fa-chevron-down]=\"ExpandedParty !== 'ship'\"></i>\n </div>\n @if (ExpandedParty === 'ship') {\n <div class=\"mjo-oh-bubble__edit\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ShipToOrganizationID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ShipToPersonID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('ShipTo', $event)\"></mj-form-field>\n <mjo-party-address-picker\n [Order]=\"record\"\n Side=\"ship\"\n [EditMode]=\"ComposeMode\"\n [PersonName]=\"record.ShipToPerson\"\n [OrganizationName]=\"record.ShipToOrganization\">\n </mjo-party-address-picker>\n </div>\n }\n </div>\n\n <div class=\"mjo-oh-bubble\" [class.is-open]=\"ExpandedParty === 'bill'\" [class.is-rail]=\"ExpandedParty === 'ship'\" [class.is-needed]=\"NeedsBillTo\">\n <div\n class=\"mjo-oh-bubble__hit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-expanded]=\"ExpandedParty === 'bill'\"\n (click)=\"SelectParty('bill')\"\n (keydown.enter)=\"SelectParty('bill')\"\n (keydown.space)=\"SelectParty('bill'); $event.preventDefault()\">\n <span class=\"mjo-oh-bubble__ic\"><i class=\"fa-solid fa-file-invoice-dollar\"></i></span>\n <span class=\"mjo-oh-bubble__copy\">\n <span class=\"mjo-oh-bubble__role\">Bill to</span>\n @if (hasBillTo) {\n <button type=\"button\" class=\"mjo-oh-link mjo-oh-bubble__name\" (click)=\"OpenBillTo($event)\">{{ BillToName }}</button>\n } @else {\n <span class=\"mjo-oh-bubble__name\">{{ BillToName }}</span>\n }\n <span class=\"mjo-oh-bubble__detail\">{{ BillToDetail }}</span>\n </span>\n <i class=\"fa-solid mjo-oh-bubble__chev\" [class.fa-chevron-up]=\"ExpandedParty === 'bill'\" [class.fa-chevron-down]=\"ExpandedParty !== 'bill'\"></i>\n </div>\n @if (ExpandedParty === 'bill') {\n <div class=\"mjo-oh-bubble__edit\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToOrganizationID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"BillToPersonID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\" (ValueChange)=\"OnPartyPersonChange('BillTo', $event)\"></mj-form-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 (ConfirmBlockedReason) {\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 (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 </div>\n }\n\n @if (StatusError) {\n <div class=\"mjo-oh-todo mjo-oh-todo--err\" role=\"alert\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ StatusError }}</span>\n </div>\n }\n\n @if (ClearedEmployerNotice) {\n <div class=\"mjo-oh-todo\" role=\"status\">\n <i class=\"fa-solid fa-building-circle-xmark\"></i>\n <span>{{ ClearedEmployerNotice.Message }}</span>\n <button type=\"button\" (click)=\"UndoClearedEmployers()\">Undo</button>\n <button type=\"button\" aria-label=\"Dismiss\" (click)=\"DismissClearedEmployers()\"><i class=\"fa-solid fa-xmark\"></i></button>\n </div>\n }\n\n @if (DisplacedStartNotices.length > 0) {\n <div class=\"mjo-oh-todo mjo-oh-moved\" role=\"status\">\n <i class=\"fa-solid fa-calendar-xmark\"></i>\n <span>Service dates changed at confirm</span>\n <ul class=\"mjo-oh-moved__list\">\n @for (notice of DisplacedStartNotices; track $index) {\n <li>{{ notice }}</li>\n }\n </ul>\n </div>\n }\n\n <mj-tab-nav\n class=\"mjo-oh-tabs\"\n [Tabs]=\"ContextTabs\"\n [ActiveKey]=\"ActiveTab ?? ''\"\n (TabChange)=\"SelectTab($event)\">\n </mj-tab-nav>\n\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentTypeID\" Type=\"textbox\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"InitialPaymentAmount\" Type=\"number\" [EditMode]=\"ComposeMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n @if (PaymentRequiresReference) {\n <label class=\"mjo-oh-ref\">\n <span class=\"mjo-oh-ref__label\">Check / ACH reference</span>\n <input\n class=\"mj-input\"\n [ngModel]=\"PaymentReference\"\n (ngModelChange)=\"SetPaymentReference($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"Check number or confirmation ID\"\n autocomplete=\"off\"\n aria-label=\"Check or ACH reference\">\n </label>\n }\n </div>\n @if (record.IsSaved && PaymentParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"PaymentParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n } @else {\n <div class=\"mjo-oh-hint\">Intent only \u2014 the payment is created when the order is confirmed.</div>\n }\n </div>\n }\n\n @if (ActiveTab === 'details') {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-fields\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"RequestedDeliveryDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"DueDate\" Type=\"datepicker\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ExternalDocumentNumber\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"FulfillmentStatus\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Status\" Type=\"select\" [EditMode]=\"false\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"SalesRepUserID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" LinkType=\"Record\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Description\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Notes\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n </div>\n </div>\n }\n\n @if (ActiveTab === 'charges' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (ChargeParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"ChargeParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [ShowDeleteButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n @if (record.MoneyLocked) {\n <div class=\"mjo-oh-hint\">Charges were booked with the order and cannot be edited.</div>\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'accounting' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n <div class=\"mjo-oh-acct__bar\">\n <div>\n <h2>{{ AccountingView === 'summary' ? 'Order journal' : 'Journal entries' }}</h2>\n <p>\n @if (AccountingView === 'summary') {\n Gross debits and credits per account over this order's whole life \u2014 not a stored row\n } @else {\n Every stored journal this order caused, unnetted \u2014 open a row to drill in\n }\n </p>\n </div>\n <div class=\"mjo-oh-switch\" role=\"group\" aria-label=\"Accounting view\">\n <button type=\"button\" [class.is-on]=\"AccountingView === 'summary'\" (click)=\"SetAccountingView('summary')\">Rolled up</button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'detail'\" (click)=\"SetAccountingView('detail')\">\n By line\n @if (RollupJournalCount) {\n <span class=\"mjo-oh-switch__n\">{{ RollupJournalCount }}</span>\n }\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingView === 'waterfall'\" (click)=\"SetAccountingView('waterfall')\">\n <i class=\"fa-solid fa-chart-line\"></i> Rev-Rec Waterfall\n </button>\n </div>\n </div>\n\n <!-- One set of controls for both views, so they can never disagree about what is in. -->\n @if (AccountingView !== 'waterfall') {\n <div class=\"mjo-oh-acct__controls\">\n <label class=\"mjo-oh-asof\">\n <span>As of</span>\n <input\n type=\"date\"\n [value]=\"AccountingAsOf ?? ''\"\n (change)=\"OnAccountingAsOfChanged($any($event.target).value)\"\n aria-label=\"Include entries dated on or before\" />\n </label>\n @if (AccountingAsOf) {\n <button type=\"button\" class=\"mjo-oh-asof__clear\" (click)=\"OnAccountingAsOfChanged('')\">\n Lifetime\n </button>\n }\n <div class=\"mjo-oh-switch mjo-oh-switch--sm\" role=\"group\" aria-label=\"Date basis\">\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'effective'\" (click)=\"SetAccountingBasis('effective')\">\n Effective date\n </button>\n <button type=\"button\" [class.is-on]=\"AccountingBasis === 'posting'\" (click)=\"SetAccountingBasis('posting')\">\n Posting date\n </button>\n </div>\n <span class=\"mjo-oh-acct__basis\">\n @if (AccountingBasis === 'posting') {\n GL date of the batch \u2014 Posted batches only\n } @else {\n Subledger date on the entry itself\n }\n </span>\n </div>\n }\n\n @if (AccountingView === 'waterfall') {\n <div style=\"padding: 12px 0;\">\n <mj-deferred-revenue-waterfall\n [JournalEntries]=\"RevRecJournalEntries\"\n [Title]=\"'Order Rev-Rec &amp; Deferred Revenue Schedule'\"\n (JournalEntrySelected)=\"OnJournalEntrySelected($event)\">\n </mj-deferred-revenue-waterfall>\n </div>\n } @else if (AccountingView === 'summary') {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Rolling up journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (RollupCards.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n @for (card of RollupCards; track card.CompanyID) {\n <article class=\"mjo-oh-jecard\">\n <header class=\"mjo-oh-jecard__head\">\n <div>\n <span class=\"mjo-oh-jecard__co\">{{ card.Company }}</span>\n <span class=\"mjo-oh-jecard__sub\">{{ card.Rows.length }} {{ card.Rows.length === 1 ? 'line' : 'lines' }}</span>\n </div>\n <span class=\"mjo-oh-chip\" [class.mjo-oh-chip--ok]=\"CardIsBalanced(card)\">\n {{ CardIsBalanced(card) ? 'Balanced' : 'Out of balance' }}\n </span>\n </header>\n <table class=\"mjo-oh-je__table\">\n <thead>\n <tr>\n <th>Account</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of card.Rows; track row.Key) {\n <tr>\n <td>\n <div class=\"mjo-oh-acctline\">\n @if (row.AccountCode) {\n <span class=\"mjo-oh-acctline__code\">{{ row.AccountCode }}</span>\n }\n <span class=\"mjo-oh-acctline__name\">{{ row.AccountName }}</span>\n </div>\n <div class=\"mjo-oh-acctline__meta\">\n @for (dim of row.Dimensions; track dim.Name + dim.Value) {\n <span class=\"mjo-oh-dim\">{{ dim.Name }} \u00B7 {{ dim.Value }}</span>\n }\n <span class=\"mjo-oh-je__src\">{{ SourceLineLabel(row.SourceLineCount) }}</span>\n </div>\n </td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n <tfoot>\n <tr>\n <th>Total</th>\n <td class=\"is-num\">{{ RollupAmount(card.TotalDebit) }}</td>\n <td class=\"is-num\">{{ RollupAmount(card.TotalCredit) }}</td>\n </tr>\n </tfoot>\n </table>\n </article>\n }\n @for (note of RollupSharedNotes; track note) {\n <p class=\"mjo-oh-acct__note\">{{ note }}</p>\n }\n }\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">\n {{ RollupExcludedLabel }} \u2014\n <button type=\"button\" class=\"mjo-oh-linkbtn\" (click)=\"SetAccountingView('detail')\">see By line</button>\n </p>\n }\n } @else {\n @if (RollupLoading) {\n <div class=\"mjo-oh-hint\">Loading journals\u2026</div>\n } @else if (RollupError) {\n <div class=\"mjo-oh-hint\">{{ RollupError }}</div>\n } @else if (JournalRows.length === 0) {\n <div class=\"mjo-oh-hint\">\n @if (RollupExcludedLabel) {\n Nothing in view \u2014 {{ RollupExcludedLabel }}.\n } @else {\n No journals yet \u2014 they appear when the order is confirmed.\n }\n </div>\n } @else {\n <table class=\"mjo-oh-je__table mjo-oh-je__table--detail\">\n <thead>\n <tr>\n <th>Entry</th>\n <th>Effective</th>\n <th>Batch</th>\n <th>Batch status</th>\n <th>Posting date</th>\n <th class=\"is-num\">Debit</th>\n <th class=\"is-num\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of JournalRows; track row.ID) {\n <tr class=\"is-clickable\" (click)=\"OnJournalRowSelected(row.ID)\">\n <td>\n <div class=\"mjo-oh-acctline__name\">{{ row.EntryNumber }}</div>\n <div class=\"mjo-oh-acctline__meta\">\n <span>{{ row.Description }}</span>\n @if (row.SharedWithOtherOrders) {\n <span class=\"mjo-oh-dim\">{{ SharedOrdersLabel(row.SharedWithOtherOrders) }}</span>\n }\n </div>\n </td>\n <td>{{ JournalDate(row.EffectiveDate) }}</td>\n <td>{{ row.BatchNumber || '\u2014' }}</td>\n <td>{{ row.BatchStatus || 'Not batched' }}</td>\n <td>{{ JournalDate(row.BatchPostingDate) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Debit\">{{ RollupAmount(row.Debit) }}</td>\n <td class=\"is-num\" [class.is-quiet]=\"!row.Credit\">{{ RollupAmount(row.Credit) }}</td>\n </tr>\n }\n </tbody>\n </table>\n @if (RollupExcludedLabel) {\n <p class=\"mjo-oh-acct__excluded\">{{ RollupExcludedLabel }}, not listed above.</p>\n }\n }\n }\n </div>\n }\n\n @if (ActiveTab === 'subs' && record.IsSaved) {\n <div class=\"mjo-oh-tabpane\">\n @if (SubscriptionParams) {\n <mj-explorer-entity-data-grid\n [Params]=\"SubscriptionParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"false\"\n [Height]=\"'fit-content'\"\n [MaxHeight]=\"RelatedGridHeight\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n }\n </div>\n }\n }\n </div>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersOrderLines\"\n SectionName=\"Lines\"\n Icon=\"fa fa-list-ol\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"LineBadge\"\n [DefaultExpanded]=\"true\">\n <mjo-order-lines-editor\n [Order]=\"record\"\n [EditMode]=\"ComposeMode\"\n (PricingChanged)=\"OnPricingChanged($event)\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mjo-order-lines-editor>\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-everything\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n</mj-record-form-container>\n}\n", styles: ["/* mj-form-field uses display:contents + a 200px|1fr internal grid.\n Wrap each field; never place the host as a CSS-grid item. */\n\n:host ::ng-deep .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n max-height: none;\n}\n\n:host ::ng-deep .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) .mj-forms-panel-content {\n max-height: none;\n overflow: visible;\n}\n\n/* Product search results sit `position: absolute` under the add-product\n input at the bottom of Lines. The panel card and body both use\n overflow:hidden (rounded-corner clip + collapse animation), which\n shears the list off at the section edge. Collapse still forces\n overflow:hidden on the collapsed body. */\n:host ::ng-deep mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel {\n overflow: visible;\n}\n\n:host ::ng-deep mj-collapsible-panel:has(mjo-order-lines-editor) .mj-forms-panel-body:not(.mj-forms-panel-body--collapsed) {\n overflow: visible;\n}\n\n:host ::ng-deep mj-collapsible-panel:has(.mj-typeahead-list.is-open) {\n position: relative;\n z-index: 30;\n}\n\n.mjo-oh-hero {\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed {\n padding: var(--mj-space-2) var(--mj-space-4);\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-hero__top {\n align-items: center;\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-avatar {\n width: 32px;\n height: 32px;\n font-size: 14px;\n}\n\n.mjo-oh-hero.is-collapsed .mjo-oh-title {\n font-size: var(--mj-text-base);\n}\n\n.mjo-oh-hero__toggle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n flex: 0 0 auto;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n\n.mjo-oh-hero__toggle:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-hero__top {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-hero__aside {\n display: flex;\n align-items: flex-start;\n gap: var(--mj-space-4);\n flex-wrap: wrap;\n}\n\n.mjo-oh-confirm {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: var(--mj-space-1);\n min-width: 11rem;\n}\n\n.mjo-oh-confirm__hint {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n text-align: right;\n max-width: 14rem;\n line-height: 1.35;\n}\n\n.mjo-oh-who {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n min-width: 0;\n}\n\n.mjo-oh-avatar {\n width: 44px;\n height: 44px;\n border-radius: var(--mj-radius-md);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 18px;\n}\n\n.mjo-oh-title-row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-title {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: var(--mj-font-bold);\n color: var(--mj-text-primary);\n letter-spacing: -0.02em;\n}\n\n.mjo-oh-sub {\n margin-top: 2px;\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-kicker {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-chip {\n display: inline-flex;\n align-items: center;\n padding: 2px 10px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-chip--ok {\n color: var(--mj-status-success-text);\n background: var(--mj-status-success-bg);\n border-color: var(--mj-status-success-border);\n}\n\n.mjo-oh-chip--void {\n color: var(--mj-status-error-text);\n background: var(--mj-status-error-bg);\n border-color: var(--mj-status-error-border);\n}\n\n.mjo-oh-money {\n display: flex;\n gap: var(--mj-space-5);\n padding: var(--mj-space-2) var(--mj-space-3);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n border: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-money > div {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-amt {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-facts {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n margin-top: var(--mj-space-4);\n padding: var(--mj-space-3);\n border: 1px solid var(--mj-border-subtle);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-fact ::ng-deep .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-oh-fact ::ng-deep .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n/* The shared field hover adds negative margin + extra padding, which shoves\n the three header facts down. Keep the tint, drop the layout shift. */\n.mjo-oh-fact ::ng-deep .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-oh-fields {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-parties {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: var(--mj-space-3);\n align-items: start;\n margin: var(--mj-space-4) 0 var(--mj-space-3);\n}\n\n.mjo-oh-parties.is-bill {\n grid-template-columns: auto minmax(0, 1fr);\n}\n\n.mjo-oh-parties.is-none {\n grid-template-columns: 1fr 1fr;\n}\n\n.mjo-oh-bubble {\n border: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n min-width: 0;\n}\n\n.mjo-oh-bubble.is-open {\n border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble.is-rail {\n width: 3.25rem;\n flex: 0 0 auto;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__hit {\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2);\n min-height: 5.5rem;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__copy {\n flex: 0 0 auto;\n align-items: center;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__role {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n}\n\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__name,\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__detail,\n.mjo-oh-bubble.is-rail .mjo-oh-bubble__chev {\n display: none;\n}\n\n@media (max-width: 720px) {\n .mjo-oh-parties,\n .mjo-oh-parties.is-bill,\n .mjo-oh-parties.is-none {\n grid-template-columns: 1fr;\n }\n\n .mjo-oh-bubble.is-rail {\n width: auto;\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__hit {\n flex-direction: row;\n min-height: 0;\n padding: var(--mj-space-2) var(--mj-space-3);\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__copy {\n align-items: flex-start;\n }\n\n .mjo-oh-bubble.is-rail .mjo-oh-bubble__role {\n writing-mode: horizontal-tb;\n transform: none;\n }\n}\n\n.mjo-oh-bubble.is-needed {\n border-color: color-mix(in srgb, var(--mj-status-warning) 45%, var(--mj-border-default));\n}\n\n.mjo-oh-bubble__hit {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n width: 100%;\n padding: var(--mj-space-3);\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__name.mjo-oh-link {\n display: inline;\n padding: 0;\n border: 0;\n background: transparent;\n font: inherit;\n font-size: inherit;\n font-weight: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-oh-bubble__hit:hover { background: var(--mj-bg-surface-hover); }\n\n.mjo-oh-bubble__ic {\n width: var(--mj-space-8);\n height: var(--mj-space-8);\n border-radius: var(--mj-radius-sm);\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-brand-primary);\n}\n\n.mjo-oh-bubble__copy {\n min-width: 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-oh-bubble__role {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-bubble__name {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-bubble__detail {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.mjo-oh-bubble__chev {\n color: var(--mj-text-muted);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-bubble__edit {\n padding: var(--mj-space-3);\n border-top: 1px solid var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n}\n\n.mjo-oh-addr {\n margin-top: var(--mj-space-2);\n padding-top: var(--mj-space-2);\n border-top: 1px dashed var(--mj-border-subtle);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-1);\n}\n\n.mjo-oh-addr__bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-addr__label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-addr__btn {\n border: 0;\n background: transparent;\n color: var(--mj-text-link);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n cursor: pointer;\n padding: 0;\n}\n\n.mjo-oh-addr__btn:disabled {\n color: var(--mj-text-disabled);\n cursor: default;\n}\n\n.mjo-oh-addr__row {\n display: grid;\n grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);\n gap: var(--mj-space-2);\n}\n\n.mjo-oh-link {\n color: var(--mj-text-link);\n text-decoration: none;\n}\n\n.mjo-oh-link:hover { text-decoration: underline; }\n\n.mjo-oh-todo {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-oh-todo button,\n.mjo-oh-todo__hint {\n background: var(--mj-status-warning-bg);\n border: 1px solid var(--mj-status-warning-border);\n color: var(--mj-status-warning-text);\n border-radius: var(--mj-radius-full);\n padding: 2px 8px;\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n}\n\n.mjo-oh-todo button { cursor: pointer; }\n\n.mjo-oh-todo--err {\n color: var(--mj-status-error-text);\n}\n\n.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-acct__bar {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: var(--mj-space-3);\n flex-wrap: wrap;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-acct__bar h2 {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acct__bar p {\n margin: 2px 0 0;\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-switch {\n display: inline-flex;\n padding: 2px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-full);\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-switch button {\n appearance: none;\n border: 0;\n background: transparent;\n color: var(--mj-text-secondary);\n font: inherit;\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n padding: 5px 12px;\n border-radius: var(--mj-radius-full);\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-oh-switch button.is-on {\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n box-shadow: 0 0 0 1px var(--mj-border-subtle);\n}\n\n.mjo-oh-switch__n {\n min-width: 1.25em;\n padding: 0 5px;\n border-radius: var(--mj-radius-full);\n background: color-mix(in srgb, var(--mj-brand-primary) 14%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-variant-numeric: tabular-nums;\n text-align: center;\n}\n\n/* As-of + basis controls: one row above whichever of the two views is showing. */\n.mjo-oh-acct__controls {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-oh-asof {\n display: inline-flex;\n align-items: center;\n gap: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n}\n\n.mjo-oh-asof input {\n font: inherit;\n font-weight: var(--mj-font-normal);\n padding: 4px 8px;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-sm);\n background: var(--mj-bg-surface);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-asof__clear,\n.mjo-oh-linkbtn {\n appearance: none;\n border: 0;\n background: transparent;\n padding: 0;\n font: inherit;\n font-size: var(--mj-text-xs);\n color: var(--mj-brand-primary);\n cursor: pointer;\n text-decoration: underline;\n}\n\n.mjo-oh-switch--sm button {\n padding: 4px 10px;\n}\n\n.mjo-oh-acct__basis,\n.mjo-oh-acct__note,\n.mjo-oh-acct__excluded {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-acct__note,\n.mjo-oh-acct__excluded {\n margin: var(--mj-space-2) 0 0;\n}\n\n.mjo-oh-je__table--detail tbody tr.is-clickable {\n cursor: pointer;\n}\n\n.mjo-oh-je__table--detail tbody tr.is-clickable:hover {\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-jecard {\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface);\n overflow: hidden;\n}\n\n.mjo-oh-jecard + .mjo-oh-jecard {\n margin-top: var(--mj-space-3);\n}\n\n.mjo-oh-jecard__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-oh-jecard__co {\n font-size: var(--mj-text-sm);\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-jecard__sub {\n margin-left: var(--mj-space-2);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-oh-je__table th,\n.mjo-oh-je__table td {\n padding: var(--mj-space-2) var(--mj-space-3);\n border-bottom: 1px solid var(--mj-border-subtle);\n text-align: left;\n vertical-align: top;\n}\n\n.mjo-oh-je__table thead th {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-oh-je__table tfoot th {\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-primary);\n border-bottom: 0;\n background: var(--mj-bg-surface-sunken);\n}\n\n.mjo-oh-je__table .is-num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-oh-je__table .is-quiet {\n color: var(--mj-text-disabled);\n}\n\n.mjo-oh-acctline {\n display: flex;\n align-items: baseline;\n gap: var(--mj-space-2);\n flex-wrap: wrap;\n}\n\n.mjo-oh-acctline__code {\n font-variant-numeric: tabular-nums;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n letter-spacing: 0.02em;\n}\n\n.mjo-oh-acctline__name {\n color: var(--mj-text-primary);\n}\n\n.mjo-oh-acctline__meta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin-top: 4px;\n}\n\n.mjo-oh-dim {\n display: inline-flex;\n align-items: center;\n padding: 1px 8px;\n border-radius: var(--mj-radius-full);\n border: 1px solid var(--mj-border-subtle);\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n}\n\n.mjo-oh-je__src {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n@media (max-width: 760px) {\n .mjo-oh-parties,\n .mjo-oh-facts {\n grid-template-columns: 1fr;\n }\n .mjo-oh-money { margin-left: 0; }\n}\n"] }]
1620
1667
  }], null, null); })();
1621
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsOrderHeaderFormComponent, { className: "BizAppsOrderHeaderFormComponent", filePath: "lib/custom/OrderHeader/order-header-form.component.ts", lineNumber: 87 }); })();
1668
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsOrderHeaderFormComponent, { className: "BizAppsOrderHeaderFormComponent", filePath: "lib/custom/OrderHeader/order-header-form.component.ts", lineNumber: 95 }); })();
1622
1669
  /** Tree-shaking prevention anchor. */
1623
1670
  export function LoadOrderHeaderFormComponent() {
1624
1671
  void BizAppsOrderHeaderFormComponent;