@mj-biz-apps/orders-ng 5.43.0 → 5.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/lib/custom/EventOrderLine/event-order-line-form.component.js +6 -5
  2. package/dist/lib/custom/EventOrderLine/event-order-line-form.component.js.map +1 -1
  3. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +4 -0
  4. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
  5. package/dist/lib/custom/OrderHeader/order-header-form.component.js +330 -297
  6. package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
  7. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +6 -0
  8. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -1
  9. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +130 -46
  10. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
  11. package/dist/lib/custom/PaymentHeader/change-payment-date.component.d.ts +30 -0
  12. package/dist/lib/custom/PaymentHeader/change-payment-date.component.d.ts.map +1 -0
  13. package/dist/lib/custom/PaymentHeader/change-payment-date.component.js +156 -0
  14. package/dist/lib/custom/PaymentHeader/change-payment-date.component.js.map +1 -0
  15. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.d.ts +26 -0
  16. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.d.ts.map +1 -0
  17. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.js +149 -0
  18. package/dist/lib/custom/PaymentHeader/order-payment-dates.component.js.map +1 -0
  19. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts +2 -0
  20. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts.map +1 -1
  21. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js +398 -378
  22. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js.map +1 -1
  23. package/dist/lib/custom/Product/product-save-guard-form.component.js +74 -72
  24. package/dist/lib/custom/Product/product-save-guard-form.component.js.map +1 -1
  25. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +16 -9
  26. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -1
  27. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts +54 -0
  28. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts.map +1 -0
  29. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js +254 -0
  30. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js.map +1 -0
  31. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts +7 -4
  32. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts.map +1 -1
  33. package/dist/lib/custom/Product/widgets/product-gl-links.component.js +14 -5
  34. package/dist/lib/custom/Product/widgets/product-gl-links.component.js.map +1 -1
  35. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +7 -0
  36. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
  37. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +54 -32
  38. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
  39. package/dist/lib/custom/custom-forms.module.d.ts +23 -20
  40. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  41. package/dist/lib/custom/custom-forms.module.js +17 -1
  42. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  43. package/dist/lib/data/orders-queries.d.ts +35 -3
  44. package/dist/lib/data/orders-queries.d.ts.map +1 -1
  45. package/dist/lib/data/orders-queries.js +56 -5
  46. package/dist/lib/data/orders-queries.js.map +1 -1
  47. package/dist/lib/form-panels/catalog-overviews.panels.js +8 -8
  48. package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -1
  49. package/dist/lib/form-panels/commercial-overviews.panels.js +5 -5
  50. package/dist/lib/form-panels/document-forms.module.d.ts +20 -19
  51. package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -1
  52. package/dist/lib/form-panels/document-forms.module.js +8 -1
  53. package/dist/lib/form-panels/document-forms.module.js.map +1 -1
  54. package/dist/lib/form-panels/document-hero.component.js +2 -2
  55. package/dist/lib/form-panels/document-overviews.panels.js +7 -7
  56. package/dist/lib/form-panels/lookup-headers.panels.js +10 -10
  57. package/dist/lib/form-panels/order-access-overrides.panel.js +2 -2
  58. package/dist/lib/form-panels/overview-cards.component.js +2 -2
  59. package/dist/lib/form-panels/payment-header.panel.js +2 -2
  60. package/dist/lib/form-panels/price-list-header.panel.js +2 -2
  61. package/dist/lib/form-panels/product-header.panel.d.ts +37 -10
  62. package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -1
  63. package/dist/lib/form-panels/product-header.panel.js +253 -59
  64. package/dist/lib/form-panels/product-header.panel.js.map +1 -1
  65. package/dist/lib/form-panels/product-readiness.d.ts +34 -0
  66. package/dist/lib/form-panels/product-readiness.d.ts.map +1 -0
  67. package/dist/lib/form-panels/product-readiness.js +34 -0
  68. package/dist/lib/form-panels/product-readiness.js.map +1 -0
  69. package/dist/lib/form-panels/product-rev-rec-field.component.d.ts +29 -0
  70. package/dist/lib/form-panels/product-rev-rec-field.component.d.ts.map +1 -0
  71. package/dist/lib/form-panels/product-rev-rec-field.component.js +115 -0
  72. package/dist/lib/form-panels/product-rev-rec-field.component.js.map +1 -0
  73. package/dist/lib/form-panels/product-widget.panels.d.ts +12 -0
  74. package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -1
  75. package/dist/lib/form-panels/product-widget.panels.js +165 -75
  76. package/dist/lib/form-panels/product-widget.panels.js.map +1 -1
  77. package/dist/lib/form-panels/promotion-header.panel.js +2 -2
  78. package/dist/lib/form-panels/subscription-header.panel.js +2 -2
  79. package/dist/lib/form-panels/subscription-revrec.panel.js +2 -2
  80. package/dist/lib/form-panels/subscription-term-header.panel.js +2 -2
  81. package/dist/lib/form-panels/subscription-term-revrec.panel.js +2 -2
  82. package/dist/lib/form-panels/subscription-terms.panel.js +2 -2
  83. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js +8 -6
  84. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js.map +1 -1
  85. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js +107 -105
  86. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js.map +1 -1
  87. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js +74 -72
  88. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js.map +1 -1
  89. package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts.map +1 -1
  90. package/dist/lib/pages/receivables/external-invoicing-queue.page.js +2 -1
  91. package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
  92. package/dist/lib/pages/receivables/progress.page.d.ts +10 -7
  93. package/dist/lib/pages/receivables/progress.page.d.ts.map +1 -1
  94. package/dist/lib/pages/receivables/progress.page.js +20 -25
  95. package/dist/lib/pages/receivables/progress.page.js.map +1 -1
  96. package/dist/lib/panels/product-lookup-names.d.ts +29 -0
  97. package/dist/lib/panels/product-lookup-names.d.ts.map +1 -1
  98. package/dist/lib/panels/product-lookup-names.js +58 -2
  99. package/dist/lib/panels/product-lookup-names.js.map +1 -1
  100. package/package.json +7 -7
@@ -21,6 +21,8 @@ import * as i1 from "@angular/forms";
21
21
  import * as i2 from "@memberjunction/ng-base-forms";
22
22
  import * as i3 from "@memberjunction/ng-ui-components";
23
23
  import * as i4 from "@memberjunction/ng-shared-generic";
24
+ import * as i5 from "./change-payment-date.component.js";
25
+ import * as i6 from "@mj-biz-apps/common-ng";
24
26
  const _forTrack0 = ($index, $item) => $item.ID;
25
27
  const _forTrack1 = ($index, $item) => $item.CompanyID;
26
28
  const _forTrack2 = ($index, $item) => $item.Key;
@@ -79,7 +81,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_42_Template
79
81
  i0.ɵɵtextInterpolate1(" ", ctx_r1.CaptureError, " ");
80
82
  } }
81
83
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Conditional_4_Template(rf, ctx) { if (rf & 1) {
82
- i0.ɵɵelementStart(0, "span", 55);
84
+ i0.ɵɵelementStart(0, "span", 56);
83
85
  i0.ɵɵtext(1);
84
86
  i0.ɵɵelementEnd();
85
87
  } if (rf & 2) {
@@ -89,11 +91,11 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
89
91
  } }
90
92
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Template(rf, ctx) { if (rf & 1) {
91
93
  i0.ɵɵelementStart(0, "div", 36);
92
- i0.ɵɵelement(1, "i", 54);
94
+ i0.ɵɵelement(1, "i", 55);
93
95
  i0.ɵɵelementStart(2, "span");
94
96
  i0.ɵɵtext(3);
95
97
  i0.ɵɵelementEnd();
96
- i0.ɵɵconditionalCreate(4, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Conditional_4_Template, 2, 1, "span", 55);
98
+ i0.ɵɵconditionalCreate(4, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Conditional_4_Template, 2, 1, "span", 56);
97
99
  i0.ɵɵelementEnd();
98
100
  } if (rf & 2) {
99
101
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -102,31 +104,40 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
102
104
  i0.ɵɵadvance();
103
105
  i0.ɵɵconditional(ctx_r1.OpenOrders.length > 0 ? 4 : -1);
104
106
  } }
105
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_For_4_Template(rf, ctx) { if (rf & 1) {
106
- i0.ɵɵelementStart(0, "option", 58);
107
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_27_Template(rf, ctx) { if (rf & 1) {
108
+ const _r5 = i0.ɵɵgetCurrentView();
109
+ i0.ɵɵelementStart(0, "mjo-change-payment-date", 57);
110
+ i0.ɵɵlistener("Changed", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_27_Template_mjo_change_payment_date_Changed_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnPaymentDateChanged()); });
111
+ i0.ɵɵelementEnd();
112
+ } if (rf & 2) {
113
+ const ctx_r1 = i0.ɵɵnextContext(3);
114
+ i0.ɵɵproperty("Payment", ctx_r1.record);
115
+ } }
116
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_For_4_Template(rf, ctx) { if (rf & 1) {
117
+ i0.ɵɵelementStart(0, "option", 60);
107
118
  i0.ɵɵtext(1);
108
119
  i0.ɵɵelementEnd();
109
120
  } if (rf & 2) {
110
- const pt_r6 = ctx.$implicit;
111
- i0.ɵɵproperty("value", pt_r6.ID);
121
+ const pt_r7 = ctx.$implicit;
122
+ i0.ɵɵproperty("value", pt_r7.ID);
112
123
  i0.ɵɵadvance();
113
- i0.ɵɵtextInterpolate(pt_r6.Name);
124
+ i0.ɵɵtextInterpolate(pt_r7.Name);
114
125
  } }
115
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Conditional_5_Template(rf, ctx) { if (rf & 1) {
116
- i0.ɵɵelementStart(0, "div", 48);
126
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Conditional_5_Template(rf, ctx) { if (rf & 1) {
127
+ i0.ɵɵelementStart(0, "div", 49);
117
128
  i0.ɵɵtext(1, "Required before Capture & Book.");
118
129
  i0.ɵɵelementEnd();
119
130
  } }
120
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Template(rf, ctx) { if (rf & 1) {
121
- const _r5 = i0.ɵɵgetCurrentView();
122
- i0.ɵɵelementStart(0, "select", 56);
123
- i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnPaymentTypeSelected($event)); });
124
- i0.ɵɵelementStart(1, "option", 57);
131
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template(rf, ctx) { if (rf & 1) {
132
+ const _r6 = i0.ɵɵgetCurrentView();
133
+ i0.ɵɵelementStart(0, "select", 58);
134
+ i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnPaymentTypeSelected($event)); });
135
+ i0.ɵɵelementStart(1, "option", 59);
125
136
  i0.ɵɵtext(2, "Select payment type\u2026");
126
137
  i0.ɵɵelementEnd();
127
- i0.ɵɵrepeaterCreate(3, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_For_4_Template, 2, 2, "option", 58, _forTrack0);
138
+ i0.ɵɵrepeaterCreate(3, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_For_4_Template, 2, 2, "option", 60, _forTrack0);
128
139
  i0.ɵɵelementEnd();
129
- i0.ɵɵconditionalCreate(5, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Conditional_5_Template, 2, 0, "div", 48);
140
+ i0.ɵɵconditionalCreate(5, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Conditional_5_Template, 2, 0, "div", 49);
130
141
  } if (rf & 2) {
131
142
  const ctx_r1 = i0.ɵɵnextContext(3);
132
143
  i0.ɵɵclassProp("mjo-input--invalid", ctx_r1.PaymentTypeMissing);
@@ -138,40 +149,40 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
138
149
  i0.ɵɵadvance(2);
139
150
  i0.ɵɵconditional(ctx_r1.PaymentTypeMissing ? 5 : -1);
140
151
  } }
141
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template(rf, ctx) { if (rf & 1) {
142
- const _r7 = i0.ɵɵgetCurrentView();
143
- i0.ɵɵelementStart(0, "mj-form-field", 59);
144
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template_mj_form_field_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
152
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template(rf, ctx) { if (rf & 1) {
153
+ const _r8 = i0.ɵɵgetCurrentView();
154
+ i0.ɵɵelementStart(0, "mj-form-field", 61);
155
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_mj_form_field_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
145
156
  i0.ɵɵelementEnd();
146
157
  } if (rf & 2) {
147
158
  const ctx_r1 = i0.ɵɵnextContext(3);
148
159
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", false)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
149
160
  } }
150
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template(rf, ctx) { if (rf & 1) {
151
- const _r8 = i0.ɵɵgetCurrentView();
152
- i0.ɵɵelementStart(0, "div", 46)(1, "div", 60);
153
- i0.ɵɵelement(2, "i", 61);
161
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template(rf, ctx) { if (rf & 1) {
162
+ const _r9 = i0.ɵɵgetCurrentView();
163
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 62);
164
+ i0.ɵɵelement(2, "i", 63);
154
165
  i0.ɵɵtext(3, " Check details ");
155
166
  i0.ɵɵelementEnd();
156
- i0.ɵɵelementStart(4, "div", 62)(5, "div", 38)(6, "label", 39);
167
+ i0.ɵɵelementStart(4, "div", 64)(5, "div", 38)(6, "label", 39);
157
168
  i0.ɵɵtext(7, "Check \u2116 ");
158
- i0.ɵɵelementStart(8, "span", 63);
169
+ i0.ɵɵelementStart(8, "span", 65);
159
170
  i0.ɵɵtext(9, "*");
160
171
  i0.ɵɵelementEnd()();
161
- i0.ɵɵelementStart(10, "input", 64);
162
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_input_ngModelChange_10_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
172
+ i0.ɵɵelementStart(10, "input", 66);
173
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_input_ngModelChange_10_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
163
174
  i0.ɵɵelementEnd()();
164
175
  i0.ɵɵelementStart(11, "div", 38)(12, "label", 39);
165
176
  i0.ɵɵtext(13, "Check Date");
166
177
  i0.ɵɵelementEnd();
167
- i0.ɵɵelementStart(14, "input", 65);
168
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.InstrumentDateInput, $event) || (ctx_r1.InstrumentDateInput = $event); return i0.ɵɵresetView($event); });
178
+ i0.ɵɵelementStart(14, "input", 67);
179
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.InstrumentDateInput, $event) || (ctx_r1.InstrumentDateInput = $event); return i0.ɵɵresetView($event); });
169
180
  i0.ɵɵelementEnd()();
170
- i0.ɵɵelementStart(15, "div", 66)(16, "label", 39);
181
+ i0.ɵɵelementStart(15, "div", 68)(16, "label", 39);
171
182
  i0.ɵɵtext(17, "Bank Name");
172
183
  i0.ɵɵelementEnd();
173
- i0.ɵɵelementStart(18, "input", 67);
174
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_input_ngModelChange_18_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankName, $event) || (ctx_r1.BankName = $event); return i0.ɵɵresetView($event); });
184
+ i0.ɵɵelementStart(18, "input", 69);
185
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_input_ngModelChange_18_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankName, $event) || (ctx_r1.BankName = $event); return i0.ɵɵresetView($event); });
175
186
  i0.ɵɵelementEnd()()()();
176
187
  } if (rf & 2) {
177
188
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -185,49 +196,49 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
185
196
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.BankName);
186
197
  i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
187
198
  } }
188
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template(rf, ctx) { if (rf & 1) {
189
- const _r9 = i0.ɵɵgetCurrentView();
190
- i0.ɵɵelementStart(0, "div", 46)(1, "div", 60);
191
- i0.ɵɵelement(2, "i", 68);
199
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template(rf, ctx) { if (rf & 1) {
200
+ const _r10 = i0.ɵɵgetCurrentView();
201
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 62);
202
+ i0.ɵɵelement(2, "i", 70);
192
203
  i0.ɵɵtext(3, " Bank transfer / ACH details ");
193
204
  i0.ɵɵelementEnd();
194
- i0.ɵɵelementStart(4, "div", 62)(5, "div", 38)(6, "label", 39);
205
+ i0.ɵɵelementStart(4, "div", 64)(5, "div", 38)(6, "label", 39);
195
206
  i0.ɵɵtext(7, "Bank Name");
196
207
  i0.ɵɵelementEnd();
197
- i0.ɵɵelementStart(8, "input", 69);
198
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankName, $event) || (ctx_r1.BankName = $event); return i0.ɵɵresetView($event); });
208
+ i0.ɵɵelementStart(8, "input", 71);
209
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankName, $event) || (ctx_r1.BankName = $event); return i0.ɵɵresetView($event); });
199
210
  i0.ɵɵelementEnd()();
200
211
  i0.ɵɵelementStart(9, "div", 38)(10, "label", 39);
201
212
  i0.ɵɵtext(11, "Account Type");
202
213
  i0.ɵɵelementEnd();
203
- i0.ɵɵelementStart(12, "select", 70);
204
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_select_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankAccountType, $event) || (ctx_r1.BankAccountType = $event); return i0.ɵɵresetView($event); });
205
- i0.ɵɵelementStart(13, "option", 57);
214
+ i0.ɵɵelementStart(12, "select", 72);
215
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template_select_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankAccountType, $event) || (ctx_r1.BankAccountType = $event); return i0.ɵɵresetView($event); });
216
+ i0.ɵɵelementStart(13, "option", 59);
206
217
  i0.ɵɵtext(14, "Select Type");
207
218
  i0.ɵɵelementEnd();
208
- i0.ɵɵelementStart(15, "option", 71);
219
+ i0.ɵɵelementStart(15, "option", 73);
209
220
  i0.ɵɵtext(16, "Checking");
210
221
  i0.ɵɵelementEnd();
211
- i0.ɵɵelementStart(17, "option", 72);
222
+ i0.ɵɵelementStart(17, "option", 74);
212
223
  i0.ɵɵtext(18, "Savings");
213
224
  i0.ɵɵelementEnd()()();
214
225
  i0.ɵɵelementStart(19, "div", 38)(20, "label", 39);
215
226
  i0.ɵɵtext(21, "Routing Last 4");
216
227
  i0.ɵɵelementEnd();
217
- i0.ɵɵelementStart(22, "input", 73);
218
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_input_ngModelChange_22_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.RoutingLast4, $event) || (ctx_r1.RoutingLast4 = $event); return i0.ɵɵresetView($event); });
228
+ i0.ɵɵelementStart(22, "input", 75);
229
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template_input_ngModelChange_22_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.RoutingLast4, $event) || (ctx_r1.RoutingLast4 = $event); return i0.ɵɵresetView($event); });
219
230
  i0.ɵɵelementEnd()();
220
231
  i0.ɵɵelementStart(23, "div", 38)(24, "label", 39);
221
232
  i0.ɵɵtext(25, "Account Last 4");
222
233
  i0.ɵɵelementEnd();
223
- i0.ɵɵelementStart(26, "input", 74);
224
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_input_ngModelChange_26_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.AccountLast4, $event) || (ctx_r1.AccountLast4 = $event); return i0.ɵɵresetView($event); });
234
+ i0.ɵɵelementStart(26, "input", 76);
235
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template_input_ngModelChange_26_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.AccountLast4, $event) || (ctx_r1.AccountLast4 = $event); return i0.ɵɵresetView($event); });
225
236
  i0.ɵɵelementEnd()();
226
- i0.ɵɵelementStart(27, "div", 66)(28, "label", 39);
237
+ i0.ɵɵelementStart(27, "div", 68)(28, "label", 39);
227
238
  i0.ɵɵtext(29, "Trace / Reference \u2116");
228
239
  i0.ɵɵelementEnd();
229
- i0.ɵɵelementStart(30, "input", 75);
230
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_input_ngModelChange_30_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
240
+ i0.ɵɵelementStart(30, "input", 77);
241
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template_input_ngModelChange_30_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
231
242
  i0.ɵɵelementEnd()()()();
232
243
  } if (rf & 2) {
233
244
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -249,17 +260,17 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
249
260
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ReferenceNumber);
250
261
  i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
251
262
  } }
252
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template(rf, ctx) { if (rf & 1) {
253
- const _r10 = i0.ɵɵgetCurrentView();
254
- i0.ɵɵelementStart(0, "div", 46)(1, "div", 60);
255
- i0.ɵɵelement(2, "i", 76);
263
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template(rf, ctx) { if (rf & 1) {
264
+ const _r11 = i0.ɵɵgetCurrentView();
265
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 62);
266
+ i0.ɵɵelement(2, "i", 78);
256
267
  i0.ɵɵtext(3, " Gift card details ");
257
268
  i0.ɵɵelementEnd();
258
- i0.ɵɵelementStart(4, "div", 62)(5, "div", 38)(6, "label", 39);
269
+ i0.ɵɵelementStart(4, "div", 64)(5, "div", 38)(6, "label", 39);
259
270
  i0.ɵɵtext(7, "Card Number (last 4)");
260
271
  i0.ɵɵelementEnd();
261
- i0.ɵɵelementStart(8, "input", 73);
262
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardLast4, $event) || (ctx_r1.CardLast4 = $event); return i0.ɵɵresetView($event); });
272
+ i0.ɵɵelementStart(8, "input", 75);
273
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardLast4, $event) || (ctx_r1.CardLast4 = $event); return i0.ɵɵresetView($event); });
263
274
  i0.ɵɵelementEnd()()()();
264
275
  } if (rf & 2) {
265
276
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -267,61 +278,61 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
267
278
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.CardLast4);
268
279
  i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
269
280
  } }
270
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template(rf, ctx) { if (rf & 1) {
271
- const _r11 = i0.ɵɵgetCurrentView();
272
- i0.ɵɵelementStart(0, "div", 46)(1, "div", 60);
273
- i0.ɵɵelement(2, "i", 77);
281
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template(rf, ctx) { if (rf & 1) {
282
+ const _r12 = i0.ɵɵgetCurrentView();
283
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 62);
284
+ i0.ɵɵelement(2, "i", 79);
274
285
  i0.ɵɵtext(3, " Card instrument details ");
275
286
  i0.ɵɵelementEnd();
276
- i0.ɵɵelementStart(4, "div", 62)(5, "div", 38)(6, "label", 39);
287
+ i0.ɵɵelementStart(4, "div", 64)(5, "div", 38)(6, "label", 39);
277
288
  i0.ɵɵtext(7, "Card Brand");
278
289
  i0.ɵɵelementEnd();
279
- i0.ɵɵelementStart(8, "select", 70);
280
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template_select_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardBrand, $event) || (ctx_r1.CardBrand = $event); return i0.ɵɵresetView($event); });
281
- i0.ɵɵelementStart(9, "option", 78);
290
+ i0.ɵɵelementStart(8, "select", 72);
291
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template_select_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardBrand, $event) || (ctx_r1.CardBrand = $event); return i0.ɵɵresetView($event); });
292
+ i0.ɵɵelementStart(9, "option", 80);
282
293
  i0.ɵɵtext(10, "Select Brand");
283
294
  i0.ɵɵelementEnd();
284
- i0.ɵɵelementStart(11, "option", 79);
295
+ i0.ɵɵelementStart(11, "option", 81);
285
296
  i0.ɵɵtext(12, "Visa");
286
297
  i0.ɵɵelementEnd();
287
- i0.ɵɵelementStart(13, "option", 80);
298
+ i0.ɵɵelementStart(13, "option", 82);
288
299
  i0.ɵɵtext(14, "MasterCard");
289
300
  i0.ɵɵelementEnd();
290
- i0.ɵɵelementStart(15, "option", 81);
301
+ i0.ɵɵelementStart(15, "option", 83);
291
302
  i0.ɵɵtext(16, "American Express");
292
303
  i0.ɵɵelementEnd();
293
- i0.ɵɵelementStart(17, "option", 82);
304
+ i0.ɵɵelementStart(17, "option", 84);
294
305
  i0.ɵɵtext(18, "Discover");
295
306
  i0.ɵɵelementEnd();
296
- i0.ɵɵelementStart(19, "option", 83);
307
+ i0.ɵɵelementStart(19, "option", 85);
297
308
  i0.ɵɵtext(20, "Other");
298
309
  i0.ɵɵelementEnd()()();
299
310
  i0.ɵɵelementStart(21, "div", 38)(22, "label", 39);
300
311
  i0.ɵɵtext(23, "Last 4 Digits");
301
312
  i0.ɵɵelementEnd();
302
- i0.ɵɵelementStart(24, "input", 84);
303
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template_input_ngModelChange_24_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardLast4, $event) || (ctx_r1.CardLast4 = $event); return i0.ɵɵresetView($event); });
313
+ i0.ɵɵelementStart(24, "input", 86);
314
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template_input_ngModelChange_24_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardLast4, $event) || (ctx_r1.CardLast4 = $event); return i0.ɵɵresetView($event); });
304
315
  i0.ɵɵelementEnd()();
305
316
  i0.ɵɵelementStart(25, "div", 38)(26, "label", 39);
306
317
  i0.ɵɵtext(27, "Expiry (MM / YYYY)");
307
318
  i0.ɵɵelementEnd();
308
- i0.ɵɵelementStart(28, "div", 85)(29, "input", 86);
309
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template_input_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardExpMonth, $event) || (ctx_r1.CardExpMonth = $event); return i0.ɵɵresetView($event); });
319
+ i0.ɵɵelementStart(28, "div", 87)(29, "input", 88);
320
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template_input_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardExpMonth, $event) || (ctx_r1.CardExpMonth = $event); return i0.ɵɵresetView($event); });
310
321
  i0.ɵɵelementEnd();
311
- i0.ɵɵelementStart(30, "input", 87);
312
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template_input_ngModelChange_30_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardExpYear, $event) || (ctx_r1.CardExpYear = $event); return i0.ɵɵresetView($event); });
322
+ i0.ɵɵelementStart(30, "input", 89);
323
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template_input_ngModelChange_30_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardExpYear, $event) || (ctx_r1.CardExpYear = $event); return i0.ɵɵresetView($event); });
313
324
  i0.ɵɵelementEnd()()();
314
325
  i0.ɵɵelementStart(31, "div", 38)(32, "label", 39);
315
326
  i0.ɵɵtext(33, "Cardholder Name");
316
327
  i0.ɵɵelementEnd();
317
- i0.ɵɵelementStart(34, "input", 88);
318
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template_input_ngModelChange_34_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardHolderName, $event) || (ctx_r1.CardHolderName = $event); return i0.ɵɵresetView($event); });
328
+ i0.ɵɵelementStart(34, "input", 90);
329
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template_input_ngModelChange_34_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardHolderName, $event) || (ctx_r1.CardHolderName = $event); return i0.ɵɵresetView($event); });
319
330
  i0.ɵɵelementEnd()();
320
- i0.ɵɵelementStart(35, "div", 66)(36, "label", 39);
331
+ i0.ɵɵelementStart(35, "div", 68)(36, "label", 39);
321
332
  i0.ɵɵtext(37, "Auth / Approval \u2116");
322
333
  i0.ɵɵelementEnd();
323
- i0.ɵɵelementStart(38, "input", 89);
324
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template_input_ngModelChange_38_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
334
+ i0.ɵɵelementStart(38, "input", 91);
335
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template_input_ngModelChange_38_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
325
336
  i0.ɵɵelementEnd()()()();
326
337
  } if (rf & 2) {
327
338
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -344,19 +355,19 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
344
355
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ReferenceNumber);
345
356
  i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
346
357
  } }
347
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template(rf, ctx) { if (rf & 1) {
348
- const _r12 = i0.ɵɵgetCurrentView();
349
- i0.ɵɵelementStart(0, "div", 46)(1, "div", 60);
350
- i0.ɵɵelement(2, "i", 90);
358
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_39_Template(rf, ctx) { if (rf & 1) {
359
+ const _r13 = i0.ɵɵgetCurrentView();
360
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 62);
361
+ i0.ɵɵelement(2, "i", 92);
351
362
  i0.ɵɵtext(3, " Reference details ");
352
363
  i0.ɵɵelementEnd();
353
364
  i0.ɵɵelementStart(4, "div", 38)(5, "label", 39);
354
365
  i0.ɵɵtext(6, "Reference / Wire Confirmation \u2116 ");
355
- i0.ɵɵelementStart(7, "span", 63);
366
+ i0.ɵɵelementStart(7, "span", 65);
356
367
  i0.ɵɵtext(8, "*");
357
368
  i0.ɵɵelementEnd()();
358
- i0.ɵɵelementStart(9, "input", 91);
359
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
369
+ i0.ɵɵelementStart(9, "input", 93);
370
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_39_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
360
371
  i0.ɵɵelementEnd()()();
361
372
  } if (rf & 2) {
362
373
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -364,19 +375,19 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
364
375
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ReferenceNumber);
365
376
  i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
366
377
  } }
367
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_40_Template(rf, ctx) { if (rf & 1) {
368
- i0.ɵɵelementStart(0, "div", 48);
378
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_41_Template(rf, ctx) { if (rf & 1) {
379
+ i0.ɵɵelementStart(0, "div", 49);
369
380
  i0.ɵɵtext(1, "Required before Capture & Book.");
370
381
  i0.ɵɵelementEnd();
371
382
  } }
372
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_14_Template(rf, ctx) { if (rf & 1) {
373
- i0.ɵɵelementStart(0, "div", 97);
374
- i0.ɵɵelement(1, "i", 106);
383
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_14_Template(rf, ctx) { if (rf & 1) {
384
+ i0.ɵɵelementStart(0, "div", 99);
385
+ i0.ɵɵelement(1, "i", 108);
375
386
  i0.ɵɵelementEnd();
376
- i0.ɵɵelementStart(2, "div", 94)(3, "span", 95);
387
+ i0.ɵɵelementStart(2, "div", 96)(3, "span", 97);
377
388
  i0.ɵɵtext(4, "Unapplied");
378
389
  i0.ɵɵelementEnd();
379
- i0.ɵɵelementStart(5, "span", 96);
390
+ i0.ɵɵelementStart(5, "span", 98);
380
391
  i0.ɵɵtext(6);
381
392
  i0.ɵɵelementEnd()();
382
393
  } if (rf & 2) {
@@ -384,12 +395,12 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
384
395
  i0.ɵɵadvance(6);
385
396
  i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(ctx_r1.UnappliedAmount));
386
397
  } }
387
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_21_Template(rf, ctx) { if (rf & 1) {
388
- i0.ɵɵelementStart(0, "div", 103);
389
- i0.ɵɵelement(1, "mj-loading", 107);
398
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_21_Template(rf, ctx) { if (rf & 1) {
399
+ i0.ɵɵelementStart(0, "div", 105);
400
+ i0.ɵɵelement(1, "mj-loading", 109);
390
401
  i0.ɵɵelementEnd();
391
402
  } }
392
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_22_Template(rf, ctx) { if (rf & 1) {
403
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_22_Template(rf, ctx) { if (rf & 1) {
393
404
  i0.ɵɵelementStart(0, "div", 18);
394
405
  i0.ɵɵtext(1);
395
406
  i0.ɵɵelementEnd();
@@ -398,82 +409,82 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
398
409
  i0.ɵɵadvance();
399
410
  i0.ɵɵtextInterpolate(ctx_r1.AppliedLinesError);
400
411
  } }
401
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_23_Template(rf, ctx) { if (rf & 1) {
402
- i0.ɵɵelement(0, "mj-empty-state", 104);
412
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_23_Template(rf, ctx) { if (rf & 1) {
413
+ i0.ɵɵelement(0, "mj-empty-state", 106);
403
414
  } }
404
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_24_For_14_Template(rf, ctx) { if (rf & 1) {
405
- const _r13 = i0.ɵɵgetCurrentView();
406
- i0.ɵɵelementStart(0, "tr")(1, "td")(2, "button", 110);
407
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_24_For_14_Template_button_click_2_listener($event) { const line_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OpenAppliedOrder(line_r14, $event)); });
415
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_24_For_14_Template(rf, ctx) { if (rf & 1) {
416
+ const _r14 = i0.ɵɵgetCurrentView();
417
+ i0.ɵɵelementStart(0, "tr")(1, "td")(2, "button", 112);
418
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_24_For_14_Template_button_click_2_listener($event) { const line_r15 = i0.ɵɵrestoreView(_r14).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OpenAppliedOrder(line_r15, $event)); });
408
419
  i0.ɵɵelementStart(3, "strong");
409
420
  i0.ɵɵtext(4);
410
421
  i0.ɵɵelementEnd()()();
411
422
  i0.ɵɵelementStart(5, "td");
412
423
  i0.ɵɵtext(6);
413
424
  i0.ɵɵelementEnd();
414
- i0.ɵɵelementStart(7, "td", 111);
425
+ i0.ɵɵelementStart(7, "td", 113);
415
426
  i0.ɵɵtext(8);
416
427
  i0.ɵɵelementEnd();
417
428
  i0.ɵɵelementStart(9, "td");
418
429
  i0.ɵɵtext(10);
419
430
  i0.ɵɵelementEnd()();
420
431
  } if (rf & 2) {
421
- const line_r14 = ctx.$implicit;
432
+ const line_r15 = ctx.$implicit;
422
433
  const ctx_r1 = i0.ɵɵnextContext(5);
423
434
  i0.ɵɵadvance(4);
424
- i0.ɵɵtextInterpolate(line_r14.OrderNumber);
435
+ i0.ɵɵtextInterpolate(line_r15.OrderNumber);
425
436
  i0.ɵɵadvance(2);
426
- i0.ɵɵtextInterpolate(line_r14.OrderLineLabel || "Whole order");
437
+ i0.ɵɵtextInterpolate(line_r15.OrderLineLabel || "Whole order");
427
438
  i0.ɵɵadvance(2);
428
- i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(line_r14.Amount));
439
+ i0.ɵɵtextInterpolate(ctx_r1.RollupAmount(line_r15.Amount));
429
440
  i0.ɵɵadvance(2);
430
- i0.ɵɵtextInterpolate(ctx_r1.FormatAppliedBookedAt(line_r14));
441
+ i0.ɵɵtextInterpolate(ctx_r1.FormatAppliedBookedAt(line_r15));
431
442
  } }
432
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_24_Template(rf, ctx) { if (rf & 1) {
433
- i0.ɵɵelementStart(0, "div", 105)(1, "table", 108)(2, "thead")(3, "tr")(4, "th");
443
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_24_Template(rf, ctx) { if (rf & 1) {
444
+ i0.ɵɵelementStart(0, "div", 107)(1, "table", 110)(2, "thead")(3, "tr")(4, "th");
434
445
  i0.ɵɵtext(5, "Order \u2116");
435
446
  i0.ɵɵelementEnd();
436
447
  i0.ɵɵelementStart(6, "th");
437
448
  i0.ɵɵtext(7, "Order Line");
438
449
  i0.ɵɵelementEnd();
439
- i0.ɵɵelementStart(8, "th", 109);
450
+ i0.ɵɵelementStart(8, "th", 111);
440
451
  i0.ɵɵtext(9, "Amount");
441
452
  i0.ɵɵelementEnd();
442
453
  i0.ɵɵelementStart(10, "th");
443
454
  i0.ɵɵtext(11, "Booked");
444
455
  i0.ɵɵelementEnd()()();
445
456
  i0.ɵɵelementStart(12, "tbody");
446
- i0.ɵɵrepeaterCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_24_For_14_Template, 11, 4, "tr", null, i0.ɵɵrepeaterTrackByIndex);
457
+ i0.ɵɵrepeaterCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_24_For_14_Template, 11, 4, "tr", null, i0.ɵɵrepeaterTrackByIndex);
447
458
  i0.ɵɵelementEnd()()();
448
459
  } if (rf & 2) {
449
460
  const ctx_r1 = i0.ɵɵnextContext(4);
450
461
  i0.ɵɵadvance(13);
451
462
  i0.ɵɵrepeater(ctx_r1.AppliedLines);
452
463
  } }
453
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Template(rf, ctx) { if (rf & 1) {
454
- i0.ɵɵelementStart(0, "div", 92)(1, "div", 93)(2, "div", 94)(3, "span", 95);
464
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Template(rf, ctx) { if (rf & 1) {
465
+ i0.ɵɵelementStart(0, "div", 94)(1, "div", 95)(2, "div", 96)(3, "span", 97);
455
466
  i0.ɵɵtext(4, "Received");
456
467
  i0.ɵɵelementEnd();
457
- i0.ɵɵelementStart(5, "span", 96);
468
+ i0.ɵɵelementStart(5, "span", 98);
458
469
  i0.ɵɵtext(6);
459
470
  i0.ɵɵelementEnd()();
460
- i0.ɵɵelementStart(7, "div", 97);
461
- i0.ɵɵelement(8, "i", 98);
471
+ i0.ɵɵelementStart(7, "div", 99);
472
+ i0.ɵɵelement(8, "i", 100);
462
473
  i0.ɵɵelementEnd();
463
- i0.ɵɵelementStart(9, "div", 94)(10, "span", 95);
474
+ i0.ɵɵelementStart(9, "div", 96)(10, "span", 97);
464
475
  i0.ɵɵtext(11, "Applied");
465
476
  i0.ɵɵelementEnd();
466
- i0.ɵɵelementStart(12, "span", 96);
477
+ i0.ɵɵelementStart(12, "span", 98);
467
478
  i0.ɵɵtext(13);
468
479
  i0.ɵɵelementEnd()();
469
- i0.ɵɵconditionalCreate(14, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_14_Template, 7, 1);
480
+ i0.ɵɵconditionalCreate(14, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_14_Template, 7, 1);
470
481
  i0.ɵɵelementEnd()();
471
- i0.ɵɵelementStart(15, "div", 99)(16, "div", 100)(17, "h2", 101);
472
- i0.ɵɵelement(18, "i", 90);
482
+ i0.ɵɵelementStart(15, "div", 101)(16, "div", 102)(17, "h2", 103);
483
+ i0.ɵɵelement(18, "i", 92);
473
484
  i0.ɵɵtext(19, " Applied to ");
474
485
  i0.ɵɵelementEnd()()();
475
- i0.ɵɵelementStart(20, "div", 102);
476
- i0.ɵɵconditionalCreate(21, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_21_Template, 2, 0, "div", 103)(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_22_Template, 2, 1, "div", 18)(23, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_23_Template, 1, 0, "mj-empty-state", 104)(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Conditional_24_Template, 15, 0, "div", 105);
486
+ i0.ɵɵelementStart(20, "div", 104);
487
+ i0.ɵɵconditionalCreate(21, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_21_Template, 2, 0, "div", 105)(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_22_Template, 2, 1, "div", 18)(23, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_23_Template, 1, 0, "mj-empty-state", 106)(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_24_Template, 15, 0, "div", 107);
477
488
  i0.ɵɵelementEnd();
478
489
  } if (rf & 2) {
479
490
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -487,14 +498,14 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
487
498
  i0.ɵɵadvance(7);
488
499
  i0.ɵɵconditional(ctx_r1.LoadingAppliedLines ? 21 : ctx_r1.AppliedLinesError ? 22 : ctx_r1.AppliedLines.length === 0 ? 23 : 24);
489
500
  } }
490
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_22_Template(rf, ctx) { if (rf & 1) {
491
- i0.ɵɵelement(0, "i", 54);
501
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_22_Template(rf, ctx) { if (rf & 1) {
502
+ i0.ɵɵelement(0, "i", 55);
492
503
  i0.ɵɵelementStart(1, "span");
493
504
  i0.ɵɵtext(2, "Allocations tie 100% to payment received. Ready to capture and book.");
494
505
  i0.ɵɵelementEnd();
495
506
  } }
496
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_23_Template(rf, ctx) { if (rf & 1) {
497
- i0.ɵɵelement(0, "i", 115);
507
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_23_Template(rf, ctx) { if (rf & 1) {
508
+ i0.ɵɵelement(0, "i", 117);
498
509
  i0.ɵɵelementStart(1, "span");
499
510
  i0.ɵɵtext(2);
500
511
  i0.ɵɵelementEnd();
@@ -503,8 +514,8 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
503
514
  i0.ɵɵadvance(2);
504
515
  i0.ɵɵtextInterpolate1("$", ctx_r1.UnallocatedRemainder.toFixed(2), " remaining to allocate before capturing.");
505
516
  } }
506
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_24_Template(rf, ctx) { if (rf & 1) {
507
- i0.ɵɵelement(0, "i", 116);
517
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_24_Template(rf, ctx) { if (rf & 1) {
518
+ i0.ɵɵelement(0, "i", 118);
508
519
  i0.ɵɵelementStart(1, "span");
509
520
  i0.ɵɵtext(2);
510
521
  i0.ɵɵelementEnd();
@@ -513,8 +524,8 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
513
524
  i0.ɵɵadvance(2);
514
525
  i0.ɵɵtextInterpolate1("Over-allocated by $", ctx_r1.Math.abs(ctx_r1.UnallocatedRemainder).toFixed(2), ". Please adjust amounts.");
515
526
  } }
516
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_30_Template(rf, ctx) { if (rf & 1) {
517
- i0.ɵɵelementStart(0, "span", 55);
527
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_30_Template(rf, ctx) { if (rf & 1) {
528
+ i0.ɵɵelementStart(0, "span", 56);
518
529
  i0.ɵɵtext(1);
519
530
  i0.ɵɵelementEnd();
520
531
  } if (rf & 2) {
@@ -522,21 +533,21 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
522
533
  i0.ɵɵadvance();
523
534
  i0.ɵɵtextInterpolate1("", ctx_r1.FilteredOpenOrders.length, " available");
524
535
  } }
525
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_31_Template(rf, ctx) { if (rf & 1) {
526
- const _r15 = i0.ɵɵgetCurrentView();
527
- i0.ɵɵelementStart(0, "div", 113)(1, "div", 117);
528
- i0.ɵɵelement(2, "i", 118);
529
- i0.ɵɵelementStart(3, "input", 119);
530
- i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_31_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.SearchQuery, $event) || (ctx_r1.SearchQuery = $event); return i0.ɵɵresetView($event); });
536
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_31_Template(rf, ctx) { if (rf & 1) {
537
+ const _r16 = i0.ɵɵgetCurrentView();
538
+ i0.ɵɵelementStart(0, "div", 115)(1, "div", 119);
539
+ i0.ɵɵelement(2, "i", 120);
540
+ i0.ɵɵelementStart(3, "input", 121);
541
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_31_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵtwoWayBindingSet(ctx_r1.SearchQuery, $event) || (ctx_r1.SearchQuery = $event); return i0.ɵɵresetView($event); });
531
542
  i0.ɵɵelementEnd()();
532
- i0.ɵɵelementStart(4, "button", 120);
533
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_31_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.AutoApplyOldestFirst()); });
534
- i0.ɵɵelement(5, "i", 121);
543
+ i0.ɵɵelementStart(4, "button", 122);
544
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_31_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.AutoApplyOldestFirst()); });
545
+ i0.ɵɵelement(5, "i", 123);
535
546
  i0.ɵɵtext(6, " Auto-apply oldest ");
536
547
  i0.ɵɵelementEnd();
537
- i0.ɵɵelementStart(7, "button", 122);
538
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_31_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r15); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ClearAllocations()); });
539
- i0.ɵɵelement(8, "i", 123);
548
+ i0.ɵɵelementStart(7, "button", 124);
549
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_31_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ClearAllocations()); });
550
+ i0.ɵɵelement(8, "i", 125);
540
551
  i0.ɵɵtext(9, " Clear all ");
541
552
  i0.ɵɵelementEnd()();
542
553
  } if (rf & 2) {
@@ -544,251 +555,251 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
544
555
  i0.ɵɵadvance(3);
545
556
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.SearchQuery);
546
557
  } }
547
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_33_Template(rf, ctx) { if (rf & 1) {
548
- i0.ɵɵelementStart(0, "div", 103);
549
- i0.ɵɵelement(1, "mj-loading", 124);
558
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_33_Template(rf, ctx) { if (rf & 1) {
559
+ i0.ɵɵelementStart(0, "div", 105);
560
+ i0.ɵɵelement(1, "mj-loading", 126);
550
561
  i0.ɵɵelementEnd();
551
562
  } }
552
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_34_Template(rf, ctx) { if (rf & 1) {
553
- i0.ɵɵelement(0, "mj-empty-state", 114);
563
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_34_Template(rf, ctx) { if (rf & 1) {
564
+ i0.ɵɵelement(0, "mj-empty-state", 116);
554
565
  } }
555
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_Conditional_5_Template(rf, ctx) { if (rf & 1) {
566
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_Conditional_5_Template(rf, ctx) { if (rf & 1) {
556
567
  i0.ɵɵelementStart(0, "th");
557
568
  i0.ɵɵtext(1, "Customer");
558
569
  i0.ɵɵelementEnd();
559
570
  } }
560
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_4_Template(rf, ctx) { if (rf & 1) {
561
- i0.ɵɵelementStart(0, "td", 131);
571
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_4_Template(rf, ctx) { if (rf & 1) {
572
+ i0.ɵɵelementStart(0, "td", 133);
562
573
  i0.ɵɵtext(1);
563
574
  i0.ɵɵelementEnd();
564
575
  } if (rf & 2) {
565
- const order_r17 = i0.ɵɵnextContext().$implicit;
576
+ const order_r18 = i0.ɵɵnextContext().$implicit;
566
577
  i0.ɵɵadvance();
567
- i0.ɵɵtextInterpolate(order_r17.BillToOrganization || order_r17.BillToPerson || "\u2014");
578
+ i0.ɵɵtextInterpolate(order_r18.BillToOrganization || order_r18.BillToPerson || "\u2014");
568
579
  } }
569
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_9_Template(rf, ctx) { if (rf & 1) {
570
- i0.ɵɵelementStart(0, "div", 132);
580
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_9_Template(rf, ctx) { if (rf & 1) {
581
+ i0.ɵɵelementStart(0, "div", 134);
571
582
  i0.ɵɵtext(1);
572
583
  i0.ɵɵelementEnd();
573
584
  } if (rf & 2) {
574
- const order_r17 = i0.ɵɵnextContext().$implicit;
585
+ const order_r18 = i0.ɵɵnextContext().$implicit;
575
586
  i0.ɵɵadvance();
576
- i0.ɵɵtextInterpolate(order_r17.Description);
587
+ i0.ɵɵtextInterpolate(order_r18.Description);
577
588
  } }
578
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_13_Template(rf, ctx) { if (rf & 1) {
579
- i0.ɵɵelementStart(0, "span", 133);
589
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_13_Template(rf, ctx) { if (rf & 1) {
590
+ i0.ɵɵelementStart(0, "span", 135);
580
591
  i0.ɵɵtext(1);
581
592
  i0.ɵɵelementEnd();
582
593
  } if (rf & 2) {
583
- const order_r17 = i0.ɵɵnextContext().$implicit;
594
+ const order_r18 = i0.ɵɵnextContext().$implicit;
584
595
  const ctx_r1 = i0.ɵɵnextContext(5);
585
596
  i0.ɵɵadvance();
586
- i0.ɵɵtextInterpolate1("", ctx_r1.GetOrderDaysOverdue(order_r17), "d overdue");
597
+ i0.ɵɵtextInterpolate1("", ctx_r1.GetOrderDaysOverdue(order_r18), "d overdue");
587
598
  } }
588
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_14_Template(rf, ctx) { if (rf & 1) {
599
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_14_Template(rf, ctx) { if (rf & 1) {
589
600
  i0.ɵɵelementStart(0, "span");
590
601
  i0.ɵɵtext(1);
591
602
  i0.ɵɵelementEnd();
592
603
  } if (rf & 2) {
593
- const order_r17 = i0.ɵɵnextContext().$implicit;
604
+ const order_r18 = i0.ɵɵnextContext().$implicit;
594
605
  const ctx_r1 = i0.ɵɵnextContext(5);
595
606
  i0.ɵɵadvance();
596
- i0.ɵɵtextInterpolate(ctx_r1.FormatOrderDueDate(order_r17));
607
+ i0.ɵɵtextInterpolate(ctx_r1.FormatOrderDueDate(order_r18));
597
608
  } }
598
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_27_Template(rf, ctx) { if (rf & 1) {
599
- i0.ɵɵelementStart(0, "div", 139);
600
- i0.ɵɵelement(1, "i", 142);
609
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_27_Template(rf, ctx) { if (rf & 1) {
610
+ i0.ɵɵelementStart(0, "div", 141);
611
+ i0.ɵɵelement(1, "i", 144);
601
612
  i0.ɵɵtext(2, " Lines allocated ");
602
613
  i0.ɵɵelementEnd();
603
614
  } }
604
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_30_Template(rf, ctx) { if (rf & 1) {
605
- i0.ɵɵelementStart(0, "div", 139);
615
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_30_Template(rf, ctx) { if (rf & 1) {
616
+ i0.ɵɵelementStart(0, "div", 141);
606
617
  i0.ɵɵtext(1);
607
618
  i0.ɵɵelementEnd();
608
619
  } if (rf & 2) {
609
- const order_r17 = i0.ɵɵnextContext().$implicit;
620
+ const order_r18 = i0.ɵɵnextContext().$implicit;
610
621
  const ctx_r1 = i0.ɵɵnextContext(5);
611
622
  i0.ɵɵadvance();
612
- i0.ɵɵtextInterpolate1("Creates ", ctx_r1.FormatLeavesCredit(order_r17), " credit");
623
+ i0.ɵɵtextInterpolate1("Creates ", ctx_r1.FormatLeavesCredit(order_r18), " credit");
613
624
  } }
614
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_32_Template(rf, ctx) { if (rf & 1) {
615
- const _r18 = i0.ɵɵgetCurrentView();
616
- i0.ɵɵelementStart(0, "button", 143);
617
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_32_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const order_r17 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.FullPayOrder(order_r17)); });
625
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_32_Template(rf, ctx) { if (rf & 1) {
626
+ const _r19 = i0.ɵɵgetCurrentView();
627
+ i0.ɵɵelementStart(0, "button", 145);
628
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_32_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const order_r18 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.FullPayOrder(order_r18)); });
618
629
  i0.ɵɵtext(1, " Pay in Full ");
619
630
  i0.ɵɵelementEnd();
620
631
  } if (rf & 2) {
621
- const order_r17 = i0.ɵɵnextContext().$implicit;
622
- i0.ɵɵproperty("disabled", (order_r17.Balance ?? order_r17.TotalGross ?? 0) <= 0);
632
+ const order_r18 = i0.ɵɵnextContext().$implicit;
633
+ i0.ɵɵproperty("disabled", (order_r18.Balance ?? order_r18.TotalGross ?? 0) <= 0);
623
634
  } }
624
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_33_For_23_Conditional_16_Template(rf, ctx) { if (rf & 1) {
625
- const _r21 = i0.ɵɵgetCurrentView();
626
- i0.ɵɵelementStart(0, "button", 151);
627
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_33_For_23_Conditional_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r21); const line_r20 = i0.ɵɵnextContext().$implicit; const order_r17 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.FullPayLine(order_r17, line_r20)); });
635
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_For_23_Conditional_16_Template(rf, ctx) { if (rf & 1) {
636
+ const _r22 = i0.ɵɵgetCurrentView();
637
+ i0.ɵɵelementStart(0, "button", 153);
638
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_For_23_Conditional_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r22); const line_r21 = i0.ɵɵnextContext().$implicit; const order_r18 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.FullPayLine(order_r18, line_r21)); });
628
639
  i0.ɵɵtext(1, " Line Pay ");
629
640
  i0.ɵɵelementEnd();
630
641
  } }
631
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_33_For_23_Template(rf, ctx) { if (rf & 1) {
632
- const _r19 = i0.ɵɵgetCurrentView();
642
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_For_23_Template(rf, ctx) { if (rf & 1) {
643
+ const _r20 = i0.ɵɵgetCurrentView();
633
644
  i0.ɵɵelementStart(0, "tr")(1, "td");
634
645
  i0.ɵɵtext(2);
635
646
  i0.ɵɵelementEnd();
636
647
  i0.ɵɵelementStart(3, "td")(4, "strong");
637
648
  i0.ɵɵtext(5);
638
649
  i0.ɵɵelementEnd()();
639
- i0.ɵɵelementStart(6, "td", 111);
650
+ i0.ɵɵelementStart(6, "td", 113);
640
651
  i0.ɵɵtext(7);
641
652
  i0.ɵɵelementEnd();
642
- i0.ɵɵelementStart(8, "td", 111);
653
+ i0.ɵɵelementStart(8, "td", 113);
643
654
  i0.ɵɵtext(9);
644
655
  i0.ɵɵelementEnd();
645
- i0.ɵɵelementStart(10, "td", 109)(11, "div", 136)(12, "span", 137);
656
+ i0.ɵɵelementStart(10, "td", 111)(11, "div", 138)(12, "span", 139);
646
657
  i0.ɵɵtext(13, "$");
647
658
  i0.ɵɵelementEnd();
648
- i0.ɵɵelementStart(14, "input", 149);
649
- i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_33_For_23_Template_input_ngModelChange_14_listener($event) { const line_r20 = i0.ɵɵrestoreView(_r19).$implicit; const order_r17 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetLineAllocation(line_r20.ID || "", $event, order_r17.ID)); });
659
+ i0.ɵɵelementStart(14, "input", 151);
660
+ i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_For_23_Template_input_ngModelChange_14_listener($event) { const line_r21 = i0.ɵɵrestoreView(_r20).$implicit; const order_r18 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetLineAllocation(line_r21.ID || "", $event, order_r18.ID)); });
650
661
  i0.ɵɵelementEnd()()();
651
- i0.ɵɵelementStart(15, "td", 109);
652
- i0.ɵɵconditionalCreate(16, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_33_For_23_Conditional_16_Template, 2, 0, "button", 150);
662
+ i0.ɵɵelementStart(15, "td", 111);
663
+ i0.ɵɵconditionalCreate(16, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_For_23_Conditional_16_Template, 2, 0, "button", 152);
653
664
  i0.ɵɵelementEnd()();
654
665
  } if (rf & 2) {
655
- const line_r20 = ctx.$implicit;
666
+ const line_r21 = ctx.$implicit;
656
667
  const ctx_r1 = i0.ɵɵnextContext(7);
657
668
  i0.ɵɵadvance(2);
658
- i0.ɵɵtextInterpolate(line_r20.LineNumber);
669
+ i0.ɵɵtextInterpolate(line_r21.LineNumber);
659
670
  i0.ɵɵadvance(3);
660
- i0.ɵɵtextInterpolate(line_r20.Product || "Line Item");
671
+ i0.ɵɵtextInterpolate(line_r21.Product || "Line Item");
661
672
  i0.ɵɵadvance(2);
662
- i0.ɵɵtextInterpolate1("$", (line_r20.UnitPrice || 0).toFixed(2));
673
+ i0.ɵɵtextInterpolate1("$", (line_r21.UnitPrice || 0).toFixed(2));
663
674
  i0.ɵɵadvance(2);
664
- i0.ɵɵtextInterpolate1("$", (line_r20.LineTotalGross || 0).toFixed(2));
675
+ i0.ɵɵtextInterpolate1("$", (line_r21.LineTotalGross || 0).toFixed(2));
665
676
  i0.ɵɵadvance(5);
666
- i0.ɵɵproperty("ngModel", ctx_r1.GetLineAllocation(line_r20.ID || ""))("disabled", ctx_r1.IsCaptured);
677
+ i0.ɵɵproperty("ngModel", ctx_r1.GetLineAllocation(line_r21.ID || ""))("disabled", ctx_r1.IsCaptured);
667
678
  i0.ɵɵadvance(2);
668
679
  i0.ɵɵconditional(!ctx_r1.IsCaptured ? 16 : -1);
669
680
  } }
670
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_33_Template(rf, ctx) { if (rf & 1) {
671
- i0.ɵɵelementStart(0, "tr", 141)(1, "td", 144)(2, "div", 145)(3, "div", 146);
672
- i0.ɵɵelement(4, "i", 142);
681
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_Template(rf, ctx) { if (rf & 1) {
682
+ i0.ɵɵelementStart(0, "tr", 143)(1, "td", 146)(2, "div", 147)(3, "div", 148);
683
+ i0.ɵɵelement(4, "i", 144);
673
684
  i0.ɵɵelementStart(5, "span");
674
685
  i0.ɵɵtext(6, "Order Line Items (Targeted Line Allocations)");
675
686
  i0.ɵɵelementEnd()();
676
- i0.ɵɵelementStart(7, "table", 147)(8, "thead")(9, "tr")(10, "th");
687
+ i0.ɵɵelementStart(7, "table", 149)(8, "thead")(9, "tr")(10, "th");
677
688
  i0.ɵɵtext(11, "#");
678
689
  i0.ɵɵelementEnd();
679
690
  i0.ɵɵelementStart(12, "th");
680
691
  i0.ɵɵtext(13, "Product");
681
692
  i0.ɵɵelementEnd();
682
- i0.ɵɵelementStart(14, "th", 109);
693
+ i0.ɵɵelementStart(14, "th", 111);
683
694
  i0.ɵɵtext(15, "Unit Price");
684
695
  i0.ɵɵelementEnd();
685
- i0.ɵɵelementStart(16, "th", 109);
696
+ i0.ɵɵelementStart(16, "th", 111);
686
697
  i0.ɵɵtext(17, "Gross");
687
698
  i0.ɵɵelementEnd();
688
- i0.ɵɵelementStart(18, "th", 126);
699
+ i0.ɵɵelementStart(18, "th", 128);
689
700
  i0.ɵɵtext(19, "Line Allocation");
690
701
  i0.ɵɵelementEnd();
691
- i0.ɵɵelement(20, "th", 148);
702
+ i0.ɵɵelement(20, "th", 150);
692
703
  i0.ɵɵelementEnd()();
693
704
  i0.ɵɵelementStart(21, "tbody");
694
- i0.ɵɵrepeaterCreate(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_33_For_23_Template, 17, 7, "tr", null, _forTrack0);
705
+ i0.ɵɵrepeaterCreate(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_For_23_Template, 17, 7, "tr", null, _forTrack0);
695
706
  i0.ɵɵelementEnd()()()()();
696
707
  } if (rf & 2) {
697
- const order_r17 = i0.ɵɵnextContext().$implicit;
708
+ const order_r18 = i0.ɵɵnextContext().$implicit;
698
709
  const ctx_r1 = i0.ɵɵnextContext(5);
699
710
  i0.ɵɵadvance();
700
711
  i0.ɵɵattribute("colspan", ctx_r1.hasPayer ? 10 : 11);
701
712
  i0.ɵɵadvance(21);
702
- i0.ɵɵrepeater(ctx_r1.GetOrderLines(order_r17.ID || ""));
713
+ i0.ɵɵrepeater(ctx_r1.GetOrderLines(order_r18.ID || ""));
703
714
  } }
704
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Template(rf, ctx) { if (rf & 1) {
705
- const _r16 = i0.ɵɵgetCurrentView();
706
- i0.ɵɵelementStart(0, "tr", 128)(1, "td")(2, "button", 129);
707
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Template_button_click_2_listener() { const order_r17 = i0.ɵɵrestoreView(_r16).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.ToggleOrderExpanded(order_r17.ID || "")); });
708
- i0.ɵɵelement(3, "i", 130);
715
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Template(rf, ctx) { if (rf & 1) {
716
+ const _r17 = i0.ɵɵgetCurrentView();
717
+ i0.ɵɵelementStart(0, "tr", 130)(1, "td")(2, "button", 131);
718
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Template_button_click_2_listener() { const order_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.ToggleOrderExpanded(order_r18.ID || "")); });
719
+ i0.ɵɵelement(3, "i", 132);
709
720
  i0.ɵɵelementEnd()();
710
- i0.ɵɵconditionalCreate(4, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_4_Template, 2, 1, "td", 131);
711
- i0.ɵɵelementStart(5, "td")(6, "button", 110);
712
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Template_button_click_6_listener($event) { const order_r17 = i0.ɵɵrestoreView(_r16).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OpenOrderRecord(order_r17, $event)); });
721
+ i0.ɵɵconditionalCreate(4, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_4_Template, 2, 1, "td", 133);
722
+ i0.ɵɵelementStart(5, "td")(6, "button", 112);
723
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Template_button_click_6_listener($event) { const order_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.OpenOrderRecord(order_r18, $event)); });
713
724
  i0.ɵɵelementStart(7, "strong");
714
725
  i0.ɵɵtext(8);
715
726
  i0.ɵɵelementEnd()();
716
- i0.ɵɵconditionalCreate(9, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_9_Template, 2, 1, "div", 132);
727
+ i0.ɵɵconditionalCreate(9, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_9_Template, 2, 1, "div", 134);
717
728
  i0.ɵɵelementEnd();
718
729
  i0.ɵɵelementStart(10, "td");
719
730
  i0.ɵɵtext(11);
720
731
  i0.ɵɵelementEnd();
721
732
  i0.ɵɵelementStart(12, "td");
722
- i0.ɵɵconditionalCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_13_Template, 2, 1, "span", 133)(14, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_14_Template, 2, 1, "span");
733
+ i0.ɵɵconditionalCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_13_Template, 2, 1, "span", 135)(14, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_14_Template, 2, 1, "span");
723
734
  i0.ɵɵelementEnd();
724
- i0.ɵɵelementStart(15, "td")(16, "span", 134);
735
+ i0.ɵɵelementStart(15, "td")(16, "span", 136);
725
736
  i0.ɵɵtext(17);
726
737
  i0.ɵɵelementEnd()();
727
- i0.ɵɵelementStart(18, "td", 111);
738
+ i0.ɵɵelementStart(18, "td", 113);
728
739
  i0.ɵɵtext(19);
729
740
  i0.ɵɵelementEnd();
730
- i0.ɵɵelementStart(20, "td", 135);
741
+ i0.ɵɵelementStart(20, "td", 137);
731
742
  i0.ɵɵtext(21);
732
743
  i0.ɵɵelementEnd();
733
- i0.ɵɵelementStart(22, "td", 109)(23, "div", 136)(24, "span", 137);
744
+ i0.ɵɵelementStart(22, "td", 111)(23, "div", 138)(24, "span", 139);
734
745
  i0.ɵɵtext(25, "$");
735
746
  i0.ɵɵelementEnd();
736
- i0.ɵɵelementStart(26, "input", 138);
737
- i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Template_input_ngModelChange_26_listener($event) { const order_r17 = i0.ɵɵrestoreView(_r16).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetOrderAllocation(order_r17.ID || "", $event)); });
747
+ i0.ɵɵelementStart(26, "input", 140);
748
+ i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Template_input_ngModelChange_26_listener($event) { const order_r18 = i0.ɵɵrestoreView(_r17).$implicit; const ctx_r1 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r1.SetOrderAllocation(order_r18.ID || "", $event)); });
738
749
  i0.ɵɵelementEnd()();
739
- i0.ɵɵconditionalCreate(27, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_27_Template, 3, 0, "div", 139);
750
+ i0.ɵɵconditionalCreate(27, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_27_Template, 3, 0, "div", 141);
740
751
  i0.ɵɵelementEnd();
741
- i0.ɵɵelementStart(28, "td", 111);
752
+ i0.ɵɵelementStart(28, "td", 113);
742
753
  i0.ɵɵtext(29);
743
- i0.ɵɵconditionalCreate(30, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_30_Template, 2, 1, "div", 139);
754
+ i0.ɵɵconditionalCreate(30, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_30_Template, 2, 1, "div", 141);
744
755
  i0.ɵɵelementEnd();
745
- i0.ɵɵelementStart(31, "td", 109);
746
- i0.ɵɵconditionalCreate(32, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_32_Template, 2, 1, "button", 140);
756
+ i0.ɵɵelementStart(31, "td", 111);
757
+ i0.ɵɵconditionalCreate(32, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_32_Template, 2, 1, "button", 142);
747
758
  i0.ɵɵelementEnd()();
748
- i0.ɵɵconditionalCreate(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Conditional_33_Template, 24, 1, "tr", 141);
759
+ i0.ɵɵconditionalCreate(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_Template, 24, 1, "tr", 143);
749
760
  } if (rf & 2) {
750
- const order_r17 = ctx.$implicit;
761
+ const order_r18 = ctx.$implicit;
751
762
  const ctx_r1 = i0.ɵɵnextContext(5);
752
- i0.ɵɵclassProp("is-expanded", ctx_r1.IsOrderExpanded(order_r17.ID || ""));
763
+ i0.ɵɵclassProp("is-expanded", ctx_r1.IsOrderExpanded(order_r18.ID || ""));
753
764
  i0.ɵɵadvance(3);
754
- i0.ɵɵclassProp("fa-chevron-down", ctx_r1.IsOrderExpanded(order_r17.ID || ""))("fa-chevron-right", !ctx_r1.IsOrderExpanded(order_r17.ID || ""));
765
+ i0.ɵɵclassProp("fa-chevron-down", ctx_r1.IsOrderExpanded(order_r18.ID || ""))("fa-chevron-right", !ctx_r1.IsOrderExpanded(order_r18.ID || ""));
755
766
  i0.ɵɵadvance();
756
767
  i0.ɵɵconditional(!ctx_r1.hasPayer ? 4 : -1);
757
768
  i0.ɵɵadvance(4);
758
- i0.ɵɵtextInterpolate(order_r17.OrderNumber);
769
+ i0.ɵɵtextInterpolate(order_r18.OrderNumber);
759
770
  i0.ɵɵadvance();
760
- i0.ɵɵconditional(order_r17.Description ? 9 : -1);
771
+ i0.ɵɵconditional(order_r18.Description ? 9 : -1);
761
772
  i0.ɵɵadvance(2);
762
- i0.ɵɵtextInterpolate(ctx_r1.FormatOrderDate(order_r17));
773
+ i0.ɵɵtextInterpolate(ctx_r1.FormatOrderDate(order_r18));
763
774
  i0.ɵɵadvance(2);
764
- i0.ɵɵconditional(ctx_r1.GetOrderDaysOverdue(order_r17) > 0 ? 13 : 14);
775
+ i0.ɵɵconditional(ctx_r1.GetOrderDaysOverdue(order_r18) > 0 ? 13 : 14);
765
776
  i0.ɵɵadvance(4);
766
- i0.ɵɵtextInterpolate(order_r17.Company || "Default");
777
+ i0.ɵɵtextInterpolate(order_r18.Company || "Default");
767
778
  i0.ɵɵadvance(2);
768
- i0.ɵɵtextInterpolate1("$", (order_r17.TotalGross || 0).toFixed(2));
779
+ i0.ɵɵtextInterpolate1("$", (order_r18.TotalGross || 0).toFixed(2));
769
780
  i0.ɵɵadvance(2);
770
- i0.ɵɵtextInterpolate1("$", (order_r17.Balance ?? order_r17.TotalGross ?? 0).toFixed(2));
781
+ i0.ɵɵtextInterpolate1("$", (order_r18.Balance ?? order_r18.TotalGross ?? 0).toFixed(2));
771
782
  i0.ɵɵadvance(2);
772
- i0.ɵɵclassProp("is-derived", ctx_r1.HasLineAllocations(order_r17.ID || ""));
783
+ i0.ɵɵclassProp("is-derived", ctx_r1.HasLineAllocations(order_r18.ID || ""));
773
784
  i0.ɵɵadvance(3);
774
- i0.ɵɵproperty("ngModel", ctx_r1.GetOrderAllocation(order_r17.ID || ""))("disabled", ctx_r1.IsCaptured || ctx_r1.HasLineAllocations(order_r17.ID || ""))("title", ctx_r1.HasLineAllocations(order_r17.ID || "") ? "Order allocation is driven by line item allocations below" : "Enter amount to allocate to order");
785
+ i0.ɵɵproperty("ngModel", ctx_r1.GetOrderAllocation(order_r18.ID || ""))("disabled", ctx_r1.IsCaptured || ctx_r1.HasLineAllocations(order_r18.ID || ""))("title", ctx_r1.HasLineAllocations(order_r18.ID || "") ? "Order allocation is driven by line item allocations below" : "Enter amount to allocate to order");
775
786
  i0.ɵɵadvance();
776
- i0.ɵɵconditional(ctx_r1.HasLineAllocations(order_r17.ID || "") ? 27 : -1);
787
+ i0.ɵɵconditional(ctx_r1.HasLineAllocations(order_r18.ID || "") ? 27 : -1);
777
788
  i0.ɵɵadvance();
778
- i0.ɵɵclassProp("text-muted", ctx_r1.CalculateLeavesBalance(order_r17) === 0);
789
+ i0.ɵɵclassProp("text-muted", ctx_r1.CalculateLeavesBalance(order_r18) === 0);
779
790
  i0.ɵɵadvance();
780
- i0.ɵɵtextInterpolate1(" ", ctx_r1.FormatLeavesBalance(order_r17), " ");
791
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.FormatLeavesBalance(order_r18), " ");
781
792
  i0.ɵɵadvance();
782
- i0.ɵɵconditional(ctx_r1.FormatLeavesCredit(order_r17) ? 30 : -1);
793
+ i0.ɵɵconditional(ctx_r1.FormatLeavesCredit(order_r18) ? 30 : -1);
783
794
  i0.ɵɵadvance(2);
784
795
  i0.ɵɵconditional(!ctx_r1.IsCaptured ? 32 : -1);
785
796
  i0.ɵɵadvance();
786
- i0.ɵɵconditional(ctx_r1.IsOrderExpanded(order_r17.ID || "") ? 33 : -1);
797
+ i0.ɵɵconditional(ctx_r1.IsOrderExpanded(order_r18.ID || "") ? 33 : -1);
787
798
  } }
788
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_Template(rf, ctx) { if (rf & 1) {
789
- i0.ɵɵelementStart(0, "div", 105)(1, "table", 108)(2, "thead")(3, "tr");
790
- i0.ɵɵelement(4, "th", 125);
791
- i0.ɵɵconditionalCreate(5, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_Conditional_5_Template, 2, 0, "th");
799
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_Template(rf, ctx) { if (rf & 1) {
800
+ i0.ɵɵelementStart(0, "div", 107)(1, "table", 110)(2, "thead")(3, "tr");
801
+ i0.ɵɵelement(4, "th", 127);
802
+ i0.ɵɵconditionalCreate(5, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_Conditional_5_Template, 2, 0, "th");
792
803
  i0.ɵɵelementStart(6, "th");
793
804
  i0.ɵɵtext(7, "Order \u2116");
794
805
  i0.ɵɵelementEnd();
@@ -801,22 +812,22 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
801
812
  i0.ɵɵelementStart(12, "th");
802
813
  i0.ɵɵtext(13, "Company");
803
814
  i0.ɵɵelementEnd();
804
- i0.ɵɵelementStart(14, "th", 109);
815
+ i0.ɵɵelementStart(14, "th", 111);
805
816
  i0.ɵɵtext(15, "Gross");
806
817
  i0.ɵɵelementEnd();
807
- i0.ɵɵelementStart(16, "th", 109);
818
+ i0.ɵɵelementStart(16, "th", 111);
808
819
  i0.ɵɵtext(17, "Open Balance");
809
820
  i0.ɵɵelementEnd();
810
- i0.ɵɵelementStart(18, "th", 126);
821
+ i0.ɵɵelementStart(18, "th", 128);
811
822
  i0.ɵɵtext(19, "Apply Amount");
812
823
  i0.ɵɵelementEnd();
813
- i0.ɵɵelementStart(20, "th", 109);
824
+ i0.ɵɵelementStart(20, "th", 111);
814
825
  i0.ɵɵtext(21, "Leaves Balance");
815
826
  i0.ɵɵelementEnd();
816
- i0.ɵɵelement(22, "th", 127);
827
+ i0.ɵɵelement(22, "th", 129);
817
828
  i0.ɵɵelementEnd()();
818
829
  i0.ɵɵelementStart(23, "tbody");
819
- i0.ɵɵrepeaterCreate(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_For_25_Template, 34, 26, null, null, _forTrack0);
830
+ i0.ɵɵrepeaterCreate(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Template, 34, 26, null, null, _forTrack0);
820
831
  i0.ɵɵelementEnd()()();
821
832
  } if (rf & 2) {
822
833
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -825,44 +836,44 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
825
836
  i0.ɵɵadvance(19);
826
837
  i0.ɵɵrepeater(ctx_r1.FilteredOpenOrders);
827
838
  } }
828
- function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Template(rf, ctx) { if (rf & 1) {
829
- i0.ɵɵelementStart(0, "div", 92)(1, "div", 93)(2, "div", 94)(3, "span", 95);
839
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Template(rf, ctx) { if (rf & 1) {
840
+ i0.ɵɵelementStart(0, "div", 94)(1, "div", 95)(2, "div", 96)(3, "span", 97);
830
841
  i0.ɵɵtext(4, "Payment Received");
831
842
  i0.ɵɵelementEnd();
832
- i0.ɵɵelementStart(5, "span", 96);
843
+ i0.ɵɵelementStart(5, "span", 98);
833
844
  i0.ɵɵtext(6);
834
845
  i0.ɵɵelementEnd()();
835
- i0.ɵɵelementStart(7, "div", 97);
836
- i0.ɵɵelement(8, "i", 98);
846
+ i0.ɵɵelementStart(7, "div", 99);
847
+ i0.ɵɵelement(8, "i", 100);
837
848
  i0.ɵɵelementEnd();
838
- i0.ɵɵelementStart(9, "div", 94)(10, "span", 95);
849
+ i0.ɵɵelementStart(9, "div", 96)(10, "span", 97);
839
850
  i0.ɵɵtext(11, "Allocated");
840
851
  i0.ɵɵelementEnd();
841
- i0.ɵɵelementStart(12, "span", 96);
852
+ i0.ɵɵelementStart(12, "span", 98);
842
853
  i0.ɵɵtext(13);
843
854
  i0.ɵɵelementEnd()();
844
- i0.ɵɵelementStart(14, "div", 97);
845
- i0.ɵɵelement(15, "i", 106);
855
+ i0.ɵɵelementStart(14, "div", 99);
856
+ i0.ɵɵelement(15, "i", 108);
846
857
  i0.ɵɵelementEnd();
847
- i0.ɵɵelementStart(16, "div", 94)(17, "span", 95);
858
+ i0.ɵɵelementStart(16, "div", 96)(17, "span", 97);
848
859
  i0.ɵɵtext(18, "Unallocated Remainder");
849
860
  i0.ɵɵelementEnd();
850
- i0.ɵɵelementStart(19, "span", 96);
861
+ i0.ɵɵelementStart(19, "span", 98);
851
862
  i0.ɵɵtext(20);
852
863
  i0.ɵɵelementEnd()()();
853
- i0.ɵɵelementStart(21, "div", 112);
854
- i0.ɵɵconditionalCreate(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_22_Template, 3, 0)(23, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_23_Template, 3, 1)(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_24_Template, 3, 1);
864
+ i0.ɵɵelementStart(21, "div", 114);
865
+ i0.ɵɵconditionalCreate(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_22_Template, 3, 0)(23, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_23_Template, 3, 1)(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_24_Template, 3, 1);
855
866
  i0.ɵɵelementEnd()();
856
- i0.ɵɵelementStart(25, "div", 99)(26, "div", 100)(27, "h2", 101);
857
- i0.ɵɵelement(28, "i", 90);
867
+ i0.ɵɵelementStart(25, "div", 101)(26, "div", 102)(27, "h2", 103);
868
+ i0.ɵɵelement(28, "i", 92);
858
869
  i0.ɵɵtext(29, " Open orders ");
859
870
  i0.ɵɵelementEnd();
860
- i0.ɵɵconditionalCreate(30, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_30_Template, 2, 1, "span", 55);
871
+ i0.ɵɵconditionalCreate(30, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_30_Template, 2, 1, "span", 56);
861
872
  i0.ɵɵelementEnd();
862
- i0.ɵɵconditionalCreate(31, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_31_Template, 10, 1, "div", 113);
873
+ i0.ɵɵconditionalCreate(31, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_31_Template, 10, 1, "div", 115);
863
874
  i0.ɵɵelementEnd();
864
- i0.ɵɵelementStart(32, "div", 102);
865
- i0.ɵɵconditionalCreate(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_33_Template, 2, 0, "div", 103)(34, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_34_Template, 1, 0, "mj-empty-state", 114)(35, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Conditional_35_Template, 26, 1, "div", 105);
875
+ i0.ɵɵelementStart(32, "div", 104);
876
+ i0.ɵɵconditionalCreate(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_33_Template, 2, 0, "div", 105)(34, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_34_Template, 1, 0, "mj-empty-state", 116)(35, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_Template, 26, 1, "div", 107);
866
877
  i0.ɵɵelementEnd();
867
878
  } if (rf & 2) {
868
879
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -890,11 +901,11 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template
890
901
  i0.ɵɵelement(5, "i", 31);
891
902
  i0.ɵɵtext(6, " Who is paying? ");
892
903
  i0.ɵɵelementEnd()();
893
- i0.ɵɵelementStart(7, "div", 32)(8, "div", 33)(9, "mj-form-field", 34);
894
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.OnFormNavigate($event); return i0.ɵɵresetView(ctx_r1.OnPayerSelectionChanged()); });
904
+ i0.ɵɵelementStart(7, "div", 32)(8, "div", 33)(9, "bizapps-party-field", 34);
905
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_bizapps_party_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.OnFormNavigate($event); return i0.ɵɵresetView(ctx_r1.OnPayerSelectionChanged()); });
895
906
  i0.ɵɵelementEnd();
896
- i0.ɵɵelementStart(10, "mj-form-field", 35);
897
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_10_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.OnFormNavigate($event); return i0.ɵɵresetView(ctx_r1.OnPayerSelectionChanged()); });
907
+ i0.ɵɵelementStart(10, "bizapps-party-field", 35);
908
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_bizapps_party_field_Navigate_10_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.OnFormNavigate($event); return i0.ɵɵresetView(ctx_r1.OnPayerSelectionChanged()); });
898
909
  i0.ɵɵelementEnd()();
899
910
  i0.ɵɵconditionalCreate(11, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Template, 5, 2, "div", 36);
900
911
  i0.ɵɵelementEnd()();
@@ -914,29 +925,30 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template
914
925
  i0.ɵɵelementStart(25, "div", 33)(26, "mj-form-field", 43);
915
926
  i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_26_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
916
927
  i0.ɵɵelementEnd();
917
- i0.ɵɵelementStart(27, "div", 38)(28, "label", 39);
918
- i0.ɵɵtext(29, "Payment Type ");
919
- i0.ɵɵelementStart(30, "span", 44);
920
- i0.ɵɵtext(31, "*");
928
+ i0.ɵɵconditionalCreate(27, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_27_Template, 1, 1, "mjo-change-payment-date", 44);
929
+ i0.ɵɵelementStart(28, "div", 38)(29, "label", 39);
930
+ i0.ɵɵtext(30, "Payment Type ");
931
+ i0.ɵɵelementStart(31, "span", 45);
932
+ i0.ɵɵtext(32, "*");
921
933
  i0.ɵɵelementEnd()();
922
- i0.ɵɵconditionalCreate(32, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Template, 6, 5)(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template, 1, 4, "mj-form-field", 45);
934
+ i0.ɵɵconditionalCreate(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template, 6, 5)(34, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template, 1, 4, "mj-form-field", 46);
923
935
  i0.ɵɵelementEnd();
924
- i0.ɵɵconditionalCreate(34, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template, 19, 6, "div", 46)(35, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template, 31, 11, "div", 46)(36, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template, 9, 2, "div", 46)(37, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template, 39, 12, "div", 46)(38, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template, 10, 2, "div", 46);
925
- i0.ɵɵelementStart(39, "mj-form-field", 47);
926
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_39_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
936
+ i0.ɵɵconditionalCreate(35, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template, 19, 6, "div", 47)(36, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_36_Template, 31, 11, "div", 47)(37, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_37_Template, 9, 2, "div", 47)(38, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_38_Template, 39, 12, "div", 47)(39, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_39_Template, 10, 2, "div", 47);
937
+ i0.ɵɵelementStart(40, "mj-form-field", 48);
938
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_40_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
927
939
  i0.ɵɵelementEnd();
928
- i0.ɵɵconditionalCreate(40, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_40_Template, 2, 0, "div", 48);
929
- i0.ɵɵelementStart(41, "mj-form-field", 49);
930
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_41_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
940
+ i0.ɵɵconditionalCreate(41, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_41_Template, 2, 0, "div", 49);
941
+ i0.ɵɵelementStart(42, "mj-form-field", 50);
942
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_42_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
931
943
  i0.ɵɵelementEnd()();
932
- i0.ɵɵelementStart(42, "div", 50)(43, "span", 51);
933
- i0.ɵɵtext(44, "Net Settlement Amount");
944
+ i0.ɵɵelementStart(43, "div", 51)(44, "span", 52);
945
+ i0.ɵɵtext(45, "Net Settlement Amount");
934
946
  i0.ɵɵelementEnd();
935
- i0.ɵɵelementStart(45, "span", 52);
936
- i0.ɵɵtext(46);
947
+ i0.ɵɵelementStart(46, "span", 53);
948
+ i0.ɵɵtext(47);
937
949
  i0.ɵɵelementEnd()()()()();
938
- i0.ɵɵelementStart(47, "main", 53);
939
- i0.ɵɵconditionalCreate(48, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_48_Template, 25, 6)(49, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Template, 36, 15);
950
+ i0.ɵɵelementStart(48, "main", 54);
951
+ i0.ɵɵconditionalCreate(49, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_49_Template, 25, 6)(50, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Template, 36, 15);
940
952
  i0.ɵɵelementEnd()();
941
953
  } if (rf & 2) {
942
954
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -950,24 +962,26 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template
950
962
  i0.ɵɵproperty("ngModel", ctx_r1.record.Amount)("disabled", !ctx_r1.ComposeMode);
951
963
  i0.ɵɵadvance(2);
952
964
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
965
+ i0.ɵɵadvance();
966
+ i0.ɵɵconditional(!ctx_r1.ComposeMode ? 27 : -1);
953
967
  i0.ɵɵadvance(6);
954
- i0.ɵɵconditional(ctx_r1.ComposeMode && ctx_r1.PaymentTypes.length > 0 ? 32 : 33);
968
+ i0.ɵɵconditional(ctx_r1.ComposeMode && ctx_r1.PaymentTypes.length > 0 ? 33 : 34);
955
969
  i0.ɵɵadvance(2);
956
- i0.ɵɵconditional(ctx_r1.InstrumentPanel === "check" ? 34 : ctx_r1.InstrumentPanel === "ach" ? 35 : ctx_r1.InstrumentPanel === "giftcard" ? 36 : ctx_r1.InstrumentPanel === "card" ? 37 : ctx_r1.InstrumentPanel === "reference" ? 38 : -1);
970
+ i0.ɵɵconditional(ctx_r1.InstrumentPanel === "check" ? 35 : ctx_r1.InstrumentPanel === "ach" ? 36 : ctx_r1.InstrumentPanel === "giftcard" ? 37 : ctx_r1.InstrumentPanel === "card" ? 38 : ctx_r1.InstrumentPanel === "reference" ? 39 : -1);
957
971
  i0.ɵɵadvance(5);
958
972
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
959
973
  i0.ɵɵadvance();
960
- i0.ɵɵconditional(ctx_r1.ReceivingCompanyMissing && !ctx_r1.record.ReceivingCompanyID ? 40 : -1);
974
+ i0.ɵɵconditional(ctx_r1.ReceivingCompanyMissing && !ctx_r1.record.ReceivingCompanyID ? 41 : -1);
961
975
  i0.ɵɵadvance();
962
976
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
963
977
  i0.ɵɵadvance(5);
964
978
  i0.ɵɵtextInterpolate(ctx_r1.FormattedNetAmount);
965
979
  i0.ɵɵadvance(2);
966
- i0.ɵɵconditional(ctx_r1.IsCaptured ? 48 : 49);
980
+ i0.ɵɵconditional(ctx_r1.IsCaptured ? 49 : 50);
967
981
  } }
968
982
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_0_Template(rf, ctx) { if (rf & 1) {
969
- i0.ɵɵelementStart(0, "div", 103);
970
- i0.ɵɵelement(1, "mj-loading", 159);
983
+ i0.ɵɵelementStart(0, "div", 105);
984
+ i0.ɵɵelement(1, "mj-loading", 161);
971
985
  i0.ɵɵelementEnd();
972
986
  } }
973
987
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_1_Template(rf, ctx) { if (rf & 1) {
@@ -980,88 +994,88 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditio
980
994
  i0.ɵɵtextInterpolate(ctx_r1.RollupError);
981
995
  } }
982
996
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_2_Template(rf, ctx) { if (rf & 1) {
983
- i0.ɵɵelement(0, "mj-empty-state", 157);
997
+ i0.ɵɵelement(0, "mj-empty-state", 159);
984
998
  } }
985
999
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_For_23_Template(rf, ctx) { if (rf & 1) {
986
- i0.ɵɵelementStart(0, "tr")(1, "td", 164);
1000
+ i0.ɵɵelementStart(0, "tr")(1, "td", 166);
987
1001
  i0.ɵɵtext(2);
988
1002
  i0.ɵɵelementEnd();
989
1003
  i0.ɵɵelementStart(3, "td")(4, "span");
990
1004
  i0.ɵɵtext(5);
991
1005
  i0.ɵɵelementEnd()();
992
- i0.ɵɵelementStart(6, "td", 111);
1006
+ i0.ɵɵelementStart(6, "td", 113);
993
1007
  i0.ɵɵtext(7);
994
1008
  i0.ɵɵelementEnd();
995
- i0.ɵɵelementStart(8, "td", 111);
1009
+ i0.ɵɵelementStart(8, "td", 113);
996
1010
  i0.ɵɵtext(9);
997
1011
  i0.ɵɵelementEnd()();
998
1012
  } if (rf & 2) {
999
- const row_r23 = ctx.$implicit;
1013
+ const row_r24 = ctx.$implicit;
1000
1014
  const ctx_r1 = i0.ɵɵnextContext(6);
1001
1015
  i0.ɵɵadvance(2);
1002
- i0.ɵɵtextInterpolate(row_r23.AccountCode || "\u2014");
1016
+ i0.ɵɵtextInterpolate(row_r24.AccountCode || "\u2014");
1003
1017
  i0.ɵɵadvance(3);
1004
- i0.ɵɵtextInterpolate(row_r23.AccountName);
1018
+ i0.ɵɵtextInterpolate(row_r24.AccountName);
1005
1019
  i0.ɵɵadvance(2);
1006
- i0.ɵɵtextInterpolate(row_r23.Debit ? ctx_r1.RollupAmount(row_r23.Debit) : "\u2014");
1020
+ i0.ɵɵtextInterpolate(row_r24.Debit ? ctx_r1.RollupAmount(row_r24.Debit) : "\u2014");
1007
1021
  i0.ɵɵadvance(2);
1008
- i0.ɵɵtextInterpolate(row_r23.Credit ? ctx_r1.RollupAmount(row_r23.Credit) : "\u2014");
1022
+ i0.ɵɵtextInterpolate(row_r24.Credit ? ctx_r1.RollupAmount(row_r24.Credit) : "\u2014");
1009
1023
  } }
1010
1024
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
1011
- i0.ɵɵelementStart(0, "div", 160)(1, "div", 29)(2, "div")(3, "h3", 30);
1025
+ i0.ɵɵelementStart(0, "div", 162)(1, "div", 29)(2, "div")(3, "h3", 30);
1012
1026
  i0.ɵɵtext(4);
1013
1027
  i0.ɵɵelementEnd();
1014
- i0.ɵɵelementStart(5, "div", 132);
1028
+ i0.ɵɵelementStart(5, "div", 134);
1015
1029
  i0.ɵɵtext(6);
1016
1030
  i0.ɵɵelementEnd()();
1017
- i0.ɵɵelementStart(7, "span", 55);
1031
+ i0.ɵɵelementStart(7, "span", 56);
1018
1032
  i0.ɵɵtext(8);
1019
1033
  i0.ɵɵelementEnd()();
1020
- i0.ɵɵelementStart(9, "div", 161)(10, "table", 162)(11, "thead")(12, "tr")(13, "th");
1034
+ i0.ɵɵelementStart(9, "div", 163)(10, "table", 164)(11, "thead")(12, "tr")(13, "th");
1021
1035
  i0.ɵɵtext(14, "GL Account");
1022
1036
  i0.ɵɵelementEnd();
1023
1037
  i0.ɵɵelementStart(15, "th");
1024
1038
  i0.ɵɵtext(16, "Name");
1025
1039
  i0.ɵɵelementEnd();
1026
- i0.ɵɵelementStart(17, "th", 109);
1040
+ i0.ɵɵelementStart(17, "th", 111);
1027
1041
  i0.ɵɵtext(18, "Debit");
1028
1042
  i0.ɵɵelementEnd();
1029
- i0.ɵɵelementStart(19, "th", 109);
1043
+ i0.ɵɵelementStart(19, "th", 111);
1030
1044
  i0.ɵɵtext(20, "Credit");
1031
1045
  i0.ɵɵelementEnd()()();
1032
1046
  i0.ɵɵelementStart(21, "tbody");
1033
1047
  i0.ɵɵrepeaterCreate(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_For_23_Template, 10, 4, "tr", null, _forTrack2);
1034
1048
  i0.ɵɵelementEnd();
1035
- i0.ɵɵelementStart(24, "tfoot")(25, "tr")(26, "th", 163);
1049
+ i0.ɵɵelementStart(24, "tfoot")(25, "tr")(26, "th", 165);
1036
1050
  i0.ɵɵtext(27, "Total");
1037
1051
  i0.ɵɵelementEnd();
1038
- i0.ɵɵelementStart(28, "th", 111);
1052
+ i0.ɵɵelementStart(28, "th", 113);
1039
1053
  i0.ɵɵtext(29);
1040
1054
  i0.ɵɵelementEnd();
1041
- i0.ɵɵelementStart(30, "th", 111);
1055
+ i0.ɵɵelementStart(30, "th", 113);
1042
1056
  i0.ɵɵtext(31);
1043
1057
  i0.ɵɵelementEnd()()()()()();
1044
1058
  } if (rf & 2) {
1045
- const card_r24 = ctx.$implicit;
1059
+ const card_r25 = ctx.$implicit;
1046
1060
  const ctx_r1 = i0.ɵɵnextContext(5);
1047
1061
  i0.ɵɵadvance(4);
1048
- i0.ɵɵtextInterpolate(card_r24.Company);
1062
+ i0.ɵɵtextInterpolate(card_r25.Company);
1049
1063
  i0.ɵɵadvance(2);
1050
- i0.ɵɵtextInterpolate2("", card_r24.Rows.length, " ", card_r24.Rows.length === 1 ? "line" : "lines");
1064
+ i0.ɵɵtextInterpolate2("", card_r25.Rows.length, " ", card_r25.Rows.length === 1 ? "line" : "lines");
1051
1065
  i0.ɵɵadvance();
1052
- i0.ɵɵclassProp("mjo-badge--success", ctx_r1.CardIsBalanced(card_r24))("mjo-badge--error", !ctx_r1.CardIsBalanced(card_r24));
1066
+ i0.ɵɵclassProp("mjo-badge--success", ctx_r1.CardIsBalanced(card_r25))("mjo-badge--error", !ctx_r1.CardIsBalanced(card_r25));
1053
1067
  i0.ɵɵadvance();
1054
- i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r24) ? "Balanced" : "Out of Balance", " ");
1068
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r25) ? "Balanced" : "Out of Balance", " ");
1055
1069
  i0.ɵɵadvance(14);
1056
- i0.ɵɵrepeater(card_r24.Rows);
1070
+ i0.ɵɵrepeater(card_r25.Rows);
1057
1071
  i0.ɵɵadvance(7);
1058
- i0.ɵɵtextInterpolate1("$", card_r24.TotalDebit.toFixed(2));
1072
+ i0.ɵɵtextInterpolate1("$", card_r25.TotalDebit.toFixed(2));
1059
1073
  i0.ɵɵadvance(2);
1060
- i0.ɵɵtextInterpolate1("$", card_r24.TotalCredit.toFixed(2));
1074
+ i0.ɵɵtextInterpolate1("$", card_r25.TotalCredit.toFixed(2));
1061
1075
  } }
1062
1076
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_Template(rf, ctx) { if (rf & 1) {
1063
- i0.ɵɵelementStart(0, "div", 158);
1064
- i0.ɵɵrepeaterCreate(1, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_Template, 32, 10, "div", 160, _forTrack1);
1077
+ i0.ɵɵelementStart(0, "div", 160);
1078
+ i0.ɵɵrepeaterCreate(1, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_Template, 32, 10, "div", 162, _forTrack1);
1065
1079
  i0.ɵɵelementEnd();
1066
1080
  } if (rf & 2) {
1067
1081
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -1069,41 +1083,41 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditio
1069
1083
  i0.ɵɵrepeater(ctx_r1.RollupCards);
1070
1084
  } }
1071
1085
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Template(rf, ctx) { if (rf & 1) {
1072
- i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_0_Template, 2, 0, "div", 103)(1, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_1_Template, 2, 1, "div", 18)(2, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_2_Template, 1, 0, "mj-empty-state", 157)(3, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_Template, 3, 0, "div", 158);
1086
+ i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_0_Template, 2, 0, "div", 105)(1, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_1_Template, 2, 1, "div", 18)(2, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_2_Template, 1, 0, "mj-empty-state", 159)(3, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_Template, 3, 0, "div", 160);
1073
1087
  } if (rf & 2) {
1074
1088
  const ctx_r1 = i0.ɵɵnextContext(3);
1075
1089
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.RollupCards.length === 0 ? 2 : 3);
1076
1090
  } }
1077
1091
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1078
- const _r25 = i0.ɵɵgetCurrentView();
1079
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 166);
1080
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1092
+ const _r26 = i0.ɵɵgetCurrentView();
1093
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 168);
1094
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template_mj_explorer_entity_data_grid_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1081
1095
  i0.ɵɵelementEnd();
1082
1096
  } if (rf & 2) {
1083
1097
  const ctx_r1 = i0.ɵɵnextContext(4);
1084
1098
  i0.ɵɵproperty("Params", ctx_r1.PaymentJournalEntryParams)("AllowLoad", true)("ShowToolbar", false);
1085
1099
  } }
1086
1100
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Template(rf, ctx) { if (rf & 1) {
1087
- i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template, 1, 3, "mj-explorer-entity-data-grid", 165);
1101
+ i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template, 1, 3, "mj-explorer-entity-data-grid", 167);
1088
1102
  } if (rf & 2) {
1089
1103
  const ctx_r1 = i0.ɵɵnextContext(3);
1090
1104
  i0.ɵɵconditional(ctx_r1.PaymentJournalEntryParams ? 0 : -1);
1091
1105
  } }
1092
1106
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template(rf, ctx) { if (rf & 1) {
1093
- const _r22 = i0.ɵɵgetCurrentView();
1094
- i0.ɵɵelementStart(0, "div", 20)(1, "div", 152)(2, "div")(3, "h2");
1095
- i0.ɵɵelement(4, "i", 153);
1107
+ const _r23 = i0.ɵɵgetCurrentView();
1108
+ i0.ɵɵelementStart(0, "div", 20)(1, "div", 154)(2, "div")(3, "h2");
1109
+ i0.ɵɵelement(4, "i", 155);
1096
1110
  i0.ɵɵtext(5, " General Ledger Postings");
1097
1111
  i0.ɵɵelementEnd();
1098
- i0.ɵɵelementStart(6, "p", 154);
1112
+ i0.ɵɵelementStart(6, "p", 156);
1099
1113
  i0.ɵɵtext(7, "Double-entry balanced accounting entries booked across operating and receivable accounts.");
1100
1114
  i0.ɵɵelementEnd()();
1101
- i0.ɵɵelementStart(8, "div", 155)(9, "button", 156);
1102
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
1115
+ i0.ɵɵelementStart(8, "div", 157)(9, "button", 158);
1116
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
1103
1117
  i0.ɵɵtext(10, " Summary (Rolled-up) ");
1104
1118
  i0.ɵɵelementEnd();
1105
- i0.ɵɵelementStart(11, "button", 156);
1106
- i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r22); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
1119
+ i0.ɵɵelementStart(11, "button", 158);
1120
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
1107
1121
  i0.ɵɵtext(12, " By Journal Entry ");
1108
1122
  i0.ɵɵelementEnd()()();
1109
1123
  i0.ɵɵconditionalCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Template, 4, 1)(14, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Template, 1, 1);
@@ -1118,37 +1132,37 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template
1118
1132
  i0.ɵɵconditional(ctx_r1.AccountingView === "summary" ? 13 : 14);
1119
1133
  } }
1120
1134
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template(rf, ctx) { if (rf & 1) {
1121
- const _r26 = i0.ɵɵgetCurrentView();
1122
- i0.ɵɵelementStart(0, "div", 20)(1, "div", 167)(2, "div", 28)(3, "div", 29)(4, "h3", 30);
1123
- i0.ɵɵelement(5, "i", 168);
1135
+ const _r27 = i0.ɵɵgetCurrentView();
1136
+ i0.ɵɵelementStart(0, "div", 20)(1, "div", 169)(2, "div", 28)(3, "div", 29)(4, "h3", 30);
1137
+ i0.ɵɵelement(5, "i", 170);
1124
1138
  i0.ɵɵtext(6, " Processing & Gateway Details");
1125
1139
  i0.ɵɵelementEnd()();
1126
- i0.ɵɵelementStart(7, "div", 169)(8, "mj-form-field", 170);
1127
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1140
+ i0.ɵɵelementStart(7, "div", 171)(8, "mj-form-field", 172);
1141
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1128
1142
  i0.ɵɵelementEnd();
1129
- i0.ɵɵelementStart(9, "mj-form-field", 171);
1130
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1143
+ i0.ɵɵelementStart(9, "mj-form-field", 173);
1144
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1131
1145
  i0.ɵɵelementEnd();
1132
- i0.ɵɵelementStart(10, "mj-form-field", 172);
1133
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_10_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1146
+ i0.ɵɵelementStart(10, "mj-form-field", 174);
1147
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_10_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1134
1148
  i0.ɵɵelementEnd();
1135
- i0.ɵɵelement(11, "mj-form-field", 173)(12, "mj-form-field", 174)(13, "mj-form-field", 175);
1149
+ i0.ɵɵelement(11, "mj-form-field", 175)(12, "mj-form-field", 176)(13, "mj-form-field", 177);
1136
1150
  i0.ɵɵelementEnd()();
1137
1151
  i0.ɵɵelementStart(14, "div", 28)(15, "div", 29)(16, "h3", 30);
1138
- i0.ɵɵelement(17, "i", 176);
1152
+ i0.ɵɵelement(17, "i", 178);
1139
1153
  i0.ɵɵtext(18, " Reversal Info & Notes");
1140
1154
  i0.ɵɵelementEnd()();
1141
- i0.ɵɵelementStart(19, "div", 169)(20, "mj-form-field", 177);
1142
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_20_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1155
+ i0.ɵɵelementStart(19, "div", 171)(20, "mj-form-field", 179);
1156
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_20_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
1143
1157
  i0.ɵɵelementEnd();
1144
- i0.ɵɵelement(21, "mj-form-field", 178)(22, "mj-form-field", 179)(23, "mj-form-field", 180);
1158
+ i0.ɵɵelement(21, "mj-form-field", 180)(22, "mj-form-field", 181)(23, "mj-form-field", 182);
1145
1159
  i0.ɵɵelementEnd()();
1146
1160
  i0.ɵɵelementStart(24, "div", 28)(25, "div", 29)(26, "h3", 30);
1147
- i0.ɵɵelement(27, "i", 181);
1161
+ i0.ɵɵelement(27, "i", 183);
1148
1162
  i0.ɵɵtext(28, " System Metadata");
1149
1163
  i0.ɵɵelementEnd()();
1150
- i0.ɵɵelementStart(29, "div", 169);
1151
- i0.ɵɵelement(30, "mj-form-field", 182)(31, "mj-form-field", 183);
1164
+ i0.ɵɵelementStart(29, "div", 171);
1165
+ i0.ɵɵelement(30, "mj-form-field", 184)(31, "mj-form-field", 185);
1152
1166
  i0.ɵɵelementEnd()()()();
1153
1167
  } if (rf & 2) {
1154
1168
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -1178,15 +1192,15 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template
1178
1192
  i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", false)("FormContext", ctx_r1.formContext);
1179
1193
  } }
1180
1194
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template(rf, ctx) { if (rf & 1) {
1181
- const _r27 = i0.ɵɵgetCurrentView();
1182
- i0.ɵɵelementStart(0, "div", 20)(1, "mj-collapsible-panel", 184)(2, "mj-explorer-entity-data-grid", 185);
1183
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_AfterDataLoad_2_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersStoredValueTransactions", $event.totalRowCount)); });
1195
+ const _r28 = i0.ɵɵgetCurrentView();
1196
+ i0.ɵɵelementStart(0, "div", 20)(1, "mj-collapsible-panel", 186)(2, "mj-explorer-entity-data-grid", 187);
1197
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_AfterDataLoad_2_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersStoredValueTransactions", $event.totalRowCount)); });
1184
1198
  i0.ɵɵelementEnd()();
1185
- i0.ɵɵelementStart(3, "mj-collapsible-panel", 186)(4, "mj-explorer-entity-data-grid", 185);
1186
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_AfterDataLoad_4_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersSubscriptionEvents", $event.totalRowCount)); });
1199
+ i0.ɵɵelementStart(3, "mj-collapsible-panel", 188)(4, "mj-explorer-entity-data-grid", 187);
1200
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_AfterDataLoad_4_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersSubscriptionEvents", $event.totalRowCount)); });
1187
1201
  i0.ɵɵelementEnd()();
1188
- i0.ɵɵelementStart(5, "mj-collapsible-panel", 187)(6, "mj-explorer-entity-data-grid", 185);
1189
- i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_AfterDataLoad_6_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersPaymentHeaders", $event.totalRowCount)); });
1202
+ i0.ɵɵelementStart(5, "mj-collapsible-panel", 189)(6, "mj-explorer-entity-data-grid", 187);
1203
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_AfterDataLoad_6_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersPaymentHeaders", $event.totalRowCount)); });
1190
1204
  i0.ɵɵelementEnd()()();
1191
1205
  } if (rf & 2) {
1192
1206
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -1252,7 +1266,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Template(rf, ctx) { if
1252
1266
  i0.ɵɵlistener("TabChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Template_mj_tab_nav_TabChange_41_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SelectTab($event)); });
1253
1267
  i0.ɵɵelementEnd()();
1254
1268
  i0.ɵɵconditionalCreate(42, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_42_Template, 6, 1, "div", 18);
1255
- i0.ɵɵconditionalCreate(43, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template, 50, 28, "div", 19);
1269
+ i0.ɵɵconditionalCreate(43, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template, 51, 29, "div", 19);
1256
1270
  i0.ɵɵconditionalCreate(44, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template, 15, 5, "div", 20);
1257
1271
  i0.ɵɵconditionalCreate(45, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template, 32, 48, "div", 20);
1258
1272
  i0.ɵɵconditionalCreate(46, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template, 7, 24, "div", 20);
@@ -2497,6 +2511,12 @@ let BizAppsPaymentHeaderFormComponent = class BizAppsPaymentHeaderFormComponent
2497
2511
  SourceLineLabel(count) {
2498
2512
  return count === 1 ? '1 allocation' : `${count} allocations`;
2499
2513
  }
2514
+ /** After finance corrects the date: the entries moved with it, so the journal view reloads. */
2515
+ OnPaymentDateChanged() {
2516
+ if (this.AccountingView === 'summary')
2517
+ void this.loadPaymentJournalRollup();
2518
+ this.cdr?.detectChanges?.();
2519
+ }
2500
2520
  async loadPaymentJournalRollup() {
2501
2521
  if (!this.record?.IsSaved || !this.record?.ID) {
2502
2522
  this.RollupCards = [];
@@ -2539,11 +2559,11 @@ let BizAppsPaymentHeaderFormComponent = class BizAppsPaymentHeaderFormComponent
2539
2559
  }
2540
2560
  }
2541
2561
  static ɵfac = /*@__PURE__*/ (() => { let ɵBizAppsPaymentHeaderFormComponent_BaseFactory; return function BizAppsPaymentHeaderFormComponent_Factory(__ngFactoryType__) { return (ɵBizAppsPaymentHeaderFormComponent_BaseFactory || (ɵBizAppsPaymentHeaderFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BizAppsPaymentHeaderFormComponent)))(__ngFactoryType__ || BizAppsPaymentHeaderFormComponent); }; })();
2542
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsPaymentHeaderFormComponent, selectors: [["bizapps-payment-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-ph-hero"], [1, "mjo-ph-hero__top"], [1, "mjo-ph-who"], [1, "mjo-ph-avatar"], [1, "mjo-ph-title-row"], [1, "mjo-ph-title"], [1, "mjo-status-chip", "mjo-status-chip--purple"], [1, "mjo-ph-sub"], [1, "mjo-ph-hero__aside"], [1, "mjo-ph-money"], [1, "mjo-ph-kicker"], [1, "mjo-ph-amt"], [1, "mjo-ph-actions"], [1, "mjo-ph-tabs"], [3, "TabChange", "Tabs", "ActiveKey"], [1, "mjo-alert", "mjo-alert--error"], [1, "mjo-ph-workbench"], [1, "mjo-ph-tab-body"], [1, "fa-solid", "fa-rotate-left"], ["type", "button", 1, "mjo-btn", "mjo-btn--secondary", 3, "click", "disabled"], [1, "fa-solid", "fa-floppy-disk"], ["type", "button", 1, "mjo-btn", "mjo-btn--primary", 3, "click", "disabled"], [1, "fa-solid", "fa-check-double"], [1, "fa-solid", "fa-circle-exclamation"], [1, "mjo-ph-money-pane"], [1, "mjo-card"], [1, "mjo-card__header"], [1, "mjo-card__title"], [1, "fa-solid", "fa-user-tag"], [1, "mjo-card__body"], [1, "mjo-ph-fields-stack"], ["DisplayNameOverride", "Organization", "FieldName", "BillToOrganizationID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["DisplayNameOverride", "Person", "FieldName", "BillToPersonID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-payer-chip"], [1, "fa-solid", "fa-money-check-dollar"], [1, "mjo-field"], [1, "mjo-label"], [1, "mjo-input-money-wrap"], [1, "mjo-currency-prefix"], ["type", "number", "placeholder", "0.00", "step", "0.01", 1, "mj-input", "is-num", "mjo-input--money", 3, "ngModelChange", "ngModel", "disabled"], ["DisplayNameOverride", "Payment Date", "FieldName", "PaymentDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["title", "Required to capture and book", 1, "mjo-required-mark"], ["FieldName", "PaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-instrument-box"], ["DisplayNameOverride", "Receiving Company", "FieldName", "ReceivingCompanyID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-field-hint", "mjo-field-hint--error"], ["DisplayNameOverride", "Processing Fee", "FieldName", "ProcessingFeeAmount", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-net-calc"], [1, "mjo-net-calc__label"], [1, "mjo-net-calc__val"], [1, "mjo-ph-alloc-pane"], [1, "fa-solid", "fa-circle-check", "text-success"], [1, "mjo-badge"], [1, "mj-input", 3, "ngModelChange", "ngModel"], [3, "ngValue"], [3, "value"], ["FieldName", "PaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-instrument-box__title"], [1, "fa-solid", "fa-money-check"], [1, "mjo-instrument-box__grid"], [1, "text-danger"], ["type", "text", "placeholder", "e.g. 10428", "autocomplete", "off", 1, "mj-input", "font-mono", 3, "ngModelChange", "ngModel", "disabled"], ["type", "date", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "mjo-field", "col-span-full"], ["type", "text", "placeholder", "e.g. Chase, Bank of America", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "fa-solid", "fa-building-columns"], ["type", "text", "placeholder", "e.g. Wells Fargo", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["value", "Checking"], ["value", "Savings"], ["type", "text", "maxlength", "4", "placeholder", "1234", 1, "mj-input", "font-mono", 3, "ngModelChange", "ngModel", "disabled"], ["type", "text", "maxlength", "4", "placeholder", "5678", 1, "mj-input", "font-mono", 3, "ngModelChange", "ngModel", "disabled"], ["type", "text", "placeholder", "Trace #", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "fa-solid", "fa-gift"], [1, "fa-solid", "fa-credit-card"], ["value", ""], ["value", "Visa"], ["value", "MasterCard"], ["value", "American Express"], ["value", "Discover"], ["value", "Other"], ["type", "text", "maxlength", "4", "placeholder", "4242", 1, "mj-input", "font-mono", 3, "ngModelChange", "ngModel", "disabled"], [1, "flex", "gap-2"], ["type", "number", "min", "1", "max", "12", "placeholder", "MM", 1, "mj-input", "font-mono", "w-16", 3, "ngModelChange", "ngModel", "disabled"], ["type", "number", "min", "2025", "max", "2045", "placeholder", "YYYY", 1, "mj-input", "font-mono", "w-24", 3, "ngModelChange", "ngModel", "disabled"], ["type", "text", "placeholder", "Name on card", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["type", "text", "placeholder", "e.g. AUTH-98210", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "fa-solid", "fa-receipt"], ["type", "text", "placeholder", "Confirmation or transfer id", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "mjo-alloc-hero"], [1, "mjo-alloc-hero__stats"], [1, "mjo-alloc-stat"], [1, "mjo-alloc-stat__kicker"], [1, "mjo-alloc-stat__val"], [1, "mjo-alloc-stat__op"], [1, "fa-solid", "fa-minus"], [1, "mjo-alloc-toolbar"], [1, "mjo-alloc-toolbar__left"], [1, "mjo-alloc-toolbar__title"], [1, "mjo-card", "mjo-card--table"], [1, "mjo-loading-state"], ["Size", "compact", "Icon", "fa-solid fa-receipt", "Title", "Not applied to any order", "Message", "The full amount is held as unapplied credit."], [1, "mjo-table-responsive"], [1, "fa-solid", "fa-equals"], ["text", "Loading allocations\u2026", "size", "small"], [1, "mjo-table"], [1, "text-right"], ["type", "button", 1, "mjo-link", 3, "click"], [1, "text-right", "font-mono"], [1, "mjo-alloc-hero__message"], [1, "mjo-alloc-toolbar__right"], ["Size", "compact", "Icon", "fa-solid fa-receipt", "Title", "No unpaid orders found", "Message", "There are zero open unpaid orders. Any recorded payment will be retained as unallocated credit."], [1, "fa-solid", "fa-circle-info", "text-warning"], [1, "fa-solid", "fa-triangle-exclamation", "text-danger"], [1, "mjo-search-input-wrap"], [1, "fa-solid", "fa-magnifying-glass"], ["type", "text", "placeholder", "Filter orders\u2026", 1, "mjo-input", "mjo-input--sm", 3, "ngModelChange", "ngModel"], ["type", "button", 1, "mjo-btn", "mjo-btn--secondary", "mjo-btn--sm", 3, "click"], [1, "fa-solid", "fa-wand-magic-sparkles"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--sm", 3, "click"], [1, "fa-solid", "fa-eraser"], ["text", "Loading open orders\u2026", "size", "small"], [1, "w-8"], [1, "text-right", "w-36"], [1, "w-24"], [1, "mjo-order-row"], ["type", "button", "title", "Toggle line items", 1, "mjo-icon-btn", 3, "click"], [1, "fa-solid"], [1, "font-bold"], [1, "mjo-subtext"], [1, "mjo-badge", "mjo-badge--error"], [1, "mjo-company-pill"], [1, "text-right", "font-mono", "font-bold"], [1, "mjo-apply-input-wrap"], [1, "mjo-apply-dollar"], ["type", "number", "step", "0.01", "min", "0", 1, "mjo-input", "mjo-input--sm", "mjo-input--num", 3, "ngModelChange", "ngModel", "disabled", "title"], [1, "mjo-subtext", "text-info"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--sm", 3, "disabled"], [1, "mjo-lines-row"], [1, "fa-solid", "fa-layer-group"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--sm", 3, "click", "disabled"], [1, "p-0"], [1, "mjo-nested-lines-pane"], [1, "mjo-nested-lines-header"], [1, "mjo-nested-table"], [1, "w-20"], ["type", "number", "step", "0.01", "min", "0", 1, "mjo-input", "mjo-input--xs", "mjo-input--num", 3, "ngModelChange", "ngModel", "disabled"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--xs"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--xs", 3, "click"], [1, "mjo-accounting-header"], [1, "fa-solid", "fa-book"], [1, "text-muted"], [1, "mjo-view-toggle"], ["type", "button", 1, "mjo-toggle-btn", 3, "click"], ["Size", "compact", "Icon", "fa-solid fa-book-open", "Title", "No journal entries booked yet", "Message", "Journal entries are booked automatically upon capturing and settling the payment."], [1, "mjo-gl-cards-grid"], ["text", "Rolling up general ledger accounts\u2026", "size", "small"], [1, "mjo-card", "mjo-card--gl"], [1, "mjo-card__body", "p-0"], [1, "mjo-table", "mjo-table--compact"], ["colspan", "2"], [1, "font-mono"], ["Height", "fit-content", 3, "Params", "AllowLoad", "ShowToolbar"], ["Height", "fit-content", 3, "Navigate", "Params", "AllowLoad", "ShowToolbar"], [1, "mjo-form-sections-grid"], [1, "fa-solid", "fa-gears"], [1, "mjo-card__body", "mjo-form-grid-2"], ["FieldName", "PaymentProviderID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PaymentIntentID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PaymentDetailID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ProviderChargeID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ProviderRefundID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "IdempotencyKey", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [1, "fa-solid", "fa-note-sticky"], ["FieldName", "ReversesPaymentHeaderID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ReversalReason", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Notes", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [1, "fa-solid", "fa-clock-rotate-left"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "mJBizAppsOrdersStoredValueTransactions", "SectionName", "Stored Value & Account Credit Transactions", "Icon", "fa fa-wallet", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "Navigate", "AfterDataLoad", "Params", "NewRecordValues", "AllowLoad", "ShowToolbar"], ["SectionKey", "mJBizAppsOrdersSubscriptionEvents", "SectionName", "Subscription Billing Events", "Icon", "fa fa-history", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJBizAppsOrdersPaymentHeaders", "SectionName", "Linked Reversal & Refund Payment Records", "Icon", "fa fa-rotate-left", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"]], template: function BizAppsPaymentHeaderFormComponent_Template(rf, ctx) { if (rf & 1) {
2562
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsPaymentHeaderFormComponent, selectors: [["bizapps-payment-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-ph-hero"], [1, "mjo-ph-hero__top"], [1, "mjo-ph-who"], [1, "mjo-ph-avatar"], [1, "mjo-ph-title-row"], [1, "mjo-ph-title"], [1, "mjo-status-chip", "mjo-status-chip--purple"], [1, "mjo-ph-sub"], [1, "mjo-ph-hero__aside"], [1, "mjo-ph-money"], [1, "mjo-ph-kicker"], [1, "mjo-ph-amt"], [1, "mjo-ph-actions"], [1, "mjo-ph-tabs"], [3, "TabChange", "Tabs", "ActiveKey"], [1, "mjo-alert", "mjo-alert--error"], [1, "mjo-ph-workbench"], [1, "mjo-ph-tab-body"], [1, "fa-solid", "fa-rotate-left"], ["type", "button", 1, "mjo-btn", "mjo-btn--secondary", 3, "click", "disabled"], [1, "fa-solid", "fa-floppy-disk"], ["type", "button", 1, "mjo-btn", "mjo-btn--primary", 3, "click", "disabled"], [1, "fa-solid", "fa-check-double"], [1, "fa-solid", "fa-circle-exclamation"], [1, "mjo-ph-money-pane"], [1, "mjo-card"], [1, "mjo-card__header"], [1, "mjo-card__title"], [1, "fa-solid", "fa-user-tag"], [1, "mjo-card__body"], [1, "mjo-ph-fields-stack"], ["FieldName", "BillToOrganizationID", "Kind", "Organization", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "BillToPersonID", "Kind", "Person", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-payer-chip"], [1, "fa-solid", "fa-money-check-dollar"], [1, "mjo-field"], [1, "mjo-label"], [1, "mjo-input-money-wrap"], [1, "mjo-currency-prefix"], ["type", "number", "placeholder", "0.00", "step", "0.01", 1, "mj-input", "is-num", "mjo-input--money", 3, "ngModelChange", "ngModel", "disabled"], ["DisplayNameOverride", "Payment Date", "FieldName", "PaymentDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [3, "Payment"], ["title", "Required to capture and book", 1, "mjo-required-mark"], ["FieldName", "PaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-instrument-box"], ["DisplayNameOverride", "Receiving Company", "FieldName", "ReceivingCompanyID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-field-hint", "mjo-field-hint--error"], ["DisplayNameOverride", "Processing Fee", "FieldName", "ProcessingFeeAmount", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-net-calc"], [1, "mjo-net-calc__label"], [1, "mjo-net-calc__val"], [1, "mjo-ph-alloc-pane"], [1, "fa-solid", "fa-circle-check", "text-success"], [1, "mjo-badge"], [3, "Changed", "Payment"], [1, "mj-input", 3, "ngModelChange", "ngModel"], [3, "ngValue"], [3, "value"], ["FieldName", "PaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-instrument-box__title"], [1, "fa-solid", "fa-money-check"], [1, "mjo-instrument-box__grid"], [1, "text-danger"], ["type", "text", "placeholder", "e.g. 10428", "autocomplete", "off", 1, "mj-input", "font-mono", 3, "ngModelChange", "ngModel", "disabled"], ["type", "date", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "mjo-field", "col-span-full"], ["type", "text", "placeholder", "e.g. Chase, Bank of America", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "fa-solid", "fa-building-columns"], ["type", "text", "placeholder", "e.g. Wells Fargo", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["value", "Checking"], ["value", "Savings"], ["type", "text", "maxlength", "4", "placeholder", "1234", 1, "mj-input", "font-mono", 3, "ngModelChange", "ngModel", "disabled"], ["type", "text", "maxlength", "4", "placeholder", "5678", 1, "mj-input", "font-mono", 3, "ngModelChange", "ngModel", "disabled"], ["type", "text", "placeholder", "Trace #", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "fa-solid", "fa-gift"], [1, "fa-solid", "fa-credit-card"], ["value", ""], ["value", "Visa"], ["value", "MasterCard"], ["value", "American Express"], ["value", "Discover"], ["value", "Other"], ["type", "text", "maxlength", "4", "placeholder", "4242", 1, "mj-input", "font-mono", 3, "ngModelChange", "ngModel", "disabled"], [1, "flex", "gap-2"], ["type", "number", "min", "1", "max", "12", "placeholder", "MM", 1, "mj-input", "font-mono", "w-16", 3, "ngModelChange", "ngModel", "disabled"], ["type", "number", "min", "2025", "max", "2045", "placeholder", "YYYY", 1, "mj-input", "font-mono", "w-24", 3, "ngModelChange", "ngModel", "disabled"], ["type", "text", "placeholder", "Name on card", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["type", "text", "placeholder", "e.g. AUTH-98210", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "fa-solid", "fa-receipt"], ["type", "text", "placeholder", "Confirmation or transfer id", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [1, "mjo-alloc-hero"], [1, "mjo-alloc-hero__stats"], [1, "mjo-alloc-stat"], [1, "mjo-alloc-stat__kicker"], [1, "mjo-alloc-stat__val"], [1, "mjo-alloc-stat__op"], [1, "fa-solid", "fa-minus"], [1, "mjo-alloc-toolbar"], [1, "mjo-alloc-toolbar__left"], [1, "mjo-alloc-toolbar__title"], [1, "mjo-card", "mjo-card--table"], [1, "mjo-loading-state"], ["Size", "compact", "Icon", "fa-solid fa-receipt", "Title", "Not applied to any order", "Message", "The full amount is held as unapplied credit."], [1, "mjo-table-responsive"], [1, "fa-solid", "fa-equals"], ["text", "Loading allocations\u2026", "size", "small"], [1, "mjo-table"], [1, "text-right"], ["type", "button", 1, "mjo-link", 3, "click"], [1, "text-right", "font-mono"], [1, "mjo-alloc-hero__message"], [1, "mjo-alloc-toolbar__right"], ["Size", "compact", "Icon", "fa-solid fa-receipt", "Title", "No unpaid orders found", "Message", "There are zero open unpaid orders. Any recorded payment will be retained as unallocated credit."], [1, "fa-solid", "fa-circle-info", "text-warning"], [1, "fa-solid", "fa-triangle-exclamation", "text-danger"], [1, "mjo-search-input-wrap"], [1, "fa-solid", "fa-magnifying-glass"], ["type", "text", "placeholder", "Filter orders\u2026", 1, "mjo-input", "mjo-input--sm", 3, "ngModelChange", "ngModel"], ["type", "button", 1, "mjo-btn", "mjo-btn--secondary", "mjo-btn--sm", 3, "click"], [1, "fa-solid", "fa-wand-magic-sparkles"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--sm", 3, "click"], [1, "fa-solid", "fa-eraser"], ["text", "Loading open orders\u2026", "size", "small"], [1, "w-8"], [1, "text-right", "w-36"], [1, "w-24"], [1, "mjo-order-row"], ["type", "button", "title", "Toggle line items", 1, "mjo-icon-btn", 3, "click"], [1, "fa-solid"], [1, "font-bold"], [1, "mjo-subtext"], [1, "mjo-badge", "mjo-badge--error"], [1, "mjo-company-pill"], [1, "text-right", "font-mono", "font-bold"], [1, "mjo-apply-input-wrap"], [1, "mjo-apply-dollar"], ["type", "number", "step", "0.01", "min", "0", 1, "mjo-input", "mjo-input--sm", "mjo-input--num", 3, "ngModelChange", "ngModel", "disabled", "title"], [1, "mjo-subtext", "text-info"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--sm", 3, "disabled"], [1, "mjo-lines-row"], [1, "fa-solid", "fa-layer-group"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--sm", 3, "click", "disabled"], [1, "p-0"], [1, "mjo-nested-lines-pane"], [1, "mjo-nested-lines-header"], [1, "mjo-nested-table"], [1, "w-20"], ["type", "number", "step", "0.01", "min", "0", 1, "mjo-input", "mjo-input--xs", "mjo-input--num", 3, "ngModelChange", "ngModel", "disabled"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--xs"], ["type", "button", 1, "mjo-btn", "mjo-btn--outline", "mjo-btn--xs", 3, "click"], [1, "mjo-accounting-header"], [1, "fa-solid", "fa-book"], [1, "text-muted"], [1, "mjo-view-toggle"], ["type", "button", 1, "mjo-toggle-btn", 3, "click"], ["Size", "compact", "Icon", "fa-solid fa-book-open", "Title", "No journal entries booked yet", "Message", "Journal entries are booked automatically upon capturing and settling the payment."], [1, "mjo-gl-cards-grid"], ["text", "Rolling up general ledger accounts\u2026", "size", "small"], [1, "mjo-card", "mjo-card--gl"], [1, "mjo-card__body", "p-0"], [1, "mjo-table", "mjo-table--compact"], ["colspan", "2"], [1, "font-mono"], ["Height", "fit-content", 3, "Params", "AllowLoad", "ShowToolbar"], ["Height", "fit-content", 3, "Navigate", "Params", "AllowLoad", "ShowToolbar"], [1, "mjo-form-sections-grid"], [1, "fa-solid", "fa-gears"], [1, "mjo-card__body", "mjo-form-grid-2"], ["FieldName", "PaymentProviderID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PaymentIntentID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PaymentDetailID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ProviderChargeID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ProviderRefundID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "IdempotencyKey", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [1, "fa-solid", "fa-note-sticky"], ["FieldName", "ReversesPaymentHeaderID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ReversalReason", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Notes", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [1, "fa-solid", "fa-clock-rotate-left"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["SectionKey", "mJBizAppsOrdersStoredValueTransactions", "SectionName", "Stored Value & Account Credit Transactions", "Icon", "fa fa-wallet", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], [3, "Navigate", "AfterDataLoad", "Params", "NewRecordValues", "AllowLoad", "ShowToolbar"], ["SectionKey", "mJBizAppsOrdersSubscriptionEvents", "SectionName", "Subscription Billing Events", "Icon", "fa fa-history", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["SectionKey", "mJBizAppsOrdersPaymentHeaders", "SectionName", "Linked Reversal & Refund Payment Records", "Icon", "fa fa-rotate-left", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"]], template: function BizAppsPaymentHeaderFormComponent_Template(rf, ctx) { if (rf & 1) {
2543
2563
  i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Template, 47, 34, "mj-record-form-container", 0);
2544
2564
  } if (rf & 2) {
2545
2565
  i0.ɵɵconditional(ctx.record ? 0 : -1);
2546
- } }, dependencies: [i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.MaxLengthValidator, i1.MinValidator, i1.MaxValidator, i1.NgModel, i2.MjFormFieldComponent, i2.MjCollapsiblePanelComponent, i2.MjRecordFormContainerComponent, i2.ExplorerEntityDataGridComponent, i2.FormPanelSlotComponent, i3.MJTabNavComponent, i3.MJEmptyStateComponent, i4.LoadingComponent], styles: ["\n\n\n\n\n\n[_nghost-%COMP%] {\n display: block;\n width: 100%;\n}\n\n\n\n.mjo-ph-hero[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 12px);\n padding: var(--mj-space-4, 16px) var(--mj-space-5, 20px);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);\n margin-bottom: var(--mj-space-4, 16px);\n}\n\n.mjo-ph-hero__top[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-who[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-ph-avatar[_ngcontent-%COMP%] {\n width: 48px;\n height: 48px;\n border-radius: var(--mj-radius-md, 8px);\n background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);\n color: #ffffff;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);\n flex-shrink: 0;\n}\n\n.mjo-ph-avatar.is-reversal[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);\n box-shadow: 0 4px 10px rgba(147, 51, 234, 0.25);\n}\n\n.mjo-ph-title-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3, 10px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-lg, 18px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n letter-spacing: -0.01em;\n}\n\n.mjo-ph-sub[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-text-muted, #64748b);\n margin-top: 2px;\n}\n\n.mjo-ph-hero__aside[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-5, 20px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-money[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n padding: var(--mj-space-2, 6px) var(--mj-space-4, 14px);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 8px);\n}\n\n.mjo-ph-money[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n\n.mjo-ph-kicker[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 11px);\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-ph-amt[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm, 13px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-ph-amt.is-balanced[_ngcontent-%COMP%] {\n color: #16a34a;\n}\n\n.mjo-ph-amt.is-unbalanced[_ngcontent-%COMP%] {\n color: #d97706;\n}\n\n.mjo-ph-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n\n\n.mjo-ph-tabs[_ngcontent-%COMP%] {\n margin-bottom: var(--mj-space-4, 16px);\n}\n\n\n\n.mjo-ph-workbench[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-4, 16px);\n align-items: flex-start;\n width: 100%;\n}\n\n.mjo-ph-money-pane[_ngcontent-%COMP%] {\n width: 380px;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n --mj-forms-field-label-width: 105px;\n --mj-forms-field-gap: 8px;\n}\n\n.mjo-ph-fields-stack[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-ph-fields-stack[_ngcontent-%COMP%] mj-form-field[_ngcontent-%COMP%] {\n --mj-forms-field-label-width: 105px;\n --mj-forms-field-gap: 8px;\n}\n\n.mjo-ph-alloc-pane[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n}\n\n\n\n.mjo-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 10px);\n box-shadow: var(--mj-shadow-sm);\n overflow: hidden;\n}\n\n.mjo-card__header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--mj-space-3, 12px) var(--mj-space-4, 16px);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-card__title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm, 13px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-card__body[_ngcontent-%COMP%] {\n padding: var(--mj-space-4, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3, 12px);\n}\n\n.mjo-card__body.p-0[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.mjo-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #94a3b8);\n}\n\n.mjo-input-money-wrap[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.mjo-currency-prefix[_ngcontent-%COMP%] {\n position: absolute;\n left: 14px;\n font-size: var(--mj-text-lg, 16px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-muted, #94a3b8);\n pointer-events: none;\n z-index: 2;\n}\n\n.mjo-input--money[_ngcontent-%COMP%] {\n padding-left: 30px !important;\n font-size: var(--mj-text-lg, 16px) !important;\n font-weight: var(--mj-font-bold, 700) !important;\n font-family: var(--mj-font-family-mono, monospace) !important;\n height: 42px !important;\n width: 100% !important;\n background: var(--mj-bg-surface-card, transparent) !important;\n color: var(--mj-text-primary, inherit) !important;\n border: 1px solid var(--mj-border-default, #334155) !important;\n border-radius: var(--mj-radius-md, 6px) !important;\n}\n\n.mjo-input--money[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-brand-primary, #0076b6) !important;\n box-shadow: 0 0 0 2px rgba(0, 118, 182, 0.25) !important;\n}\n\n.mjo-net-calc[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 14px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n border-radius: var(--mj-radius-md, 6px);\n margin-top: 4px;\n}\n\n.mjo-net-calc__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #94a3b8);\n}\n\n.mjo-net-calc__val[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #f8fafc);\n}\n\n.mjo-payer-chip[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n padding: 6px 10px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n}\n\n\n\n.mjo-card--books[_ngcontent-%COMP%] {\n border-color: rgba(0, 118, 182, 0.25);\n}\n\n\n\n\n\n.mjo-alloc-hero[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 12px);\n padding: var(--mj-space-3, 12px) var(--mj-space-4, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-hero.is-balanced[_ngcontent-%COMP%] {\n border-color: rgba(22, 163, 74, 0.35);\n background: rgba(22, 163, 74, 0.03);\n}\n\n.mjo-alloc-hero.is-warning[_ngcontent-%COMP%] {\n border-color: rgba(217, 119, 6, 0.35);\n background: rgba(217, 119, 6, 0.03);\n}\n\n.mjo-alloc-hero.is-error[_ngcontent-%COMP%] {\n border-color: rgba(220, 38, 38, 0.35);\n background: rgba(220, 38, 38, 0.03);\n}\n\n.mjo-alloc-hero__stats[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-alloc-stat[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-alloc-stat__kicker[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-alloc-stat__val[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-alloc-stat__op[_ngcontent-%COMP%] {\n font-size: 14px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-alloc-hero__message[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n padding-top: 6px;\n border-top: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n\n\n.mjo-alloc-toolbar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-3, 12px);\n flex-wrap: wrap;\n}\n\n.mjo-alloc-toolbar__left[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-toolbar__title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm, 14px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-toolbar__right[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-search-input-wrap[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.mjo-search-input-wrap[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n position: absolute;\n left: 8px;\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-search-input-wrap[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n padding-left: 24px;\n width: 160px;\n}\n\n\n\n.mjo-table-responsive[_ngcontent-%COMP%] {\n overflow-x: auto;\n width: 100%;\n}\n\n\n\n\n.mjo-required-mark[_ngcontent-%COMP%] {\n color: var(--mj-status-error, #dc2626);\n font-weight: var(--mj-font-bold, 700);\n}\n\n.mjo-input--invalid[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error, #dc2626) !important;\n box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);\n}\n\n.mjo-field-hint--error[_ngcontent-%COMP%] {\n margin-top: 4px;\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-status-error, #dc2626);\n}\n\n.mjo-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-xs, 12px);\n}\n\n.mjo-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted, #64748b);\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n font-size: 11px;\n padding: 8px 12px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n text-align: left;\n}\n\n.mjo-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 8px 12px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n vertical-align: middle;\n color: var(--mj-text-primary, #0f172a);\n}\n\n\n\n\n.mjo-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], \n.mjo-table[_ngcontent-%COMP%] .mjo-btn[_ngcontent-%COMP%], \n.mjo-table[_ngcontent-%COMP%] .font-mono[_ngcontent-%COMP%] {\n white-space: nowrap;\n}\n\n.mjo-order-row[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover, rgba(0, 0, 0, 0.02));\n}\n\n.mjo-order-row.is-expanded[_ngcontent-%COMP%] {\n background: rgba(0, 118, 182, 0.02);\n}\n\n.mjo-apply-input-wrap[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n width: 100%;\n max-width: 110px;\n}\n\n.mjo-apply-dollar[_ngcontent-%COMP%] {\n position: absolute;\n left: 8px;\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-muted, #64748b);\n pointer-events: none;\n}\n\n.mjo-apply-input-wrap[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n padding-left: 18px;\n}\n\n.mjo-nested-lines-pane[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border-top: 1px solid var(--mj-border-default, #e2e8f0);\n border-bottom: 2px solid var(--mj-border-default, #cbd5e1);\n padding: var(--mj-space-3, 10px) var(--mj-space-4, 16px);\n}\n\n.mjo-nested-lines-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-secondary, #475569);\n margin-bottom: var(--mj-space-2, 6px);\n}\n\n.mjo-nested-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-xs, 12px);\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n overflow: hidden;\n}\n\n.mjo-nested-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background: rgba(0, 0, 0, 0.02);\n font-size: 10.5px;\n font-weight: var(--mj-font-semibold, 600);\n padding: 6px 10px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-nested-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 6px 10px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n\n\n.mjo-ph-tab-body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-accounting-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-accounting-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-accounting-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 2px 0 0 0;\n font-size: var(--mj-text-xs, 12px);\n}\n\n.mjo-view-toggle[_ngcontent-%COMP%] {\n display: flex;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.04));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n padding: 2px;\n}\n\n.mjo-toggle-btn[_ngcontent-%COMP%] {\n border: none;\n background: transparent;\n padding: 4px 10px;\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #475569);\n border-radius: var(--mj-radius-sm, 4px);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-toggle-btn.is-active[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, #ffffff);\n color: var(--mj-text-primary, #0f172a);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n\n.mjo-gl-cards-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-table--compact[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .mjo-table--compact[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 6px 10px;\n}\n\n.mjo-table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border-top: 2px solid var(--mj-border-default, #cbd5e1);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-bold, 700);\n}\n\n.is-intercompany[_ngcontent-%COMP%] {\n background: rgba(0, 118, 182, 0.04);\n}\n\n.mjo-ic-tag[_ngcontent-%COMP%] {\n display: inline-block;\n font-size: 10px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n color: #0284c7;\n background: rgba(2, 132, 199, 0.12);\n padding: 1px 5px;\n border-radius: 3px;\n margin-left: 6px;\n}\n\n\n\n.mjo-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--mj-space-2, 6px);\n height: 34px;\n padding: 0 14px;\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n border-radius: var(--mj-radius-md, 6px);\n cursor: pointer;\n border: 1px solid transparent;\n transition: all 0.15s ease;\n}\n\n.mjo-btn--primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary, #0076b6);\n color: #ffffff;\n}\n\n.mjo-btn--primary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: #006094;\n}\n\n.mjo-btn--secondary[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-color: var(--mj-border-default, #cbd5e1);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn--secondary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: rgba(0, 0, 0, 0.08);\n}\n\n.mjo-btn--outline[_ngcontent-%COMP%] {\n background: transparent;\n border-color: var(--mj-border-default, #cbd5e1);\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-btn--outline[_ngcontent-%COMP%]:hover:not(:disabled) {\n border-color: var(--mj-brand-primary, #0076b6);\n color: var(--mj-brand-primary, #0076b6);\n}\n\n.mjo-btn--sm[_ngcontent-%COMP%] {\n height: 30px;\n padding: 0 10px;\n font-size: 11.5px;\n}\n\n.mjo-btn--xs[_ngcontent-%COMP%] {\n height: 24px;\n padding: 0 8px;\n font-size: 11px;\n}\n\n.mjo-btn[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mjo-icon-btn[_ngcontent-%COMP%] {\n border: none;\n background: transparent;\n color: var(--mj-text-muted, #64748b);\n cursor: pointer;\n padding: 4px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.mjo-icon-btn[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-link[_ngcontent-%COMP%] {\n border: none;\n background: transparent;\n color: var(--mj-brand-primary, #0076b6);\n cursor: pointer;\n padding: 0;\n font-size: inherit;\n text-align: left;\n}\n\n.mjo-link[_ngcontent-%COMP%]:hover {\n text-decoration: underline;\n}\n\n.mjo-status-chip[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n padding: 2px 8px;\n border-radius: 4px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-status-chip--draft[_ngcontent-%COMP%] {\n background: rgba(100, 116, 139, 0.12);\n color: #475569;\n}\n\n.mjo-status-chip--active[_ngcontent-%COMP%] {\n background: rgba(22, 163, 74, 0.12);\n color: #16a34a;\n}\n\n.mjo-status-chip--purple[_ngcontent-%COMP%] {\n background: rgba(147, 51, 234, 0.12);\n color: #9333ea;\n}\n\n.mjo-status-chip--error[_ngcontent-%COMP%] {\n background: rgba(220, 38, 38, 0.12);\n color: #dc2626;\n}\n\n.mjo-status-chip--warning[_ngcontent-%COMP%] {\n background: rgba(217, 119, 6, 0.12);\n color: #d97706;\n}\n\n.mjo-company-pill[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #475569);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.04));\n padding: 2px 6px;\n border-radius: 4px;\n}\n\n.mjo-sku-chip[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono, monospace);\n font-size: 10px;\n color: var(--mj-text-muted, #64748b);\n background: rgba(0, 0, 0, 0.04);\n padding: 1px 4px;\n border-radius: 3px;\n margin-left: 4px;\n}\n\n.mjo-badge[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n padding: 2px 6px;\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-badge--error[_ngcontent-%COMP%] {\n background: rgba(220, 38, 38, 0.12);\n color: #dc2626;\n}\n\n.mjo-badge--success[_ngcontent-%COMP%] {\n background: rgba(22, 163, 74, 0.12);\n color: #16a34a;\n}\n\n.mjo-loading-state[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--mj-space-6, 32px) var(--mj-space-4, 16px);\n text-align: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alert[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3, 10px);\n padding: 10px 14px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: var(--mj-text-xs, 12px);\n margin-bottom: var(--mj-space-3, 12px);\n}\n\n.mjo-alert--error[_ngcontent-%COMP%] {\n background: rgba(220, 38, 38, 0.08);\n border: 1px solid rgba(220, 38, 38, 0.25);\n color: #dc2626;\n}\n\n.mjo-subtext[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.text-right[_ngcontent-%COMP%] { text-align: right; }\n.font-mono[_ngcontent-%COMP%] { font-family: var(--mj-font-family-mono, monospace); }\n.font-bold[_ngcontent-%COMP%] { font-weight: var(--mj-font-bold, 700); }\n.text-muted[_ngcontent-%COMP%] { color: var(--mj-text-muted, #64748b); }\n.text-success[_ngcontent-%COMP%] { color: #16a34a; }\n.text-warning[_ngcontent-%COMP%] { color: #d97706; }\n.text-danger[_ngcontent-%COMP%] { color: #dc2626; }\n.w-8[_ngcontent-%COMP%] { width: 32px; }\n.w-16[_ngcontent-%COMP%] { width: 64px; }\n.w-20[_ngcontent-%COMP%] { width: 80px; }\n.w-24[_ngcontent-%COMP%] { width: 96px; }\n.w-36[_ngcontent-%COMP%] { width: 144px; }\n.flex[_ngcontent-%COMP%] { display: flex; }\n.gap-2[_ngcontent-%COMP%] { gap: 8px; }\n.col-span-full[_ngcontent-%COMP%] { grid-column: 1 / -1; }\n.text-info[_ngcontent-%COMP%] { color: #0284c7; }\n\n\n\n.mjo-instrument-box[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 8px);\n padding: var(--mj-space-3, 12px);\n margin: var(--mj-space-2, 6px) 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3, 10px);\n}\n\n.mjo-instrument-box__title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 6px;\n padding-bottom: 6px;\n border-bottom: 1px dashed var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-instrument-box__grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-instrument-box[_ngcontent-%COMP%] .mjo-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-instrument-box[_ngcontent-%COMP%] .mjo-label[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-medium, 500);\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-apply-input-wrap.is-derived[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n color: var(--mj-text-secondary, #475569);\n cursor: not-allowed;\n border-style: dashed;\n}"] });
2566
+ } }, dependencies: [i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.NumberValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.MaxLengthValidator, i1.MinValidator, i1.MaxValidator, i1.NgModel, i2.MjFormFieldComponent, i2.MjCollapsiblePanelComponent, i2.MjRecordFormContainerComponent, i2.ExplorerEntityDataGridComponent, i2.FormPanelSlotComponent, i3.MJTabNavComponent, i3.MJEmptyStateComponent, i4.LoadingComponent, i5.MJOChangePaymentDateComponent, i6.PartyFieldComponent], styles: ["\n\n\n\n\n\n[_nghost-%COMP%] {\n display: block;\n width: 100%;\n}\n\n\n\n.mjo-ph-hero[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 12px);\n padding: var(--mj-space-4, 16px) var(--mj-space-5, 20px);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);\n margin-bottom: var(--mj-space-4, 16px);\n}\n\n.mjo-ph-hero__top[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-who[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-ph-avatar[_ngcontent-%COMP%] {\n width: 48px;\n height: 48px;\n border-radius: var(--mj-radius-md, 8px);\n background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);\n color: #ffffff;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);\n flex-shrink: 0;\n}\n\n.mjo-ph-avatar.is-reversal[_ngcontent-%COMP%] {\n background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);\n box-shadow: 0 4px 10px rgba(147, 51, 234, 0.25);\n}\n\n.mjo-ph-title-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3, 10px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-lg, 18px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n letter-spacing: -0.01em;\n}\n\n.mjo-ph-sub[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-text-muted, #64748b);\n margin-top: 2px;\n}\n\n.mjo-ph-hero__aside[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-5, 20px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-money[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n padding: var(--mj-space-2, 6px) var(--mj-space-4, 14px);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 8px);\n}\n\n.mjo-ph-money[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n\n.mjo-ph-kicker[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 11px);\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-ph-amt[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm, 13px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-ph-amt.is-balanced[_ngcontent-%COMP%] {\n color: #16a34a;\n}\n\n.mjo-ph-amt.is-unbalanced[_ngcontent-%COMP%] {\n color: #d97706;\n}\n\n.mjo-ph-actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n\n\n.mjo-ph-tabs[_ngcontent-%COMP%] {\n margin-bottom: var(--mj-space-4, 16px);\n}\n\n\n\n.mjo-ph-workbench[_ngcontent-%COMP%] {\n display: flex;\n gap: var(--mj-space-4, 16px);\n align-items: flex-start;\n width: 100%;\n}\n\n.mjo-ph-money-pane[_ngcontent-%COMP%] {\n width: 380px;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n --mj-forms-field-label-width: 105px;\n --mj-forms-field-gap: 8px;\n}\n\n.mjo-ph-fields-stack[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-ph-fields-stack[_ngcontent-%COMP%] mj-form-field[_ngcontent-%COMP%] {\n --mj-forms-field-label-width: 105px;\n --mj-forms-field-gap: 8px;\n}\n\n.mjo-ph-alloc-pane[_ngcontent-%COMP%] {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n}\n\n\n\n.mjo-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 10px);\n box-shadow: var(--mj-shadow-sm);\n overflow: hidden;\n}\n\n.mjo-card__header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--mj-space-3, 12px) var(--mj-space-4, 16px);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-card__title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm, 13px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-card__body[_ngcontent-%COMP%] {\n padding: var(--mj-space-4, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3, 12px);\n}\n\n.mjo-card__body.p-0[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.mjo-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #94a3b8);\n}\n\n.mjo-input-money-wrap[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.mjo-currency-prefix[_ngcontent-%COMP%] {\n position: absolute;\n left: 14px;\n font-size: var(--mj-text-lg, 16px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-muted, #94a3b8);\n pointer-events: none;\n z-index: 2;\n}\n\n.mjo-input--money[_ngcontent-%COMP%] {\n padding-left: 30px !important;\n font-size: var(--mj-text-lg, 16px) !important;\n font-weight: var(--mj-font-bold, 700) !important;\n font-family: var(--mj-font-family-mono, monospace) !important;\n height: 42px !important;\n width: 100% !important;\n background: var(--mj-bg-surface-card, transparent) !important;\n color: var(--mj-text-primary, inherit) !important;\n border: 1px solid var(--mj-border-default, #334155) !important;\n border-radius: var(--mj-radius-md, 6px) !important;\n}\n\n.mjo-input--money[_ngcontent-%COMP%]:focus {\n border-color: var(--mj-brand-primary, #0076b6) !important;\n box-shadow: 0 0 0 2px rgba(0, 118, 182, 0.25) !important;\n}\n\n.mjo-net-calc[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 14px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n border-radius: var(--mj-radius-md, 6px);\n margin-top: 4px;\n}\n\n.mjo-net-calc__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #94a3b8);\n}\n\n.mjo-net-calc__val[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #f8fafc);\n}\n\n.mjo-payer-chip[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n padding: 6px 10px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n}\n\n\n\n.mjo-card--books[_ngcontent-%COMP%] {\n border-color: rgba(0, 118, 182, 0.25);\n}\n\n\n\n\n\n.mjo-alloc-hero[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 12px);\n padding: var(--mj-space-3, 12px) var(--mj-space-4, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-hero.is-balanced[_ngcontent-%COMP%] {\n border-color: rgba(22, 163, 74, 0.35);\n background: rgba(22, 163, 74, 0.03);\n}\n\n.mjo-alloc-hero.is-warning[_ngcontent-%COMP%] {\n border-color: rgba(217, 119, 6, 0.35);\n background: rgba(217, 119, 6, 0.03);\n}\n\n.mjo-alloc-hero.is-error[_ngcontent-%COMP%] {\n border-color: rgba(220, 38, 38, 0.35);\n background: rgba(220, 38, 38, 0.03);\n}\n\n.mjo-alloc-hero__stats[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-alloc-stat[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-alloc-stat__kicker[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-alloc-stat__val[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-alloc-stat__op[_ngcontent-%COMP%] {\n font-size: 14px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-alloc-hero__message[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n padding-top: 6px;\n border-top: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n\n\n.mjo-alloc-toolbar[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-3, 12px);\n flex-wrap: wrap;\n}\n\n.mjo-alloc-toolbar__left[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-toolbar__title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm, 14px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-toolbar__right[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-search-input-wrap[_ngcontent-%COMP%] {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.mjo-search-input-wrap[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n position: absolute;\n left: 8px;\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-search-input-wrap[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n padding-left: 24px;\n width: 160px;\n}\n\n\n\n.mjo-table-responsive[_ngcontent-%COMP%] {\n overflow-x: auto;\n width: 100%;\n}\n\n\n\n\n.mjo-required-mark[_ngcontent-%COMP%] {\n color: var(--mj-status-error, #dc2626);\n font-weight: var(--mj-font-bold, 700);\n}\n\n.mjo-input--invalid[_ngcontent-%COMP%] {\n border-color: var(--mj-status-error, #dc2626) !important;\n box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);\n}\n\n.mjo-field-hint--error[_ngcontent-%COMP%] {\n margin-top: 4px;\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-status-error, #dc2626);\n}\n\n.mjo-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-xs, 12px);\n}\n\n.mjo-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted, #64748b);\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n font-size: 11px;\n padding: 8px 12px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n text-align: left;\n}\n\n.mjo-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 8px 12px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n vertical-align: middle;\n color: var(--mj-text-primary, #0f172a);\n}\n\n\n\n\n.mjo-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], \n.mjo-table[_ngcontent-%COMP%] .mjo-btn[_ngcontent-%COMP%], \n.mjo-table[_ngcontent-%COMP%] .font-mono[_ngcontent-%COMP%] {\n white-space: nowrap;\n}\n\n.mjo-order-row[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover, rgba(0, 0, 0, 0.02));\n}\n\n.mjo-order-row.is-expanded[_ngcontent-%COMP%] {\n background: rgba(0, 118, 182, 0.02);\n}\n\n.mjo-apply-input-wrap[_ngcontent-%COMP%] {\n position: relative;\n display: inline-flex;\n align-items: center;\n width: 100%;\n max-width: 110px;\n}\n\n.mjo-apply-dollar[_ngcontent-%COMP%] {\n position: absolute;\n left: 8px;\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-muted, #64748b);\n pointer-events: none;\n}\n\n.mjo-apply-input-wrap[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n padding-left: 18px;\n}\n\n.mjo-nested-lines-pane[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border-top: 1px solid var(--mj-border-default, #e2e8f0);\n border-bottom: 2px solid var(--mj-border-default, #cbd5e1);\n padding: var(--mj-space-3, 10px) var(--mj-space-4, 16px);\n}\n\n.mjo-nested-lines-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-secondary, #475569);\n margin-bottom: var(--mj-space-2, 6px);\n}\n\n.mjo-nested-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-xs, 12px);\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n overflow: hidden;\n}\n\n.mjo-nested-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background: rgba(0, 0, 0, 0.02);\n font-size: 10.5px;\n font-weight: var(--mj-font-semibold, 600);\n padding: 6px 10px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-nested-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 6px 10px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n\n\n.mjo-ph-tab-body[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-accounting-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-accounting-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-accounting-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 2px 0 0 0;\n font-size: var(--mj-text-xs, 12px);\n}\n\n.mjo-view-toggle[_ngcontent-%COMP%] {\n display: flex;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.04));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n padding: 2px;\n}\n\n.mjo-toggle-btn[_ngcontent-%COMP%] {\n border: none;\n background: transparent;\n padding: 4px 10px;\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #475569);\n border-radius: var(--mj-radius-sm, 4px);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-toggle-btn.is-active[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, #ffffff);\n color: var(--mj-text-primary, #0f172a);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n\n.mjo-gl-cards-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-table--compact[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .mjo-table--compact[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 6px 10px;\n}\n\n.mjo-table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card);\n border-top: 2px solid var(--mj-border-default, #cbd5e1);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-bold, 700);\n}\n\n.is-intercompany[_ngcontent-%COMP%] {\n background: rgba(0, 118, 182, 0.04);\n}\n\n.mjo-ic-tag[_ngcontent-%COMP%] {\n display: inline-block;\n font-size: 10px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n color: #0284c7;\n background: rgba(2, 132, 199, 0.12);\n padding: 1px 5px;\n border-radius: 3px;\n margin-left: 6px;\n}\n\n\n\n.mjo-btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--mj-space-2, 6px);\n height: 34px;\n padding: 0 14px;\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n border-radius: var(--mj-radius-md, 6px);\n cursor: pointer;\n border: 1px solid transparent;\n transition: all 0.15s ease;\n}\n\n.mjo-btn--primary[_ngcontent-%COMP%] {\n background: var(--mj-brand-primary, #0076b6);\n color: #ffffff;\n}\n\n.mjo-btn--primary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: #006094;\n}\n\n.mjo-btn--secondary[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-color: var(--mj-border-default, #cbd5e1);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn--secondary[_ngcontent-%COMP%]:hover:not(:disabled) {\n background: rgba(0, 0, 0, 0.08);\n}\n\n.mjo-btn--outline[_ngcontent-%COMP%] {\n background: transparent;\n border-color: var(--mj-border-default, #cbd5e1);\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-btn--outline[_ngcontent-%COMP%]:hover:not(:disabled) {\n border-color: var(--mj-brand-primary, #0076b6);\n color: var(--mj-brand-primary, #0076b6);\n}\n\n.mjo-btn--sm[_ngcontent-%COMP%] {\n height: 30px;\n padding: 0 10px;\n font-size: 11.5px;\n}\n\n.mjo-btn--xs[_ngcontent-%COMP%] {\n height: 24px;\n padding: 0 8px;\n font-size: 11px;\n}\n\n.mjo-btn[_ngcontent-%COMP%]:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mjo-icon-btn[_ngcontent-%COMP%] {\n border: none;\n background: transparent;\n color: var(--mj-text-muted, #64748b);\n cursor: pointer;\n padding: 4px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.mjo-icon-btn[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-link[_ngcontent-%COMP%] {\n border: none;\n background: transparent;\n color: var(--mj-brand-primary, #0076b6);\n cursor: pointer;\n padding: 0;\n font-size: inherit;\n text-align: left;\n}\n\n.mjo-link[_ngcontent-%COMP%]:hover {\n text-decoration: underline;\n}\n\n.mjo-status-chip[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n padding: 2px 8px;\n border-radius: 4px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-status-chip--draft[_ngcontent-%COMP%] {\n background: rgba(100, 116, 139, 0.12);\n color: #475569;\n}\n\n.mjo-status-chip--active[_ngcontent-%COMP%] {\n background: rgba(22, 163, 74, 0.12);\n color: #16a34a;\n}\n\n.mjo-status-chip--purple[_ngcontent-%COMP%] {\n background: rgba(147, 51, 234, 0.12);\n color: #9333ea;\n}\n\n.mjo-status-chip--error[_ngcontent-%COMP%] {\n background: rgba(220, 38, 38, 0.12);\n color: #dc2626;\n}\n\n.mjo-status-chip--warning[_ngcontent-%COMP%] {\n background: rgba(217, 119, 6, 0.12);\n color: #d97706;\n}\n\n.mjo-company-pill[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #475569);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.04));\n padding: 2px 6px;\n border-radius: 4px;\n}\n\n.mjo-sku-chip[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono, monospace);\n font-size: 10px;\n color: var(--mj-text-muted, #64748b);\n background: rgba(0, 0, 0, 0.04);\n padding: 1px 4px;\n border-radius: 3px;\n margin-left: 4px;\n}\n\n.mjo-badge[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n padding: 2px 6px;\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-badge--error[_ngcontent-%COMP%] {\n background: rgba(220, 38, 38, 0.12);\n color: #dc2626;\n}\n\n.mjo-badge--success[_ngcontent-%COMP%] {\n background: rgba(22, 163, 74, 0.12);\n color: #16a34a;\n}\n\n.mjo-loading-state[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--mj-space-6, 32px) var(--mj-space-4, 16px);\n text-align: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alert[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3, 10px);\n padding: 10px 14px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: var(--mj-text-xs, 12px);\n margin-bottom: var(--mj-space-3, 12px);\n}\n\n.mjo-alert--error[_ngcontent-%COMP%] {\n background: rgba(220, 38, 38, 0.08);\n border: 1px solid rgba(220, 38, 38, 0.25);\n color: #dc2626;\n}\n\n.mjo-subtext[_ngcontent-%COMP%] {\n font-size: 11px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.text-right[_ngcontent-%COMP%] { text-align: right; }\n.font-mono[_ngcontent-%COMP%] { font-family: var(--mj-font-family-mono, monospace); }\n.font-bold[_ngcontent-%COMP%] { font-weight: var(--mj-font-bold, 700); }\n.text-muted[_ngcontent-%COMP%] { color: var(--mj-text-muted, #64748b); }\n.text-success[_ngcontent-%COMP%] { color: #16a34a; }\n.text-warning[_ngcontent-%COMP%] { color: #d97706; }\n.text-danger[_ngcontent-%COMP%] { color: #dc2626; }\n.w-8[_ngcontent-%COMP%] { width: 32px; }\n.w-16[_ngcontent-%COMP%] { width: 64px; }\n.w-20[_ngcontent-%COMP%] { width: 80px; }\n.w-24[_ngcontent-%COMP%] { width: 96px; }\n.w-36[_ngcontent-%COMP%] { width: 144px; }\n.flex[_ngcontent-%COMP%] { display: flex; }\n.gap-2[_ngcontent-%COMP%] { gap: 8px; }\n.col-span-full[_ngcontent-%COMP%] { grid-column: 1 / -1; }\n.text-info[_ngcontent-%COMP%] { color: #0284c7; }\n\n\n\n.mjo-instrument-box[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 8px);\n padding: var(--mj-space-3, 12px);\n margin: var(--mj-space-2, 6px) 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3, 10px);\n}\n\n.mjo-instrument-box__title[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 6px;\n padding-bottom: 6px;\n border-bottom: 1px dashed var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-instrument-box__grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-instrument-box[_ngcontent-%COMP%] .mjo-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-instrument-box[_ngcontent-%COMP%] .mjo-label[_ngcontent-%COMP%] {\n font-size: 11px;\n font-weight: var(--mj-font-medium, 500);\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-apply-input-wrap.is-derived[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n color: var(--mj-text-secondary, #475569);\n cursor: not-allowed;\n border-style: dashed;\n}"] });
2547
2567
  };
2548
2568
  BizAppsPaymentHeaderFormComponent = __decorate([
2549
2569
  RegisterClass(BaseFormComponent, 'MJ_BizApps_Orders: Payment Headers', 2)
@@ -2551,7 +2571,7 @@ BizAppsPaymentHeaderFormComponent = __decorate([
2551
2571
  export { BizAppsPaymentHeaderFormComponent };
2552
2572
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsPaymentHeaderFormComponent, [{
2553
2573
  type: Component,
2554
- args: [{ standalone: false, selector: 'bizapps-payment-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 <!-- ================================================================\n HERO IDENTITY HEADER CARD & SUMMARY METRIC STRIP\n ================================================================ -->\n <div class=\"mjo-ph-hero\">\n <div class=\"mjo-ph-hero__top\">\n <div class=\"mjo-ph-who\">\n <div class=\"mjo-ph-avatar\" [class.is-reversal]=\"IsReversal\">\n <i [class]=\"PaymentAvatarIcon\"></i>\n </div>\n <div>\n <div class=\"mjo-ph-title-row\">\n <h1 class=\"mjo-ph-title\">\n {{ record.PaymentNumber || 'New payment' }} \u00B7 {{ FormattedGrossAmount }}\n </h1>\n <span [class]=\"StatusBadgeClass\">{{ record.Status || 'Draft' }}</span>\n @if (IsReversal) {\n <span class=\"mjo-status-chip mjo-status-chip--purple\">\n <i class=\"fa-solid fa-rotate-left\"></i> Reversal\n </span>\n }\n </div>\n <div class=\"mjo-ph-sub\">{{ HeaderSubtitle }}</div>\n </div>\n </div>\n\n <div class=\"mjo-ph-hero__aside\">\n <div class=\"mjo-ph-money\">\n <div>\n <span class=\"mjo-ph-kicker\">Gross</span>\n <span class=\"mjo-ph-amt\">{{ FormattedGrossAmount }}</span>\n </div>\n <div>\n <span class=\"mjo-ph-kicker\">Fee</span>\n <span class=\"mjo-ph-amt\">{{ FormattedFee }}</span>\n </div>\n <div>\n <span class=\"mjo-ph-kicker\">Net</span>\n <span class=\"mjo-ph-amt\">{{ FormattedNetAmount }}</span>\n </div>\n <div>\n <span class=\"mjo-ph-kicker\">Allocations</span>\n <span class=\"mjo-ph-amt\" [class.is-balanced]=\"IsAllocationBalanced\" [class.is-unbalanced]=\"!IsAllocationBalanced && TotalAllocated > 0\">\n @if (IsCaptured) {\n {{ AppliedCount }} applied\n } @else {\n ${{ TotalAllocated.toFixed(2) }}\n }\n </span>\n </div>\n </div>\n\n @if (!IsCaptured) {\n <div class=\"mjo-ph-actions\">\n <button type=\"button\" class=\"mjo-btn mjo-btn--secondary\" (click)=\"SaveAsDraft()\" [disabled]=\"Saving || Capturing\">\n <i class=\"fa-solid fa-floppy-disk\"></i> {{ Saving ? 'Saving\u2026' : 'Save draft' }}\n </button>\n <button type=\"button\" class=\"mjo-btn mjo-btn--primary\" (click)=\"CapturePayment()\" [disabled]=\"Capturing || Saving || !IsAllocationBalanced || !record.Amount || !hasPayer\">\n <i class=\"fa-solid fa-check-double\"></i> {{ Capturing ? 'Capturing\u2026' : 'Capture & Book' }}\n </button>\n </div>\n }\n </div>\n </div>\n </div>\n\n <!-- TAB NAVIGATION STRIP -->\n <div class=\"mjo-ph-tabs\">\n <mj-tab-nav [Tabs]=\"ContextTabs\" [ActiveKey]=\"ActiveTab ?? ''\" (TabChange)=\"SelectTab($event)\"></mj-tab-nav>\n </div>\n\n @if (CaptureError) {\n <div class=\"mjo-alert mjo-alert--error\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <div>\n <strong>Failed to capture payment:</strong> {{ CaptureError }}\n </div>\n </div>\n }\n\n <!-- ================================================================\n TAB 1: PAYMENT & ALLOCATION WORKBENCH\n ================================================================ -->\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-ph-workbench\">\n\n <!-- LEFT COLUMN: THE MONEY & PAYER (380px) -->\n <aside class=\"mjo-ph-money-pane\">\n\n <!-- 1. Payer Card -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <div class=\"mjo-card__title\">\n <i class=\"fa-solid fa-user-tag\"></i> Who is paying?\n </div>\n </div>\n <div class=\"mjo-card__body\">\n <div class=\"mjo-ph-fields-stack\">\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Organization\"\n FieldName=\"BillToOrganizationID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event); OnPayerSelectionChanged()\">\n </mj-form-field>\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Person\"\n FieldName=\"BillToPersonID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event); OnPayerSelectionChanged()\">\n </mj-form-field>\n </div>\n @if (hasPayer) {\n <div class=\"mjo-payer-chip\">\n <i class=\"fa-solid fa-circle-check text-success\"></i>\n <span>{{ PayerDisplayName }}</span>\n @if (OpenOrders.length > 0) {\n <span class=\"mjo-badge\">{{ OpenOrders.length }} unpaid orders</span>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- 2. Payment Details Card -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <div class=\"mjo-card__title\">\n <i class=\"fa-solid fa-money-check-dollar\"></i> Payment details\n </div>\n </div>\n <div class=\"mjo-card__body\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Amount received ($)</label>\n <div class=\"mjo-input-money-wrap\">\n <span class=\"mjo-currency-prefix\">$</span>\n <input\n type=\"number\"\n class=\"mj-input is-num mjo-input--money\"\n [ngModel]=\"record.Amount\"\n (ngModelChange)=\"OnAmountChanged($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"0.00\"\n step=\"0.01\"\n />\n </div>\n </div>\n\n <div class=\"mjo-ph-fields-stack\">\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Payment Date\"\n FieldName=\"PaymentDate\"\n Type=\"datepicker\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Payment Type <span class=\"mjo-required-mark\" title=\"Required to capture and book\">*</span></label>\n @if (ComposeMode && PaymentTypes.length > 0) {\n <select class=\"mj-input\" [class.mjo-input--invalid]=\"PaymentTypeMissing\" [ngModel]=\"record.PaymentTypeID\" (ngModelChange)=\"OnPaymentTypeSelected($event)\">\n <option [ngValue]=\"null\">Select payment type\u2026</option>\n @for (pt of PaymentTypes; track pt.ID) {\n <option [value]=\"pt.ID\">{{ pt.Name }}</option>\n }\n </select>\n @if (PaymentTypeMissing) {\n <div class=\"mjo-field-hint mjo-field-hint--error\">Required before Capture &amp; Book.</div>\n }\n } @else {\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"false\"\n FieldName=\"PaymentTypeID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n }\n </div>\n\n <!-- TENDER-SPECIFIC INSTRUMENT CAPTURE (PaymentDetail) -->\n @if (InstrumentPanel === 'check') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-money-check\"></i> Check details\n </div>\n <div class=\"mjo-instrument-box__grid\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Check \u2116 <span class=\"text-danger\">*</span></label>\n <input type=\"text\" class=\"mj-input font-mono\" [(ngModel)]=\"ReferenceNumber\" [disabled]=\"!ComposeMode\" placeholder=\"e.g. 10428\" autocomplete=\"off\" />\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Check Date</label>\n <input type=\"date\" class=\"mj-input\" [(ngModel)]=\"InstrumentDateInput\" [disabled]=\"!ComposeMode\" />\n </div>\n <div class=\"mjo-field col-span-full\">\n <label class=\"mjo-label\">Bank Name</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"BankName\" [disabled]=\"!ComposeMode\" placeholder=\"e.g. Chase, Bank of America\" />\n </div>\n </div>\n </div>\n } @else if (InstrumentPanel === 'ach') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-building-columns\"></i> Bank transfer / ACH details\n </div>\n <div class=\"mjo-instrument-box__grid\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Bank Name</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"BankName\" [disabled]=\"!ComposeMode\" placeholder=\"e.g. Wells Fargo\" />\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Account Type</label>\n <select class=\"mj-input\" [(ngModel)]=\"BankAccountType\" [disabled]=\"!ComposeMode\">\n <option [ngValue]=\"null\">Select Type</option>\n <option value=\"Checking\">Checking</option>\n <option value=\"Savings\">Savings</option>\n </select>\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Routing Last 4</label>\n <input type=\"text\" class=\"mj-input font-mono\" maxlength=\"4\" [(ngModel)]=\"RoutingLast4\" [disabled]=\"!ComposeMode\" placeholder=\"1234\" />\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Account Last 4</label>\n <input type=\"text\" class=\"mj-input font-mono\" maxlength=\"4\" [(ngModel)]=\"AccountLast4\" [disabled]=\"!ComposeMode\" placeholder=\"5678\" />\n </div>\n <div class=\"mjo-field col-span-full\">\n <label class=\"mjo-label\">Trace / Reference \u2116</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"ReferenceNumber\" [disabled]=\"!ComposeMode\" placeholder=\"Trace #\" />\n </div>\n </div>\n </div>\n } @else if (InstrumentPanel === 'giftcard') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-gift\"></i> Gift card details\n </div>\n <div class=\"mjo-instrument-box__grid\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Card Number (last 4)</label>\n <input type=\"text\" class=\"mj-input font-mono\" maxlength=\"4\" [(ngModel)]=\"CardLast4\" [disabled]=\"!ComposeMode\" placeholder=\"1234\" />\n </div>\n </div>\n </div>\n } @else if (InstrumentPanel === 'card') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-credit-card\"></i> Card instrument details\n </div>\n <div class=\"mjo-instrument-box__grid\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Card Brand</label>\n <select class=\"mj-input\" [(ngModel)]=\"CardBrand\" [disabled]=\"!ComposeMode\">\n <option value=\"\">Select Brand</option>\n <option value=\"Visa\">Visa</option>\n <option value=\"MasterCard\">MasterCard</option>\n <option value=\"American Express\">American Express</option>\n <option value=\"Discover\">Discover</option>\n <option value=\"Other\">Other</option>\n </select>\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Last 4 Digits</label>\n <input type=\"text\" class=\"mj-input font-mono\" maxlength=\"4\" [(ngModel)]=\"CardLast4\" [disabled]=\"!ComposeMode\" placeholder=\"4242\" />\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Expiry (MM / YYYY)</label>\n <div class=\"flex gap-2\">\n <input type=\"number\" min=\"1\" max=\"12\" class=\"mj-input font-mono w-16\" [(ngModel)]=\"CardExpMonth\" [disabled]=\"!ComposeMode\" placeholder=\"MM\" />\n <input type=\"number\" min=\"2025\" max=\"2045\" class=\"mj-input font-mono w-24\" [(ngModel)]=\"CardExpYear\" [disabled]=\"!ComposeMode\" placeholder=\"YYYY\" />\n </div>\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Cardholder Name</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"CardHolderName\" [disabled]=\"!ComposeMode\" placeholder=\"Name on card\" />\n </div>\n <div class=\"mjo-field col-span-full\">\n <label class=\"mjo-label\">Auth / Approval \u2116</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"ReferenceNumber\" [disabled]=\"!ComposeMode\" placeholder=\"e.g. AUTH-98210\" />\n </div>\n </div>\n </div>\n } @else if (InstrumentPanel === 'reference') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-receipt\"></i> Reference details\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Reference / Wire Confirmation \u2116 <span class=\"text-danger\">*</span></label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"ReferenceNumber\" [disabled]=\"!ComposeMode\" placeholder=\"Confirmation or transfer id\" />\n </div>\n </div>\n }\n\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Receiving Company\"\n FieldName=\"ReceivingCompanyID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n @if (ReceivingCompanyMissing && !record.ReceivingCompanyID) {\n <div class=\"mjo-field-hint mjo-field-hint--error\">Required before Capture &amp; Book.</div>\n }\n\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Processing Fee\"\n FieldName=\"ProcessingFeeAmount\"\n Type=\"number\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n </div>\n\n <div class=\"mjo-net-calc\">\n <span class=\"mjo-net-calc__label\">Net Settlement Amount</span>\n <span class=\"mjo-net-calc__val\">{{ FormattedNetAmount }}</span>\n </div>\n </div>\n </div>\n\n </aside>\n\n <!-- RIGHT COLUMN: ALLOCATION WORKBENCH -->\n <main class=\"mjo-ph-alloc-pane\">\n\n @if (IsCaptured) {\n <!-- Captured: the allocations are booked, so show what the payment was applied to (golive #342) -->\n <div class=\"mjo-alloc-hero\" [class.is-balanced]=\"UnappliedAmount === 0\">\n <div class=\"mjo-alloc-hero__stats\">\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Received</span>\n <span class=\"mjo-alloc-stat__val\">{{ FormattedGrossAmount }}</span>\n </div>\n <div class=\"mjo-alloc-stat__op\"><i class=\"fa-solid fa-minus\"></i></div>\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Applied</span>\n <span class=\"mjo-alloc-stat__val\">{{ RollupAmount(AppliedTotal) }}</span>\n </div>\n @if (UnappliedAmount !== 0) {\n <div class=\"mjo-alloc-stat__op\"><i class=\"fa-solid fa-equals\"></i></div>\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Unapplied</span>\n <span class=\"mjo-alloc-stat__val\">{{ RollupAmount(UnappliedAmount) }}</span>\n </div>\n }\n </div>\n </div>\n\n <div class=\"mjo-alloc-toolbar\">\n <div class=\"mjo-alloc-toolbar__left\">\n <h2 class=\"mjo-alloc-toolbar__title\">\n <i class=\"fa-solid fa-receipt\"></i> Applied to\n </h2>\n </div>\n </div>\n\n <div class=\"mjo-card mjo-card--table\">\n @if (LoadingAppliedLines) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading allocations\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (AppliedLinesError) {\n <div class=\"mjo-alert mjo-alert--error\">{{ AppliedLinesError }}</div>\n } @else if (AppliedLines.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-receipt\"\n Title=\"Not applied to any order\"\n Message=\"The full amount is held as unapplied credit.\" />\n } @else {\n <div class=\"mjo-table-responsive\">\n <table class=\"mjo-table\">\n <thead>\n <tr>\n <th>Order \u2116</th>\n <th>Order Line</th>\n <th class=\"text-right\">Amount</th>\n <th>Booked</th>\n </tr>\n </thead>\n <tbody>\n @for (line of AppliedLines; track $index) {\n <tr>\n <td>\n <button type=\"button\" class=\"mjo-link\" (click)=\"OpenAppliedOrder(line, $event)\">\n <strong>{{ line.OrderNumber }}</strong>\n </button>\n </td>\n <td>{{ line.OrderLineLabel || 'Whole order' }}</td>\n <td class=\"text-right font-mono\">{{ RollupAmount(line.Amount) }}</td>\n <td>{{ FormatAppliedBookedAt(line) }}</td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n </div>\n } @else {\n <!-- 1. Balance Status Hero Strip -->\n <div class=\"mjo-alloc-hero\" [class.is-balanced]=\"IsAllocationBalanced\" [class.is-warning]=\"!IsAllocationBalanced && UnallocatedRemainder > 0\" [class.is-error]=\"UnallocatedRemainder < 0\">\n <div class=\"mjo-alloc-hero__stats\">\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Payment Received</span>\n <span class=\"mjo-alloc-stat__val\">${{ (record.Amount || 0).toFixed(2) }}</span>\n </div>\n <div class=\"mjo-alloc-stat__op\"><i class=\"fa-solid fa-minus\"></i></div>\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Allocated</span>\n <span class=\"mjo-alloc-stat__val\">${{ TotalAllocated.toFixed(2) }}</span>\n </div>\n <div class=\"mjo-alloc-stat__op\"><i class=\"fa-solid fa-equals\"></i></div>\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Unallocated Remainder</span>\n <span class=\"mjo-alloc-stat__val\" [class.text-danger]=\"UnallocatedRemainder < 0\">\n ${{ Math.abs(UnallocatedRemainder).toFixed(2) }}\n </span>\n </div>\n </div>\n\n <div class=\"mjo-alloc-hero__message\">\n @if (IsAllocationBalanced) {\n <i class=\"fa-solid fa-circle-check text-success\"></i>\n <span>Allocations tie 100% to payment received. Ready to capture and book.</span>\n } @else if (UnallocatedRemainder > 0) {\n <i class=\"fa-solid fa-circle-info text-warning\"></i>\n <span>${{ UnallocatedRemainder.toFixed(2) }} remaining to allocate before capturing.</span>\n } @else {\n <i class=\"fa-solid fa-triangle-exclamation text-danger\"></i>\n <span>Over-allocated by ${{ Math.abs(UnallocatedRemainder).toFixed(2) }}. Please adjust amounts.</span>\n }\n </div>\n </div>\n <!-- 2. Allocation Toolbar -->\n <div class=\"mjo-alloc-toolbar\">\n <div class=\"mjo-alloc-toolbar__left\">\n <h2 class=\"mjo-alloc-toolbar__title\">\n <i class=\"fa-solid fa-receipt\"></i> Open orders\n </h2>\n @if (OpenOrders.length > 0) {\n <span class=\"mjo-badge\">{{ FilteredOpenOrders.length }} available</span>\n }\n </div>\n\n @if (!IsCaptured && OpenOrders.length > 0) {\n <div class=\"mjo-alloc-toolbar__right\">\n <div class=\"mjo-search-input-wrap\">\n <i class=\"fa-solid fa-magnifying-glass\"></i>\n <input type=\"text\" class=\"mjo-input mjo-input--sm\" [(ngModel)]=\"SearchQuery\" placeholder=\"Filter orders\u2026\" />\n </div>\n <button type=\"button\" class=\"mjo-btn mjo-btn--secondary mjo-btn--sm\" (click)=\"AutoApplyOldestFirst()\">\n <i class=\"fa-solid fa-wand-magic-sparkles\"></i> Auto-apply oldest\n </button>\n <button type=\"button\" class=\"mjo-btn mjo-btn--outline mjo-btn--sm\" (click)=\"ClearAllocations()\">\n <i class=\"fa-solid fa-eraser\"></i> Clear all\n </button>\n </div>\n }\n </div>\n\n <!-- 3. Open Orders & Order Lines Allocation Table -->\n <div class=\"mjo-card mjo-card--table\">\n @if (LoadingOpenOrders) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading open orders\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (OpenOrders.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-receipt\"\n Title=\"No unpaid orders found\"\n Message=\"There are zero open unpaid orders. Any recorded payment will be retained as unallocated credit.\" />\n } @else {\n <div class=\"mjo-table-responsive\">\n <table class=\"mjo-table\">\n <thead>\n <tr>\n <th class=\"w-8\"></th>\n @if (!hasPayer) {\n <th>Customer</th>\n }\n <th>Order \u2116</th>\n <th>Date</th>\n <th>Due</th>\n <th>Company</th>\n <th class=\"text-right\">Gross</th>\n <th class=\"text-right\">Open Balance</th>\n <th class=\"text-right w-36\">Apply Amount</th>\n <th class=\"text-right\">Leaves Balance</th>\n <th class=\"w-24\"></th>\n </tr>\n </thead>\n <tbody>\n @for (order of FilteredOpenOrders; track order.ID) {\n <tr class=\"mjo-order-row\" [class.is-expanded]=\"IsOrderExpanded(order.ID || '')\">\n <td>\n <button type=\"button\" class=\"mjo-icon-btn\" (click)=\"ToggleOrderExpanded(order.ID || '')\" title=\"Toggle line items\">\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsOrderExpanded(order.ID || '')\" [class.fa-chevron-right]=\"!IsOrderExpanded(order.ID || '')\"></i>\n </button>\n </td>\n @if (!hasPayer) {\n <td class=\"font-bold\">{{ order.BillToOrganization || order.BillToPerson || '\u2014' }}</td>\n }\n <td>\n <button type=\"button\" class=\"mjo-link\" (click)=\"OpenOrderRecord(order, $event)\">\n <strong>{{ order.OrderNumber }}</strong>\n </button>\n @if (order.Description) {\n <div class=\"mjo-subtext\">{{ order.Description }}</div>\n }\n </td>\n <td>{{ FormatOrderDate(order) }}</td>\n <td>\n @if (GetOrderDaysOverdue(order) > 0) {\n <span class=\"mjo-badge mjo-badge--error\">{{ GetOrderDaysOverdue(order) }}d overdue</span>\n } @else {\n <span>{{ FormatOrderDueDate(order) }}</span>\n }\n </td>\n <td>\n <span class=\"mjo-company-pill\">{{ order.Company || 'Default' }}</span>\n </td>\n <td class=\"text-right font-mono\">${{ (order.TotalGross || 0).toFixed(2) }}</td>\n <td class=\"text-right font-mono font-bold\">${{ (order.Balance ?? order.TotalGross ?? 0).toFixed(2) }}</td>\n <td class=\"text-right\">\n <div class=\"mjo-apply-input-wrap\" [class.is-derived]=\"HasLineAllocations(order.ID || '')\">\n <span class=\"mjo-apply-dollar\">$</span>\n <input\n type=\"number\"\n class=\"mjo-input mjo-input--sm mjo-input--num\"\n [ngModel]=\"GetOrderAllocation(order.ID || '')\"\n (ngModelChange)=\"SetOrderAllocation(order.ID || '', $event)\"\n [disabled]=\"IsCaptured || HasLineAllocations(order.ID || '')\"\n step=\"0.01\"\n min=\"0\"\n [title]=\"HasLineAllocations(order.ID || '') ? 'Order allocation is driven by line item allocations below' : 'Enter amount to allocate to order'\"\n />\n </div>\n @if (HasLineAllocations(order.ID || '')) {\n <div class=\"mjo-subtext text-info\">\n <i class=\"fa-solid fa-layer-group\"></i> Lines allocated\n </div>\n }\n </td>\n <td class=\"text-right font-mono\" [class.text-muted]=\"CalculateLeavesBalance(order) === 0\">\n {{ FormatLeavesBalance(order) }}\n @if (FormatLeavesCredit(order)) {\n <div class=\"mjo-subtext text-info\">Creates {{ FormatLeavesCredit(order) }} credit</div>\n }\n </td>\n <td class=\"text-right\">\n @if (!IsCaptured) {\n <button\n type=\"button\"\n class=\"mjo-btn mjo-btn--outline mjo-btn--sm\"\n (click)=\"FullPayOrder(order)\"\n [disabled]=\"(order.Balance ?? order.TotalGross ?? 0) <= 0\"\n >\n Pay in Full\n </button>\n }\n </td>\n </tr>\n\n <!-- EXPANDED CHILD ROW: INDIVIDUAL ORDER LINES -->\n @if (IsOrderExpanded(order.ID || '')) {\n <tr class=\"mjo-lines-row\">\n <td [attr.colspan]=\"hasPayer ? 10 : 11\" class=\"p-0\">\n <div class=\"mjo-nested-lines-pane\">\n <div class=\"mjo-nested-lines-header\">\n <i class=\"fa-solid fa-layer-group\"></i>\n <span>Order Line Items (Targeted Line Allocations)</span>\n </div>\n <table class=\"mjo-nested-table\">\n <thead>\n <tr>\n <th>#</th>\n <th>Product</th>\n <th class=\"text-right\">Unit Price</th>\n <th class=\"text-right\">Gross</th>\n <th class=\"text-right w-36\">Line Allocation</th>\n <th class=\"w-20\"></th>\n </tr>\n </thead>\n <tbody>\n @for (line of GetOrderLines(order.ID || ''); track line.ID) {\n <tr>\n <td>{{ line.LineNumber }}</td>\n <td>\n <strong>{{ line.Product || 'Line Item' }}</strong>\n </td>\n <td class=\"text-right font-mono\">${{ (line.UnitPrice || 0).toFixed(2) }}</td>\n <td class=\"text-right font-mono\">${{ (line.LineTotalGross || 0).toFixed(2) }}</td>\n <td class=\"text-right\">\n <div class=\"mjo-apply-input-wrap\">\n <span class=\"mjo-apply-dollar\">$</span>\n <input\n type=\"number\"\n class=\"mjo-input mjo-input--xs mjo-input--num\"\n [ngModel]=\"GetLineAllocation(line.ID || '')\"\n (ngModelChange)=\"SetLineAllocation(line.ID || '', $event, order.ID)\"\n [disabled]=\"IsCaptured\"\n step=\"0.01\"\n min=\"0\"\n />\n </div>\n </td>\n <td class=\"text-right\">\n @if (!IsCaptured) {\n <button type=\"button\" class=\"mjo-btn mjo-btn--outline mjo-btn--xs\" (click)=\"FullPayLine(order, line)\">\n Line Pay\n </button>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n </td>\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n }\n </div>\n }\n\n </main>\n\n </div>\n }\n\n <!-- ================================================================\n TAB 2: ACCOUNTING & GENERAL LEDGER (CAPTURED PAYMENTS)\n ================================================================ -->\n @if (ActiveTab === 'accounting') {\n <div class=\"mjo-ph-tab-body\">\n <div class=\"mjo-accounting-header\">\n <div>\n <h2><i class=\"fa-solid fa-book\"></i> General Ledger Postings</h2>\n <p class=\"text-muted\">Double-entry balanced accounting entries booked across operating and receivable accounts.</p>\n </div>\n <div class=\"mjo-view-toggle\">\n <button type=\"button\" class=\"mjo-toggle-btn\" [class.is-active]=\"AccountingView === 'summary'\" (click)=\"SetAccountingView('summary')\">\n Summary (Rolled-up)\n </button>\n <button type=\"button\" class=\"mjo-toggle-btn\" [class.is-active]=\"AccountingView === 'detail'\" (click)=\"SetAccountingView('detail')\">\n By Journal Entry\n </button>\n </div>\n </div>\n\n @if (AccountingView === 'summary') {\n @if (RollupLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Rolling up general ledger accounts\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (RollupError) {\n <div class=\"mjo-alert mjo-alert--error\">{{ RollupError }}</div>\n } @else if (RollupCards.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-book-open\"\n Title=\"No journal entries booked yet\"\n Message=\"Journal entries are booked automatically upon capturing and settling the payment.\" />\n } @else {\n <div class=\"mjo-gl-cards-grid\">\n @for (card of RollupCards; track card.CompanyID) {\n <div class=\"mjo-card mjo-card--gl\">\n <div class=\"mjo-card__header\">\n <div>\n <h3 class=\"mjo-card__title\">{{ card.Company }}</h3>\n <div class=\"mjo-subtext\">{{ card.Rows.length }} {{ card.Rows.length === 1 ? 'line' : 'lines' }}</div>\n </div>\n <span class=\"mjo-badge\" [class.mjo-badge--success]=\"CardIsBalanced(card)\" [class.mjo-badge--error]=\"!CardIsBalanced(card)\">\n {{ CardIsBalanced(card) ? 'Balanced' : 'Out of Balance' }}\n </span>\n </div>\n <div class=\"mjo-card__body p-0\">\n <table class=\"mjo-table mjo-table--compact\">\n <thead>\n <tr>\n <th>GL Account</th>\n <th>Name</th>\n <th class=\"text-right\">Debit</th>\n <th class=\"text-right\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of card.Rows; track row.Key) {\n <tr>\n <td class=\"font-mono\">{{ row.AccountCode || '\u2014' }}</td>\n <td>\n <span>{{ row.AccountName }}</span>\n </td>\n <td class=\"text-right font-mono\">{{ row.Debit ? RollupAmount(row.Debit) : '\u2014' }}</td>\n <td class=\"text-right font-mono\">{{ row.Credit ? RollupAmount(row.Credit) : '\u2014' }}</td>\n </tr>\n }\n </tbody>\n <tfoot>\n <tr>\n <th colspan=\"2\">Total</th>\n <th class=\"text-right font-mono\">${{ card.TotalDebit.toFixed(2) }}</th>\n <th class=\"text-right font-mono\">${{ card.TotalCredit.toFixed(2) }}</th>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n }\n </div>\n }\n } @else {\n @if (PaymentJournalEntryParams) {\n <!-- Sized to its rows: at the default 'auto' height the grid fills 100% of this\n auto-height tab body, which is zero, and renders blank. -->\n <mj-explorer-entity-data-grid\n [Params]=\"PaymentJournalEntryParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"false\"\n Height=\"fit-content\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n }\n }\n </div>\n }\n\n <!-- ================================================================\n TAB 3: DETAILS & NOTES\n ================================================================ -->\n @if (ActiveTab === 'details') {\n <div class=\"mjo-ph-tab-body\">\n <div class=\"mjo-form-sections-grid\">\n\n <!-- Processing & Gateway Details -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <h3 class=\"mjo-card__title\"><i class=\"fa-solid fa-gears\"></i> Processing &amp; Gateway Details</h3>\n </div>\n <div class=\"mjo-card__body mjo-form-grid-2\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentProviderID\" Type=\"textbox\" LinkType=\"Record\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentIntentID\" Type=\"textbox\" LinkType=\"Record\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentDetailID\" Type=\"textbox\" LinkType=\"Record\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ProviderChargeID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ProviderRefundID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"IdempotencyKey\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n </div>\n </div>\n\n <!-- Reversal & Notes -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <h3 class=\"mjo-card__title\"><i class=\"fa-solid fa-note-sticky\"></i> Reversal Info &amp; Notes</h3>\n </div>\n <div class=\"mjo-card__body mjo-form-grid-2\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ReversesPaymentHeaderID\" Type=\"textbox\" LinkType=\"Record\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ReversalReason\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Description\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Notes\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n </div>\n </div>\n\n <!-- Audit Metadata -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <h3 class=\"mjo-card__title\"><i class=\"fa-solid fa-clock-rotate-left\"></i> System Metadata</h3>\n </div>\n <div class=\"mjo-card__body mjo-form-grid-2\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"__mj_CreatedAt\" Type=\"textbox\" [EditMode]=\"false\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"__mj_UpdatedAt\" Type=\"textbox\" [EditMode]=\"false\" [FormContext]=\"formContext\"></mj-form-field>\n </div>\n </div>\n\n </div>\n </div>\n }\n\n <!-- ================================================================\n TAB 4: RELATED RECORDS\n ================================================================ -->\n @if (ActiveTab === 'related') {\n <div class=\"mjo-ph-tab-body\">\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersStoredValueTransactions\"\n SectionName=\"Stored Value &amp; Account Credit Transactions\"\n Icon=\"fa fa-wallet\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsOrdersStoredValueTransactions')\"\n [DefaultExpanded]=\"true\">\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Orders: Stored Value Transactions', 'RelatedPaymentID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Orders: Stored Value Transactions', 'RelatedPaymentID')\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsOrdersStoredValueTransactions', $event.totalRowCount)\">\n </mj-explorer-entity-data-grid>\n </mj-collapsible-panel>\n\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersSubscriptionEvents\"\n SectionName=\"Subscription Billing Events\"\n Icon=\"fa fa-history\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsOrdersSubscriptionEvents')\"\n [DefaultExpanded]=\"false\">\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Orders: Subscription Events', 'PaymentHeaderID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Orders: Subscription Events', 'PaymentHeaderID')\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsOrdersSubscriptionEvents', $event.totalRowCount)\">\n </mj-explorer-entity-data-grid>\n </mj-collapsible-panel>\n\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersPaymentHeaders\"\n SectionName=\"Linked Reversal &amp; Refund Payment Records\"\n Icon=\"fa fa-rotate-left\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsOrdersPaymentHeaders')\"\n [DefaultExpanded]=\"false\">\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Orders: Payment Headers', 'ReversesPaymentHeaderID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Orders: Payment Headers', 'ReversesPaymentHeaderID')\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsOrdersPaymentHeaders', $event.totalRowCount)\">\n </mj-explorer-entity-data-grid>\n </mj-collapsible-panel>\n </div>\n }\n\n</mj-record-form-container>\n}\n", styles: ["/* ============================================================================\n BizApps Orders \u2014 Custom Payment Header Form Component Styles\n Uses MemberJunction semantic tokens for dark and light theme harmony.\n ============================================================================ */\n\n:host {\n display: block;\n width: 100%;\n}\n\n/* \u2500\u2500 1. Hero Header Banner \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-ph-hero {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 12px);\n padding: var(--mj-space-4, 16px) var(--mj-space-5, 20px);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);\n margin-bottom: var(--mj-space-4, 16px);\n}\n\n.mjo-ph-hero__top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-who {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-ph-avatar {\n width: 48px;\n height: 48px;\n border-radius: var(--mj-radius-md, 8px);\n background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);\n color: #ffffff;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);\n flex-shrink: 0;\n}\n\n.mjo-ph-avatar.is-reversal {\n background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);\n box-shadow: 0 4px 10px rgba(147, 51, 234, 0.25);\n}\n\n.mjo-ph-title-row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3, 10px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-title {\n margin: 0;\n font-size: var(--mj-text-lg, 18px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n letter-spacing: -0.01em;\n}\n\n.mjo-ph-sub {\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-text-muted, #64748b);\n margin-top: 2px;\n}\n\n.mjo-ph-hero__aside {\n display: flex;\n align-items: center;\n gap: var(--mj-space-5, 20px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-money {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n padding: var(--mj-space-2, 6px) var(--mj-space-4, 14px);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 8px);\n}\n\n.mjo-ph-money > div {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n\n.mjo-ph-kicker {\n font-size: var(--mj-text-xs, 11px);\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-ph-amt {\n font-size: var(--mj-text-sm, 13px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-ph-amt.is-balanced {\n color: #16a34a;\n}\n\n.mjo-ph-amt.is-unbalanced {\n color: #d97706;\n}\n\n.mjo-ph-actions {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n/* \u2500\u2500 2. Tab Navigation \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-ph-tabs {\n margin-bottom: var(--mj-space-4, 16px);\n}\n\n/* \u2500\u2500 3. 2-Column Workbench Layout \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-ph-workbench {\n display: flex;\n gap: var(--mj-space-4, 16px);\n align-items: flex-start;\n width: 100%;\n}\n\n.mjo-ph-money-pane {\n width: 380px;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n --mj-forms-field-label-width: 105px;\n --mj-forms-field-gap: 8px;\n}\n\n.mjo-ph-fields-stack {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-ph-fields-stack mj-form-field {\n --mj-forms-field-label-width: 105px;\n --mj-forms-field-gap: 8px;\n}\n\n.mjo-ph-alloc-pane {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n}\n\n/* \u2500\u2500 4. Card Surfaces \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-card {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 10px);\n box-shadow: var(--mj-shadow-sm);\n overflow: hidden;\n}\n\n.mjo-card__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--mj-space-3, 12px) var(--mj-space-4, 16px);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-card__title {\n font-size: var(--mj-text-sm, 13px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-card__body {\n padding: var(--mj-space-4, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3, 12px);\n}\n\n.mjo-card__body.p-0 {\n padding: 0;\n}\n\n.mjo-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-label {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #94a3b8);\n}\n\n.mjo-input-money-wrap {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.mjo-currency-prefix {\n position: absolute;\n left: 14px;\n font-size: var(--mj-text-lg, 16px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-muted, #94a3b8);\n pointer-events: none;\n z-index: 2;\n}\n\n.mjo-input--money {\n padding-left: 30px !important;\n font-size: var(--mj-text-lg, 16px) !important;\n font-weight: var(--mj-font-bold, 700) !important;\n font-family: var(--mj-font-family-mono, monospace) !important;\n height: 42px !important;\n width: 100% !important;\n background: var(--mj-bg-surface-card, transparent) !important;\n color: var(--mj-text-primary, inherit) !important;\n border: 1px solid var(--mj-border-default, #334155) !important;\n border-radius: var(--mj-radius-md, 6px) !important;\n}\n\n.mjo-input--money:focus {\n border-color: var(--mj-brand-primary, #0076b6) !important;\n box-shadow: 0 0 0 2px rgba(0, 118, 182, 0.25) !important;\n}\n\n.mjo-net-calc {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 14px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n border-radius: var(--mj-radius-md, 6px);\n margin-top: 4px;\n}\n\n.mjo-net-calc__label {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #94a3b8);\n}\n\n.mjo-net-calc__val {\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #f8fafc);\n}\n\n.mjo-payer-chip {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n padding: 6px 10px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n}\n\n/* \u2500\u2500 5. Books Preview Card \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-card--books {\n border-color: rgba(0, 118, 182, 0.25);\n}\n\n\n\n/* \u2500\u2500 6. Allocation Hero Status Strip \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-alloc-hero {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 12px);\n padding: var(--mj-space-3, 12px) var(--mj-space-4, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-hero.is-balanced {\n border-color: rgba(22, 163, 74, 0.35);\n background: rgba(22, 163, 74, 0.03);\n}\n\n.mjo-alloc-hero.is-warning {\n border-color: rgba(217, 119, 6, 0.35);\n background: rgba(217, 119, 6, 0.03);\n}\n\n.mjo-alloc-hero.is-error {\n border-color: rgba(220, 38, 38, 0.35);\n background: rgba(220, 38, 38, 0.03);\n}\n\n.mjo-alloc-hero__stats {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-alloc-stat {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-alloc-stat__kicker {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-alloc-stat__val {\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-alloc-stat__op {\n font-size: 14px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-alloc-hero__message {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n padding-top: 6px;\n border-top: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n/* \u2500\u2500 7. Toolbar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-alloc-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-3, 12px);\n flex-wrap: wrap;\n}\n\n.mjo-alloc-toolbar__left {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-toolbar__title {\n margin: 0;\n font-size: var(--mj-text-sm, 14px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-toolbar__right {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-search-input-wrap {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.mjo-search-input-wrap i {\n position: absolute;\n left: 8px;\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-search-input-wrap input {\n padding-left: 24px;\n width: 160px;\n}\n\n/* \u2500\u2500 8. Orders & Allocations Table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-table-responsive {\n overflow-x: auto;\n width: 100%;\n}\n\n/* Required-field affordance: the marker sits on the label, the invalid state and hint appear\n only after a capture is attempted without the field. Say it before the server has to. */\n.mjo-required-mark {\n color: var(--mj-status-error, #dc2626);\n font-weight: var(--mj-font-bold, 700);\n}\n\n.mjo-input--invalid {\n border-color: var(--mj-status-error, #dc2626) !important;\n box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);\n}\n\n.mjo-field-hint--error {\n margin-top: 4px;\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-status-error, #dc2626);\n}\n\n.mjo-table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-xs, 12px);\n}\n\n.mjo-table th {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted, #64748b);\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n font-size: 11px;\n padding: 8px 12px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n text-align: left;\n}\n\n.mjo-table td {\n padding: 8px 12px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n vertical-align: middle;\n color: var(--mj-text-primary, #0f172a);\n}\n\n/* Headers and action buttons never wrap: \"Pay in Full\" was folding onto three lines inside a\n crushed cell while the wrapper's overflow-x sat unused. Let the table scroll instead. */\n.mjo-table th,\n.mjo-table .mjo-btn,\n.mjo-table .font-mono {\n white-space: nowrap;\n}\n\n.mjo-order-row:hover {\n background: var(--mj-bg-surface-hover, rgba(0, 0, 0, 0.02));\n}\n\n.mjo-order-row.is-expanded {\n background: rgba(0, 118, 182, 0.02);\n}\n\n.mjo-apply-input-wrap {\n position: relative;\n display: inline-flex;\n align-items: center;\n width: 100%;\n max-width: 110px;\n}\n\n.mjo-apply-dollar {\n position: absolute;\n left: 8px;\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-muted, #64748b);\n pointer-events: none;\n}\n\n.mjo-apply-input-wrap input {\n padding-left: 18px;\n}\n\n.mjo-nested-lines-pane {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border-top: 1px solid var(--mj-border-default, #e2e8f0);\n border-bottom: 2px solid var(--mj-border-default, #cbd5e1);\n padding: var(--mj-space-3, 10px) var(--mj-space-4, 16px);\n}\n\n.mjo-nested-lines-header {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-secondary, #475569);\n margin-bottom: var(--mj-space-2, 6px);\n}\n\n.mjo-nested-table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-xs, 12px);\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n overflow: hidden;\n}\n\n.mjo-nested-table th {\n background: rgba(0, 0, 0, 0.02);\n font-size: 10.5px;\n font-weight: var(--mj-font-semibold, 600);\n padding: 6px 10px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-nested-table td {\n padding: 6px 10px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n/* \u2500\u2500 9. Accounting Postings View \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-ph-tab-body {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-accounting-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-accounting-header h2 {\n margin: 0;\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-accounting-header p {\n margin: 2px 0 0 0;\n font-size: var(--mj-text-xs, 12px);\n}\n\n.mjo-view-toggle {\n display: flex;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.04));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n padding: 2px;\n}\n\n.mjo-toggle-btn {\n border: none;\n background: transparent;\n padding: 4px 10px;\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #475569);\n border-radius: var(--mj-radius-sm, 4px);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-toggle-btn.is-active {\n background: var(--mj-bg-surface-card, #ffffff);\n color: var(--mj-text-primary, #0f172a);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n\n.mjo-gl-cards-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-table--compact th, .mjo-table--compact td {\n padding: 6px 10px;\n}\n\n.mjo-table tfoot th {\n background: var(--mj-bg-surface-card);\n border-top: 2px solid var(--mj-border-default, #cbd5e1);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-bold, 700);\n}\n\n.is-intercompany {\n background: rgba(0, 118, 182, 0.04);\n}\n\n.mjo-ic-tag {\n display: inline-block;\n font-size: 10px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n color: #0284c7;\n background: rgba(2, 132, 199, 0.12);\n padding: 1px 5px;\n border-radius: 3px;\n margin-left: 6px;\n}\n\n/* \u2500\u2500 10. Common UI Elements & Chips \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--mj-space-2, 6px);\n height: 34px;\n padding: 0 14px;\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n border-radius: var(--mj-radius-md, 6px);\n cursor: pointer;\n border: 1px solid transparent;\n transition: all 0.15s ease;\n}\n\n.mjo-btn--primary {\n background: var(--mj-brand-primary, #0076b6);\n color: #ffffff;\n}\n\n.mjo-btn--primary:hover:not(:disabled) {\n background: #006094;\n}\n\n.mjo-btn--secondary {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-color: var(--mj-border-default, #cbd5e1);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn--secondary:hover:not(:disabled) {\n background: rgba(0, 0, 0, 0.08);\n}\n\n.mjo-btn--outline {\n background: transparent;\n border-color: var(--mj-border-default, #cbd5e1);\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-btn--outline:hover:not(:disabled) {\n border-color: var(--mj-brand-primary, #0076b6);\n color: var(--mj-brand-primary, #0076b6);\n}\n\n.mjo-btn--sm {\n height: 30px;\n padding: 0 10px;\n font-size: 11.5px;\n}\n\n.mjo-btn--xs {\n height: 24px;\n padding: 0 8px;\n font-size: 11px;\n}\n\n.mjo-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mjo-icon-btn {\n border: none;\n background: transparent;\n color: var(--mj-text-muted, #64748b);\n cursor: pointer;\n padding: 4px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.mjo-icon-btn:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-link {\n border: none;\n background: transparent;\n color: var(--mj-brand-primary, #0076b6);\n cursor: pointer;\n padding: 0;\n font-size: inherit;\n text-align: left;\n}\n\n.mjo-link:hover {\n text-decoration: underline;\n}\n\n.mjo-status-chip {\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n padding: 2px 8px;\n border-radius: 4px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-status-chip--draft {\n background: rgba(100, 116, 139, 0.12);\n color: #475569;\n}\n\n.mjo-status-chip--active {\n background: rgba(22, 163, 74, 0.12);\n color: #16a34a;\n}\n\n.mjo-status-chip--purple {\n background: rgba(147, 51, 234, 0.12);\n color: #9333ea;\n}\n\n.mjo-status-chip--error {\n background: rgba(220, 38, 38, 0.12);\n color: #dc2626;\n}\n\n.mjo-status-chip--warning {\n background: rgba(217, 119, 6, 0.12);\n color: #d97706;\n}\n\n.mjo-company-pill {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #475569);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.04));\n padding: 2px 6px;\n border-radius: 4px;\n}\n\n.mjo-sku-chip {\n font-family: var(--mj-font-family-mono, monospace);\n font-size: 10px;\n color: var(--mj-text-muted, #64748b);\n background: rgba(0, 0, 0, 0.04);\n padding: 1px 4px;\n border-radius: 3px;\n margin-left: 4px;\n}\n\n.mjo-badge {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n padding: 2px 6px;\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-badge--error {\n background: rgba(220, 38, 38, 0.12);\n color: #dc2626;\n}\n\n.mjo-badge--success {\n background: rgba(22, 163, 74, 0.12);\n color: #16a34a;\n}\n\n.mjo-loading-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--mj-space-6, 32px) var(--mj-space-4, 16px);\n text-align: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alert {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3, 10px);\n padding: 10px 14px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: var(--mj-text-xs, 12px);\n margin-bottom: var(--mj-space-3, 12px);\n}\n\n.mjo-alert--error {\n background: rgba(220, 38, 38, 0.08);\n border: 1px solid rgba(220, 38, 38, 0.25);\n color: #dc2626;\n}\n\n.mjo-subtext {\n font-size: 11px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.text-right { text-align: right; }\n.font-mono { font-family: var(--mj-font-family-mono, monospace); }\n.font-bold { font-weight: var(--mj-font-bold, 700); }\n.text-muted { color: var(--mj-text-muted, #64748b); }\n.text-success { color: #16a34a; }\n.text-warning { color: #d97706; }\n.text-danger { color: #dc2626; }\n.w-8 { width: 32px; }\n.w-16 { width: 64px; }\n.w-20 { width: 80px; }\n.w-24 { width: 96px; }\n.w-36 { width: 144px; }\n.flex { display: flex; }\n.gap-2 { gap: 8px; }\n.col-span-full { grid-column: 1 / -1; }\n.text-info { color: #0284c7; }\n\n/* \u2500\u2500 12. Instrument Box (Check/Card/ACH/Wire) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-instrument-box {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 8px);\n padding: var(--mj-space-3, 12px);\n margin: var(--mj-space-2, 6px) 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3, 10px);\n}\n\n.mjo-instrument-box__title {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 6px;\n padding-bottom: 6px;\n border-bottom: 1px dashed var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-instrument-box__grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-instrument-box .mjo-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-instrument-box .mjo-label {\n font-size: 11px;\n font-weight: var(--mj-font-medium, 500);\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-apply-input-wrap.is-derived input {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n color: var(--mj-text-secondary, #475569);\n cursor: not-allowed;\n border-style: dashed;\n}\n"] }]
2574
+ args: [{ standalone: false, selector: 'bizapps-payment-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 <!-- ================================================================\n HERO IDENTITY HEADER CARD & SUMMARY METRIC STRIP\n ================================================================ -->\n <div class=\"mjo-ph-hero\">\n <div class=\"mjo-ph-hero__top\">\n <div class=\"mjo-ph-who\">\n <div class=\"mjo-ph-avatar\" [class.is-reversal]=\"IsReversal\">\n <i [class]=\"PaymentAvatarIcon\"></i>\n </div>\n <div>\n <div class=\"mjo-ph-title-row\">\n <h1 class=\"mjo-ph-title\">\n {{ record.PaymentNumber || 'New payment' }} \u00B7 {{ FormattedGrossAmount }}\n </h1>\n <span [class]=\"StatusBadgeClass\">{{ record.Status || 'Draft' }}</span>\n @if (IsReversal) {\n <span class=\"mjo-status-chip mjo-status-chip--purple\">\n <i class=\"fa-solid fa-rotate-left\"></i> Reversal\n </span>\n }\n </div>\n <div class=\"mjo-ph-sub\">{{ HeaderSubtitle }}</div>\n </div>\n </div>\n\n <div class=\"mjo-ph-hero__aside\">\n <div class=\"mjo-ph-money\">\n <div>\n <span class=\"mjo-ph-kicker\">Gross</span>\n <span class=\"mjo-ph-amt\">{{ FormattedGrossAmount }}</span>\n </div>\n <div>\n <span class=\"mjo-ph-kicker\">Fee</span>\n <span class=\"mjo-ph-amt\">{{ FormattedFee }}</span>\n </div>\n <div>\n <span class=\"mjo-ph-kicker\">Net</span>\n <span class=\"mjo-ph-amt\">{{ FormattedNetAmount }}</span>\n </div>\n <div>\n <span class=\"mjo-ph-kicker\">Allocations</span>\n <span class=\"mjo-ph-amt\" [class.is-balanced]=\"IsAllocationBalanced\" [class.is-unbalanced]=\"!IsAllocationBalanced && TotalAllocated > 0\">\n @if (IsCaptured) {\n {{ AppliedCount }} applied\n } @else {\n ${{ TotalAllocated.toFixed(2) }}\n }\n </span>\n </div>\n </div>\n\n @if (!IsCaptured) {\n <div class=\"mjo-ph-actions\">\n <button type=\"button\" class=\"mjo-btn mjo-btn--secondary\" (click)=\"SaveAsDraft()\" [disabled]=\"Saving || Capturing\">\n <i class=\"fa-solid fa-floppy-disk\"></i> {{ Saving ? 'Saving\u2026' : 'Save draft' }}\n </button>\n <button type=\"button\" class=\"mjo-btn mjo-btn--primary\" (click)=\"CapturePayment()\" [disabled]=\"Capturing || Saving || !IsAllocationBalanced || !record.Amount || !hasPayer\">\n <i class=\"fa-solid fa-check-double\"></i> {{ Capturing ? 'Capturing\u2026' : 'Capture & Book' }}\n </button>\n </div>\n }\n </div>\n </div>\n </div>\n\n <!-- TAB NAVIGATION STRIP -->\n <div class=\"mjo-ph-tabs\">\n <mj-tab-nav [Tabs]=\"ContextTabs\" [ActiveKey]=\"ActiveTab ?? ''\" (TabChange)=\"SelectTab($event)\"></mj-tab-nav>\n </div>\n\n @if (CaptureError) {\n <div class=\"mjo-alert mjo-alert--error\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <div>\n <strong>Failed to capture payment:</strong> {{ CaptureError }}\n </div>\n </div>\n }\n\n <!-- ================================================================\n TAB 1: PAYMENT & ALLOCATION WORKBENCH\n ================================================================ -->\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-ph-workbench\">\n\n <!-- LEFT COLUMN: THE MONEY & PAYER (380px) -->\n <aside class=\"mjo-ph-money-pane\">\n\n <!-- 1. Payer Card -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <div class=\"mjo-card__title\">\n <i class=\"fa-solid fa-user-tag\"></i> Who is paying?\n </div>\n </div>\n <div class=\"mjo-card__body\">\n <div class=\"mjo-ph-fields-stack\">\n <bizapps-party-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"BillToOrganizationID\"\n Kind=\"Organization\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event); OnPayerSelectionChanged()\">\n </bizapps-party-field>\n <bizapps-party-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"BillToPersonID\"\n Kind=\"Person\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event); OnPayerSelectionChanged()\">\n </bizapps-party-field>\n </div>\n @if (hasPayer) {\n <div class=\"mjo-payer-chip\">\n <i class=\"fa-solid fa-circle-check text-success\"></i>\n <span>{{ PayerDisplayName }}</span>\n @if (OpenOrders.length > 0) {\n <span class=\"mjo-badge\">{{ OpenOrders.length }} unpaid orders</span>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- 2. Payment Details Card -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <div class=\"mjo-card__title\">\n <i class=\"fa-solid fa-money-check-dollar\"></i> Payment details\n </div>\n </div>\n <div class=\"mjo-card__body\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Amount received ($)</label>\n <div class=\"mjo-input-money-wrap\">\n <span class=\"mjo-currency-prefix\">$</span>\n <input\n type=\"number\"\n class=\"mj-input is-num mjo-input--money\"\n [ngModel]=\"record.Amount\"\n (ngModelChange)=\"OnAmountChanged($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"0.00\"\n step=\"0.01\"\n />\n </div>\n </div>\n\n <div class=\"mjo-ph-fields-stack\">\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Payment Date\"\n FieldName=\"PaymentDate\"\n Type=\"datepicker\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n <!-- bc-aidp-next-golive#448: finance corrects a captured payment's date; its entries move with it. -->\n @if (!ComposeMode) {\n <mjo-change-payment-date [Payment]=\"record\" (Changed)=\"OnPaymentDateChanged()\"></mjo-change-payment-date>\n }\n\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Payment Type <span class=\"mjo-required-mark\" title=\"Required to capture and book\">*</span></label>\n @if (ComposeMode && PaymentTypes.length > 0) {\n <select class=\"mj-input\" [class.mjo-input--invalid]=\"PaymentTypeMissing\" [ngModel]=\"record.PaymentTypeID\" (ngModelChange)=\"OnPaymentTypeSelected($event)\">\n <option [ngValue]=\"null\">Select payment type\u2026</option>\n @for (pt of PaymentTypes; track pt.ID) {\n <option [value]=\"pt.ID\">{{ pt.Name }}</option>\n }\n </select>\n @if (PaymentTypeMissing) {\n <div class=\"mjo-field-hint mjo-field-hint--error\">Required before Capture &amp; Book.</div>\n }\n } @else {\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"false\"\n FieldName=\"PaymentTypeID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n }\n </div>\n\n <!-- TENDER-SPECIFIC INSTRUMENT CAPTURE (PaymentDetail) -->\n @if (InstrumentPanel === 'check') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-money-check\"></i> Check details\n </div>\n <div class=\"mjo-instrument-box__grid\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Check \u2116 <span class=\"text-danger\">*</span></label>\n <input type=\"text\" class=\"mj-input font-mono\" [(ngModel)]=\"ReferenceNumber\" [disabled]=\"!ComposeMode\" placeholder=\"e.g. 10428\" autocomplete=\"off\" />\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Check Date</label>\n <input type=\"date\" class=\"mj-input\" [(ngModel)]=\"InstrumentDateInput\" [disabled]=\"!ComposeMode\" />\n </div>\n <div class=\"mjo-field col-span-full\">\n <label class=\"mjo-label\">Bank Name</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"BankName\" [disabled]=\"!ComposeMode\" placeholder=\"e.g. Chase, Bank of America\" />\n </div>\n </div>\n </div>\n } @else if (InstrumentPanel === 'ach') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-building-columns\"></i> Bank transfer / ACH details\n </div>\n <div class=\"mjo-instrument-box__grid\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Bank Name</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"BankName\" [disabled]=\"!ComposeMode\" placeholder=\"e.g. Wells Fargo\" />\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Account Type</label>\n <select class=\"mj-input\" [(ngModel)]=\"BankAccountType\" [disabled]=\"!ComposeMode\">\n <option [ngValue]=\"null\">Select Type</option>\n <option value=\"Checking\">Checking</option>\n <option value=\"Savings\">Savings</option>\n </select>\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Routing Last 4</label>\n <input type=\"text\" class=\"mj-input font-mono\" maxlength=\"4\" [(ngModel)]=\"RoutingLast4\" [disabled]=\"!ComposeMode\" placeholder=\"1234\" />\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Account Last 4</label>\n <input type=\"text\" class=\"mj-input font-mono\" maxlength=\"4\" [(ngModel)]=\"AccountLast4\" [disabled]=\"!ComposeMode\" placeholder=\"5678\" />\n </div>\n <div class=\"mjo-field col-span-full\">\n <label class=\"mjo-label\">Trace / Reference \u2116</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"ReferenceNumber\" [disabled]=\"!ComposeMode\" placeholder=\"Trace #\" />\n </div>\n </div>\n </div>\n } @else if (InstrumentPanel === 'giftcard') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-gift\"></i> Gift card details\n </div>\n <div class=\"mjo-instrument-box__grid\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Card Number (last 4)</label>\n <input type=\"text\" class=\"mj-input font-mono\" maxlength=\"4\" [(ngModel)]=\"CardLast4\" [disabled]=\"!ComposeMode\" placeholder=\"1234\" />\n </div>\n </div>\n </div>\n } @else if (InstrumentPanel === 'card') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-credit-card\"></i> Card instrument details\n </div>\n <div class=\"mjo-instrument-box__grid\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Card Brand</label>\n <select class=\"mj-input\" [(ngModel)]=\"CardBrand\" [disabled]=\"!ComposeMode\">\n <option value=\"\">Select Brand</option>\n <option value=\"Visa\">Visa</option>\n <option value=\"MasterCard\">MasterCard</option>\n <option value=\"American Express\">American Express</option>\n <option value=\"Discover\">Discover</option>\n <option value=\"Other\">Other</option>\n </select>\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Last 4 Digits</label>\n <input type=\"text\" class=\"mj-input font-mono\" maxlength=\"4\" [(ngModel)]=\"CardLast4\" [disabled]=\"!ComposeMode\" placeholder=\"4242\" />\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Expiry (MM / YYYY)</label>\n <div class=\"flex gap-2\">\n <input type=\"number\" min=\"1\" max=\"12\" class=\"mj-input font-mono w-16\" [(ngModel)]=\"CardExpMonth\" [disabled]=\"!ComposeMode\" placeholder=\"MM\" />\n <input type=\"number\" min=\"2025\" max=\"2045\" class=\"mj-input font-mono w-24\" [(ngModel)]=\"CardExpYear\" [disabled]=\"!ComposeMode\" placeholder=\"YYYY\" />\n </div>\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Cardholder Name</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"CardHolderName\" [disabled]=\"!ComposeMode\" placeholder=\"Name on card\" />\n </div>\n <div class=\"mjo-field col-span-full\">\n <label class=\"mjo-label\">Auth / Approval \u2116</label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"ReferenceNumber\" [disabled]=\"!ComposeMode\" placeholder=\"e.g. AUTH-98210\" />\n </div>\n </div>\n </div>\n } @else if (InstrumentPanel === 'reference') {\n <div class=\"mjo-instrument-box\">\n <div class=\"mjo-instrument-box__title\">\n <i class=\"fa-solid fa-receipt\"></i> Reference details\n </div>\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Reference / Wire Confirmation \u2116 <span class=\"text-danger\">*</span></label>\n <input type=\"text\" class=\"mj-input\" [(ngModel)]=\"ReferenceNumber\" [disabled]=\"!ComposeMode\" placeholder=\"Confirmation or transfer id\" />\n </div>\n </div>\n }\n\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Receiving Company\"\n FieldName=\"ReceivingCompanyID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n @if (ReceivingCompanyMissing && !record.ReceivingCompanyID) {\n <div class=\"mjo-field-hint mjo-field-hint--error\">Required before Capture &amp; Book.</div>\n }\n\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Processing Fee\"\n FieldName=\"ProcessingFeeAmount\"\n Type=\"number\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n </div>\n\n <div class=\"mjo-net-calc\">\n <span class=\"mjo-net-calc__label\">Net Settlement Amount</span>\n <span class=\"mjo-net-calc__val\">{{ FormattedNetAmount }}</span>\n </div>\n </div>\n </div>\n\n </aside>\n\n <!-- RIGHT COLUMN: ALLOCATION WORKBENCH -->\n <main class=\"mjo-ph-alloc-pane\">\n\n @if (IsCaptured) {\n <!-- Captured: the allocations are booked, so show what the payment was applied to (golive #342) -->\n <div class=\"mjo-alloc-hero\" [class.is-balanced]=\"UnappliedAmount === 0\">\n <div class=\"mjo-alloc-hero__stats\">\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Received</span>\n <span class=\"mjo-alloc-stat__val\">{{ FormattedGrossAmount }}</span>\n </div>\n <div class=\"mjo-alloc-stat__op\"><i class=\"fa-solid fa-minus\"></i></div>\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Applied</span>\n <span class=\"mjo-alloc-stat__val\">{{ RollupAmount(AppliedTotal) }}</span>\n </div>\n @if (UnappliedAmount !== 0) {\n <div class=\"mjo-alloc-stat__op\"><i class=\"fa-solid fa-equals\"></i></div>\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Unapplied</span>\n <span class=\"mjo-alloc-stat__val\">{{ RollupAmount(UnappliedAmount) }}</span>\n </div>\n }\n </div>\n </div>\n\n <div class=\"mjo-alloc-toolbar\">\n <div class=\"mjo-alloc-toolbar__left\">\n <h2 class=\"mjo-alloc-toolbar__title\">\n <i class=\"fa-solid fa-receipt\"></i> Applied to\n </h2>\n </div>\n </div>\n\n <div class=\"mjo-card mjo-card--table\">\n @if (LoadingAppliedLines) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading allocations\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (AppliedLinesError) {\n <div class=\"mjo-alert mjo-alert--error\">{{ AppliedLinesError }}</div>\n } @else if (AppliedLines.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-receipt\"\n Title=\"Not applied to any order\"\n Message=\"The full amount is held as unapplied credit.\" />\n } @else {\n <div class=\"mjo-table-responsive\">\n <table class=\"mjo-table\">\n <thead>\n <tr>\n <th>Order \u2116</th>\n <th>Order Line</th>\n <th class=\"text-right\">Amount</th>\n <th>Booked</th>\n </tr>\n </thead>\n <tbody>\n @for (line of AppliedLines; track $index) {\n <tr>\n <td>\n <button type=\"button\" class=\"mjo-link\" (click)=\"OpenAppliedOrder(line, $event)\">\n <strong>{{ line.OrderNumber }}</strong>\n </button>\n </td>\n <td>{{ line.OrderLineLabel || 'Whole order' }}</td>\n <td class=\"text-right font-mono\">{{ RollupAmount(line.Amount) }}</td>\n <td>{{ FormatAppliedBookedAt(line) }}</td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n </div>\n } @else {\n <!-- 1. Balance Status Hero Strip -->\n <div class=\"mjo-alloc-hero\" [class.is-balanced]=\"IsAllocationBalanced\" [class.is-warning]=\"!IsAllocationBalanced && UnallocatedRemainder > 0\" [class.is-error]=\"UnallocatedRemainder < 0\">\n <div class=\"mjo-alloc-hero__stats\">\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Payment Received</span>\n <span class=\"mjo-alloc-stat__val\">${{ (record.Amount || 0).toFixed(2) }}</span>\n </div>\n <div class=\"mjo-alloc-stat__op\"><i class=\"fa-solid fa-minus\"></i></div>\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Allocated</span>\n <span class=\"mjo-alloc-stat__val\">${{ TotalAllocated.toFixed(2) }}</span>\n </div>\n <div class=\"mjo-alloc-stat__op\"><i class=\"fa-solid fa-equals\"></i></div>\n <div class=\"mjo-alloc-stat\">\n <span class=\"mjo-alloc-stat__kicker\">Unallocated Remainder</span>\n <span class=\"mjo-alloc-stat__val\" [class.text-danger]=\"UnallocatedRemainder < 0\">\n ${{ Math.abs(UnallocatedRemainder).toFixed(2) }}\n </span>\n </div>\n </div>\n\n <div class=\"mjo-alloc-hero__message\">\n @if (IsAllocationBalanced) {\n <i class=\"fa-solid fa-circle-check text-success\"></i>\n <span>Allocations tie 100% to payment received. Ready to capture and book.</span>\n } @else if (UnallocatedRemainder > 0) {\n <i class=\"fa-solid fa-circle-info text-warning\"></i>\n <span>${{ UnallocatedRemainder.toFixed(2) }} remaining to allocate before capturing.</span>\n } @else {\n <i class=\"fa-solid fa-triangle-exclamation text-danger\"></i>\n <span>Over-allocated by ${{ Math.abs(UnallocatedRemainder).toFixed(2) }}. Please adjust amounts.</span>\n }\n </div>\n </div>\n <!-- 2. Allocation Toolbar -->\n <div class=\"mjo-alloc-toolbar\">\n <div class=\"mjo-alloc-toolbar__left\">\n <h2 class=\"mjo-alloc-toolbar__title\">\n <i class=\"fa-solid fa-receipt\"></i> Open orders\n </h2>\n @if (OpenOrders.length > 0) {\n <span class=\"mjo-badge\">{{ FilteredOpenOrders.length }} available</span>\n }\n </div>\n\n @if (!IsCaptured && OpenOrders.length > 0) {\n <div class=\"mjo-alloc-toolbar__right\">\n <div class=\"mjo-search-input-wrap\">\n <i class=\"fa-solid fa-magnifying-glass\"></i>\n <input type=\"text\" class=\"mjo-input mjo-input--sm\" [(ngModel)]=\"SearchQuery\" placeholder=\"Filter orders\u2026\" />\n </div>\n <button type=\"button\" class=\"mjo-btn mjo-btn--secondary mjo-btn--sm\" (click)=\"AutoApplyOldestFirst()\">\n <i class=\"fa-solid fa-wand-magic-sparkles\"></i> Auto-apply oldest\n </button>\n <button type=\"button\" class=\"mjo-btn mjo-btn--outline mjo-btn--sm\" (click)=\"ClearAllocations()\">\n <i class=\"fa-solid fa-eraser\"></i> Clear all\n </button>\n </div>\n }\n </div>\n\n <!-- 3. Open Orders & Order Lines Allocation Table -->\n <div class=\"mjo-card mjo-card--table\">\n @if (LoadingOpenOrders) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading open orders\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (OpenOrders.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-receipt\"\n Title=\"No unpaid orders found\"\n Message=\"There are zero open unpaid orders. Any recorded payment will be retained as unallocated credit.\" />\n } @else {\n <div class=\"mjo-table-responsive\">\n <table class=\"mjo-table\">\n <thead>\n <tr>\n <th class=\"w-8\"></th>\n @if (!hasPayer) {\n <th>Customer</th>\n }\n <th>Order \u2116</th>\n <th>Date</th>\n <th>Due</th>\n <th>Company</th>\n <th class=\"text-right\">Gross</th>\n <th class=\"text-right\">Open Balance</th>\n <th class=\"text-right w-36\">Apply Amount</th>\n <th class=\"text-right\">Leaves Balance</th>\n <th class=\"w-24\"></th>\n </tr>\n </thead>\n <tbody>\n @for (order of FilteredOpenOrders; track order.ID) {\n <tr class=\"mjo-order-row\" [class.is-expanded]=\"IsOrderExpanded(order.ID || '')\">\n <td>\n <button type=\"button\" class=\"mjo-icon-btn\" (click)=\"ToggleOrderExpanded(order.ID || '')\" title=\"Toggle line items\">\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsOrderExpanded(order.ID || '')\" [class.fa-chevron-right]=\"!IsOrderExpanded(order.ID || '')\"></i>\n </button>\n </td>\n @if (!hasPayer) {\n <td class=\"font-bold\">{{ order.BillToOrganization || order.BillToPerson || '\u2014' }}</td>\n }\n <td>\n <button type=\"button\" class=\"mjo-link\" (click)=\"OpenOrderRecord(order, $event)\">\n <strong>{{ order.OrderNumber }}</strong>\n </button>\n @if (order.Description) {\n <div class=\"mjo-subtext\">{{ order.Description }}</div>\n }\n </td>\n <td>{{ FormatOrderDate(order) }}</td>\n <td>\n @if (GetOrderDaysOverdue(order) > 0) {\n <span class=\"mjo-badge mjo-badge--error\">{{ GetOrderDaysOverdue(order) }}d overdue</span>\n } @else {\n <span>{{ FormatOrderDueDate(order) }}</span>\n }\n </td>\n <td>\n <span class=\"mjo-company-pill\">{{ order.Company || 'Default' }}</span>\n </td>\n <td class=\"text-right font-mono\">${{ (order.TotalGross || 0).toFixed(2) }}</td>\n <td class=\"text-right font-mono font-bold\">${{ (order.Balance ?? order.TotalGross ?? 0).toFixed(2) }}</td>\n <td class=\"text-right\">\n <div class=\"mjo-apply-input-wrap\" [class.is-derived]=\"HasLineAllocations(order.ID || '')\">\n <span class=\"mjo-apply-dollar\">$</span>\n <input\n type=\"number\"\n class=\"mjo-input mjo-input--sm mjo-input--num\"\n [ngModel]=\"GetOrderAllocation(order.ID || '')\"\n (ngModelChange)=\"SetOrderAllocation(order.ID || '', $event)\"\n [disabled]=\"IsCaptured || HasLineAllocations(order.ID || '')\"\n step=\"0.01\"\n min=\"0\"\n [title]=\"HasLineAllocations(order.ID || '') ? 'Order allocation is driven by line item allocations below' : 'Enter amount to allocate to order'\"\n />\n </div>\n @if (HasLineAllocations(order.ID || '')) {\n <div class=\"mjo-subtext text-info\">\n <i class=\"fa-solid fa-layer-group\"></i> Lines allocated\n </div>\n }\n </td>\n <td class=\"text-right font-mono\" [class.text-muted]=\"CalculateLeavesBalance(order) === 0\">\n {{ FormatLeavesBalance(order) }}\n @if (FormatLeavesCredit(order)) {\n <div class=\"mjo-subtext text-info\">Creates {{ FormatLeavesCredit(order) }} credit</div>\n }\n </td>\n <td class=\"text-right\">\n @if (!IsCaptured) {\n <button\n type=\"button\"\n class=\"mjo-btn mjo-btn--outline mjo-btn--sm\"\n (click)=\"FullPayOrder(order)\"\n [disabled]=\"(order.Balance ?? order.TotalGross ?? 0) <= 0\"\n >\n Pay in Full\n </button>\n }\n </td>\n </tr>\n\n <!-- EXPANDED CHILD ROW: INDIVIDUAL ORDER LINES -->\n @if (IsOrderExpanded(order.ID || '')) {\n <tr class=\"mjo-lines-row\">\n <td [attr.colspan]=\"hasPayer ? 10 : 11\" class=\"p-0\">\n <div class=\"mjo-nested-lines-pane\">\n <div class=\"mjo-nested-lines-header\">\n <i class=\"fa-solid fa-layer-group\"></i>\n <span>Order Line Items (Targeted Line Allocations)</span>\n </div>\n <table class=\"mjo-nested-table\">\n <thead>\n <tr>\n <th>#</th>\n <th>Product</th>\n <th class=\"text-right\">Unit Price</th>\n <th class=\"text-right\">Gross</th>\n <th class=\"text-right w-36\">Line Allocation</th>\n <th class=\"w-20\"></th>\n </tr>\n </thead>\n <tbody>\n @for (line of GetOrderLines(order.ID || ''); track line.ID) {\n <tr>\n <td>{{ line.LineNumber }}</td>\n <td>\n <strong>{{ line.Product || 'Line Item' }}</strong>\n </td>\n <td class=\"text-right font-mono\">${{ (line.UnitPrice || 0).toFixed(2) }}</td>\n <td class=\"text-right font-mono\">${{ (line.LineTotalGross || 0).toFixed(2) }}</td>\n <td class=\"text-right\">\n <div class=\"mjo-apply-input-wrap\">\n <span class=\"mjo-apply-dollar\">$</span>\n <input\n type=\"number\"\n class=\"mjo-input mjo-input--xs mjo-input--num\"\n [ngModel]=\"GetLineAllocation(line.ID || '')\"\n (ngModelChange)=\"SetLineAllocation(line.ID || '', $event, order.ID)\"\n [disabled]=\"IsCaptured\"\n step=\"0.01\"\n min=\"0\"\n />\n </div>\n </td>\n <td class=\"text-right\">\n @if (!IsCaptured) {\n <button type=\"button\" class=\"mjo-btn mjo-btn--outline mjo-btn--xs\" (click)=\"FullPayLine(order, line)\">\n Line Pay\n </button>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n </td>\n </tr>\n }\n }\n </tbody>\n </table>\n </div>\n }\n </div>\n }\n\n </main>\n\n </div>\n }\n\n <!-- ================================================================\n TAB 2: ACCOUNTING & GENERAL LEDGER (CAPTURED PAYMENTS)\n ================================================================ -->\n @if (ActiveTab === 'accounting') {\n <div class=\"mjo-ph-tab-body\">\n <div class=\"mjo-accounting-header\">\n <div>\n <h2><i class=\"fa-solid fa-book\"></i> General Ledger Postings</h2>\n <p class=\"text-muted\">Double-entry balanced accounting entries booked across operating and receivable accounts.</p>\n </div>\n <div class=\"mjo-view-toggle\">\n <button type=\"button\" class=\"mjo-toggle-btn\" [class.is-active]=\"AccountingView === 'summary'\" (click)=\"SetAccountingView('summary')\">\n Summary (Rolled-up)\n </button>\n <button type=\"button\" class=\"mjo-toggle-btn\" [class.is-active]=\"AccountingView === 'detail'\" (click)=\"SetAccountingView('detail')\">\n By Journal Entry\n </button>\n </div>\n </div>\n\n @if (AccountingView === 'summary') {\n @if (RollupLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Rolling up general ledger accounts\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (RollupError) {\n <div class=\"mjo-alert mjo-alert--error\">{{ RollupError }}</div>\n } @else if (RollupCards.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-book-open\"\n Title=\"No journal entries booked yet\"\n Message=\"Journal entries are booked automatically upon capturing and settling the payment.\" />\n } @else {\n <div class=\"mjo-gl-cards-grid\">\n @for (card of RollupCards; track card.CompanyID) {\n <div class=\"mjo-card mjo-card--gl\">\n <div class=\"mjo-card__header\">\n <div>\n <h3 class=\"mjo-card__title\">{{ card.Company }}</h3>\n <div class=\"mjo-subtext\">{{ card.Rows.length }} {{ card.Rows.length === 1 ? 'line' : 'lines' }}</div>\n </div>\n <span class=\"mjo-badge\" [class.mjo-badge--success]=\"CardIsBalanced(card)\" [class.mjo-badge--error]=\"!CardIsBalanced(card)\">\n {{ CardIsBalanced(card) ? 'Balanced' : 'Out of Balance' }}\n </span>\n </div>\n <div class=\"mjo-card__body p-0\">\n <table class=\"mjo-table mjo-table--compact\">\n <thead>\n <tr>\n <th>GL Account</th>\n <th>Name</th>\n <th class=\"text-right\">Debit</th>\n <th class=\"text-right\">Credit</th>\n </tr>\n </thead>\n <tbody>\n @for (row of card.Rows; track row.Key) {\n <tr>\n <td class=\"font-mono\">{{ row.AccountCode || '\u2014' }}</td>\n <td>\n <span>{{ row.AccountName }}</span>\n </td>\n <td class=\"text-right font-mono\">{{ row.Debit ? RollupAmount(row.Debit) : '\u2014' }}</td>\n <td class=\"text-right font-mono\">{{ row.Credit ? RollupAmount(row.Credit) : '\u2014' }}</td>\n </tr>\n }\n </tbody>\n <tfoot>\n <tr>\n <th colspan=\"2\">Total</th>\n <th class=\"text-right font-mono\">${{ card.TotalDebit.toFixed(2) }}</th>\n <th class=\"text-right font-mono\">${{ card.TotalCredit.toFixed(2) }}</th>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n }\n </div>\n }\n } @else {\n @if (PaymentJournalEntryParams) {\n <!-- Sized to its rows: at the default 'auto' height the grid fills 100% of this\n auto-height tab body, which is zero, and renders blank. -->\n <mj-explorer-entity-data-grid\n [Params]=\"PaymentJournalEntryParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"false\"\n Height=\"fit-content\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-explorer-entity-data-grid>\n }\n }\n </div>\n }\n\n <!-- ================================================================\n TAB 3: DETAILS & NOTES\n ================================================================ -->\n @if (ActiveTab === 'details') {\n <div class=\"mjo-ph-tab-body\">\n <div class=\"mjo-form-sections-grid\">\n\n <!-- Processing & Gateway Details -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <h3 class=\"mjo-card__title\"><i class=\"fa-solid fa-gears\"></i> Processing &amp; Gateway Details</h3>\n </div>\n <div class=\"mjo-card__body mjo-form-grid-2\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentProviderID\" Type=\"textbox\" LinkType=\"Record\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentIntentID\" Type=\"textbox\" LinkType=\"Record\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"PaymentDetailID\" Type=\"textbox\" LinkType=\"Record\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ProviderChargeID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ProviderRefundID\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"IdempotencyKey\" Type=\"textbox\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n </div>\n </div>\n\n <!-- Reversal & Notes -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <h3 class=\"mjo-card__title\"><i class=\"fa-solid fa-note-sticky\"></i> Reversal Info &amp; Notes</h3>\n </div>\n <div class=\"mjo-card__body mjo-form-grid-2\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ReversesPaymentHeaderID\" Type=\"textbox\" LinkType=\"Record\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\" (Navigate)=\"OnFormNavigate($event)\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"ReversalReason\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Description\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"Notes\" Type=\"textarea\" [EditMode]=\"EditMode\" [FormContext]=\"formContext\"></mj-form-field>\n </div>\n </div>\n\n <!-- Audit Metadata -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <h3 class=\"mjo-card__title\"><i class=\"fa-solid fa-clock-rotate-left\"></i> System Metadata</h3>\n </div>\n <div class=\"mjo-card__body mjo-form-grid-2\">\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"__mj_CreatedAt\" Type=\"textbox\" [EditMode]=\"false\" [FormContext]=\"formContext\"></mj-form-field>\n <mj-form-field [Record]=\"record\" [ShowLabel]=\"true\" FieldName=\"__mj_UpdatedAt\" Type=\"textbox\" [EditMode]=\"false\" [FormContext]=\"formContext\"></mj-form-field>\n </div>\n </div>\n\n </div>\n </div>\n }\n\n <!-- ================================================================\n TAB 4: RELATED RECORDS\n ================================================================ -->\n @if (ActiveTab === 'related') {\n <div class=\"mjo-ph-tab-body\">\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersStoredValueTransactions\"\n SectionName=\"Stored Value &amp; Account Credit Transactions\"\n Icon=\"fa fa-wallet\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsOrdersStoredValueTransactions')\"\n [DefaultExpanded]=\"true\">\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Orders: Stored Value Transactions', 'RelatedPaymentID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Orders: Stored Value Transactions', 'RelatedPaymentID')\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsOrdersStoredValueTransactions', $event.totalRowCount)\">\n </mj-explorer-entity-data-grid>\n </mj-collapsible-panel>\n\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersSubscriptionEvents\"\n SectionName=\"Subscription Billing Events\"\n Icon=\"fa fa-history\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsOrdersSubscriptionEvents')\"\n [DefaultExpanded]=\"false\">\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Orders: Subscription Events', 'PaymentHeaderID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Orders: Subscription Events', 'PaymentHeaderID')\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsOrdersSubscriptionEvents', $event.totalRowCount)\">\n </mj-explorer-entity-data-grid>\n </mj-collapsible-panel>\n\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsOrdersPaymentHeaders\"\n SectionName=\"Linked Reversal &amp; Refund Payment Records\"\n Icon=\"fa fa-rotate-left\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsOrdersPaymentHeaders')\"\n [DefaultExpanded]=\"false\">\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Orders: Payment Headers', 'ReversesPaymentHeaderID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Orders: Payment Headers', 'ReversesPaymentHeaderID')\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsOrdersPaymentHeaders', $event.totalRowCount)\">\n </mj-explorer-entity-data-grid>\n </mj-collapsible-panel>\n </div>\n }\n\n</mj-record-form-container>\n}\n", styles: ["/* ============================================================================\n BizApps Orders \u2014 Custom Payment Header Form Component Styles\n Uses MemberJunction semantic tokens for dark and light theme harmony.\n ============================================================================ */\n\n:host {\n display: block;\n width: 100%;\n}\n\n/* \u2500\u2500 1. Hero Header Banner \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-ph-hero {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 12px);\n padding: var(--mj-space-4, 16px) var(--mj-space-5, 20px);\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);\n margin-bottom: var(--mj-space-4, 16px);\n}\n\n.mjo-ph-hero__top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-who {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-ph-avatar {\n width: 48px;\n height: 48px;\n border-radius: var(--mj-radius-md, 8px);\n background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);\n color: #ffffff;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 20px;\n box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);\n flex-shrink: 0;\n}\n\n.mjo-ph-avatar.is-reversal {\n background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);\n box-shadow: 0 4px 10px rgba(147, 51, 234, 0.25);\n}\n\n.mjo-ph-title-row {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3, 10px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-title {\n margin: 0;\n font-size: var(--mj-text-lg, 18px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n letter-spacing: -0.01em;\n}\n\n.mjo-ph-sub {\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-text-muted, #64748b);\n margin-top: 2px;\n}\n\n.mjo-ph-hero__aside {\n display: flex;\n align-items: center;\n gap: var(--mj-space-5, 20px);\n flex-wrap: wrap;\n}\n\n.mjo-ph-money {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n padding: var(--mj-space-2, 6px) var(--mj-space-4, 14px);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 8px);\n}\n\n.mjo-ph-money > div {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n\n.mjo-ph-kicker {\n font-size: var(--mj-text-xs, 11px);\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-ph-amt {\n font-size: var(--mj-text-sm, 13px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-ph-amt.is-balanced {\n color: #16a34a;\n}\n\n.mjo-ph-amt.is-unbalanced {\n color: #d97706;\n}\n\n.mjo-ph-actions {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n/* \u2500\u2500 2. Tab Navigation \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-ph-tabs {\n margin-bottom: var(--mj-space-4, 16px);\n}\n\n/* \u2500\u2500 3. 2-Column Workbench Layout \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-ph-workbench {\n display: flex;\n gap: var(--mj-space-4, 16px);\n align-items: flex-start;\n width: 100%;\n}\n\n.mjo-ph-money-pane {\n width: 380px;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n --mj-forms-field-label-width: 105px;\n --mj-forms-field-gap: 8px;\n}\n\n.mjo-ph-fields-stack {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-ph-fields-stack mj-form-field {\n --mj-forms-field-label-width: 105px;\n --mj-forms-field-gap: 8px;\n}\n\n.mjo-ph-alloc-pane {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n}\n\n/* \u2500\u2500 4. Card Surfaces \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-card {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 10px);\n box-shadow: var(--mj-shadow-sm);\n overflow: hidden;\n}\n\n.mjo-card__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--mj-space-3, 12px) var(--mj-space-4, 16px);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-card__title {\n font-size: var(--mj-text-sm, 13px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-card__body {\n padding: var(--mj-space-4, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3, 12px);\n}\n\n.mjo-card__body.p-0 {\n padding: 0;\n}\n\n.mjo-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-label {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #94a3b8);\n}\n\n.mjo-input-money-wrap {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n}\n\n.mjo-currency-prefix {\n position: absolute;\n left: 14px;\n font-size: var(--mj-text-lg, 16px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-muted, #94a3b8);\n pointer-events: none;\n z-index: 2;\n}\n\n.mjo-input--money {\n padding-left: 30px !important;\n font-size: var(--mj-text-lg, 16px) !important;\n font-weight: var(--mj-font-bold, 700) !important;\n font-family: var(--mj-font-family-mono, monospace) !important;\n height: 42px !important;\n width: 100% !important;\n background: var(--mj-bg-surface-card, transparent) !important;\n color: var(--mj-text-primary, inherit) !important;\n border: 1px solid var(--mj-border-default, #334155) !important;\n border-radius: var(--mj-radius-md, 6px) !important;\n}\n\n.mjo-input--money:focus {\n border-color: var(--mj-brand-primary, #0076b6) !important;\n box-shadow: 0 0 0 2px rgba(0, 118, 182, 0.25) !important;\n}\n\n.mjo-net-calc {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 14px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n border-radius: var(--mj-radius-md, 6px);\n margin-top: 4px;\n}\n\n.mjo-net-calc__label {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #94a3b8);\n}\n\n.mjo-net-calc__val {\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #f8fafc);\n}\n\n.mjo-payer-chip {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n padding: 6px 10px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n}\n\n/* \u2500\u2500 5. Books Preview Card \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-card--books {\n border-color: rgba(0, 118, 182, 0.25);\n}\n\n\n\n/* \u2500\u2500 6. Allocation Hero Status Strip \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-alloc-hero {\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-lg, 12px);\n padding: var(--mj-space-3, 12px) var(--mj-space-4, 16px);\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-hero.is-balanced {\n border-color: rgba(22, 163, 74, 0.35);\n background: rgba(22, 163, 74, 0.03);\n}\n\n.mjo-alloc-hero.is-warning {\n border-color: rgba(217, 119, 6, 0.35);\n background: rgba(217, 119, 6, 0.03);\n}\n\n.mjo-alloc-hero.is-error {\n border-color: rgba(220, 38, 38, 0.35);\n background: rgba(220, 38, 38, 0.03);\n}\n\n.mjo-alloc-hero__stats {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-alloc-stat {\n display: flex;\n flex-direction: column;\n}\n\n.mjo-alloc-stat__kicker {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-alloc-stat__val {\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n font-family: var(--mj-font-family-mono, monospace);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-alloc-stat__op {\n font-size: 14px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-alloc-hero__message {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n padding-top: 6px;\n border-top: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n/* \u2500\u2500 7. Toolbar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-alloc-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-3, 12px);\n flex-wrap: wrap;\n}\n\n.mjo-alloc-toolbar__left {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-toolbar__title {\n margin: 0;\n font-size: var(--mj-text-sm, 14px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alloc-toolbar__right {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-search-input-wrap {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.mjo-search-input-wrap i {\n position: absolute;\n left: 8px;\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-search-input-wrap input {\n padding-left: 24px;\n width: 160px;\n}\n\n/* \u2500\u2500 8. Orders & Allocations Table \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-table-responsive {\n overflow-x: auto;\n width: 100%;\n}\n\n/* Required-field affordance: the marker sits on the label, the invalid state and hint appear\n only after a capture is attempted without the field. Say it before the server has to. */\n.mjo-required-mark {\n color: var(--mj-status-error, #dc2626);\n font-weight: var(--mj-font-bold, 700);\n}\n\n.mjo-input--invalid {\n border-color: var(--mj-status-error, #dc2626) !important;\n box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);\n}\n\n.mjo-field-hint--error {\n margin-top: 4px;\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-status-error, #dc2626);\n}\n\n.mjo-table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-xs, 12px);\n}\n\n.mjo-table th {\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-muted, #64748b);\n font-weight: var(--mj-font-semibold, 600);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n font-size: 11px;\n padding: 8px 12px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n text-align: left;\n}\n\n.mjo-table td {\n padding: 8px 12px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n vertical-align: middle;\n color: var(--mj-text-primary, #0f172a);\n}\n\n/* Headers and action buttons never wrap: \"Pay in Full\" was folding onto three lines inside a\n crushed cell while the wrapper's overflow-x sat unused. Let the table scroll instead. */\n.mjo-table th,\n.mjo-table .mjo-btn,\n.mjo-table .font-mono {\n white-space: nowrap;\n}\n\n.mjo-order-row:hover {\n background: var(--mj-bg-surface-hover, rgba(0, 0, 0, 0.02));\n}\n\n.mjo-order-row.is-expanded {\n background: rgba(0, 118, 182, 0.02);\n}\n\n.mjo-apply-input-wrap {\n position: relative;\n display: inline-flex;\n align-items: center;\n width: 100%;\n max-width: 110px;\n}\n\n.mjo-apply-dollar {\n position: absolute;\n left: 8px;\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-muted, #64748b);\n pointer-events: none;\n}\n\n.mjo-apply-input-wrap input {\n padding-left: 18px;\n}\n\n.mjo-nested-lines-pane {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border-top: 1px solid var(--mj-border-default, #e2e8f0);\n border-bottom: 2px solid var(--mj-border-default, #cbd5e1);\n padding: var(--mj-space-3, 10px) var(--mj-space-4, 16px);\n}\n\n.mjo-nested-lines-header {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-secondary, #475569);\n margin-bottom: var(--mj-space-2, 6px);\n}\n\n.mjo-nested-table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-xs, 12px);\n background: var(--mj-bg-surface-card, #ffffff);\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n overflow: hidden;\n}\n\n.mjo-nested-table th {\n background: rgba(0, 0, 0, 0.02);\n font-size: 10.5px;\n font-weight: var(--mj-font-semibold, 600);\n padding: 6px 10px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-nested-table td {\n padding: 6px 10px;\n border-bottom: 1px solid var(--mj-border-default, #e2e8f0);\n}\n\n/* \u2500\u2500 9. Accounting Postings View \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-ph-tab-body {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-accounting-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-4, 16px);\n flex-wrap: wrap;\n}\n\n.mjo-accounting-header h2 {\n margin: 0;\n font-size: var(--mj-text-base, 15px);\n font-weight: var(--mj-font-bold, 700);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-accounting-header p {\n margin: 2px 0 0 0;\n font-size: var(--mj-text-xs, 12px);\n}\n\n.mjo-view-toggle {\n display: flex;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.04));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 6px);\n padding: 2px;\n}\n\n.mjo-toggle-btn {\n border: none;\n background: transparent;\n padding: 4px 10px;\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #475569);\n border-radius: var(--mj-radius-sm, 4px);\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-toggle-btn.is-active {\n background: var(--mj-bg-surface-card, #ffffff);\n color: var(--mj-text-primary, #0f172a);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n\n.mjo-gl-cards-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));\n gap: var(--mj-space-4, 16px);\n}\n\n.mjo-table--compact th, .mjo-table--compact td {\n padding: 6px 10px;\n}\n\n.mjo-table tfoot th {\n background: var(--mj-bg-surface-card);\n border-top: 2px solid var(--mj-border-default, #cbd5e1);\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-bold, 700);\n}\n\n.is-intercompany {\n background: rgba(0, 118, 182, 0.04);\n}\n\n.mjo-ic-tag {\n display: inline-block;\n font-size: 10px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n color: #0284c7;\n background: rgba(2, 132, 199, 0.12);\n padding: 1px 5px;\n border-radius: 3px;\n margin-left: 6px;\n}\n\n/* \u2500\u2500 10. Common UI Elements & Chips \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--mj-space-2, 6px);\n height: 34px;\n padding: 0 14px;\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n border-radius: var(--mj-radius-md, 6px);\n cursor: pointer;\n border: 1px solid transparent;\n transition: all 0.15s ease;\n}\n\n.mjo-btn--primary {\n background: var(--mj-brand-primary, #0076b6);\n color: #ffffff;\n}\n\n.mjo-btn--primary:hover:not(:disabled) {\n background: #006094;\n}\n\n.mjo-btn--secondary {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-color: var(--mj-border-default, #cbd5e1);\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn--secondary:hover:not(:disabled) {\n background: rgba(0, 0, 0, 0.08);\n}\n\n.mjo-btn--outline {\n background: transparent;\n border-color: var(--mj-border-default, #cbd5e1);\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-btn--outline:hover:not(:disabled) {\n border-color: var(--mj-brand-primary, #0076b6);\n color: var(--mj-brand-primary, #0076b6);\n}\n\n.mjo-btn--sm {\n height: 30px;\n padding: 0 10px;\n font-size: 11.5px;\n}\n\n.mjo-btn--xs {\n height: 24px;\n padding: 0 8px;\n font-size: 11px;\n}\n\n.mjo-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.mjo-icon-btn {\n border: none;\n background: transparent;\n color: var(--mj-text-muted, #64748b);\n cursor: pointer;\n padding: 4px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.mjo-icon-btn:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-link {\n border: none;\n background: transparent;\n color: var(--mj-brand-primary, #0076b6);\n cursor: pointer;\n padding: 0;\n font-size: inherit;\n text-align: left;\n}\n\n.mjo-link:hover {\n text-decoration: underline;\n}\n\n.mjo-status-chip {\n font-size: 11px;\n font-weight: var(--mj-font-bold, 700);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n padding: 2px 8px;\n border-radius: 4px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-status-chip--draft {\n background: rgba(100, 116, 139, 0.12);\n color: #475569;\n}\n\n.mjo-status-chip--active {\n background: rgba(22, 163, 74, 0.12);\n color: #16a34a;\n}\n\n.mjo-status-chip--purple {\n background: rgba(147, 51, 234, 0.12);\n color: #9333ea;\n}\n\n.mjo-status-chip--error {\n background: rgba(220, 38, 38, 0.12);\n color: #dc2626;\n}\n\n.mjo-status-chip--warning {\n background: rgba(217, 119, 6, 0.12);\n color: #d97706;\n}\n\n.mjo-company-pill {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-secondary, #475569);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.04));\n padding: 2px 6px;\n border-radius: 4px;\n}\n\n.mjo-sku-chip {\n font-family: var(--mj-font-family-mono, monospace);\n font-size: 10px;\n color: var(--mj-text-muted, #64748b);\n background: rgba(0, 0, 0, 0.04);\n padding: 1px 4px;\n border-radius: 3px;\n margin-left: 4px;\n}\n\n.mjo-badge {\n font-size: 11px;\n font-weight: var(--mj-font-semibold, 600);\n padding: 2px 6px;\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-badge--error {\n background: rgba(220, 38, 38, 0.12);\n color: #dc2626;\n}\n\n.mjo-badge--success {\n background: rgba(22, 163, 74, 0.12);\n color: #16a34a;\n}\n\n.mjo-loading-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: var(--mj-space-6, 32px) var(--mj-space-4, 16px);\n text-align: center;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-alert {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3, 10px);\n padding: 10px 14px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: var(--mj-text-xs, 12px);\n margin-bottom: var(--mj-space-3, 12px);\n}\n\n.mjo-alert--error {\n background: rgba(220, 38, 38, 0.08);\n border: 1px solid rgba(220, 38, 38, 0.25);\n color: #dc2626;\n}\n\n.mjo-subtext {\n font-size: 11px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.text-right { text-align: right; }\n.font-mono { font-family: var(--mj-font-family-mono, monospace); }\n.font-bold { font-weight: var(--mj-font-bold, 700); }\n.text-muted { color: var(--mj-text-muted, #64748b); }\n.text-success { color: #16a34a; }\n.text-warning { color: #d97706; }\n.text-danger { color: #dc2626; }\n.w-8 { width: 32px; }\n.w-16 { width: 64px; }\n.w-20 { width: 80px; }\n.w-24 { width: 96px; }\n.w-36 { width: 144px; }\n.flex { display: flex; }\n.gap-2 { gap: 8px; }\n.col-span-full { grid-column: 1 / -1; }\n.text-info { color: #0284c7; }\n\n/* \u2500\u2500 12. Instrument Box (Check/Card/ACH/Wire) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mjo-instrument-box {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.02));\n border: 1px solid var(--mj-border-default, #e2e8f0);\n border-radius: var(--mj-radius-md, 8px);\n padding: var(--mj-space-3, 12px);\n margin: var(--mj-space-2, 6px) 0;\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3, 10px);\n}\n\n.mjo-instrument-box__title {\n font-size: var(--mj-text-xs, 12px);\n font-weight: var(--mj-font-semibold, 600);\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 6px;\n padding-bottom: 6px;\n border-bottom: 1px dashed var(--mj-border-default, #e2e8f0);\n}\n\n.mjo-instrument-box__grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-2, 8px);\n}\n\n.mjo-instrument-box .mjo-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.mjo-instrument-box .mjo-label {\n font-size: 11px;\n font-weight: var(--mj-font-medium, 500);\n color: var(--mj-text-secondary, #475569);\n}\n\n.mjo-apply-input-wrap.is-derived input {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.03));\n color: var(--mj-text-secondary, #475569);\n cursor: not-allowed;\n border-style: dashed;\n}\n"] }]
2555
2575
  }], null, null); })();
2556
2576
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsPaymentHeaderFormComponent, { className: "BizAppsPaymentHeaderFormComponent", filePath: "lib/custom/PaymentHeader/payment-header-form.component.ts", lineNumber: 91 }); })();
2557
2577
  /** Tree-shaking prevention anchor function */