@mj-biz-apps/orders-ng 5.48.0 → 5.50.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 (81) hide show
  1. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +3 -0
  2. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
  3. package/dist/lib/custom/OrderHeader/order-header-form.component.js +23 -9
  4. package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
  5. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +26 -24
  6. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
  7. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts +1 -0
  8. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts.map +1 -1
  9. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js +65 -62
  10. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js.map +1 -1
  11. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts +1 -0
  12. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts.map +1 -1
  13. package/dist/lib/custom/Product/widgets/product-gl-links.component.js +12 -8
  14. package/dist/lib/custom/Product/widgets/product-gl-links.component.js.map +1 -1
  15. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +2 -0
  16. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
  17. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +11 -7
  18. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
  19. package/dist/lib/form-panels/external-invoices.panel.d.ts +2 -1
  20. package/dist/lib/form-panels/external-invoices.panel.d.ts.map +1 -1
  21. package/dist/lib/form-panels/external-invoices.panel.js +5 -4
  22. package/dist/lib/form-panels/external-invoices.panel.js.map +1 -1
  23. package/dist/lib/form-panels/subscription-header.panel.js +24 -17
  24. package/dist/lib/form-panels/subscription-header.panel.js.map +1 -1
  25. package/dist/lib/form-panels/subscription-terms.panel.js +6 -4
  26. package/dist/lib/form-panels/subscription-terms.panel.js.map +1 -1
  27. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderConcession/mjbizappsordersorderconcession.form.component.js +10 -6
  28. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderConcession/mjbizappsordersorderconcession.form.component.js.map +1 -1
  29. package/dist/lib/pages/receivables/external-invoicing-queue.page.js +5 -5
  30. package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
  31. package/dist/lib/pages/subscriptions/renewals-page.model.d.ts +214 -0
  32. package/dist/lib/pages/subscriptions/renewals-page.model.d.ts.map +1 -0
  33. package/dist/lib/pages/subscriptions/renewals-page.model.js +663 -0
  34. package/dist/lib/pages/subscriptions/renewals-page.model.js.map +1 -0
  35. package/dist/lib/pages/subscriptions/renewals.page.d.ts +236 -0
  36. package/dist/lib/pages/subscriptions/renewals.page.d.ts.map +1 -0
  37. package/dist/lib/pages/subscriptions/renewals.page.js +2249 -0
  38. package/dist/lib/pages/subscriptions/renewals.page.js.map +1 -0
  39. package/dist/lib/pages/subscriptions/subscriptions.page.d.ts.map +1 -0
  40. package/dist/lib/pages/{receivables → subscriptions}/subscriptions.page.js +1 -1
  41. package/dist/lib/pages/subscriptions/subscriptions.page.js.map +1 -0
  42. package/dist/lib/panels/external-invoice-view.d.ts +13 -3
  43. package/dist/lib/panels/external-invoice-view.d.ts.map +1 -1
  44. package/dist/lib/panels/external-invoice-view.js +20 -4
  45. package/dist/lib/panels/external-invoice-view.js.map +1 -1
  46. package/dist/lib/panels/money-format.d.ts +16 -6
  47. package/dist/lib/panels/money-format.d.ts.map +1 -1
  48. package/dist/lib/panels/money-format.js +6 -5
  49. package/dist/lib/panels/money-format.js.map +1 -1
  50. package/dist/lib/panels/multi-select.component.d.ts +60 -0
  51. package/dist/lib/panels/multi-select.component.d.ts.map +1 -0
  52. package/dist/lib/panels/multi-select.component.js +293 -0
  53. package/dist/lib/panels/multi-select.component.js.map +1 -0
  54. package/dist/lib/panels/party-orders-overview.component.d.ts +2 -0
  55. package/dist/lib/panels/party-orders-overview.component.d.ts.map +1 -1
  56. package/dist/lib/panels/party-orders-overview.component.js +34 -20
  57. package/dist/lib/panels/party-orders-overview.component.js.map +1 -1
  58. package/dist/lib/panels/stat-tile.component.d.ts +3 -1
  59. package/dist/lib/panels/stat-tile.component.d.ts.map +1 -1
  60. package/dist/lib/panels/stat-tile.component.js +64 -17
  61. package/dist/lib/panels/stat-tile.component.js.map +1 -1
  62. package/dist/lib/panels/worklist-table.component.d.ts +35 -12
  63. package/dist/lib/panels/worklist-table.component.d.ts.map +1 -1
  64. package/dist/lib/panels/worklist-table.component.js +126 -67
  65. package/dist/lib/panels/worklist-table.component.js.map +1 -1
  66. package/dist/lib/sections/orders-sections.component.d.ts +23 -6
  67. package/dist/lib/sections/orders-sections.component.d.ts.map +1 -1
  68. package/dist/lib/sections/orders-sections.component.js +146 -16
  69. package/dist/lib/sections/orders-sections.component.js.map +1 -1
  70. package/dist/lib/sections/section-nav.model.d.ts +14 -5
  71. package/dist/lib/sections/section-nav.model.d.ts.map +1 -1
  72. package/dist/lib/sections/section-nav.model.js +18 -7
  73. package/dist/lib/sections/section-nav.model.js.map +1 -1
  74. package/dist/public-api.d.ts +7 -4
  75. package/dist/public-api.d.ts.map +1 -1
  76. package/dist/public-api.js +10 -7
  77. package/dist/public-api.js.map +1 -1
  78. package/package.json +2 -2
  79. package/dist/lib/pages/receivables/subscriptions.page.d.ts.map +0 -1
  80. package/dist/lib/pages/receivables/subscriptions.page.js.map +0 -1
  81. /package/dist/lib/pages/{receivables → subscriptions}/subscriptions.page.d.ts +0 -0
@@ -578,7 +578,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
578
578
  i0.ɵɵtextInterpolate(order_r18.BillToOrganization || order_r18.BillToPerson || "\u2014");
579
579
  } }
580
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);
581
+ i0.ɵɵelementStart(0, "div", 135);
582
582
  i0.ɵɵtext(1);
583
583
  i0.ɵɵelementEnd();
584
584
  } if (rf & 2) {
@@ -587,7 +587,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
587
587
  i0.ɵɵtextInterpolate(order_r18.Description);
588
588
  } }
589
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);
590
+ i0.ɵɵelementStart(0, "span", 136);
591
591
  i0.ɵɵtext(1);
592
592
  i0.ɵɵelementEnd();
593
593
  } if (rf & 2) {
@@ -607,13 +607,13 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
607
607
  i0.ɵɵtextInterpolate(ctx_r1.FormatOrderDueDate(order_r18));
608
608
  } }
609
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);
610
+ i0.ɵɵelementStart(0, "div", 142);
611
+ i0.ɵɵelement(1, "i", 145);
612
612
  i0.ɵɵtext(2, " Lines allocated ");
613
613
  i0.ɵɵelementEnd();
614
614
  } }
615
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);
616
+ i0.ɵɵelementStart(0, "div", 142);
617
617
  i0.ɵɵtext(1);
618
618
  i0.ɵɵelementEnd();
619
619
  } if (rf & 2) {
@@ -624,7 +624,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
624
624
  } }
625
625
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_32_Template(rf, ctx) { if (rf & 1) {
626
626
  const _r19 = i0.ɵɵgetCurrentView();
627
- i0.ɵɵelementStart(0, "button", 145);
627
+ i0.ɵɵelementStart(0, "button", 146);
628
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)); });
629
629
  i0.ɵɵtext(1, " Pay in Full ");
630
630
  i0.ɵɵelementEnd();
@@ -634,7 +634,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
634
634
  } }
635
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
636
  const _r22 = i0.ɵɵgetCurrentView();
637
- i0.ɵɵelementStart(0, "button", 153);
637
+ i0.ɵɵelementStart(0, "button", 154);
638
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)); });
639
639
  i0.ɵɵtext(1, " Line Pay ");
640
640
  i0.ɵɵelementEnd();
@@ -653,14 +653,14 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
653
653
  i0.ɵɵelementStart(8, "td", 113);
654
654
  i0.ɵɵtext(9);
655
655
  i0.ɵɵelementEnd();
656
- i0.ɵɵelementStart(10, "td", 111)(11, "div", 138)(12, "span", 139);
656
+ i0.ɵɵelementStart(10, "td", 111)(11, "div", 139)(12, "span", 140);
657
657
  i0.ɵɵtext(13, "$");
658
658
  i0.ɵɵelementEnd();
659
- i0.ɵɵelementStart(14, "input", 151);
659
+ i0.ɵɵelementStart(14, "input", 152);
660
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)); });
661
661
  i0.ɵɵelementEnd()()();
662
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);
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", 153);
664
664
  i0.ɵɵelementEnd()();
665
665
  } if (rf & 2) {
666
666
  const line_r21 = ctx.$implicit;
@@ -679,12 +679,12 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
679
679
  i0.ɵɵconditional(!ctx_r1.IsCaptured ? 16 : -1);
680
680
  } }
681
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);
682
+ i0.ɵɵelementStart(0, "tr", 144)(1, "td", 147)(2, "div", 148)(3, "div", 149);
683
+ i0.ɵɵelement(4, "i", 145);
684
684
  i0.ɵɵelementStart(5, "span");
685
685
  i0.ɵɵtext(6, "Order Line Items (Targeted Line Allocations)");
686
686
  i0.ɵɵelementEnd()();
687
- i0.ɵɵelementStart(7, "table", 149)(8, "thead")(9, "tr")(10, "th");
687
+ i0.ɵɵelementStart(7, "table", 150)(8, "thead")(9, "tr")(10, "th");
688
688
  i0.ɵɵtext(11, "#");
689
689
  i0.ɵɵelementEnd();
690
690
  i0.ɵɵelementStart(12, "th");
@@ -699,7 +699,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
699
699
  i0.ɵɵelementStart(18, "th", 128);
700
700
  i0.ɵɵtext(19, "Line Allocation");
701
701
  i0.ɵɵelementEnd();
702
- i0.ɵɵelement(20, "th", 150);
702
+ i0.ɵɵelement(20, "th", 151);
703
703
  i0.ɵɵelementEnd()();
704
704
  i0.ɵɵelementStart(21, "tbody");
705
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);
@@ -719,44 +719,44 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
719
719
  i0.ɵɵelement(3, "i", 132);
720
720
  i0.ɵɵelementEnd()();
721
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);
722
+ i0.ɵɵelementStart(5, "td")(6, "button", 134);
723
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)); });
724
724
  i0.ɵɵelementStart(7, "strong");
725
725
  i0.ɵɵtext(8);
726
726
  i0.ɵɵelementEnd()();
727
- i0.ɵɵconditionalCreate(9, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_9_Template, 2, 1, "div", 134);
727
+ i0.ɵɵconditionalCreate(9, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_9_Template, 2, 1, "div", 135);
728
728
  i0.ɵɵelementEnd();
729
729
  i0.ɵɵelementStart(10, "td");
730
730
  i0.ɵɵtext(11);
731
731
  i0.ɵɵelementEnd();
732
732
  i0.ɵɵelementStart(12, "td");
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");
733
+ i0.ɵɵconditionalCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_13_Template, 2, 1, "span", 136)(14, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_14_Template, 2, 1, "span");
734
734
  i0.ɵɵelementEnd();
735
- i0.ɵɵelementStart(15, "td")(16, "span", 136);
735
+ i0.ɵɵelementStart(15, "td")(16, "span", 137);
736
736
  i0.ɵɵtext(17);
737
737
  i0.ɵɵelementEnd()();
738
738
  i0.ɵɵelementStart(18, "td", 113);
739
739
  i0.ɵɵtext(19);
740
740
  i0.ɵɵelementEnd();
741
- i0.ɵɵelementStart(20, "td", 137);
741
+ i0.ɵɵelementStart(20, "td", 138);
742
742
  i0.ɵɵtext(21);
743
743
  i0.ɵɵelementEnd();
744
- i0.ɵɵelementStart(22, "td", 111)(23, "div", 138)(24, "span", 139);
744
+ i0.ɵɵelementStart(22, "td", 111)(23, "div", 139)(24, "span", 140);
745
745
  i0.ɵɵtext(25, "$");
746
746
  i0.ɵɵelementEnd();
747
- i0.ɵɵelementStart(26, "input", 140);
747
+ i0.ɵɵelementStart(26, "input", 141);
748
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)); });
749
749
  i0.ɵɵelementEnd()();
750
- i0.ɵɵconditionalCreate(27, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_27_Template, 3, 0, "div", 141);
750
+ i0.ɵɵconditionalCreate(27, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_27_Template, 3, 0, "div", 142);
751
751
  i0.ɵɵelementEnd();
752
752
  i0.ɵɵelementStart(28, "td", 113);
753
753
  i0.ɵɵtext(29);
754
- i0.ɵɵconditionalCreate(30, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_30_Template, 2, 1, "div", 141);
754
+ i0.ɵɵconditionalCreate(30, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_30_Template, 2, 1, "div", 142);
755
755
  i0.ɵɵelementEnd();
756
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);
757
+ i0.ɵɵconditionalCreate(32, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_32_Template, 2, 1, "button", 143);
758
758
  i0.ɵɵelementEnd()();
759
- i0.ɵɵconditionalCreate(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_Template, 24, 1, "tr", 143);
759
+ i0.ɵɵconditionalCreate(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Conditional_33_Template, 24, 1, "tr", 144);
760
760
  } if (rf & 2) {
761
761
  const order_r18 = ctx.$implicit;
762
762
  const ctx_r1 = i0.ɵɵnextContext(5);
@@ -765,7 +765,9 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
765
765
  i0.ɵɵclassProp("fa-chevron-down", ctx_r1.IsOrderExpanded(order_r18.ID || ""))("fa-chevron-right", !ctx_r1.IsOrderExpanded(order_r18.ID || ""));
766
766
  i0.ɵɵadvance();
767
767
  i0.ɵɵconditional(!ctx_r1.hasPayer ? 4 : -1);
768
- i0.ɵɵadvance(4);
768
+ i0.ɵɵadvance(2);
769
+ i0.ɵɵproperty("EntityName", ctx_r1.OrderHeaderEntity)("RecordID", order_r18.ID || "")("DisplayName", order_r18.OrderNumber)("HandleClick", false);
770
+ i0.ɵɵadvance(2);
769
771
  i0.ɵɵtextInterpolate(order_r18.OrderNumber);
770
772
  i0.ɵɵadvance();
771
773
  i0.ɵɵconditional(order_r18.Description ? 9 : -1);
@@ -827,7 +829,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditio
827
829
  i0.ɵɵelement(22, "th", 129);
828
830
  i0.ɵɵelementEnd()();
829
831
  i0.ɵɵelementStart(23, "tbody");
830
- i0.ɵɵrepeaterCreate(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Template, 34, 26, null, null, _forTrack0);
832
+ i0.ɵɵrepeaterCreate(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_50_Conditional_35_For_25_Template, 34, 30, null, null, _forTrack0);
831
833
  i0.ɵɵelementEnd()()();
832
834
  } if (rf & 2) {
833
835
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -981,7 +983,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template
981
983
  } }
982
984
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_0_Template(rf, ctx) { if (rf & 1) {
983
985
  i0.ɵɵelementStart(0, "div", 105);
984
- i0.ɵɵelement(1, "mj-loading", 161);
986
+ i0.ɵɵelement(1, "mj-loading", 162);
985
987
  i0.ɵɵelementEnd();
986
988
  } }
987
989
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_1_Template(rf, ctx) { if (rf & 1) {
@@ -994,10 +996,10 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditio
994
996
  i0.ɵɵtextInterpolate(ctx_r1.RollupError);
995
997
  } }
996
998
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_2_Template(rf, ctx) { if (rf & 1) {
997
- i0.ɵɵelement(0, "mj-empty-state", 159);
999
+ i0.ɵɵelement(0, "mj-empty-state", 160);
998
1000
  } }
999
1001
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_For_23_Template(rf, ctx) { if (rf & 1) {
1000
- i0.ɵɵelementStart(0, "tr")(1, "td", 166);
1002
+ i0.ɵɵelementStart(0, "tr")(1, "td", 167);
1001
1003
  i0.ɵɵtext(2);
1002
1004
  i0.ɵɵelementEnd();
1003
1005
  i0.ɵɵelementStart(3, "td")(4, "span");
@@ -1022,16 +1024,16 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditio
1022
1024
  i0.ɵɵtextInterpolate(row_r24.Credit ? ctx_r1.RollupAmount(row_r24.Credit) : "\u2014");
1023
1025
  } }
1024
1026
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
1025
- i0.ɵɵelementStart(0, "div", 162)(1, "div", 29)(2, "div")(3, "h3", 30);
1027
+ i0.ɵɵelementStart(0, "div", 163)(1, "div", 29)(2, "div")(3, "h3", 30);
1026
1028
  i0.ɵɵtext(4);
1027
1029
  i0.ɵɵelementEnd();
1028
- i0.ɵɵelementStart(5, "div", 134);
1030
+ i0.ɵɵelementStart(5, "div", 135);
1029
1031
  i0.ɵɵtext(6);
1030
1032
  i0.ɵɵelementEnd()();
1031
1033
  i0.ɵɵelementStart(7, "span", 56);
1032
1034
  i0.ɵɵtext(8);
1033
1035
  i0.ɵɵelementEnd()();
1034
- i0.ɵɵelementStart(9, "div", 163)(10, "table", 164)(11, "thead")(12, "tr")(13, "th");
1036
+ i0.ɵɵelementStart(9, "div", 164)(10, "table", 165)(11, "thead")(12, "tr")(13, "th");
1035
1037
  i0.ɵɵtext(14, "GL Account");
1036
1038
  i0.ɵɵelementEnd();
1037
1039
  i0.ɵɵelementStart(15, "th");
@@ -1046,7 +1048,7 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditio
1046
1048
  i0.ɵɵelementStart(21, "tbody");
1047
1049
  i0.ɵɵrepeaterCreate(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_For_23_Template, 10, 4, "tr", null, _forTrack2);
1048
1050
  i0.ɵɵelementEnd();
1049
- i0.ɵɵelementStart(24, "tfoot")(25, "tr")(26, "th", 165);
1051
+ i0.ɵɵelementStart(24, "tfoot")(25, "tr")(26, "th", 166);
1050
1052
  i0.ɵɵtext(27, "Total");
1051
1053
  i0.ɵɵelementEnd();
1052
1054
  i0.ɵɵelementStart(28, "th", 113);
@@ -1074,8 +1076,8 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditio
1074
1076
  i0.ɵɵtextInterpolate1("$", card_r25.TotalCredit.toFixed(2));
1075
1077
  } }
1076
1078
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_Template(rf, ctx) { if (rf & 1) {
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);
1079
+ i0.ɵɵelementStart(0, "div", 161);
1080
+ i0.ɵɵrepeaterCreate(1, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_Template, 32, 10, "div", 163, _forTrack1);
1079
1081
  i0.ɵɵelementEnd();
1080
1082
  } if (rf & 2) {
1081
1083
  const ctx_r1 = i0.ɵɵnextContext(4);
@@ -1083,14 +1085,14 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditio
1083
1085
  i0.ɵɵrepeater(ctx_r1.RollupCards);
1084
1086
  } }
1085
1087
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Template(rf, ctx) { if (rf & 1) {
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);
1088
+ 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", 160)(3, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_Template, 3, 0, "div", 161);
1087
1089
  } if (rf & 2) {
1088
1090
  const ctx_r1 = i0.ɵɵnextContext(3);
1089
1091
  i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.RollupCards.length === 0 ? 2 : 3);
1090
1092
  } }
1091
1093
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1092
1094
  const _r26 = i0.ɵɵgetCurrentView();
1093
- i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 168);
1095
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 169);
1094
1096
  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)); });
1095
1097
  i0.ɵɵelementEnd();
1096
1098
  } if (rf & 2) {
@@ -1098,25 +1100,25 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditio
1098
1100
  i0.ɵɵproperty("Params", ctx_r1.PaymentJournalEntryParams)("AllowLoad", true)("ShowToolbar", false);
1099
1101
  } }
1100
1102
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Template(rf, ctx) { if (rf & 1) {
1101
- i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template, 1, 3, "mj-explorer-entity-data-grid", 167);
1103
+ i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template, 1, 3, "mj-explorer-entity-data-grid", 168);
1102
1104
  } if (rf & 2) {
1103
1105
  const ctx_r1 = i0.ɵɵnextContext(3);
1104
1106
  i0.ɵɵconditional(ctx_r1.PaymentJournalEntryParams ? 0 : -1);
1105
1107
  } }
1106
1108
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template(rf, ctx) { if (rf & 1) {
1107
1109
  const _r23 = i0.ɵɵgetCurrentView();
1108
- i0.ɵɵelementStart(0, "div", 20)(1, "div", 154)(2, "div")(3, "h2");
1109
- i0.ɵɵelement(4, "i", 155);
1110
+ i0.ɵɵelementStart(0, "div", 20)(1, "div", 155)(2, "div")(3, "h2");
1111
+ i0.ɵɵelement(4, "i", 156);
1110
1112
  i0.ɵɵtext(5, " General Ledger Postings");
1111
1113
  i0.ɵɵelementEnd();
1112
- i0.ɵɵelementStart(6, "p", 156);
1114
+ i0.ɵɵelementStart(6, "p", 157);
1113
1115
  i0.ɵɵtext(7, "Double-entry balanced accounting entries booked across operating and receivable accounts.");
1114
1116
  i0.ɵɵelementEnd()();
1115
- i0.ɵɵelementStart(8, "div", 157)(9, "button", 158);
1117
+ i0.ɵɵelementStart(8, "div", 158)(9, "button", 159);
1116
1118
  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")); });
1117
1119
  i0.ɵɵtext(10, " Summary (Rolled-up) ");
1118
1120
  i0.ɵɵelementEnd();
1119
- i0.ɵɵelementStart(11, "button", 158);
1121
+ i0.ɵɵelementStart(11, "button", 159);
1120
1122
  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")); });
1121
1123
  i0.ɵɵtext(12, " By Journal Entry ");
1122
1124
  i0.ɵɵelementEnd()()();
@@ -1133,36 +1135,36 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template
1133
1135
  } }
1134
1136
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template(rf, ctx) { if (rf & 1) {
1135
1137
  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);
1138
+ i0.ɵɵelementStart(0, "div", 20)(1, "div", 170)(2, "div", 28)(3, "div", 29)(4, "h3", 30);
1139
+ i0.ɵɵelement(5, "i", 171);
1138
1140
  i0.ɵɵtext(6, " Processing & Gateway Details");
1139
1141
  i0.ɵɵelementEnd()();
1140
- i0.ɵɵelementStart(7, "div", 171)(8, "mj-form-field", 172);
1142
+ i0.ɵɵelementStart(7, "div", 172)(8, "mj-form-field", 173);
1141
1143
  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)); });
1142
1144
  i0.ɵɵelementEnd();
1143
- i0.ɵɵelementStart(9, "mj-form-field", 173);
1145
+ i0.ɵɵelementStart(9, "mj-form-field", 174);
1144
1146
  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)); });
1145
1147
  i0.ɵɵelementEnd();
1146
- i0.ɵɵelementStart(10, "mj-form-field", 174);
1148
+ i0.ɵɵelementStart(10, "mj-form-field", 175);
1147
1149
  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)); });
1148
1150
  i0.ɵɵelementEnd();
1149
- i0.ɵɵelement(11, "mj-form-field", 175)(12, "mj-form-field", 176)(13, "mj-form-field", 177);
1151
+ i0.ɵɵelement(11, "mj-form-field", 176)(12, "mj-form-field", 177)(13, "mj-form-field", 178);
1150
1152
  i0.ɵɵelementEnd()();
1151
1153
  i0.ɵɵelementStart(14, "div", 28)(15, "div", 29)(16, "h3", 30);
1152
- i0.ɵɵelement(17, "i", 178);
1154
+ i0.ɵɵelement(17, "i", 179);
1153
1155
  i0.ɵɵtext(18, " Reversal Info & Notes");
1154
1156
  i0.ɵɵelementEnd()();
1155
- i0.ɵɵelementStart(19, "div", 171)(20, "mj-form-field", 179);
1157
+ i0.ɵɵelementStart(19, "div", 172)(20, "mj-form-field", 180);
1156
1158
  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)); });
1157
1159
  i0.ɵɵelementEnd();
1158
- i0.ɵɵelement(21, "mj-form-field", 180)(22, "mj-form-field", 181)(23, "mj-form-field", 182);
1160
+ i0.ɵɵelement(21, "mj-form-field", 181)(22, "mj-form-field", 182)(23, "mj-form-field", 183);
1159
1161
  i0.ɵɵelementEnd()();
1160
1162
  i0.ɵɵelementStart(24, "div", 28)(25, "div", 29)(26, "h3", 30);
1161
- i0.ɵɵelement(27, "i", 183);
1163
+ i0.ɵɵelement(27, "i", 184);
1162
1164
  i0.ɵɵtext(28, " System Metadata");
1163
1165
  i0.ɵɵelementEnd()();
1164
- i0.ɵɵelementStart(29, "div", 171);
1165
- i0.ɵɵelement(30, "mj-form-field", 184)(31, "mj-form-field", 185);
1166
+ i0.ɵɵelementStart(29, "div", 172);
1167
+ i0.ɵɵelement(30, "mj-form-field", 185)(31, "mj-form-field", 186);
1166
1168
  i0.ɵɵelementEnd()()()();
1167
1169
  } if (rf & 2) {
1168
1170
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -1193,13 +1195,13 @@ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template
1193
1195
  } }
1194
1196
  function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template(rf, ctx) { if (rf & 1) {
1195
1197
  const _r28 = i0.ɵɵgetCurrentView();
1196
- i0.ɵɵelementStart(0, "div", 20)(1, "mj-collapsible-panel", 186)(2, "mj-explorer-entity-data-grid", 187);
1198
+ i0.ɵɵelementStart(0, "div", 20)(1, "mj-collapsible-panel", 187)(2, "mj-explorer-entity-data-grid", 188);
1197
1199
  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)); });
1198
1200
  i0.ɵɵelementEnd()();
1199
- i0.ɵɵelementStart(3, "mj-collapsible-panel", 188)(4, "mj-explorer-entity-data-grid", 187);
1201
+ i0.ɵɵelementStart(3, "mj-collapsible-panel", 189)(4, "mj-explorer-entity-data-grid", 188);
1200
1202
  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)); });
1201
1203
  i0.ɵɵelementEnd()();
1202
- i0.ɵɵelementStart(5, "mj-collapsible-panel", 189)(6, "mj-explorer-entity-data-grid", 187);
1204
+ i0.ɵɵelementStart(5, "mj-collapsible-panel", 190)(6, "mj-explorer-entity-data-grid", 188);
1203
1205
  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)); });
1204
1206
  i0.ɵɵelementEnd()()();
1205
1207
  } if (rf & 2) {
@@ -1355,6 +1357,7 @@ let BizAppsPaymentHeaderFormComponent = class BizAppsPaymentHeaderFormComponent
1355
1357
  record;
1356
1358
  navigationService = inject(NavigationService, { optional: true });
1357
1359
  Math = Math;
1360
+ OrderHeaderEntity = MJO_ENTITIES.OrderHeader;
1358
1361
  ActiveTab = 'payment';
1359
1362
  PaymentTypes = [];
1360
1363
  SellingCompanies = [];
@@ -2559,11 +2562,11 @@ let BizAppsPaymentHeaderFormComponent = class BizAppsPaymentHeaderFormComponent
2559
2562
  }
2560
2563
  }
2561
2564
  static ɵfac = /*@__PURE__*/ (() => { let ɵBizAppsPaymentHeaderFormComponent_BaseFactory; return function BizAppsPaymentHeaderFormComponent_Factory(__ngFactoryType__) { return (ɵBizAppsPaymentHeaderFormComponent_BaseFactory || (ɵBizAppsPaymentHeaderFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BizAppsPaymentHeaderFormComponent)))(__ngFactoryType__ || BizAppsPaymentHeaderFormComponent); }; })();
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) {
2565
+ 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"], ["type", "button", "mjRecordLink", "", 1, "mjo-link", 3, "click", "EntityName", "RecordID", "DisplayName", "HandleClick"], [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) {
2563
2566
  i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Template, 47, 34, "mj-record-form-container", 0);
2564
2567
  } if (rf & 2) {
2565
2568
  i0.ɵɵconditional(ctx.record ? 0 : -1);
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}"] });
2569
+ } }, 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, i2.MjRecordLinkDirective, 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}"] });
2567
2570
  };
2568
2571
  BizAppsPaymentHeaderFormComponent = __decorate([
2569
2572
  RegisterClass(BaseFormComponent, 'MJ_BizApps_Orders: Payment Headers', 2)
@@ -2571,7 +2574,7 @@ BizAppsPaymentHeaderFormComponent = __decorate([
2571
2574
  export { BizAppsPaymentHeaderFormComponent };
2572
2575
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsPaymentHeaderFormComponent, [{
2573
2576
  type: Component,
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"] }]
2577
+ 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\" mjRecordLink [EntityName]=\"OrderHeaderEntity\" [RecordID]=\"order.ID || ''\" [DisplayName]=\"order.OrderNumber\" [HandleClick]=\"false\" (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"] }]
2575
2578
  }], null, null); })();
2576
2579
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsPaymentHeaderFormComponent, { className: "BizAppsPaymentHeaderFormComponent", filePath: "lib/custom/PaymentHeader/payment-header-form.component.ts", lineNumber: 91 }); })();
2577
2580
  /** Tree-shaking prevention anchor function */