@mj-biz-apps/orders-ng 0.0.1 → 5.2.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 (597) hide show
  1. package/LICENSE +183 -0
  2. package/README.md +34 -2
  3. package/dist/checkout-element/main.js +38080 -0
  4. package/dist/lib/checkout-widget/checkout-draft-line.d.ts +25 -0
  5. package/dist/lib/checkout-widget/checkout-draft-line.d.ts.map +1 -0
  6. package/dist/lib/checkout-widget/checkout-draft-line.js +46 -0
  7. package/dist/lib/checkout-widget/checkout-draft-line.js.map +1 -0
  8. package/dist/lib/checkout-widget/checkout-public-host.component.d.ts +80 -0
  9. package/dist/lib/checkout-widget/checkout-public-host.component.d.ts.map +1 -0
  10. package/dist/lib/checkout-widget/checkout-public-host.component.js +360 -0
  11. package/dist/lib/checkout-widget/checkout-public-host.component.js.map +1 -0
  12. package/dist/lib/checkout-widget/checkout-widget.component.d.ts +143 -0
  13. package/dist/lib/checkout-widget/checkout-widget.component.d.ts.map +1 -0
  14. package/dist/lib/checkout-widget/checkout-widget.component.js +873 -0
  15. package/dist/lib/checkout-widget/checkout-widget.component.js.map +1 -0
  16. package/dist/lib/custom/OrderHeader/line-extension-cache.d.ts +22 -0
  17. package/dist/lib/custom/OrderHeader/line-extension-cache.d.ts.map +1 -0
  18. package/dist/lib/custom/OrderHeader/line-extension-cache.js +46 -0
  19. package/dist/lib/custom/OrderHeader/line-extension-cache.js.map +1 -0
  20. package/dist/lib/custom/OrderHeader/line-extension-fields.d.ts +58 -0
  21. package/dist/lib/custom/OrderHeader/line-extension-fields.d.ts.map +1 -0
  22. package/dist/lib/custom/OrderHeader/line-extension-fields.js +137 -0
  23. package/dist/lib/custom/OrderHeader/line-extension-fields.js.map +1 -0
  24. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +127 -0
  25. package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -0
  26. package/dist/lib/custom/OrderHeader/order-header-form.component.js +1429 -0
  27. package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -0
  28. package/dist/lib/custom/OrderHeader/order-header-prefs.d.ts +18 -0
  29. package/dist/lib/custom/OrderHeader/order-header-prefs.d.ts.map +1 -0
  30. package/dist/lib/custom/OrderHeader/order-header-prefs.js +20 -0
  31. package/dist/lib/custom/OrderHeader/order-header-prefs.js.map +1 -0
  32. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +72 -0
  33. package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -0
  34. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +621 -0
  35. package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -0
  36. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts +135 -0
  37. package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts.map +1 -0
  38. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js +2169 -0
  39. package/dist/lib/custom/PaymentHeader/payment-header-form.component.js.map +1 -0
  40. package/dist/lib/custom/PriceList/price-list-form.component.d.ts +46 -0
  41. package/dist/lib/custom/PriceList/price-list-form.component.d.ts.map +1 -0
  42. package/dist/lib/custom/PriceList/price-list-form.component.js +363 -0
  43. package/dist/lib/custom/PriceList/price-list-form.component.js.map +1 -0
  44. package/dist/lib/custom/Product/product-form.component.d.ts +81 -0
  45. package/dist/lib/custom/Product/product-form.component.d.ts.map +1 -0
  46. package/dist/lib/custom/Product/product-form.component.js +665 -0
  47. package/dist/lib/custom/Product/product-form.component.js.map +1 -0
  48. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.d.ts +16 -0
  49. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.d.ts.map +1 -0
  50. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +55 -0
  51. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -0
  52. package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.d.ts +16 -0
  53. package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.d.ts.map +1 -0
  54. package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.js +65 -0
  55. package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.js.map +1 -0
  56. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +103 -0
  57. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -0
  58. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +950 -0
  59. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -0
  60. package/dist/lib/custom/Product/widgets/product-promotions-widget.component.d.ts +21 -0
  61. package/dist/lib/custom/Product/widgets/product-promotions-widget.component.d.ts.map +1 -0
  62. package/dist/lib/custom/Product/widgets/product-promotions-widget.component.js +67 -0
  63. package/dist/lib/custom/Product/widgets/product-promotions-widget.component.js.map +1 -0
  64. package/dist/lib/custom/Product/widgets/product-subscription-widget.component.d.ts +18 -0
  65. package/dist/lib/custom/Product/widgets/product-subscription-widget.component.d.ts.map +1 -0
  66. package/dist/lib/custom/Product/widgets/product-subscription-widget.component.js +55 -0
  67. package/dist/lib/custom/Product/widgets/product-subscription-widget.component.js.map +1 -0
  68. package/dist/lib/custom/Promotion/promotion-form.component.d.ts +33 -0
  69. package/dist/lib/custom/Promotion/promotion-form.component.d.ts.map +1 -0
  70. package/dist/lib/custom/Promotion/promotion-form.component.js +350 -0
  71. package/dist/lib/custom/Promotion/promotion-form.component.js.map +1 -0
  72. package/dist/lib/custom/Subscription/subscription-form.component.d.ts +96 -0
  73. package/dist/lib/custom/Subscription/subscription-form.component.d.ts.map +1 -0
  74. package/dist/lib/custom/Subscription/subscription-form.component.js +885 -0
  75. package/dist/lib/custom/Subscription/subscription-form.component.js.map +1 -0
  76. package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.d.ts +60 -0
  77. package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.d.ts.map +1 -0
  78. package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.js +567 -0
  79. package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.js.map +1 -0
  80. package/dist/lib/custom/custom-forms.module.d.ts +29 -0
  81. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -0
  82. package/dist/lib/custom/custom-forms.module.js +127 -0
  83. package/dist/lib/custom/custom-forms.module.js.map +1 -0
  84. package/dist/lib/custom/form-navigation-helper.d.ts +10 -0
  85. package/dist/lib/custom/form-navigation-helper.d.ts.map +1 -0
  86. package/dist/lib/custom/form-navigation-helper.js +51 -0
  87. package/dist/lib/custom/form-navigation-helper.js.map +1 -0
  88. package/dist/lib/data/entity-names.d.ts +84 -0
  89. package/dist/lib/data/entity-names.d.ts.map +1 -0
  90. package/dist/lib/data/entity-names.js +85 -0
  91. package/dist/lib/data/entity-names.js.map +1 -0
  92. package/dist/lib/data/orders-queries.d.ts +394 -0
  93. package/dist/lib/data/orders-queries.d.ts.map +1 -0
  94. package/dist/lib/data/orders-queries.js +897 -0
  95. package/dist/lib/data/orders-queries.js.map +1 -0
  96. package/dist/lib/form-panels/catalog-overviews.panels.d.ts +36 -0
  97. package/dist/lib/form-panels/catalog-overviews.panels.d.ts.map +1 -0
  98. package/dist/lib/form-panels/catalog-overviews.panels.js +443 -0
  99. package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -0
  100. package/dist/lib/form-panels/commercial-overviews.panels.d.ts +30 -0
  101. package/dist/lib/form-panels/commercial-overviews.panels.d.ts.map +1 -0
  102. package/dist/lib/form-panels/commercial-overviews.panels.js +315 -0
  103. package/dist/lib/form-panels/commercial-overviews.panels.js.map +1 -0
  104. package/dist/lib/form-panels/document-form.helpers.d.ts +38 -0
  105. package/dist/lib/form-panels/document-form.helpers.d.ts.map +1 -0
  106. package/dist/lib/form-panels/document-form.helpers.js +183 -0
  107. package/dist/lib/form-panels/document-form.helpers.js.map +1 -0
  108. package/dist/lib/form-panels/document-forms.module.d.ts +34 -0
  109. package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -0
  110. package/dist/lib/form-panels/document-forms.module.js +183 -0
  111. package/dist/lib/form-panels/document-forms.module.js.map +1 -0
  112. package/dist/lib/form-panels/document-hero.component.d.ts +28 -0
  113. package/dist/lib/form-panels/document-hero.component.d.ts.map +1 -0
  114. package/dist/lib/form-panels/document-hero.component.js +167 -0
  115. package/dist/lib/form-panels/document-hero.component.js.map +1 -0
  116. package/dist/lib/form-panels/document-overviews.panels.d.ts +42 -0
  117. package/dist/lib/form-panels/document-overviews.panels.d.ts.map +1 -0
  118. package/dist/lib/form-panels/document-overviews.panels.js +457 -0
  119. package/dist/lib/form-panels/document-overviews.panels.js.map +1 -0
  120. package/dist/lib/form-panels/lookup-headers.panels.d.ts +68 -0
  121. package/dist/lib/form-panels/lookup-headers.panels.d.ts.map +1 -0
  122. package/dist/lib/form-panels/lookup-headers.panels.js +399 -0
  123. package/dist/lib/form-panels/lookup-headers.panels.js.map +1 -0
  124. package/dist/lib/form-panels/organization-header.panel.d.ts +15 -0
  125. package/dist/lib/form-panels/organization-header.panel.d.ts.map +1 -0
  126. package/dist/lib/form-panels/organization-header.panel.js +77 -0
  127. package/dist/lib/form-panels/organization-header.panel.js.map +1 -0
  128. package/dist/lib/form-panels/organization-orders-overview.panel.d.ts +13 -0
  129. package/dist/lib/form-panels/organization-orders-overview.panel.d.ts.map +1 -0
  130. package/dist/lib/form-panels/organization-orders-overview.panel.js +77 -0
  131. package/dist/lib/form-panels/organization-orders-overview.panel.js.map +1 -0
  132. package/dist/lib/form-panels/organization-orders.panel.d.ts +16 -0
  133. package/dist/lib/form-panels/organization-orders.panel.d.ts.map +1 -0
  134. package/dist/lib/form-panels/organization-orders.panel.js +88 -0
  135. package/dist/lib/form-panels/organization-orders.panel.js.map +1 -0
  136. package/dist/lib/form-panels/overview-cards.component.d.ts +30 -0
  137. package/dist/lib/form-panels/overview-cards.component.d.ts.map +1 -0
  138. package/dist/lib/form-panels/overview-cards.component.js +250 -0
  139. package/dist/lib/form-panels/overview-cards.component.js.map +1 -0
  140. package/dist/lib/form-panels/overview-load.d.ts +7 -0
  141. package/dist/lib/form-panels/overview-load.d.ts.map +1 -0
  142. package/dist/lib/form-panels/overview-load.js +31 -0
  143. package/dist/lib/form-panels/overview-load.js.map +1 -0
  144. package/dist/lib/form-panels/party-headers.module.d.ts +18 -0
  145. package/dist/lib/form-panels/party-headers.module.d.ts.map +1 -0
  146. package/dist/lib/form-panels/party-headers.module.js +63 -0
  147. package/dist/lib/form-panels/party-headers.module.js.map +1 -0
  148. package/dist/lib/form-panels/party-order-stats.d.ts +26 -0
  149. package/dist/lib/form-panels/party-order-stats.d.ts.map +1 -0
  150. package/dist/lib/form-panels/party-order-stats.js +149 -0
  151. package/dist/lib/form-panels/party-order-stats.js.map +1 -0
  152. package/dist/lib/form-panels/payment-header.panel.d.ts +21 -0
  153. package/dist/lib/form-panels/payment-header.panel.d.ts.map +1 -0
  154. package/dist/lib/form-panels/payment-header.panel.js +111 -0
  155. package/dist/lib/form-panels/payment-header.panel.js.map +1 -0
  156. package/dist/lib/form-panels/payment-journals.panel.d.ts +32 -0
  157. package/dist/lib/form-panels/payment-journals.panel.d.ts.map +1 -0
  158. package/dist/lib/form-panels/payment-journals.panel.js +332 -0
  159. package/dist/lib/form-panels/payment-journals.panel.js.map +1 -0
  160. package/dist/lib/form-panels/person-header.panel.d.ts +15 -0
  161. package/dist/lib/form-panels/person-header.panel.d.ts.map +1 -0
  162. package/dist/lib/form-panels/person-header.panel.js +77 -0
  163. package/dist/lib/form-panels/person-header.panel.js.map +1 -0
  164. package/dist/lib/form-panels/person-orders-overview.panel.d.ts +13 -0
  165. package/dist/lib/form-panels/person-orders-overview.panel.d.ts.map +1 -0
  166. package/dist/lib/form-panels/person-orders-overview.panel.js +77 -0
  167. package/dist/lib/form-panels/person-orders-overview.panel.js.map +1 -0
  168. package/dist/lib/form-panels/person-orders.panel.d.ts +17 -0
  169. package/dist/lib/form-panels/person-orders.panel.d.ts.map +1 -0
  170. package/dist/lib/form-panels/person-orders.panel.js +89 -0
  171. package/dist/lib/form-panels/person-orders.panel.js.map +1 -0
  172. package/dist/lib/form-panels/price-list-header.panel.d.ts +11 -0
  173. package/dist/lib/form-panels/price-list-header.panel.d.ts.map +1 -0
  174. package/dist/lib/form-panels/price-list-header.panel.js +76 -0
  175. package/dist/lib/form-panels/price-list-header.panel.js.map +1 -0
  176. package/dist/lib/form-panels/price-list-simulator.panel.d.ts +19 -0
  177. package/dist/lib/form-panels/price-list-simulator.panel.d.ts.map +1 -0
  178. package/dist/lib/form-panels/price-list-simulator.panel.js +125 -0
  179. package/dist/lib/form-panels/price-list-simulator.panel.js.map +1 -0
  180. package/dist/lib/form-panels/product-category-hierarchy.panel.d.ts +23 -0
  181. package/dist/lib/form-panels/product-category-hierarchy.panel.d.ts.map +1 -0
  182. package/dist/lib/form-panels/product-category-hierarchy.panel.js +118 -0
  183. package/dist/lib/form-panels/product-category-hierarchy.panel.js.map +1 -0
  184. package/dist/lib/form-panels/product-header.panel.d.ts +14 -0
  185. package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -0
  186. package/dist/lib/form-panels/product-header.panel.js +105 -0
  187. package/dist/lib/form-panels/product-header.panel.js.map +1 -0
  188. package/dist/lib/form-panels/product-widget.panels.d.ts +24 -0
  189. package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -0
  190. package/dist/lib/form-panels/product-widget.panels.js +253 -0
  191. package/dist/lib/form-panels/product-widget.panels.js.map +1 -0
  192. package/dist/lib/form-panels/promotion-header.panel.d.ts +14 -0
  193. package/dist/lib/form-panels/promotion-header.panel.d.ts.map +1 -0
  194. package/dist/lib/form-panels/promotion-header.panel.js +112 -0
  195. package/dist/lib/form-panels/promotion-header.panel.js.map +1 -0
  196. package/dist/lib/form-panels/subscription-header.panel.d.ts +17 -0
  197. package/dist/lib/form-panels/subscription-header.panel.d.ts.map +1 -0
  198. package/dist/lib/form-panels/subscription-header.panel.js +127 -0
  199. package/dist/lib/form-panels/subscription-header.panel.js.map +1 -0
  200. package/dist/lib/form-panels/subscription-revrec.panel.d.ts +32 -0
  201. package/dist/lib/form-panels/subscription-revrec.panel.d.ts.map +1 -0
  202. package/dist/lib/form-panels/subscription-revrec.panel.js +184 -0
  203. package/dist/lib/form-panels/subscription-revrec.panel.js.map +1 -0
  204. package/dist/lib/form-panels/subscription-term-header.panel.d.ts +13 -0
  205. package/dist/lib/form-panels/subscription-term-header.panel.d.ts.map +1 -0
  206. package/dist/lib/form-panels/subscription-term-header.panel.js +113 -0
  207. package/dist/lib/form-panels/subscription-term-header.panel.js.map +1 -0
  208. package/dist/lib/form-panels/subscription-term-revrec.panel.d.ts +23 -0
  209. package/dist/lib/form-panels/subscription-term-revrec.panel.d.ts.map +1 -0
  210. package/dist/lib/form-panels/subscription-term-revrec.panel.js +144 -0
  211. package/dist/lib/form-panels/subscription-term-revrec.panel.js.map +1 -0
  212. package/dist/lib/form-panels/subscription-terms.panel.d.ts +25 -0
  213. package/dist/lib/form-panels/subscription-terms.panel.d.ts.map +1 -0
  214. package/dist/lib/form-panels/subscription-terms.panel.js +173 -0
  215. package/dist/lib/form-panels/subscription-terms.panel.js.map +1 -0
  216. package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.d.ts +10 -0
  217. package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.d.ts.map +1 -0
  218. package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.js +102 -0
  219. package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.js.map +1 -0
  220. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.d.ts +10 -0
  221. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.d.ts.map +1 -0
  222. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js +103 -0
  223. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js.map +1 -0
  224. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.d.ts +10 -0
  225. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.d.ts.map +1 -0
  226. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.js +136 -0
  227. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.js.map +1 -0
  228. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.d.ts +10 -0
  229. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.d.ts.map +1 -0
  230. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.js +106 -0
  231. package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.js.map +1 -0
  232. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.d.ts +10 -0
  233. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.d.ts.map +1 -0
  234. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.js +98 -0
  235. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.js.map +1 -0
  236. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.d.ts +10 -0
  237. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.d.ts.map +1 -0
  238. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.js +89 -0
  239. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.js.map +1 -0
  240. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.d.ts +10 -0
  241. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.d.ts.map +1 -0
  242. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.js +103 -0
  243. package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.js.map +1 -0
  244. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.d.ts +10 -0
  245. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.d.ts.map +1 -0
  246. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.js +107 -0
  247. package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.js.map +1 -0
  248. package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.d.ts +10 -0
  249. package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.d.ts.map +1 -0
  250. package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js +139 -0
  251. package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js.map +1 -0
  252. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.d.ts +10 -0
  253. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.d.ts.map +1 -0
  254. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js +129 -0
  255. package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js.map +1 -0
  256. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.d.ts +10 -0
  257. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.d.ts.map +1 -0
  258. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.js +122 -0
  259. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.js.map +1 -0
  260. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.d.ts +10 -0
  261. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.d.ts.map +1 -0
  262. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.js +67 -0
  263. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.js.map +1 -0
  264. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.d.ts +10 -0
  265. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.d.ts.map +1 -0
  266. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.js +132 -0
  267. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.js.map +1 -0
  268. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.d.ts +10 -0
  269. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.d.ts.map +1 -0
  270. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.js +67 -0
  271. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.js.map +1 -0
  272. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.d.ts +10 -0
  273. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.d.ts.map +1 -0
  274. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js +85 -0
  275. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js.map +1 -0
  276. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.d.ts +10 -0
  277. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.d.ts.map +1 -0
  278. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js +342 -0
  279. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js.map +1 -0
  280. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.d.ts +10 -0
  281. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.d.ts.map +1 -0
  282. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js +378 -0
  283. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js.map +1 -0
  284. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.d.ts +10 -0
  285. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.d.ts.map +1 -0
  286. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.js +71 -0
  287. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.js.map +1 -0
  288. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.d.ts +10 -0
  289. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.d.ts.map +1 -0
  290. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.js +89 -0
  291. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.js.map +1 -0
  292. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.d.ts +10 -0
  293. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.d.ts.map +1 -0
  294. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.js +63 -0
  295. package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.js.map +1 -0
  296. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.d.ts +10 -0
  297. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.d.ts.map +1 -0
  298. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.js +180 -0
  299. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.js.map +1 -0
  300. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.d.ts +10 -0
  301. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.d.ts.map +1 -0
  302. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js +206 -0
  303. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js.map +1 -0
  304. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.d.ts +10 -0
  305. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.d.ts.map +1 -0
  306. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js +128 -0
  307. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js.map +1 -0
  308. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.d.ts +10 -0
  309. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.d.ts.map +1 -0
  310. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.js +87 -0
  311. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.js.map +1 -0
  312. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.d.ts +10 -0
  313. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.d.ts.map +1 -0
  314. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.js +158 -0
  315. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.js.map +1 -0
  316. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.d.ts +10 -0
  317. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.d.ts.map +1 -0
  318. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.js +110 -0
  319. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.js.map +1 -0
  320. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.d.ts +10 -0
  321. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.d.ts.map +1 -0
  322. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.js +63 -0
  323. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.js.map +1 -0
  324. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.d.ts +10 -0
  325. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.d.ts.map +1 -0
  326. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.js +108 -0
  327. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.js.map +1 -0
  328. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.d.ts +10 -0
  329. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.d.ts.map +1 -0
  330. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.js +144 -0
  331. package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.js.map +1 -0
  332. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.d.ts +10 -0
  333. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.d.ts.map +1 -0
  334. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.js +134 -0
  335. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.js.map +1 -0
  336. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.d.ts +10 -0
  337. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.d.ts.map +1 -0
  338. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.js +89 -0
  339. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.js.map +1 -0
  340. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.d.ts +10 -0
  341. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.d.ts.map +1 -0
  342. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.js +71 -0
  343. package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.js.map +1 -0
  344. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.d.ts +10 -0
  345. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.d.ts.map +1 -0
  346. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js +294 -0
  347. package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js.map +1 -0
  348. package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.d.ts +10 -0
  349. package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.d.ts.map +1 -0
  350. package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.js +83 -0
  351. package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.js.map +1 -0
  352. package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.d.ts +10 -0
  353. package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.d.ts.map +1 -0
  354. package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js +168 -0
  355. package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js.map +1 -0
  356. package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.d.ts +10 -0
  357. package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.d.ts.map +1 -0
  358. package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.js +114 -0
  359. package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.js.map +1 -0
  360. package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.d.ts +10 -0
  361. package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.d.ts.map +1 -0
  362. package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.js +162 -0
  363. package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.js.map +1 -0
  364. package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.d.ts +10 -0
  365. package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.d.ts.map +1 -0
  366. package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js +136 -0
  367. package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js.map +1 -0
  368. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.d.ts +10 -0
  369. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.d.ts.map +1 -0
  370. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.js +182 -0
  371. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.js.map +1 -0
  372. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.d.ts +10 -0
  373. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.d.ts.map +1 -0
  374. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.js +108 -0
  375. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.js.map +1 -0
  376. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.d.ts +10 -0
  377. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.d.ts.map +1 -0
  378. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.js +75 -0
  379. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.js.map +1 -0
  380. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.d.ts +10 -0
  381. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.d.ts.map +1 -0
  382. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.js +90 -0
  383. package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.js.map +1 -0
  384. package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.d.ts +10 -0
  385. package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.d.ts.map +1 -0
  386. package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.js +138 -0
  387. package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.js.map +1 -0
  388. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts +10 -0
  389. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts.map +1 -0
  390. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js +98 -0
  391. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js.map +1 -0
  392. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.d.ts +10 -0
  393. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.d.ts.map +1 -0
  394. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.js +87 -0
  395. package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.js.map +1 -0
  396. package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.d.ts +10 -0
  397. package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.d.ts.map +1 -0
  398. package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.js +134 -0
  399. package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.js.map +1 -0
  400. package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.d.ts +10 -0
  401. package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.d.ts.map +1 -0
  402. package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.js +87 -0
  403. package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.js.map +1 -0
  404. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.d.ts +10 -0
  405. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.d.ts.map +1 -0
  406. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.js +234 -0
  407. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.js.map +1 -0
  408. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.d.ts +10 -0
  409. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.d.ts.map +1 -0
  410. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.js +87 -0
  411. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.js.map +1 -0
  412. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.d.ts +10 -0
  413. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.d.ts.map +1 -0
  414. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.js +63 -0
  415. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.js.map +1 -0
  416. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.d.ts +10 -0
  417. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.d.ts.map +1 -0
  418. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.js +122 -0
  419. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.js.map +1 -0
  420. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.d.ts +10 -0
  421. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.d.ts.map +1 -0
  422. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.js +188 -0
  423. package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.js.map +1 -0
  424. package/dist/lib/generated/class-registrations-manifest.d.ts +7 -0
  425. package/dist/lib/generated/class-registrations-manifest.d.ts.map +1 -0
  426. package/dist/lib/generated/class-registrations-manifest.js +7 -0
  427. package/dist/lib/generated/class-registrations-manifest.js.map +1 -0
  428. package/dist/lib/generated/generated-forms.module.d.ts +79 -0
  429. package/dist/lib/generated/generated-forms.module.d.ts.map +1 -0
  430. package/dist/lib/generated/generated-forms.module.js +276 -0
  431. package/dist/lib/generated/generated-forms.module.js.map +1 -0
  432. package/dist/lib/pages/catalog/pricing.page.d.ts +81 -0
  433. package/dist/lib/pages/catalog/pricing.page.d.ts.map +1 -0
  434. package/dist/lib/pages/catalog/pricing.page.js +555 -0
  435. package/dist/lib/pages/catalog/pricing.page.js.map +1 -0
  436. package/dist/lib/pages/catalog/products.page.d.ts +98 -0
  437. package/dist/lib/pages/catalog/products.page.d.ts.map +1 -0
  438. package/dist/lib/pages/catalog/products.page.js +877 -0
  439. package/dist/lib/pages/catalog/products.page.js.map +1 -0
  440. package/dist/lib/pages/orders/fulfillment.page.d.ts +54 -0
  441. package/dist/lib/pages/orders/fulfillment.page.d.ts.map +1 -0
  442. package/dist/lib/pages/orders/fulfillment.page.js +279 -0
  443. package/dist/lib/pages/orders/fulfillment.page.js.map +1 -0
  444. package/dist/lib/pages/orders/order-document.page.d.ts +71 -0
  445. package/dist/lib/pages/orders/order-document.page.d.ts.map +1 -0
  446. package/dist/lib/pages/orders/order-document.page.js +573 -0
  447. package/dist/lib/pages/orders/order-document.page.js.map +1 -0
  448. package/dist/lib/pages/orders/orders-dashboard.page.d.ts +79 -0
  449. package/dist/lib/pages/orders/orders-dashboard.page.d.ts.map +1 -0
  450. package/dist/lib/pages/orders/orders-dashboard.page.js +819 -0
  451. package/dist/lib/pages/orders/orders-dashboard.page.js.map +1 -0
  452. package/dist/lib/pages/orders/orders-list.page.d.ts +21 -0
  453. package/dist/lib/pages/orders/orders-list.page.d.ts.map +1 -0
  454. package/dist/lib/pages/orders/orders-list.page.js +74 -0
  455. package/dist/lib/pages/orders/orders-list.page.js.map +1 -0
  456. package/dist/lib/pages/orders/return.page.d.ts +96 -0
  457. package/dist/lib/pages/orders/return.page.d.ts.map +1 -0
  458. package/dist/lib/pages/orders/return.page.js +549 -0
  459. package/dist/lib/pages/orders/return.page.js.map +1 -0
  460. package/dist/lib/pages/payments/account-credit.page.d.ts +96 -0
  461. package/dist/lib/pages/payments/account-credit.page.d.ts.map +1 -0
  462. package/dist/lib/pages/payments/account-credit.page.js +463 -0
  463. package/dist/lib/pages/payments/account-credit.page.js.map +1 -0
  464. package/dist/lib/pages/payments/payments-dashboard.page.d.ts +61 -0
  465. package/dist/lib/pages/payments/payments-dashboard.page.d.ts.map +1 -0
  466. package/dist/lib/pages/payments/payments-dashboard.page.js +359 -0
  467. package/dist/lib/pages/payments/payments-dashboard.page.js.map +1 -0
  468. package/dist/lib/pages/payments/payments-list.page.d.ts +18 -0
  469. package/dist/lib/pages/payments/payments-list.page.d.ts.map +1 -0
  470. package/dist/lib/pages/payments/payments-list.page.js +71 -0
  471. package/dist/lib/pages/payments/payments-list.page.js.map +1 -0
  472. package/dist/lib/pages/payments/refund.page.d.ts +74 -0
  473. package/dist/lib/pages/payments/refund.page.d.ts.map +1 -0
  474. package/dist/lib/pages/payments/refund.page.js +477 -0
  475. package/dist/lib/pages/payments/refund.page.js.map +1 -0
  476. package/dist/lib/pages/receivables/customer-ar.page.d.ts +102 -0
  477. package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -0
  478. package/dist/lib/pages/receivables/customer-ar.page.js +782 -0
  479. package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -0
  480. package/dist/lib/pages/receivables/overdue.page.d.ts +71 -0
  481. package/dist/lib/pages/receivables/overdue.page.d.ts.map +1 -0
  482. package/dist/lib/pages/receivables/overdue.page.js +338 -0
  483. package/dist/lib/pages/receivables/overdue.page.js.map +1 -0
  484. package/dist/lib/pages/receivables/subscriptions.page.d.ts +115 -0
  485. package/dist/lib/pages/receivables/subscriptions.page.d.ts.map +1 -0
  486. package/dist/lib/pages/receivables/subscriptions.page.js +632 -0
  487. package/dist/lib/pages/receivables/subscriptions.page.js.map +1 -0
  488. package/dist/lib/panels/aging-bar.component.d.ts +59 -0
  489. package/dist/lib/panels/aging-bar.component.d.ts.map +1 -0
  490. package/dist/lib/panels/aging-bar.component.js +180 -0
  491. package/dist/lib/panels/aging-bar.component.js.map +1 -0
  492. package/dist/lib/panels/allocation-grid.component.d.ts +90 -0
  493. package/dist/lib/panels/allocation-grid.component.d.ts.map +1 -0
  494. package/dist/lib/panels/allocation-grid.component.js +425 -0
  495. package/dist/lib/panels/allocation-grid.component.js.map +1 -0
  496. package/dist/lib/panels/allocation-math.d.ts +59 -0
  497. package/dist/lib/panels/allocation-math.d.ts.map +1 -0
  498. package/dist/lib/panels/allocation-math.js +99 -0
  499. package/dist/lib/panels/allocation-math.js.map +1 -0
  500. package/dist/lib/panels/chips.component.d.ts +104 -0
  501. package/dist/lib/panels/chips.component.d.ts.map +1 -0
  502. package/dist/lib/panels/chips.component.js +274 -0
  503. package/dist/lib/panels/chips.component.js.map +1 -0
  504. package/dist/lib/panels/day-bars.component.d.ts +64 -0
  505. package/dist/lib/panels/day-bars.component.d.ts.map +1 -0
  506. package/dist/lib/panels/day-bars.component.js +143 -0
  507. package/dist/lib/panels/day-bars.component.js.map +1 -0
  508. package/dist/lib/panels/decomposition-ladder.component.d.ts +68 -0
  509. package/dist/lib/panels/decomposition-ladder.component.d.ts.map +1 -0
  510. package/dist/lib/panels/decomposition-ladder.component.js +217 -0
  511. package/dist/lib/panels/decomposition-ladder.component.js.map +1 -0
  512. package/dist/lib/panels/index.d.ts +46 -0
  513. package/dist/lib/panels/index.d.ts.map +1 -0
  514. package/dist/lib/panels/index.js +58 -0
  515. package/dist/lib/panels/index.js.map +1 -0
  516. package/dist/lib/panels/journal-entry-preview.component.d.ts +71 -0
  517. package/dist/lib/panels/journal-entry-preview.component.d.ts.map +1 -0
  518. package/dist/lib/panels/journal-entry-preview.component.js +281 -0
  519. package/dist/lib/panels/journal-entry-preview.component.js.map +1 -0
  520. package/dist/lib/panels/money-format.d.ts +182 -0
  521. package/dist/lib/panels/money-format.d.ts.map +1 -0
  522. package/dist/lib/panels/money-format.js +297 -0
  523. package/dist/lib/panels/money-format.js.map +1 -0
  524. package/dist/lib/panels/money-strip.component.d.ts +69 -0
  525. package/dist/lib/panels/money-strip.component.d.ts.map +1 -0
  526. package/dist/lib/panels/money-strip.component.js +233 -0
  527. package/dist/lib/panels/money-strip.component.js.map +1 -0
  528. package/dist/lib/panels/order-stages.d.ts +75 -0
  529. package/dist/lib/panels/order-stages.d.ts.map +1 -0
  530. package/dist/lib/panels/order-stages.js +100 -0
  531. package/dist/lib/panels/order-stages.js.map +1 -0
  532. package/dist/lib/panels/party-orders-overview.component.d.ts +79 -0
  533. package/dist/lib/panels/party-orders-overview.component.d.ts.map +1 -0
  534. package/dist/lib/panels/party-orders-overview.component.js +906 -0
  535. package/dist/lib/panels/party-orders-overview.component.js.map +1 -0
  536. package/dist/lib/panels/stat-tile.component.d.ts +75 -0
  537. package/dist/lib/panels/stat-tile.component.d.ts.map +1 -0
  538. package/dist/lib/panels/stat-tile.component.js +214 -0
  539. package/dist/lib/panels/stat-tile.component.js.map +1 -0
  540. package/dist/lib/panels/status-stepper.component.d.ts +60 -0
  541. package/dist/lib/panels/status-stepper.component.d.ts.map +1 -0
  542. package/dist/lib/panels/status-stepper.component.js +160 -0
  543. package/dist/lib/panels/status-stepper.component.js.map +1 -0
  544. package/dist/lib/panels/summary-strip.component.d.ts +48 -0
  545. package/dist/lib/panels/summary-strip.component.d.ts.map +1 -0
  546. package/dist/lib/panels/summary-strip.component.js +100 -0
  547. package/dist/lib/panels/summary-strip.component.js.map +1 -0
  548. package/dist/lib/panels/worklist-table.component.d.ts +127 -0
  549. package/dist/lib/panels/worklist-table.component.d.ts.map +1 -0
  550. package/dist/lib/panels/worklist-table.component.js +444 -0
  551. package/dist/lib/panels/worklist-table.component.js.map +1 -0
  552. package/dist/lib/sections/orders-sections.component.d.ts +282 -0
  553. package/dist/lib/sections/orders-sections.component.d.ts.map +1 -0
  554. package/dist/lib/sections/orders-sections.component.js +1117 -0
  555. package/dist/lib/sections/orders-sections.component.js.map +1 -0
  556. package/dist/lib/sections/section-nav.model.d.ts +74 -0
  557. package/dist/lib/sections/section-nav.model.d.ts.map +1 -0
  558. package/dist/lib/sections/section-nav.model.js +114 -0
  559. package/dist/lib/sections/section-nav.model.js.map +1 -0
  560. package/dist/lib/sections/section-shell.component.d.ts +70 -0
  561. package/dist/lib/sections/section-shell.component.d.ts.map +1 -0
  562. package/dist/lib/sections/section-shell.component.js +193 -0
  563. package/dist/lib/sections/section-shell.component.js.map +1 -0
  564. package/dist/lib/services/pricing-scheduler.service.d.ts +181 -0
  565. package/dist/lib/services/pricing-scheduler.service.d.ts.map +1 -0
  566. package/dist/lib/services/pricing-scheduler.service.js +292 -0
  567. package/dist/lib/services/pricing-scheduler.service.js.map +1 -0
  568. package/dist/lib/services/save-error.d.ts +24 -0
  569. package/dist/lib/services/save-error.d.ts.map +1 -0
  570. package/dist/lib/services/save-error.js +47 -0
  571. package/dist/lib/services/save-error.js.map +1 -0
  572. package/dist/lib/styles/orders-kit.css +841 -0
  573. package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.d.ts +55 -0
  574. package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.d.ts.map +1 -0
  575. package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.js +243 -0
  576. package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.js.map +1 -0
  577. package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.d.ts +47 -0
  578. package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.d.ts.map +1 -0
  579. package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.js +112 -0
  580. package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.js.map +1 -0
  581. package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.d.ts +36 -0
  582. package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.d.ts.map +1 -0
  583. package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.js +179 -0
  584. package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.js.map +1 -0
  585. package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.d.ts +36 -0
  586. package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.d.ts.map +1 -0
  587. package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.js +9 -0
  588. package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.js.map +1 -0
  589. package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.d.ts +35 -0
  590. package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.d.ts.map +1 -0
  591. package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.js +124 -0
  592. package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.js.map +1 -0
  593. package/dist/public-api.d.ts +80 -0
  594. package/dist/public-api.d.ts.map +1 -0
  595. package/dist/public-api.js +98 -0
  596. package/dist/public-api.js.map +1 -0
  597. package/package.json +78 -5
@@ -0,0 +1,2169 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { Component, inject } from '@angular/core';
8
+ import { CompositeKey } from '@memberjunction/core';
9
+ import { UserInfoEngine } from '@memberjunction/core-entities';
10
+ import { RegisterClass, UUIDsEqual } from '@memberjunction/global';
11
+ import { BaseFormComponent } from '@memberjunction/ng-base-forms';
12
+ import { NavigationService } from '@memberjunction/ng-shared';
13
+ import { mjBizAppsOrdersPaymentHeaderFormComponent } from '../../generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js';
14
+ import { FormatMoney, FormatDate } from '../../panels/money-format.js';
15
+ import { BuildPaymentJournalFilter, GetPaymentJournalRollup, GetOrders, GetOrderLinesForOrders, GetPaymentTypes, GetSellingCompanies, } from '../../data/orders-queries.js';
16
+ import { MJO_ACCOUNTING_ENTITIES, MJO_ENTITIES } from '../../data/entity-names.js';
17
+ import { DispatchFormNavigation } from '../form-navigation-helper.js';
18
+ import * as i0 from "@angular/core";
19
+ import * as i1 from "@angular/forms";
20
+ import * as i2 from "@memberjunction/ng-base-forms";
21
+ import * as i3 from "@memberjunction/ng-ui-components";
22
+ const _forTrack0 = ($index, $item) => $item.ID;
23
+ const _forTrack1 = ($index, $item) => $item.CompanyID;
24
+ const _forTrack2 = ($index, $item) => $item.Key;
25
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_13_Template(rf, ctx) { if (rf & 1) {
26
+ i0.ɵɵelementStart(0, "span", 9);
27
+ i0.ɵɵelement(1, "i", 21);
28
+ i0.ɵɵtext(2, " Reversal ");
29
+ i0.ɵɵelementEnd();
30
+ } }
31
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_37_Template(rf, ctx) { if (rf & 1) {
32
+ i0.ɵɵtext(0);
33
+ } if (rf & 2) {
34
+ const ctx_r1 = i0.ɵɵnextContext(2);
35
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.GetSectionRowCount("mJBizAppsOrdersPaymentLines") || 0, " Settled ");
36
+ } }
37
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_38_Template(rf, ctx) { if (rf & 1) {
38
+ i0.ɵɵtext(0);
39
+ } if (rf & 2) {
40
+ const ctx_r1 = i0.ɵɵnextContext(2);
41
+ i0.ɵɵtextInterpolate1(" $", ctx_r1.TotalAllocated.toFixed(2), " ");
42
+ } }
43
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_39_Template(rf, ctx) { if (rf & 1) {
44
+ const _r3 = i0.ɵɵgetCurrentView();
45
+ i0.ɵɵelementStart(0, "div", 15)(1, "button", 22);
46
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_39_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SaveAsDraft()); });
47
+ i0.ɵɵelement(2, "i", 23);
48
+ i0.ɵɵtext(3);
49
+ i0.ɵɵelementEnd();
50
+ i0.ɵɵelementStart(4, "button", 24);
51
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_39_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.CapturePayment()); });
52
+ i0.ɵɵelement(5, "i", 25);
53
+ i0.ɵɵtext(6);
54
+ i0.ɵɵelementEnd()();
55
+ } if (rf & 2) {
56
+ const ctx_r1 = i0.ɵɵnextContext(2);
57
+ i0.ɵɵadvance();
58
+ i0.ɵɵproperty("disabled", ctx_r1.Saving || ctx_r1.Capturing);
59
+ i0.ɵɵadvance(2);
60
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.Saving ? "Saving\u2026" : "Save draft", " ");
61
+ i0.ɵɵadvance();
62
+ i0.ɵɵproperty("disabled", ctx_r1.Capturing || ctx_r1.Saving || !ctx_r1.IsAllocationBalanced || !ctx_r1.record.Amount || !ctx_r1.hasPayer);
63
+ i0.ɵɵadvance(2);
64
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.Capturing ? "Capturing\u2026" : "Capture & Book", " ");
65
+ } }
66
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_42_Template(rf, ctx) { if (rf & 1) {
67
+ i0.ɵɵelementStart(0, "div", 18);
68
+ i0.ɵɵelement(1, "i", 26);
69
+ i0.ɵɵelementStart(2, "div")(3, "strong");
70
+ i0.ɵɵtext(4, "Failed to capture payment:");
71
+ i0.ɵɵelementEnd();
72
+ i0.ɵɵtext(5);
73
+ i0.ɵɵelementEnd()();
74
+ } if (rf & 2) {
75
+ const ctx_r1 = i0.ɵɵnextContext(2);
76
+ i0.ɵɵadvance(5);
77
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.CaptureError, " ");
78
+ } }
79
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Conditional_4_Template(rf, ctx) { if (rf & 1) {
80
+ i0.ɵɵelementStart(0, "span", 66);
81
+ i0.ɵɵtext(1);
82
+ i0.ɵɵelementEnd();
83
+ } if (rf & 2) {
84
+ const ctx_r1 = i0.ɵɵnextContext(4);
85
+ i0.ɵɵadvance();
86
+ i0.ɵɵtextInterpolate1("", ctx_r1.OpenOrders.length, " unpaid orders");
87
+ } }
88
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Template(rf, ctx) { if (rf & 1) {
89
+ i0.ɵɵelementStart(0, "div", 36);
90
+ i0.ɵɵelement(1, "i", 71);
91
+ i0.ɵɵelementStart(2, "span");
92
+ i0.ɵɵtext(3);
93
+ i0.ɵɵelementEnd();
94
+ i0.ɵɵconditionalCreate(4, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Conditional_4_Template, 2, 1, "span", 66);
95
+ i0.ɵɵelementEnd();
96
+ } if (rf & 2) {
97
+ const ctx_r1 = i0.ɵɵnextContext(3);
98
+ i0.ɵɵadvance(3);
99
+ i0.ɵɵtextInterpolate(ctx_r1.PayerDisplayName);
100
+ i0.ɵɵadvance();
101
+ i0.ɵɵconditional(ctx_r1.OpenOrders.length > 0 ? 4 : -1);
102
+ } }
103
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_30_For_4_Template(rf, ctx) { if (rf & 1) {
104
+ i0.ɵɵelementStart(0, "option", 74);
105
+ i0.ɵɵtext(1);
106
+ i0.ɵɵelementEnd();
107
+ } if (rf & 2) {
108
+ const pt_r6 = ctx.$implicit;
109
+ i0.ɵɵproperty("value", pt_r6.ID);
110
+ i0.ɵɵadvance();
111
+ i0.ɵɵtextInterpolate(pt_r6.Name);
112
+ } }
113
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_30_Template(rf, ctx) { if (rf & 1) {
114
+ const _r5 = i0.ɵɵgetCurrentView();
115
+ i0.ɵɵelementStart(0, "select", 72);
116
+ i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_30_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnPaymentTypeSelected($event)); });
117
+ i0.ɵɵelementStart(1, "option", 73);
118
+ i0.ɵɵtext(2, "Select payment type\u2026");
119
+ i0.ɵɵelementEnd();
120
+ i0.ɵɵrepeaterCreate(3, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_30_For_4_Template, 2, 2, "option", 74, _forTrack0);
121
+ i0.ɵɵelementEnd();
122
+ } if (rf & 2) {
123
+ const ctx_r1 = i0.ɵɵnextContext(3);
124
+ i0.ɵɵproperty("ngModel", ctx_r1.record.PaymentTypeID);
125
+ i0.ɵɵadvance();
126
+ i0.ɵɵproperty("ngValue", null);
127
+ i0.ɵɵadvance(2);
128
+ i0.ɵɵrepeater(ctx_r1.PaymentTypes);
129
+ } }
130
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_31_Template(rf, ctx) { if (rf & 1) {
131
+ const _r7 = i0.ɵɵgetCurrentView();
132
+ i0.ɵɵelementStart(0, "mj-form-field", 75);
133
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_31_Template_mj_form_field_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
134
+ i0.ɵɵelementEnd();
135
+ } if (rf & 2) {
136
+ const ctx_r1 = i0.ɵɵnextContext(3);
137
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", false)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
138
+ } }
139
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Template(rf, ctx) { if (rf & 1) {
140
+ const _r8 = i0.ɵɵgetCurrentView();
141
+ i0.ɵɵelementStart(0, "div", 46)(1, "div", 76);
142
+ i0.ɵɵelement(2, "i", 77);
143
+ i0.ɵɵtext(3, " Check details ");
144
+ i0.ɵɵelementEnd();
145
+ i0.ɵɵelementStart(4, "div", 78)(5, "div", 38)(6, "label", 39);
146
+ i0.ɵɵtext(7, "Check \u2116 ");
147
+ i0.ɵɵelementStart(8, "span", 79);
148
+ i0.ɵɵtext(9, "*");
149
+ i0.ɵɵelementEnd()();
150
+ i0.ɵɵelementStart(10, "input", 80);
151
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Template_input_ngModelChange_10_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
152
+ i0.ɵɵelementEnd()();
153
+ i0.ɵɵelementStart(11, "div", 38)(12, "label", 39);
154
+ i0.ɵɵtext(13, "Check Date");
155
+ i0.ɵɵelementEnd();
156
+ i0.ɵɵelementStart(14, "input", 81);
157
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Template_input_ngModelChange_14_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.InstrumentDateInput, $event) || (ctx_r1.InstrumentDateInput = $event); return i0.ɵɵresetView($event); });
158
+ i0.ɵɵelementEnd()();
159
+ i0.ɵɵelementStart(15, "div", 82)(16, "label", 39);
160
+ i0.ɵɵtext(17, "Bank Name");
161
+ i0.ɵɵelementEnd();
162
+ i0.ɵɵelementStart(18, "input", 83);
163
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Template_input_ngModelChange_18_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankName, $event) || (ctx_r1.BankName = $event); return i0.ɵɵresetView($event); });
164
+ i0.ɵɵelementEnd()()()();
165
+ } if (rf & 2) {
166
+ const ctx_r1 = i0.ɵɵnextContext(3);
167
+ i0.ɵɵadvance(10);
168
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ReferenceNumber);
169
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
170
+ i0.ɵɵadvance(4);
171
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.InstrumentDateInput);
172
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
173
+ i0.ɵɵadvance(4);
174
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.BankName);
175
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
176
+ } }
177
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template(rf, ctx) { if (rf & 1) {
178
+ const _r9 = i0.ɵɵgetCurrentView();
179
+ i0.ɵɵelementStart(0, "div", 46)(1, "div", 76);
180
+ i0.ɵɵelement(2, "i", 84);
181
+ i0.ɵɵtext(3, " Card instrument details ");
182
+ i0.ɵɵelementEnd();
183
+ i0.ɵɵelementStart(4, "div", 78)(5, "div", 38)(6, "label", 39);
184
+ i0.ɵɵtext(7, "Card Brand");
185
+ i0.ɵɵelementEnd();
186
+ i0.ɵɵelementStart(8, "select", 85);
187
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template_select_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardBrand, $event) || (ctx_r1.CardBrand = $event); return i0.ɵɵresetView($event); });
188
+ i0.ɵɵelementStart(9, "option", 86);
189
+ i0.ɵɵtext(10, "Select Brand");
190
+ i0.ɵɵelementEnd();
191
+ i0.ɵɵelementStart(11, "option", 87);
192
+ i0.ɵɵtext(12, "Visa");
193
+ i0.ɵɵelementEnd();
194
+ i0.ɵɵelementStart(13, "option", 88);
195
+ i0.ɵɵtext(14, "MasterCard");
196
+ i0.ɵɵelementEnd();
197
+ i0.ɵɵelementStart(15, "option", 89);
198
+ i0.ɵɵtext(16, "American Express");
199
+ i0.ɵɵelementEnd();
200
+ i0.ɵɵelementStart(17, "option", 90);
201
+ i0.ɵɵtext(18, "Discover");
202
+ i0.ɵɵelementEnd();
203
+ i0.ɵɵelementStart(19, "option", 91);
204
+ i0.ɵɵtext(20, "Other");
205
+ i0.ɵɵelementEnd()()();
206
+ i0.ɵɵelementStart(21, "div", 38)(22, "label", 39);
207
+ i0.ɵɵtext(23, "Last 4 Digits");
208
+ i0.ɵɵelementEnd();
209
+ i0.ɵɵelementStart(24, "input", 92);
210
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template_input_ngModelChange_24_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardLast4, $event) || (ctx_r1.CardLast4 = $event); return i0.ɵɵresetView($event); });
211
+ i0.ɵɵelementEnd()();
212
+ i0.ɵɵelementStart(25, "div", 38)(26, "label", 39);
213
+ i0.ɵɵtext(27, "Expiry (MM / YYYY)");
214
+ i0.ɵɵelementEnd();
215
+ i0.ɵɵelementStart(28, "div", 93)(29, "input", 94);
216
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template_input_ngModelChange_29_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardExpMonth, $event) || (ctx_r1.CardExpMonth = $event); return i0.ɵɵresetView($event); });
217
+ i0.ɵɵelementEnd();
218
+ i0.ɵɵelementStart(30, "input", 95);
219
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template_input_ngModelChange_30_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardExpYear, $event) || (ctx_r1.CardExpYear = $event); return i0.ɵɵresetView($event); });
220
+ i0.ɵɵelementEnd()()();
221
+ i0.ɵɵelementStart(31, "div", 38)(32, "label", 39);
222
+ i0.ɵɵtext(33, "Cardholder Name");
223
+ i0.ɵɵelementEnd();
224
+ i0.ɵɵelementStart(34, "input", 96);
225
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template_input_ngModelChange_34_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.CardHolderName, $event) || (ctx_r1.CardHolderName = $event); return i0.ɵɵresetView($event); });
226
+ i0.ɵɵelementEnd()();
227
+ i0.ɵɵelementStart(35, "div", 82)(36, "label", 39);
228
+ i0.ɵɵtext(37, "Auth / Approval \u2116");
229
+ i0.ɵɵelementEnd();
230
+ i0.ɵɵelementStart(38, "input", 97);
231
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template_input_ngModelChange_38_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
232
+ i0.ɵɵelementEnd()()()();
233
+ } if (rf & 2) {
234
+ const ctx_r1 = i0.ɵɵnextContext(3);
235
+ i0.ɵɵadvance(8);
236
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.CardBrand);
237
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
238
+ i0.ɵɵadvance(16);
239
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.CardLast4);
240
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
241
+ i0.ɵɵadvance(5);
242
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.CardExpMonth);
243
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
244
+ i0.ɵɵadvance();
245
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.CardExpYear);
246
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
247
+ i0.ɵɵadvance(4);
248
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.CardHolderName);
249
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
250
+ i0.ɵɵadvance(4);
251
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ReferenceNumber);
252
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
253
+ } }
254
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template(rf, ctx) { if (rf & 1) {
255
+ const _r10 = i0.ɵɵgetCurrentView();
256
+ i0.ɵɵelementStart(0, "div", 46)(1, "div", 76);
257
+ i0.ɵɵelement(2, "i", 98);
258
+ i0.ɵɵtext(3, " Bank transfer / ACH details ");
259
+ i0.ɵɵelementEnd();
260
+ i0.ɵɵelementStart(4, "div", 78)(5, "div", 38)(6, "label", 39);
261
+ i0.ɵɵtext(7, "Bank Name");
262
+ i0.ɵɵelementEnd();
263
+ i0.ɵɵelementStart(8, "input", 99);
264
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankName, $event) || (ctx_r1.BankName = $event); return i0.ɵɵresetView($event); });
265
+ i0.ɵɵelementEnd()();
266
+ i0.ɵɵelementStart(9, "div", 38)(10, "label", 39);
267
+ i0.ɵɵtext(11, "Account Type");
268
+ i0.ɵɵelementEnd();
269
+ i0.ɵɵelementStart(12, "select", 85);
270
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_select_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.BankAccountType, $event) || (ctx_r1.BankAccountType = $event); return i0.ɵɵresetView($event); });
271
+ i0.ɵɵelementStart(13, "option", 73);
272
+ i0.ɵɵtext(14, "Select Type");
273
+ i0.ɵɵelementEnd();
274
+ i0.ɵɵelementStart(15, "option", 100);
275
+ i0.ɵɵtext(16, "Checking");
276
+ i0.ɵɵelementEnd();
277
+ i0.ɵɵelementStart(17, "option", 101);
278
+ i0.ɵɵtext(18, "Savings");
279
+ i0.ɵɵelementEnd()()();
280
+ i0.ɵɵelementStart(19, "div", 38)(20, "label", 39);
281
+ i0.ɵɵtext(21, "Routing Last 4");
282
+ i0.ɵɵelementEnd();
283
+ i0.ɵɵelementStart(22, "input", 102);
284
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_input_ngModelChange_22_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.RoutingLast4, $event) || (ctx_r1.RoutingLast4 = $event); return i0.ɵɵresetView($event); });
285
+ i0.ɵɵelementEnd()();
286
+ i0.ɵɵelementStart(23, "div", 38)(24, "label", 39);
287
+ i0.ɵɵtext(25, "Account Last 4");
288
+ i0.ɵɵelementEnd();
289
+ i0.ɵɵelementStart(26, "input", 103);
290
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_input_ngModelChange_26_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.AccountLast4, $event) || (ctx_r1.AccountLast4 = $event); return i0.ɵɵresetView($event); });
291
+ i0.ɵɵelementEnd()();
292
+ i0.ɵɵelementStart(27, "div", 82)(28, "label", 39);
293
+ i0.ɵɵtext(29, "Trace / Reference \u2116");
294
+ i0.ɵɵelementEnd();
295
+ i0.ɵɵelementStart(30, "input", 104);
296
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template_input_ngModelChange_30_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
297
+ i0.ɵɵelementEnd()()()();
298
+ } if (rf & 2) {
299
+ const ctx_r1 = i0.ɵɵnextContext(3);
300
+ i0.ɵɵadvance(8);
301
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.BankName);
302
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
303
+ i0.ɵɵadvance(4);
304
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.BankAccountType);
305
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
306
+ i0.ɵɵadvance();
307
+ i0.ɵɵproperty("ngValue", null);
308
+ i0.ɵɵadvance(9);
309
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.RoutingLast4);
310
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
311
+ i0.ɵɵadvance(4);
312
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.AccountLast4);
313
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
314
+ i0.ɵɵadvance(4);
315
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ReferenceNumber);
316
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
317
+ } }
318
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template(rf, ctx) { if (rf & 1) {
319
+ const _r11 = i0.ɵɵgetCurrentView();
320
+ i0.ɵɵelementStart(0, "div", 46)(1, "div", 76);
321
+ i0.ɵɵelement(2, "i", 65);
322
+ i0.ɵɵtext(3, " Reference details ");
323
+ i0.ɵɵelementEnd();
324
+ i0.ɵɵelementStart(4, "div", 38)(5, "label", 39);
325
+ i0.ɵɵtext(6, "Reference / Wire Confirmation \u2116 ");
326
+ i0.ɵɵelementStart(7, "span", 79);
327
+ i0.ɵɵtext(8, "*");
328
+ i0.ɵɵelementEnd()();
329
+ i0.ɵɵelementStart(9, "input", 105);
330
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.ReferenceNumber, $event) || (ctx_r1.ReferenceNumber = $event); return i0.ɵɵresetView($event); });
331
+ i0.ɵɵelementEnd()()();
332
+ } if (rf & 2) {
333
+ const ctx_r1 = i0.ɵɵnextContext(3);
334
+ i0.ɵɵadvance(9);
335
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ReferenceNumber);
336
+ i0.ɵɵproperty("disabled", !ctx_r1.ComposeMode);
337
+ } }
338
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_66_Template(rf, ctx) { if (rf & 1) {
339
+ i0.ɵɵelement(0, "i", 71);
340
+ i0.ɵɵelementStart(1, "span");
341
+ i0.ɵɵtext(2, "Allocations tie 100% to payment received. Ready to capture and book.");
342
+ i0.ɵɵelementEnd();
343
+ } }
344
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_67_Template(rf, ctx) { if (rf & 1) {
345
+ i0.ɵɵelement(0, "i", 106);
346
+ i0.ɵɵelementStart(1, "span");
347
+ i0.ɵɵtext(2);
348
+ i0.ɵɵelementEnd();
349
+ } if (rf & 2) {
350
+ const ctx_r1 = i0.ɵɵnextContext(3);
351
+ i0.ɵɵadvance(2);
352
+ i0.ɵɵtextInterpolate1("$", ctx_r1.UnallocatedRemainder.toFixed(2), " remaining to allocate before capturing.");
353
+ } }
354
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_68_Template(rf, ctx) { if (rf & 1) {
355
+ i0.ɵɵelement(0, "i", 107);
356
+ i0.ɵɵelementStart(1, "span");
357
+ i0.ɵɵtext(2);
358
+ i0.ɵɵelementEnd();
359
+ } if (rf & 2) {
360
+ const ctx_r1 = i0.ɵɵnextContext(3);
361
+ i0.ɵɵadvance(2);
362
+ i0.ɵɵtextInterpolate1("Over-allocated by $", ctx_r1.Math.abs(ctx_r1.UnallocatedRemainder).toFixed(2), ". Please adjust amounts.");
363
+ } }
364
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_74_Template(rf, ctx) { if (rf & 1) {
365
+ i0.ɵɵelementStart(0, "span", 66);
366
+ i0.ɵɵtext(1);
367
+ i0.ɵɵelementEnd();
368
+ } if (rf & 2) {
369
+ const ctx_r1 = i0.ɵɵnextContext(3);
370
+ i0.ɵɵadvance();
371
+ i0.ɵɵtextInterpolate1("", ctx_r1.FilteredOpenOrders.length, " available");
372
+ } }
373
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_75_Template(rf, ctx) { if (rf & 1) {
374
+ const _r12 = i0.ɵɵgetCurrentView();
375
+ i0.ɵɵelementStart(0, "div", 67)(1, "div", 108);
376
+ i0.ɵɵelement(2, "i", 109);
377
+ i0.ɵɵelementStart(3, "input", 110);
378
+ i0.ɵɵtwoWayListener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_75_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.SearchQuery, $event) || (ctx_r1.SearchQuery = $event); return i0.ɵɵresetView($event); });
379
+ i0.ɵɵelementEnd()();
380
+ i0.ɵɵelementStart(4, "button", 111);
381
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_75_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.AutoApplyOldestFirst()); });
382
+ i0.ɵɵelement(5, "i", 112);
383
+ i0.ɵɵtext(6, " Auto-apply oldest ");
384
+ i0.ɵɵelementEnd();
385
+ i0.ɵɵelementStart(7, "button", 113);
386
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_75_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.ClearAllocations()); });
387
+ i0.ɵɵelement(8, "i", 114);
388
+ i0.ɵɵtext(9, " Clear all ");
389
+ i0.ɵɵelementEnd()();
390
+ } if (rf & 2) {
391
+ const ctx_r1 = i0.ɵɵnextContext(3);
392
+ i0.ɵɵadvance(3);
393
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.SearchQuery);
394
+ } }
395
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_77_Template(rf, ctx) { if (rf & 1) {
396
+ i0.ɵɵelementStart(0, "div", 69);
397
+ i0.ɵɵelement(1, "i", 115);
398
+ i0.ɵɵelementStart(2, "p");
399
+ i0.ɵɵtext(3, "Loading open orders\u2026");
400
+ i0.ɵɵelementEnd()();
401
+ } }
402
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_78_Template(rf, ctx) { if (rf & 1) {
403
+ i0.ɵɵelementStart(0, "div", 69);
404
+ i0.ɵɵelement(1, "i", 116);
405
+ i0.ɵɵelementStart(2, "h3");
406
+ i0.ɵɵtext(3, "No unpaid orders found");
407
+ i0.ɵɵelementEnd();
408
+ i0.ɵɵelementStart(4, "p");
409
+ i0.ɵɵtext(5, "There are zero open unpaid orders. Any recorded payment will be retained as unallocated credit.");
410
+ i0.ɵɵelementEnd()();
411
+ } }
412
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_Conditional_5_Template(rf, ctx) { if (rf & 1) {
413
+ i0.ɵɵelementStart(0, "th");
414
+ i0.ɵɵtext(1, "Customer");
415
+ i0.ɵɵelementEnd();
416
+ } }
417
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_4_Template(rf, ctx) { if (rf & 1) {
418
+ i0.ɵɵelementStart(0, "td", 125);
419
+ i0.ɵɵtext(1);
420
+ i0.ɵɵelementEnd();
421
+ } if (rf & 2) {
422
+ const order_r14 = i0.ɵɵnextContext().$implicit;
423
+ i0.ɵɵadvance();
424
+ i0.ɵɵtextInterpolate(order_r14.BillToOrganization || order_r14.BillToPerson || "\u2014");
425
+ } }
426
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_9_Template(rf, ctx) { if (rf & 1) {
427
+ i0.ɵɵelementStart(0, "div", 127);
428
+ i0.ɵɵtext(1);
429
+ i0.ɵɵelementEnd();
430
+ } if (rf & 2) {
431
+ const order_r14 = i0.ɵɵnextContext().$implicit;
432
+ i0.ɵɵadvance();
433
+ i0.ɵɵtextInterpolate(order_r14.Description);
434
+ } }
435
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_13_Template(rf, ctx) { if (rf & 1) {
436
+ i0.ɵɵelementStart(0, "span", 128);
437
+ i0.ɵɵtext(1);
438
+ i0.ɵɵelementEnd();
439
+ } if (rf & 2) {
440
+ const order_r14 = i0.ɵɵnextContext().$implicit;
441
+ const ctx_r1 = i0.ɵɵnextContext(4);
442
+ i0.ɵɵadvance();
443
+ i0.ɵɵtextInterpolate1("", ctx_r1.GetOrderDaysOverdue(order_r14), "d overdue");
444
+ } }
445
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_14_Template(rf, ctx) { if (rf & 1) {
446
+ i0.ɵɵelementStart(0, "span");
447
+ i0.ɵɵtext(1);
448
+ i0.ɵɵelementEnd();
449
+ } if (rf & 2) {
450
+ const order_r14 = i0.ɵɵnextContext().$implicit;
451
+ const ctx_r1 = i0.ɵɵnextContext(4);
452
+ i0.ɵɵadvance();
453
+ i0.ɵɵtextInterpolate(ctx_r1.FormatOrderDueDate(order_r14));
454
+ } }
455
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_27_Template(rf, ctx) { if (rf & 1) {
456
+ i0.ɵɵelementStart(0, "div", 135);
457
+ i0.ɵɵelement(1, "i", 138);
458
+ i0.ɵɵtext(2, " Lines allocated ");
459
+ i0.ɵɵelementEnd();
460
+ } }
461
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_31_Template(rf, ctx) { if (rf & 1) {
462
+ const _r15 = i0.ɵɵgetCurrentView();
463
+ i0.ɵɵelementStart(0, "button", 139);
464
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_31_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r15); const order_r14 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.FullPayOrder(order_r14)); });
465
+ i0.ɵɵtext(1, " Pay in Full ");
466
+ i0.ɵɵelementEnd();
467
+ } if (rf & 2) {
468
+ const order_r14 = i0.ɵɵnextContext().$implicit;
469
+ i0.ɵɵproperty("disabled", (order_r14.Balance ?? order_r14.TotalGross ?? 0) <= 0);
470
+ } }
471
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_32_For_23_Conditional_16_Template(rf, ctx) { if (rf & 1) {
472
+ const _r18 = i0.ɵɵgetCurrentView();
473
+ i0.ɵɵelementStart(0, "button", 147);
474
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_32_For_23_Conditional_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const line_r17 = i0.ɵɵnextContext().$implicit; const order_r14 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.FullPayLine(order_r14, line_r17)); });
475
+ i0.ɵɵtext(1, " Line Pay ");
476
+ i0.ɵɵelementEnd();
477
+ } }
478
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_32_For_23_Template(rf, ctx) { if (rf & 1) {
479
+ const _r16 = i0.ɵɵgetCurrentView();
480
+ i0.ɵɵelementStart(0, "tr")(1, "td");
481
+ i0.ɵɵtext(2);
482
+ i0.ɵɵelementEnd();
483
+ i0.ɵɵelementStart(3, "td")(4, "strong");
484
+ i0.ɵɵtext(5);
485
+ i0.ɵɵelementEnd()();
486
+ i0.ɵɵelementStart(6, "td", 130);
487
+ i0.ɵɵtext(7);
488
+ i0.ɵɵelementEnd();
489
+ i0.ɵɵelementStart(8, "td", 130);
490
+ i0.ɵɵtext(9);
491
+ i0.ɵɵelementEnd();
492
+ i0.ɵɵelementStart(10, "td", 119)(11, "div", 132)(12, "span", 133);
493
+ i0.ɵɵtext(13, "$");
494
+ i0.ɵɵelementEnd();
495
+ i0.ɵɵelementStart(14, "input", 145);
496
+ i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_32_For_23_Template_input_ngModelChange_14_listener($event) { const line_r17 = i0.ɵɵrestoreView(_r16).$implicit; const order_r14 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetLineAllocation(line_r17.ID || "", $event, order_r14.ID)); });
497
+ i0.ɵɵelementEnd()()();
498
+ i0.ɵɵelementStart(15, "td", 119);
499
+ i0.ɵɵconditionalCreate(16, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_32_For_23_Conditional_16_Template, 2, 0, "button", 146);
500
+ i0.ɵɵelementEnd()();
501
+ } if (rf & 2) {
502
+ const line_r17 = ctx.$implicit;
503
+ const ctx_r1 = i0.ɵɵnextContext(6);
504
+ i0.ɵɵadvance(2);
505
+ i0.ɵɵtextInterpolate(line_r17.LineNumber);
506
+ i0.ɵɵadvance(3);
507
+ i0.ɵɵtextInterpolate(line_r17.Product || "Line Item");
508
+ i0.ɵɵadvance(2);
509
+ i0.ɵɵtextInterpolate1("$", (line_r17.UnitPrice || 0).toFixed(2));
510
+ i0.ɵɵadvance(2);
511
+ i0.ɵɵtextInterpolate1("$", (line_r17.LineTotalGross || 0).toFixed(2));
512
+ i0.ɵɵadvance(5);
513
+ i0.ɵɵproperty("ngModel", ctx_r1.GetLineAllocation(line_r17.ID || ""))("disabled", ctx_r1.IsCaptured);
514
+ i0.ɵɵadvance(2);
515
+ i0.ɵɵconditional(!ctx_r1.IsCaptured ? 16 : -1);
516
+ } }
517
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_32_Template(rf, ctx) { if (rf & 1) {
518
+ i0.ɵɵelementStart(0, "tr", 137)(1, "td", 140)(2, "div", 141)(3, "div", 142);
519
+ i0.ɵɵelement(4, "i", 138);
520
+ i0.ɵɵelementStart(5, "span");
521
+ i0.ɵɵtext(6, "Order Line Items (Targeted Line Allocations)");
522
+ i0.ɵɵelementEnd()();
523
+ i0.ɵɵelementStart(7, "table", 143)(8, "thead")(9, "tr")(10, "th");
524
+ i0.ɵɵtext(11, "#");
525
+ i0.ɵɵelementEnd();
526
+ i0.ɵɵelementStart(12, "th");
527
+ i0.ɵɵtext(13, "Product");
528
+ i0.ɵɵelementEnd();
529
+ i0.ɵɵelementStart(14, "th", 119);
530
+ i0.ɵɵtext(15, "Unit Price");
531
+ i0.ɵɵelementEnd();
532
+ i0.ɵɵelementStart(16, "th", 119);
533
+ i0.ɵɵtext(17, "Gross");
534
+ i0.ɵɵelementEnd();
535
+ i0.ɵɵelementStart(18, "th", 120);
536
+ i0.ɵɵtext(19, "Line Allocation");
537
+ i0.ɵɵelementEnd();
538
+ i0.ɵɵelement(20, "th", 144);
539
+ i0.ɵɵelementEnd()();
540
+ i0.ɵɵelementStart(21, "tbody");
541
+ i0.ɵɵrepeaterCreate(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_32_For_23_Template, 17, 7, "tr", null, _forTrack0);
542
+ i0.ɵɵelementEnd()()()()();
543
+ } if (rf & 2) {
544
+ const order_r14 = i0.ɵɵnextContext().$implicit;
545
+ const ctx_r1 = i0.ɵɵnextContext(4);
546
+ i0.ɵɵadvance();
547
+ i0.ɵɵattribute("colspan", ctx_r1.hasPayer ? 10 : 11);
548
+ i0.ɵɵadvance(21);
549
+ i0.ɵɵrepeater(ctx_r1.GetOrderLines(order_r14.ID || ""));
550
+ } }
551
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Template(rf, ctx) { if (rf & 1) {
552
+ const _r13 = i0.ɵɵgetCurrentView();
553
+ i0.ɵɵelementStart(0, "tr", 122)(1, "td")(2, "button", 123);
554
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Template_button_click_2_listener() { const order_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.ToggleOrderExpanded(order_r14.ID || "")); });
555
+ i0.ɵɵelement(3, "i", 124);
556
+ i0.ɵɵelementEnd()();
557
+ i0.ɵɵconditionalCreate(4, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_4_Template, 2, 1, "td", 125);
558
+ i0.ɵɵelementStart(5, "td")(6, "button", 126);
559
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Template_button_click_6_listener($event) { const order_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OpenOrderRecord(order_r14, $event)); });
560
+ i0.ɵɵelementStart(7, "strong");
561
+ i0.ɵɵtext(8);
562
+ i0.ɵɵelementEnd()();
563
+ i0.ɵɵconditionalCreate(9, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_9_Template, 2, 1, "div", 127);
564
+ i0.ɵɵelementEnd();
565
+ i0.ɵɵelementStart(10, "td");
566
+ i0.ɵɵtext(11);
567
+ i0.ɵɵelementEnd();
568
+ i0.ɵɵelementStart(12, "td");
569
+ i0.ɵɵconditionalCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_13_Template, 2, 1, "span", 128)(14, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_14_Template, 2, 1, "span");
570
+ i0.ɵɵelementEnd();
571
+ i0.ɵɵelementStart(15, "td")(16, "span", 129);
572
+ i0.ɵɵtext(17);
573
+ i0.ɵɵelementEnd()();
574
+ i0.ɵɵelementStart(18, "td", 130);
575
+ i0.ɵɵtext(19);
576
+ i0.ɵɵelementEnd();
577
+ i0.ɵɵelementStart(20, "td", 131);
578
+ i0.ɵɵtext(21);
579
+ i0.ɵɵelementEnd();
580
+ i0.ɵɵelementStart(22, "td", 119)(23, "div", 132)(24, "span", 133);
581
+ i0.ɵɵtext(25, "$");
582
+ i0.ɵɵelementEnd();
583
+ i0.ɵɵelementStart(26, "input", 134);
584
+ i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Template_input_ngModelChange_26_listener($event) { const order_r14 = i0.ɵɵrestoreView(_r13).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.SetOrderAllocation(order_r14.ID || "", $event)); });
585
+ i0.ɵɵelementEnd()();
586
+ i0.ɵɵconditionalCreate(27, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_27_Template, 3, 0, "div", 135);
587
+ i0.ɵɵelementEnd();
588
+ i0.ɵɵelementStart(28, "td", 130);
589
+ i0.ɵɵtext(29);
590
+ i0.ɵɵelementEnd();
591
+ i0.ɵɵelementStart(30, "td", 119);
592
+ i0.ɵɵconditionalCreate(31, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_31_Template, 2, 1, "button", 136);
593
+ i0.ɵɵelementEnd()();
594
+ i0.ɵɵconditionalCreate(32, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Conditional_32_Template, 24, 1, "tr", 137);
595
+ } if (rf & 2) {
596
+ const order_r14 = ctx.$implicit;
597
+ const ctx_r1 = i0.ɵɵnextContext(4);
598
+ i0.ɵɵclassProp("is-expanded", ctx_r1.IsOrderExpanded(order_r14.ID || ""));
599
+ i0.ɵɵadvance(3);
600
+ i0.ɵɵclassProp("fa-chevron-down", ctx_r1.IsOrderExpanded(order_r14.ID || ""))("fa-chevron-right", !ctx_r1.IsOrderExpanded(order_r14.ID || ""));
601
+ i0.ɵɵadvance();
602
+ i0.ɵɵconditional(!ctx_r1.hasPayer ? 4 : -1);
603
+ i0.ɵɵadvance(4);
604
+ i0.ɵɵtextInterpolate(order_r14.OrderNumber);
605
+ i0.ɵɵadvance();
606
+ i0.ɵɵconditional(order_r14.Description ? 9 : -1);
607
+ i0.ɵɵadvance(2);
608
+ i0.ɵɵtextInterpolate(order_r14.OrderDate ? ctx_r1.FormatOrderDueDate(order_r14) : "\u2014");
609
+ i0.ɵɵadvance(2);
610
+ i0.ɵɵconditional(ctx_r1.GetOrderDaysOverdue(order_r14) > 0 ? 13 : 14);
611
+ i0.ɵɵadvance(4);
612
+ i0.ɵɵtextInterpolate(order_r14.Company || "Default");
613
+ i0.ɵɵadvance(2);
614
+ i0.ɵɵtextInterpolate1("$", (order_r14.TotalGross || 0).toFixed(2));
615
+ i0.ɵɵadvance(2);
616
+ i0.ɵɵtextInterpolate1("$", (order_r14.Balance ?? order_r14.TotalGross ?? 0).toFixed(2));
617
+ i0.ɵɵadvance(2);
618
+ i0.ɵɵclassProp("is-derived", ctx_r1.HasLineAllocations(order_r14.ID || ""));
619
+ i0.ɵɵadvance(3);
620
+ i0.ɵɵproperty("ngModel", ctx_r1.GetOrderAllocation(order_r14.ID || ""))("disabled", ctx_r1.IsCaptured || ctx_r1.HasLineAllocations(order_r14.ID || ""))("title", ctx_r1.HasLineAllocations(order_r14.ID || "") ? "Order allocation is driven by line item allocations below" : "Enter amount to allocate to order");
621
+ i0.ɵɵadvance();
622
+ i0.ɵɵconditional(ctx_r1.HasLineAllocations(order_r14.ID || "") ? 27 : -1);
623
+ i0.ɵɵadvance();
624
+ i0.ɵɵclassProp("text-muted", ctx_r1.CalculateLeavesBalance(order_r14) === 0);
625
+ i0.ɵɵadvance();
626
+ i0.ɵɵtextInterpolate1(" $", ctx_r1.CalculateLeavesBalance(order_r14).toFixed(2), " ");
627
+ i0.ɵɵadvance(2);
628
+ i0.ɵɵconditional(!ctx_r1.IsCaptured ? 31 : -1);
629
+ i0.ɵɵadvance();
630
+ i0.ɵɵconditional(ctx_r1.IsOrderExpanded(order_r14.ID || "") ? 32 : -1);
631
+ } }
632
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_Template(rf, ctx) { if (rf & 1) {
633
+ i0.ɵɵelementStart(0, "div", 70)(1, "table", 117)(2, "thead")(3, "tr");
634
+ i0.ɵɵelement(4, "th", 118);
635
+ i0.ɵɵconditionalCreate(5, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_Conditional_5_Template, 2, 0, "th");
636
+ i0.ɵɵelementStart(6, "th");
637
+ i0.ɵɵtext(7, "Order \u2116");
638
+ i0.ɵɵelementEnd();
639
+ i0.ɵɵelementStart(8, "th");
640
+ i0.ɵɵtext(9, "Date");
641
+ i0.ɵɵelementEnd();
642
+ i0.ɵɵelementStart(10, "th");
643
+ i0.ɵɵtext(11, "Due");
644
+ i0.ɵɵelementEnd();
645
+ i0.ɵɵelementStart(12, "th");
646
+ i0.ɵɵtext(13, "Company");
647
+ i0.ɵɵelementEnd();
648
+ i0.ɵɵelementStart(14, "th", 119);
649
+ i0.ɵɵtext(15, "Gross");
650
+ i0.ɵɵelementEnd();
651
+ i0.ɵɵelementStart(16, "th", 119);
652
+ i0.ɵɵtext(17, "Open Balance");
653
+ i0.ɵɵelementEnd();
654
+ i0.ɵɵelementStart(18, "th", 120);
655
+ i0.ɵɵtext(19, "Apply Amount");
656
+ i0.ɵɵelementEnd();
657
+ i0.ɵɵelementStart(20, "th", 119);
658
+ i0.ɵɵtext(21, "Leaves Balance");
659
+ i0.ɵɵelementEnd();
660
+ i0.ɵɵelement(22, "th", 121);
661
+ i0.ɵɵelementEnd()();
662
+ i0.ɵɵelementStart(23, "tbody");
663
+ i0.ɵɵrepeaterCreate(24, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_For_25_Template, 33, 25, null, null, _forTrack0);
664
+ i0.ɵɵelementEnd()()();
665
+ } if (rf & 2) {
666
+ const ctx_r1 = i0.ɵɵnextContext(3);
667
+ i0.ɵɵadvance(5);
668
+ i0.ɵɵconditional(!ctx_r1.hasPayer ? 5 : -1);
669
+ i0.ɵɵadvance(19);
670
+ i0.ɵɵrepeater(ctx_r1.FilteredOpenOrders);
671
+ } }
672
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template(rf, ctx) { if (rf & 1) {
673
+ const _r4 = i0.ɵɵgetCurrentView();
674
+ i0.ɵɵelementStart(0, "div", 19)(1, "aside", 27)(2, "div", 28)(3, "div", 29)(4, "div", 30);
675
+ i0.ɵɵelement(5, "i", 31);
676
+ i0.ɵɵtext(6, " Who is paying? ");
677
+ i0.ɵɵelementEnd()();
678
+ i0.ɵɵelementStart(7, "div", 32)(8, "div", 33)(9, "mj-form-field", 34);
679
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.OnFormNavigate($event); return i0.ɵɵresetView(ctx_r1.OnPayerSelectionChanged()); });
680
+ i0.ɵɵelementEnd();
681
+ i0.ɵɵelementStart(10, "mj-form-field", 35);
682
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_10_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.OnFormNavigate($event); return i0.ɵɵresetView(ctx_r1.OnPayerSelectionChanged()); });
683
+ i0.ɵɵelementEnd()();
684
+ i0.ɵɵconditionalCreate(11, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_11_Template, 5, 2, "div", 36);
685
+ i0.ɵɵelementEnd()();
686
+ i0.ɵɵelementStart(12, "div", 28)(13, "div", 29)(14, "div", 30);
687
+ i0.ɵɵelement(15, "i", 37);
688
+ i0.ɵɵtext(16, " Payment details ");
689
+ i0.ɵɵelementEnd()();
690
+ i0.ɵɵelementStart(17, "div", 32)(18, "div", 38)(19, "label", 39);
691
+ i0.ɵɵtext(20, "Amount received ($)");
692
+ i0.ɵɵelementEnd();
693
+ i0.ɵɵelementStart(21, "div", 40)(22, "span", 41);
694
+ i0.ɵɵtext(23, "$");
695
+ i0.ɵɵelementEnd();
696
+ i0.ɵɵelementStart(24, "input", 42);
697
+ i0.ɵɵlistener("ngModelChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_input_ngModelChange_24_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnAmountChanged($event)); });
698
+ i0.ɵɵelementEnd()()();
699
+ i0.ɵɵelementStart(25, "div", 33)(26, "mj-form-field", 43);
700
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_26_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
701
+ i0.ɵɵelementEnd();
702
+ i0.ɵɵelementStart(27, "div", 38)(28, "label", 39);
703
+ i0.ɵɵtext(29, "Payment Type");
704
+ i0.ɵɵelementEnd();
705
+ i0.ɵɵconditionalCreate(30, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_30_Template, 5, 2, "select", 44)(31, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_31_Template, 1, 4, "mj-form-field", 45);
706
+ i0.ɵɵelementEnd();
707
+ i0.ɵɵconditionalCreate(32, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_32_Template, 19, 6, "div", 46)(33, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_33_Template, 39, 12, "div", 46)(34, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_34_Template, 31, 11, "div", 46)(35, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_35_Template, 10, 2, "div", 46);
708
+ i0.ɵɵelementStart(36, "mj-form-field", 47);
709
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_36_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
710
+ i0.ɵɵelementEnd();
711
+ i0.ɵɵelementStart(37, "mj-form-field", 48);
712
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template_mj_form_field_Navigate_37_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
713
+ i0.ɵɵelementEnd()();
714
+ i0.ɵɵelementStart(38, "div", 49)(39, "span", 50);
715
+ i0.ɵɵtext(40, "Net Settlement Amount");
716
+ i0.ɵɵelementEnd();
717
+ i0.ɵɵelementStart(41, "span", 51);
718
+ i0.ɵɵtext(42);
719
+ i0.ɵɵelementEnd()()()()();
720
+ i0.ɵɵelementStart(43, "main", 52)(44, "div", 53)(45, "div", 54)(46, "div", 55)(47, "span", 56);
721
+ i0.ɵɵtext(48, "Payment Received");
722
+ i0.ɵɵelementEnd();
723
+ i0.ɵɵelementStart(49, "span", 57);
724
+ i0.ɵɵtext(50);
725
+ i0.ɵɵelementEnd()();
726
+ i0.ɵɵelementStart(51, "div", 58);
727
+ i0.ɵɵelement(52, "i", 59);
728
+ i0.ɵɵelementEnd();
729
+ i0.ɵɵelementStart(53, "div", 55)(54, "span", 56);
730
+ i0.ɵɵtext(55, "Allocated");
731
+ i0.ɵɵelementEnd();
732
+ i0.ɵɵelementStart(56, "span", 57);
733
+ i0.ɵɵtext(57);
734
+ i0.ɵɵelementEnd()();
735
+ i0.ɵɵelementStart(58, "div", 58);
736
+ i0.ɵɵelement(59, "i", 60);
737
+ i0.ɵɵelementEnd();
738
+ i0.ɵɵelementStart(60, "div", 55)(61, "span", 56);
739
+ i0.ɵɵtext(62, "Unallocated Remainder");
740
+ i0.ɵɵelementEnd();
741
+ i0.ɵɵelementStart(63, "span", 57);
742
+ i0.ɵɵtext(64);
743
+ i0.ɵɵelementEnd()()();
744
+ i0.ɵɵelementStart(65, "div", 61);
745
+ i0.ɵɵconditionalCreate(66, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_66_Template, 3, 0)(67, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_67_Template, 3, 1)(68, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_68_Template, 3, 1);
746
+ i0.ɵɵelementEnd()();
747
+ i0.ɵɵelementStart(69, "div", 62)(70, "div", 63)(71, "h2", 64);
748
+ i0.ɵɵelement(72, "i", 65);
749
+ i0.ɵɵtext(73, " Open orders ");
750
+ i0.ɵɵelementEnd();
751
+ i0.ɵɵconditionalCreate(74, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_74_Template, 2, 1, "span", 66);
752
+ i0.ɵɵelementEnd();
753
+ i0.ɵɵconditionalCreate(75, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_75_Template, 10, 1, "div", 67);
754
+ i0.ɵɵelementEnd();
755
+ i0.ɵɵelementStart(76, "div", 68);
756
+ i0.ɵɵconditionalCreate(77, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_77_Template, 4, 0, "div", 69)(78, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_78_Template, 6, 0, "div", 69)(79, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Conditional_79_Template, 26, 1, "div", 70);
757
+ i0.ɵɵelementEnd()()();
758
+ } if (rf & 2) {
759
+ const ctx_r1 = i0.ɵɵnextContext(2);
760
+ i0.ɵɵadvance(9);
761
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
762
+ i0.ɵɵadvance();
763
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
764
+ i0.ɵɵadvance();
765
+ i0.ɵɵconditional(ctx_r1.hasPayer ? 11 : -1);
766
+ i0.ɵɵadvance(13);
767
+ i0.ɵɵproperty("ngModel", ctx_r1.record.Amount)("disabled", !ctx_r1.ComposeMode);
768
+ i0.ɵɵadvance(2);
769
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
770
+ i0.ɵɵadvance(4);
771
+ i0.ɵɵconditional(ctx_r1.ComposeMode && ctx_r1.PaymentTypes.length > 0 ? 30 : 31);
772
+ i0.ɵɵadvance(2);
773
+ i0.ɵɵconditional(ctx_r1.PaymentTypeCode === "check" || (ctx_r1.SelectedPaymentType == null ? null : ctx_r1.SelectedPaymentType.RequiresReference) && !ctx_r1.RequiresInstrument ? 32 : ctx_r1.PaymentTypeCode === "card" || ctx_r1.RequiresInstrument ? 33 : ctx_r1.PaymentTypeCode === "ach" ? 34 : ctx_r1.RequiresReference ? 35 : -1);
774
+ i0.ɵɵadvance(4);
775
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
776
+ i0.ɵɵadvance();
777
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.ComposeMode)("FormContext", ctx_r1.formContext);
778
+ i0.ɵɵadvance(5);
779
+ i0.ɵɵtextInterpolate(ctx_r1.FormattedNetAmount);
780
+ i0.ɵɵadvance(2);
781
+ i0.ɵɵclassProp("is-balanced", ctx_r1.IsAllocationBalanced)("is-warning", !ctx_r1.IsAllocationBalanced && ctx_r1.UnallocatedRemainder > 0)("is-error", ctx_r1.UnallocatedRemainder < 0);
782
+ i0.ɵɵadvance(6);
783
+ i0.ɵɵtextInterpolate1("$", (ctx_r1.record.Amount || 0).toFixed(2));
784
+ i0.ɵɵadvance(7);
785
+ i0.ɵɵtextInterpolate1("$", ctx_r1.TotalAllocated.toFixed(2));
786
+ i0.ɵɵadvance(6);
787
+ i0.ɵɵclassProp("text-danger", ctx_r1.UnallocatedRemainder < 0);
788
+ i0.ɵɵadvance();
789
+ i0.ɵɵtextInterpolate1(" $", ctx_r1.Math.abs(ctx_r1.UnallocatedRemainder).toFixed(2), " ");
790
+ i0.ɵɵadvance(2);
791
+ i0.ɵɵconditional(ctx_r1.IsAllocationBalanced ? 66 : ctx_r1.UnallocatedRemainder > 0 ? 67 : 68);
792
+ i0.ɵɵadvance(8);
793
+ i0.ɵɵconditional(ctx_r1.OpenOrders.length > 0 ? 74 : -1);
794
+ i0.ɵɵadvance();
795
+ i0.ɵɵconditional(!ctx_r1.IsCaptured && ctx_r1.OpenOrders.length > 0 ? 75 : -1);
796
+ i0.ɵɵadvance(2);
797
+ i0.ɵɵconditional(ctx_r1.LoadingOpenOrders ? 77 : ctx_r1.OpenOrders.length === 0 ? 78 : 79);
798
+ } }
799
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_0_Template(rf, ctx) { if (rf & 1) {
800
+ i0.ɵɵelementStart(0, "div", 69);
801
+ i0.ɵɵelement(1, "i", 115);
802
+ i0.ɵɵelementStart(2, "p");
803
+ i0.ɵɵtext(3, "Rolling up general ledger accounts\u2026");
804
+ i0.ɵɵelementEnd()();
805
+ } }
806
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_1_Template(rf, ctx) { if (rf & 1) {
807
+ i0.ɵɵelementStart(0, "div", 18);
808
+ i0.ɵɵtext(1);
809
+ i0.ɵɵelementEnd();
810
+ } if (rf & 2) {
811
+ const ctx_r1 = i0.ɵɵnextContext(4);
812
+ i0.ɵɵadvance();
813
+ i0.ɵɵtextInterpolate(ctx_r1.RollupError);
814
+ } }
815
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_2_Template(rf, ctx) { if (rf & 1) {
816
+ i0.ɵɵelementStart(0, "div", 69);
817
+ i0.ɵɵelement(1, "i", 154);
818
+ i0.ɵɵelementStart(2, "h3");
819
+ i0.ɵɵtext(3, "No journal entries booked yet");
820
+ i0.ɵɵelementEnd();
821
+ i0.ɵɵelementStart(4, "p");
822
+ i0.ɵɵtext(5, "Journal entries are booked automatically upon capturing and settling the payment.");
823
+ i0.ɵɵelementEnd()();
824
+ } }
825
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_For_23_Template(rf, ctx) { if (rf & 1) {
826
+ i0.ɵɵelementStart(0, "tr")(1, "td", 159);
827
+ i0.ɵɵtext(2);
828
+ i0.ɵɵelementEnd();
829
+ i0.ɵɵelementStart(3, "td")(4, "span");
830
+ i0.ɵɵtext(5);
831
+ i0.ɵɵelementEnd()();
832
+ i0.ɵɵelementStart(6, "td", 130);
833
+ i0.ɵɵtext(7);
834
+ i0.ɵɵelementEnd();
835
+ i0.ɵɵelementStart(8, "td", 130);
836
+ i0.ɵɵtext(9);
837
+ i0.ɵɵelementEnd()();
838
+ } if (rf & 2) {
839
+ const row_r20 = ctx.$implicit;
840
+ const ctx_r1 = i0.ɵɵnextContext(6);
841
+ i0.ɵɵadvance(2);
842
+ i0.ɵɵtextInterpolate(row_r20.AccountCode || "\u2014");
843
+ i0.ɵɵadvance(3);
844
+ i0.ɵɵtextInterpolate(row_r20.AccountName);
845
+ i0.ɵɵadvance(2);
846
+ i0.ɵɵtextInterpolate(row_r20.Debit ? ctx_r1.RollupAmount(row_r20.Debit) : "\u2014");
847
+ i0.ɵɵadvance(2);
848
+ i0.ɵɵtextInterpolate(row_r20.Credit ? ctx_r1.RollupAmount(row_r20.Credit) : "\u2014");
849
+ } }
850
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
851
+ i0.ɵɵelementStart(0, "div", 155)(1, "div", 29)(2, "div")(3, "h3", 30);
852
+ i0.ɵɵtext(4);
853
+ i0.ɵɵelementEnd();
854
+ i0.ɵɵelementStart(5, "div", 127);
855
+ i0.ɵɵtext(6);
856
+ i0.ɵɵelementEnd()();
857
+ i0.ɵɵelementStart(7, "span", 66);
858
+ i0.ɵɵtext(8);
859
+ i0.ɵɵelementEnd()();
860
+ i0.ɵɵelementStart(9, "div", 156)(10, "table", 157)(11, "thead")(12, "tr")(13, "th");
861
+ i0.ɵɵtext(14, "GL Account");
862
+ i0.ɵɵelementEnd();
863
+ i0.ɵɵelementStart(15, "th");
864
+ i0.ɵɵtext(16, "Name");
865
+ i0.ɵɵelementEnd();
866
+ i0.ɵɵelementStart(17, "th", 119);
867
+ i0.ɵɵtext(18, "Debit");
868
+ i0.ɵɵelementEnd();
869
+ i0.ɵɵelementStart(19, "th", 119);
870
+ i0.ɵɵtext(20, "Credit");
871
+ i0.ɵɵelementEnd()()();
872
+ i0.ɵɵelementStart(21, "tbody");
873
+ i0.ɵɵrepeaterCreate(22, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_For_23_Template, 10, 4, "tr", null, _forTrack2);
874
+ i0.ɵɵelementEnd();
875
+ i0.ɵɵelementStart(24, "tfoot")(25, "tr")(26, "th", 158);
876
+ i0.ɵɵtext(27, "Total");
877
+ i0.ɵɵelementEnd();
878
+ i0.ɵɵelementStart(28, "th", 130);
879
+ i0.ɵɵtext(29);
880
+ i0.ɵɵelementEnd();
881
+ i0.ɵɵelementStart(30, "th", 130);
882
+ i0.ɵɵtext(31);
883
+ i0.ɵɵelementEnd()()()()()();
884
+ } if (rf & 2) {
885
+ const card_r21 = ctx.$implicit;
886
+ const ctx_r1 = i0.ɵɵnextContext(5);
887
+ i0.ɵɵadvance(4);
888
+ i0.ɵɵtextInterpolate(card_r21.Company);
889
+ i0.ɵɵadvance(2);
890
+ i0.ɵɵtextInterpolate2("", card_r21.Rows.length, " ", card_r21.Rows.length === 1 ? "line" : "lines");
891
+ i0.ɵɵadvance();
892
+ i0.ɵɵclassProp("mjo-badge--success", ctx_r1.CardIsBalanced(card_r21))("mjo-badge--error", !ctx_r1.CardIsBalanced(card_r21));
893
+ i0.ɵɵadvance();
894
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.CardIsBalanced(card_r21) ? "Balanced" : "Out of Balance", " ");
895
+ i0.ɵɵadvance(14);
896
+ i0.ɵɵrepeater(card_r21.Rows);
897
+ i0.ɵɵadvance(7);
898
+ i0.ɵɵtextInterpolate1("$", card_r21.TotalDebit.toFixed(2));
899
+ i0.ɵɵadvance(2);
900
+ i0.ɵɵtextInterpolate1("$", card_r21.TotalCredit.toFixed(2));
901
+ } }
902
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_Template(rf, ctx) { if (rf & 1) {
903
+ i0.ɵɵelementStart(0, "div", 153);
904
+ i0.ɵɵrepeaterCreate(1, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_For_2_Template, 32, 10, "div", 155, _forTrack1);
905
+ i0.ɵɵelementEnd();
906
+ } if (rf & 2) {
907
+ const ctx_r1 = i0.ɵɵnextContext(4);
908
+ i0.ɵɵadvance();
909
+ i0.ɵɵrepeater(ctx_r1.RollupCards);
910
+ } }
911
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Template(rf, ctx) { if (rf & 1) {
912
+ i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_0_Template, 4, 0, "div", 69)(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, 6, 0, "div", 69)(3, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Conditional_3_Template, 3, 0, "div", 153);
913
+ } if (rf & 2) {
914
+ const ctx_r1 = i0.ɵɵnextContext(3);
915
+ i0.ɵɵconditional(ctx_r1.RollupLoading ? 0 : ctx_r1.RollupError ? 1 : ctx_r1.RollupCards.length === 0 ? 2 : 3);
916
+ } }
917
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template(rf, ctx) { if (rf & 1) {
918
+ const _r22 = i0.ɵɵgetCurrentView();
919
+ i0.ɵɵelementStart(0, "mj-explorer-entity-data-grid", 161);
920
+ 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(_r22); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
921
+ i0.ɵɵelementEnd();
922
+ } if (rf & 2) {
923
+ const ctx_r1 = i0.ɵɵnextContext(4);
924
+ i0.ɵɵproperty("Params", ctx_r1.PaymentJournalEntryParams)("AllowLoad", true)("ShowToolbar", false);
925
+ } }
926
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Template(rf, ctx) { if (rf & 1) {
927
+ i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Conditional_0_Template, 1, 3, "mj-explorer-entity-data-grid", 160);
928
+ } if (rf & 2) {
929
+ const ctx_r1 = i0.ɵɵnextContext(3);
930
+ i0.ɵɵconditional(ctx_r1.PaymentJournalEntryParams ? 0 : -1);
931
+ } }
932
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template(rf, ctx) { if (rf & 1) {
933
+ const _r19 = i0.ɵɵgetCurrentView();
934
+ i0.ɵɵelementStart(0, "div", 20)(1, "div", 148)(2, "div")(3, "h2");
935
+ i0.ɵɵelement(4, "i", 149);
936
+ i0.ɵɵtext(5, " General Ledger Postings");
937
+ i0.ɵɵelementEnd();
938
+ i0.ɵɵelementStart(6, "p", 150);
939
+ i0.ɵɵtext(7, "Double-entry balanced accounting entries booked across operating and receivable accounts.");
940
+ i0.ɵɵelementEnd()();
941
+ i0.ɵɵelementStart(8, "div", 151)(9, "button", 152);
942
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetAccountingView("summary")); });
943
+ i0.ɵɵtext(10, " Summary (Rolled-up) ");
944
+ i0.ɵɵelementEnd();
945
+ i0.ɵɵelementStart(11, "button", 152);
946
+ i0.ɵɵlistener("click", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r19); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetAccountingView("detail")); });
947
+ i0.ɵɵtext(12, " By Journal Entry ");
948
+ i0.ɵɵelementEnd()()();
949
+ i0.ɵɵconditionalCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_13_Template, 4, 1)(14, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Conditional_14_Template, 1, 1);
950
+ i0.ɵɵelementEnd();
951
+ } if (rf & 2) {
952
+ const ctx_r1 = i0.ɵɵnextContext(2);
953
+ i0.ɵɵadvance(9);
954
+ i0.ɵɵclassProp("is-active", ctx_r1.AccountingView === "summary");
955
+ i0.ɵɵadvance(2);
956
+ i0.ɵɵclassProp("is-active", ctx_r1.AccountingView === "detail");
957
+ i0.ɵɵadvance(2);
958
+ i0.ɵɵconditional(ctx_r1.AccountingView === "summary" ? 13 : 14);
959
+ } }
960
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template(rf, ctx) { if (rf & 1) {
961
+ const _r23 = i0.ɵɵgetCurrentView();
962
+ i0.ɵɵelementStart(0, "div", 20)(1, "div", 162)(2, "div", 28)(3, "div", 29)(4, "h3", 30);
963
+ i0.ɵɵelement(5, "i", 163);
964
+ i0.ɵɵtext(6, " Processing & Gateway Details");
965
+ i0.ɵɵelementEnd()();
966
+ i0.ɵɵelementStart(7, "div", 164)(8, "mj-form-field", 165);
967
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_8_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
968
+ i0.ɵɵelementEnd();
969
+ i0.ɵɵelementStart(9, "mj-form-field", 166);
970
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_9_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
971
+ i0.ɵɵelementEnd();
972
+ i0.ɵɵelementStart(10, "mj-form-field", 167);
973
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_10_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
974
+ i0.ɵɵelementEnd();
975
+ i0.ɵɵelement(11, "mj-form-field", 168)(12, "mj-form-field", 169)(13, "mj-form-field", 170);
976
+ i0.ɵɵelementEnd()();
977
+ i0.ɵɵelementStart(14, "div", 28)(15, "div", 29)(16, "h3", 30);
978
+ i0.ɵɵelement(17, "i", 171);
979
+ i0.ɵɵtext(18, " Reversal Info & Notes");
980
+ i0.ɵɵelementEnd()();
981
+ i0.ɵɵelementStart(19, "div", 164)(20, "mj-form-field", 172);
982
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template_mj_form_field_Navigate_20_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); });
983
+ i0.ɵɵelementEnd();
984
+ i0.ɵɵelement(21, "mj-form-field", 173)(22, "mj-form-field", 174)(23, "mj-form-field", 175);
985
+ i0.ɵɵelementEnd()();
986
+ i0.ɵɵelementStart(24, "div", 28)(25, "div", 29)(26, "h3", 30);
987
+ i0.ɵɵelement(27, "i", 176);
988
+ i0.ɵɵtext(28, " System Metadata");
989
+ i0.ɵɵelementEnd()();
990
+ i0.ɵɵelementStart(29, "div", 164);
991
+ i0.ɵɵelement(30, "mj-form-field", 177)(31, "mj-form-field", 178);
992
+ i0.ɵɵelementEnd()()()();
993
+ } if (rf & 2) {
994
+ const ctx_r1 = i0.ɵɵnextContext(2);
995
+ i0.ɵɵadvance(8);
996
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
997
+ i0.ɵɵadvance();
998
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
999
+ i0.ɵɵadvance();
1000
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
1001
+ i0.ɵɵadvance();
1002
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
1003
+ i0.ɵɵadvance();
1004
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
1005
+ i0.ɵɵadvance();
1006
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
1007
+ i0.ɵɵadvance(7);
1008
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
1009
+ i0.ɵɵadvance();
1010
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
1011
+ i0.ɵɵadvance();
1012
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
1013
+ i0.ɵɵadvance();
1014
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.formContext);
1015
+ i0.ɵɵadvance(7);
1016
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", false)("FormContext", ctx_r1.formContext);
1017
+ i0.ɵɵadvance();
1018
+ i0.ɵɵproperty("Record", ctx_r1.record)("ShowLabel", true)("EditMode", false)("FormContext", ctx_r1.formContext);
1019
+ } }
1020
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template(rf, ctx) { if (rf & 1) {
1021
+ const _r24 = i0.ɵɵgetCurrentView();
1022
+ i0.ɵɵelementStart(0, "div", 20)(1, "mj-collapsible-panel", 179)(2, "mj-explorer-entity-data-grid", 180);
1023
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_2_listener($event) { i0.ɵɵrestoreView(_r24); 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(_r24); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersStoredValueTransactions", $event.totalRowCount)); });
1024
+ i0.ɵɵelementEnd()();
1025
+ i0.ɵɵelementStart(3, "mj-collapsible-panel", 181)(4, "mj-explorer-entity-data-grid", 180);
1026
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_4_listener($event) { i0.ɵɵrestoreView(_r24); 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(_r24); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersSubscriptionEvents", $event.totalRowCount)); });
1027
+ i0.ɵɵelementEnd()();
1028
+ i0.ɵɵelementStart(5, "mj-collapsible-panel", 182)(6, "mj-explorer-entity-data-grid", 180);
1029
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template_mj_explorer_entity_data_grid_Navigate_6_listener($event) { i0.ɵɵrestoreView(_r24); 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(_r24); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsOrdersPaymentHeaders", $event.totalRowCount)); });
1030
+ i0.ɵɵelementEnd()()();
1031
+ } if (rf & 2) {
1032
+ const ctx_r1 = i0.ɵɵnextContext(2);
1033
+ i0.ɵɵadvance();
1034
+ i0.ɵɵproperty("Form", ctx_r1)("FormContext", ctx_r1.formContext)("BadgeCount", ctx_r1.GetSectionRowCount("mJBizAppsOrdersStoredValueTransactions"))("DefaultExpanded", true);
1035
+ i0.ɵɵadvance();
1036
+ i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ_BizApps_Orders: Stored Value Transactions", "RelatedPaymentID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ_BizApps_Orders: Stored Value Transactions", "RelatedPaymentID"))("AllowLoad", true)("ShowToolbar", true);
1037
+ i0.ɵɵadvance();
1038
+ i0.ɵɵproperty("Form", ctx_r1)("FormContext", ctx_r1.formContext)("BadgeCount", ctx_r1.GetSectionRowCount("mJBizAppsOrdersSubscriptionEvents"))("DefaultExpanded", false);
1039
+ i0.ɵɵadvance();
1040
+ i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ_BizApps_Orders: Subscription Events", "PaymentHeaderID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ_BizApps_Orders: Subscription Events", "PaymentHeaderID"))("AllowLoad", true)("ShowToolbar", true);
1041
+ i0.ɵɵadvance();
1042
+ i0.ɵɵproperty("Form", ctx_r1)("FormContext", ctx_r1.formContext)("BadgeCount", ctx_r1.GetSectionRowCount("mJBizAppsOrdersPaymentHeaders"))("DefaultExpanded", false);
1043
+ i0.ɵɵadvance();
1044
+ i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ_BizApps_Orders: Payment Headers", "ReversesPaymentHeaderID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ_BizApps_Orders: Payment Headers", "ReversesPaymentHeaderID"))("AllowLoad", true)("ShowToolbar", true);
1045
+ } }
1046
+ function BizAppsPaymentHeaderFormComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
1047
+ const _r1 = i0.ɵɵgetCurrentView();
1048
+ i0.ɵɵelementStart(0, "mj-record-form-container", 1);
1049
+ i0.ɵɵlistener("Navigate", function BizAppsPaymentHeaderFormComponent_Conditional_0_Template_mj_record_form_container_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("DeleteRequested", function BizAppsPaymentHeaderFormComponent_Conditional_0_Template_mj_record_form_container_DeleteRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnDeleteRequested()); })("FavoriteToggled", function BizAppsPaymentHeaderFormComponent_Conditional_0_Template_mj_record_form_container_FavoriteToggled_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFavoriteToggled()); })("HistoryRequested", function BizAppsPaymentHeaderFormComponent_Conditional_0_Template_mj_record_form_container_HistoryRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnHistoryRequested()); })("ListManagementRequested", function BizAppsPaymentHeaderFormComponent_Conditional_0_Template_mj_record_form_container_ListManagementRequested_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnListManagementRequested()); });
1050
+ i0.ɵɵelement(1, "mj-form-panel-slot", 2);
1051
+ i0.ɵɵelementStart(2, "div", 3)(3, "div", 4)(4, "div", 5)(5, "div", 6);
1052
+ i0.ɵɵelement(6, "i");
1053
+ i0.ɵɵelementEnd();
1054
+ i0.ɵɵelementStart(7, "div")(8, "div", 7)(9, "h1", 8);
1055
+ i0.ɵɵtext(10);
1056
+ i0.ɵɵelementEnd();
1057
+ i0.ɵɵelementStart(11, "span");
1058
+ i0.ɵɵtext(12);
1059
+ i0.ɵɵelementEnd();
1060
+ i0.ɵɵconditionalCreate(13, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_13_Template, 3, 0, "span", 9);
1061
+ i0.ɵɵelementEnd();
1062
+ i0.ɵɵelementStart(14, "div", 10);
1063
+ i0.ɵɵtext(15);
1064
+ i0.ɵɵelementEnd()()();
1065
+ i0.ɵɵelementStart(16, "div", 11)(17, "div", 12)(18, "div")(19, "span", 13);
1066
+ i0.ɵɵtext(20, "Gross");
1067
+ i0.ɵɵelementEnd();
1068
+ i0.ɵɵelementStart(21, "span", 14);
1069
+ i0.ɵɵtext(22);
1070
+ i0.ɵɵelementEnd()();
1071
+ i0.ɵɵelementStart(23, "div")(24, "span", 13);
1072
+ i0.ɵɵtext(25, "Fee");
1073
+ i0.ɵɵelementEnd();
1074
+ i0.ɵɵelementStart(26, "span", 14);
1075
+ i0.ɵɵtext(27);
1076
+ i0.ɵɵelementEnd()();
1077
+ i0.ɵɵelementStart(28, "div")(29, "span", 13);
1078
+ i0.ɵɵtext(30, "Net");
1079
+ i0.ɵɵelementEnd();
1080
+ i0.ɵɵelementStart(31, "span", 14);
1081
+ i0.ɵɵtext(32);
1082
+ i0.ɵɵelementEnd()();
1083
+ i0.ɵɵelementStart(33, "div")(34, "span", 13);
1084
+ i0.ɵɵtext(35, "Allocations");
1085
+ i0.ɵɵelementEnd();
1086
+ i0.ɵɵelementStart(36, "span", 14);
1087
+ i0.ɵɵconditionalCreate(37, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_37_Template, 1, 1)(38, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_38_Template, 1, 1);
1088
+ i0.ɵɵelementEnd()()();
1089
+ i0.ɵɵconditionalCreate(39, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_39_Template, 7, 4, "div", 15);
1090
+ i0.ɵɵelementEnd()()();
1091
+ i0.ɵɵelementStart(40, "div", 16)(41, "mj-tab-nav", 17);
1092
+ i0.ɵɵlistener("TabChange", function BizAppsPaymentHeaderFormComponent_Conditional_0_Template_mj_tab_nav_TabChange_41_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SelectTab($event)); });
1093
+ i0.ɵɵelementEnd()();
1094
+ i0.ɵɵconditionalCreate(42, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_42_Template, 6, 1, "div", 18);
1095
+ i0.ɵɵconditionalCreate(43, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_43_Template, 80, 41, "div", 19);
1096
+ i0.ɵɵconditionalCreate(44, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_44_Template, 15, 5, "div", 20);
1097
+ i0.ɵɵconditionalCreate(45, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_45_Template, 32, 48, "div", 20);
1098
+ i0.ɵɵconditionalCreate(46, BizAppsPaymentHeaderFormComponent_Conditional_0_Conditional_46_Template, 7, 24, "div", 20);
1099
+ i0.ɵɵelementEnd();
1100
+ } if (rf & 2) {
1101
+ const ctx_r1 = i0.ɵɵnextContext();
1102
+ i0.ɵɵproperty("Record", ctx_r1.record)("FormComponent", ctx_r1);
1103
+ i0.ɵɵadvance();
1104
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx_r1.record.EntityInfo.Name))("Record", ctx_r1.record)("FormComponent", ctx_r1)("FormContext", ctx_r1.formContext);
1105
+ i0.ɵɵadvance(4);
1106
+ i0.ɵɵclassProp("is-reversal", ctx_r1.IsReversal);
1107
+ i0.ɵɵadvance();
1108
+ i0.ɵɵclassMap(ctx_r1.PaymentAvatarIcon);
1109
+ i0.ɵɵadvance(4);
1110
+ i0.ɵɵtextInterpolate2(" ", ctx_r1.record.PaymentNumber || "New payment", " \u00B7 ", ctx_r1.FormattedGrossAmount, " ");
1111
+ i0.ɵɵadvance();
1112
+ i0.ɵɵclassMap(ctx_r1.StatusBadgeClass);
1113
+ i0.ɵɵadvance();
1114
+ i0.ɵɵtextInterpolate(ctx_r1.record.Status || "Draft");
1115
+ i0.ɵɵadvance();
1116
+ i0.ɵɵconditional(ctx_r1.IsReversal ? 13 : -1);
1117
+ i0.ɵɵadvance(2);
1118
+ i0.ɵɵtextInterpolate(ctx_r1.HeaderSubtitle);
1119
+ i0.ɵɵadvance(7);
1120
+ i0.ɵɵtextInterpolate(ctx_r1.FormattedGrossAmount);
1121
+ i0.ɵɵadvance(5);
1122
+ i0.ɵɵtextInterpolate(ctx_r1.FormattedFee);
1123
+ i0.ɵɵadvance(5);
1124
+ i0.ɵɵtextInterpolate(ctx_r1.FormattedNetAmount);
1125
+ i0.ɵɵadvance(4);
1126
+ i0.ɵɵclassProp("is-balanced", ctx_r1.IsAllocationBalanced)("is-unbalanced", !ctx_r1.IsAllocationBalanced && ctx_r1.TotalAllocated > 0);
1127
+ i0.ɵɵadvance();
1128
+ i0.ɵɵconditional(ctx_r1.IsCaptured ? 37 : 38);
1129
+ i0.ɵɵadvance(2);
1130
+ i0.ɵɵconditional(!ctx_r1.IsCaptured ? 39 : -1);
1131
+ i0.ɵɵadvance(2);
1132
+ i0.ɵɵproperty("Tabs", ctx_r1.ContextTabs)("ActiveKey", ctx_r1.ActiveTab ?? "");
1133
+ i0.ɵɵadvance();
1134
+ i0.ɵɵconditional(ctx_r1.CaptureError ? 42 : -1);
1135
+ i0.ɵɵadvance();
1136
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "payment" ? 43 : -1);
1137
+ i0.ɵɵadvance();
1138
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "accounting" ? 44 : -1);
1139
+ i0.ɵɵadvance();
1140
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "details" ? 45 : -1);
1141
+ i0.ɵɵadvance();
1142
+ i0.ɵɵconditional(ctx_r1.ActiveTab === "related" ? 46 : -1);
1143
+ } }
1144
+ const ACCOUNTING_VIEW_SETTING = 'mj.orders.paymentHeader.accountingView';
1145
+ const PAYMENT_TAB_SETTING = 'mj.orders.paymentHeader.activeTab';
1146
+ export const PAYMENT_FORM_TABS = [
1147
+ { key: 'payment', label: 'Payment & Allocation', icon: 'fa-solid fa-money-bill-transfer' },
1148
+ { key: 'accounting', label: 'Accounting & Ledger', icon: 'fa-solid fa-book' },
1149
+ { key: 'details', label: 'Details & Notes', icon: 'fa-solid fa-sliders' },
1150
+ { key: 'related', label: 'Related Records', icon: 'fa-solid fa-layer-group' },
1151
+ ];
1152
+ /**
1153
+ * Custom Payment Header form component overriding the CodeGen-generated form.
1154
+ *
1155
+ * Registered with priority 2 to override mjBizAppsOrdersPaymentHeaderFormComponent in ClassFactory.
1156
+ * Provides a unified creation, editing, allocation, and review experience directly
1157
+ * within the standard MemberJunction entity form.
1158
+ */
1159
+ let BizAppsPaymentHeaderFormComponent = class BizAppsPaymentHeaderFormComponent extends mjBizAppsOrdersPaymentHeaderFormComponent {
1160
+ record;
1161
+ navigationService = inject(NavigationService, { optional: true });
1162
+ Math = Math;
1163
+ ActiveTab = 'payment';
1164
+ PaymentTypes = [];
1165
+ SellingCompanies = [];
1166
+ AccountingView = 'summary';
1167
+ RollupCards = [];
1168
+ RollupLoading = false;
1169
+ RollupError = null;
1170
+ RollupJournalCount = 0;
1171
+ // ── Allocation State for New / Uncaptured Payments ───────────────────────
1172
+ OpenOrders = [];
1173
+ OrderLinesMap = new Map();
1174
+ OrderAllocations = {};
1175
+ LineAllocations = {};
1176
+ ExpandedOrderIDs = new Set();
1177
+ LoadingOpenOrders = false;
1178
+ AllocationError = null;
1179
+ SearchQuery = '';
1180
+ Saving = false;
1181
+ Capturing = false;
1182
+ CaptureError = null;
1183
+ AmountManuallySet = false;
1184
+ lastLoadedCustomerKey = null;
1185
+ get ContextTabs() {
1186
+ if (!this.record?.IsSaved || !this.IsCaptured) {
1187
+ return [
1188
+ { key: 'payment', label: 'Payment & Allocation', icon: 'fa-solid fa-money-bill-transfer' },
1189
+ { key: 'details', label: 'Details & Notes', icon: 'fa-solid fa-sliders' },
1190
+ ];
1191
+ }
1192
+ return PAYMENT_FORM_TABS;
1193
+ }
1194
+ OnFormNavigate(event) {
1195
+ this.Navigate.emit(event);
1196
+ DispatchFormNavigation(event, this.navigationService);
1197
+ }
1198
+ async ngOnInit() {
1199
+ await super.ngOnInit();
1200
+ this.AmountManuallySet = Boolean(this.record?.Amount && this.record.Amount > 0 && this.record.IsSaved);
1201
+ this.Config = { ...(this.Config ?? {}), ShowRelatedEntities: false };
1202
+ const savedView = UserInfoEngine.Instance.GetSetting(ACCOUNTING_VIEW_SETTING);
1203
+ if (savedView === 'summary' || savedView === 'detail') {
1204
+ this.AccountingView = savedView;
1205
+ }
1206
+ const savedTab = UserInfoEngine.Instance.GetSetting(PAYMENT_TAB_SETTING);
1207
+ if (savedTab === 'payment' || savedTab === 'accounting' || savedTab === 'details' || savedTab === 'related') {
1208
+ this.ActiveTab = savedTab;
1209
+ }
1210
+ this.initSections([
1211
+ { sectionKey: 'paymentInformation', sectionName: 'Payment Details & Money Breakdown', isExpanded: true },
1212
+ { sectionKey: 'mJBizAppsOrdersPaymentLines', sectionName: 'Payment Allocations (Order Lines Settled)', isExpanded: true },
1213
+ { sectionKey: 'relationships', sectionName: 'Payer & Receiving Account', isExpanded: true },
1214
+ { sectionKey: 'accounting', sectionName: 'Accounting', isExpanded: true },
1215
+ { sectionKey: 'processingDetails', sectionName: 'Processing & Gateway Settlement', isExpanded: true },
1216
+ { sectionKey: 'reversalInformation', sectionName: 'Reversal & Refund Linking', isExpanded: true },
1217
+ { sectionKey: 'mJBizAppsOrdersStoredValueTransactions', sectionName: 'Stored Value & Account Credit Transactions', isExpanded: false },
1218
+ { sectionKey: 'notesAndMetadata', sectionName: 'Memo & Internal Notes', isExpanded: false },
1219
+ { sectionKey: 'mJBizAppsOrdersSubscriptionEvents', sectionName: 'Subscription Billing Events', isExpanded: false },
1220
+ ]);
1221
+ await this.loadPaymentTypes();
1222
+ await this.loadSellingCompanies();
1223
+ if (this.IsCaptured) {
1224
+ void this.loadPaymentJournalRollup();
1225
+ }
1226
+ else {
1227
+ if (this.record?.IsSaved && !this.record.Lines.IsLoaded) {
1228
+ await this.record.Lines.Load();
1229
+ }
1230
+ await this.loadOpenOrdersForCustomer();
1231
+ this.populateExistingAllocations();
1232
+ }
1233
+ this.RegisterToolbarItem({
1234
+ Key: 'save-draft-toolbar',
1235
+ Text: 'Save draft',
1236
+ Icon: 'fa-solid fa-floppy-disk',
1237
+ Variant: 'secondary',
1238
+ Mode: 'both',
1239
+ Order: 5,
1240
+ Visible: () => !this.IsCaptured,
1241
+ Disabled: () => (this.Saving || this.Capturing ? 'Saving…' : false),
1242
+ OnClick: async () => this.SaveAsDraft(),
1243
+ });
1244
+ this.RegisterToolbarItem({
1245
+ Key: 'capture-payment-toolbar',
1246
+ Text: 'Capture & Book',
1247
+ Icon: 'fa-solid fa-check-double',
1248
+ Variant: 'primary',
1249
+ Mode: 'both',
1250
+ Order: 6,
1251
+ Visible: () => !this.IsCaptured,
1252
+ Disabled: () => {
1253
+ if (this.Capturing)
1254
+ return 'Capturing & booking…';
1255
+ if (!this.record?.Amount || this.record.Amount <= 0)
1256
+ return 'Payment amount must be greater than zero.';
1257
+ if (!this.hasPayer)
1258
+ return 'Choose who is paying (Bill-To customer).';
1259
+ if (!this.IsAllocationBalanced)
1260
+ return `Allocations do not tie: $${Math.abs(this.UnallocatedRemainder).toFixed(2)} ${this.UnallocatedRemainder > 0 ? 'unallocated remaining' : 'over-allocated'}.`;
1261
+ return false;
1262
+ },
1263
+ OnClick: async () => this.CapturePayment(),
1264
+ });
1265
+ this.cdr?.detectChanges?.();
1266
+ }
1267
+ SelectTab(key) {
1268
+ this.ActiveTab = key;
1269
+ UserInfoEngine.Instance.SetSettingDebounced(PAYMENT_TAB_SETTING, key);
1270
+ if (key === 'accounting') {
1271
+ void this.loadPaymentJournalRollup();
1272
+ }
1273
+ }
1274
+ get ComposeMode() {
1275
+ if (!this.record)
1276
+ return false;
1277
+ if (this.IsCaptured)
1278
+ return false;
1279
+ return !this.record.IsSaved || this.EditMode;
1280
+ }
1281
+ ngDoCheck() {
1282
+ const currentKey = `${this.record?.BillToOrganizationID || ''}|${this.record?.BillToPersonID || ''}`;
1283
+ if (currentKey !== this.lastLoadedCustomerKey) {
1284
+ this.lastLoadedCustomerKey = currentKey;
1285
+ void this.loadOpenOrdersForCustomer();
1286
+ }
1287
+ }
1288
+ // ── Payment Facts & Status Getters ──────────────────────────────────────
1289
+ get IsCaptured() {
1290
+ const status = this.record?.Status;
1291
+ return status === 'Captured' || status === 'Refunded';
1292
+ }
1293
+ get IsReversal() {
1294
+ return Boolean(this.record?.ReversesPaymentHeaderID || (this.record?.Amount != null && this.record.Amount < 0) || this.record?.ProviderRefundID);
1295
+ }
1296
+ get PaymentAvatarIcon() {
1297
+ if (this.IsReversal) {
1298
+ return 'fa-solid fa-rotate-left';
1299
+ }
1300
+ const tender = (this.record?.PaymentType ?? '').toLowerCase();
1301
+ if (tender.includes('card') || tender.includes('credit card') || tender.includes('debit')) {
1302
+ return 'fa-solid fa-credit-card';
1303
+ }
1304
+ if (tender.includes('check')) {
1305
+ return 'fa-solid fa-money-check';
1306
+ }
1307
+ if (tender.includes('wire') || tender.includes('ach') || tender.includes('bank')) {
1308
+ return 'fa-solid fa-building-columns';
1309
+ }
1310
+ if (tender.includes('credit') || tender.includes('stored') || tender.includes('wallet')) {
1311
+ return 'fa-solid fa-piggy-bank';
1312
+ }
1313
+ return 'fa-solid fa-hand-holding-dollar';
1314
+ }
1315
+ get StatusBadgeClass() {
1316
+ const status = this.record?.Status;
1317
+ switch (status) {
1318
+ case 'Captured':
1319
+ return 'mjo-status-chip mjo-status-chip--active';
1320
+ case 'Pending':
1321
+ return 'mjo-status-chip mjo-status-chip--draft';
1322
+ case 'Failed':
1323
+ return 'mjo-status-chip mjo-status-chip--error';
1324
+ case 'Refunded':
1325
+ return 'mjo-status-chip mjo-status-chip--purple';
1326
+ case 'Disputed':
1327
+ return 'mjo-status-chip mjo-status-chip--warning';
1328
+ default:
1329
+ return 'mjo-status-chip';
1330
+ }
1331
+ }
1332
+ get FormattedGrossAmount() {
1333
+ if (this.record?.Amount == null)
1334
+ return '$0.00';
1335
+ return FormatMoney(this.record.Amount);
1336
+ }
1337
+ get FormattedFee() {
1338
+ if (this.record?.ProcessingFeeAmount == null)
1339
+ return '$0.00';
1340
+ return FormatMoney(this.record.ProcessingFeeAmount);
1341
+ }
1342
+ get FormattedNetAmount() {
1343
+ if (this.record?.NetAmount != null) {
1344
+ return FormatMoney(this.record.NetAmount);
1345
+ }
1346
+ if (this.record?.Amount != null) {
1347
+ const net = this.record.Amount - (this.record.ProcessingFeeAmount || 0);
1348
+ return FormatMoney(net);
1349
+ }
1350
+ return '—';
1351
+ }
1352
+ get SettlementStatusText() {
1353
+ const status = this.record?.Status;
1354
+ switch (status) {
1355
+ case 'Captured':
1356
+ return 'Captured (Financials Locked)';
1357
+ case 'Refunded':
1358
+ return 'Refunded / Reversed';
1359
+ case 'Disputed':
1360
+ return 'Disputed / Chargeback';
1361
+ case 'Failed':
1362
+ return 'Payment Failed';
1363
+ case 'Pending':
1364
+ default:
1365
+ return 'Pending Capture';
1366
+ }
1367
+ }
1368
+ get hasPayer() {
1369
+ return Boolean(this.record?.BillToOrganizationID || this.record?.BillToPersonID);
1370
+ }
1371
+ get PayerDisplayName() {
1372
+ return this.record?.BillToOrganization || this.record?.BillToPerson || (this.hasPayer ? 'Customer Selected' : 'Choose who pays');
1373
+ }
1374
+ get PayerSubtext() {
1375
+ const parts = [this.record?.BillToOrganization, this.record?.BillToPerson].filter(Boolean);
1376
+ if (parts.length > 1)
1377
+ return `Bill-To Person: ${this.record.BillToPerson}`;
1378
+ return this.hasPayer ? 'Payer confirmed' : 'Select an organization or person';
1379
+ }
1380
+ get HeaderSubtitle() {
1381
+ const dateStr = this.record?.PaymentDate ? FormatDate(this.record.PaymentDate) : '';
1382
+ const tenderStr = this.record?.PaymentType || 'Direct Payment';
1383
+ const parts = [dateStr, tenderStr, this.PayerDisplayName !== 'Choose who pays' ? this.PayerDisplayName : ''].filter(Boolean);
1384
+ return parts.join(' · ') || 'New payment entry and order allocation';
1385
+ }
1386
+ // ── Payment Detail & Instrument Accessors ───────────────────────────────
1387
+ get SelectedPaymentType() {
1388
+ if (!this.record?.PaymentTypeID)
1389
+ return undefined;
1390
+ return this.PaymentTypes.find(t => UUIDsEqual(t.ID, this.record?.PaymentTypeID));
1391
+ }
1392
+ get PaymentTypeCode() {
1393
+ const type = this.SelectedPaymentType;
1394
+ if (type?.Code)
1395
+ return type.Code.toLowerCase();
1396
+ const name = (type?.Name || this.record?.PaymentType || '').toLowerCase();
1397
+ if (name.includes('check'))
1398
+ return 'check';
1399
+ if (name.includes('card') || name.includes('credit') || name.includes('debit'))
1400
+ return 'card';
1401
+ if (name.includes('ach') || name.includes('bank') || name.includes('direct debit'))
1402
+ return 'ach';
1403
+ if (name.includes('wire'))
1404
+ return 'wire';
1405
+ return '';
1406
+ }
1407
+ get RequiresReference() {
1408
+ return Boolean(this.SelectedPaymentType?.RequiresReference || this.PaymentTypeCode === 'check' || this.PaymentTypeCode === 'wire' || this.PaymentTypeCode === 'ach');
1409
+ }
1410
+ get RequiresInstrument() {
1411
+ return Boolean(this.SelectedPaymentType?.RequiresInstrument || this.PaymentTypeCode === 'card' || this.PaymentTypeCode === 'ach');
1412
+ }
1413
+ EnsurePaymentDetail() {
1414
+ if (!this.record)
1415
+ return null;
1416
+ const detail = this.record.PaymentDetailID_EnsureObject();
1417
+ if (!detail.CompanyID && this.record.ReceivingCompanyID) {
1418
+ detail.CompanyID = this.record.ReceivingCompanyID;
1419
+ }
1420
+ if (!detail.PaymentTypeID && this.record.PaymentTypeID) {
1421
+ detail.PaymentTypeID = this.record.PaymentTypeID;
1422
+ }
1423
+ return detail;
1424
+ }
1425
+ isPaymentDetailEmpty(detail) {
1426
+ return (!detail.ReferenceNumber?.trim() &&
1427
+ !detail.Brand?.trim() &&
1428
+ !detail.Last4?.trim() &&
1429
+ !detail.HolderName?.trim() &&
1430
+ !detail.BankName?.trim() &&
1431
+ !detail.RoutingLast4?.trim() &&
1432
+ !detail.AccountLast4?.trim() &&
1433
+ !detail.BankAccountType &&
1434
+ !detail.ExpiryMonth &&
1435
+ !detail.ExpiryYear &&
1436
+ !detail.Notes?.trim() &&
1437
+ !detail.ProviderInstrumentRef?.trim() &&
1438
+ !detail.ProviderCustomerRef?.trim() &&
1439
+ !detail.StoredValueAccountID);
1440
+ }
1441
+ get ReferenceNumber() {
1442
+ return this.record?.PaymentDetailID_Object?.ReferenceNumber ?? '';
1443
+ }
1444
+ set ReferenceNumber(val) {
1445
+ const trimmed = (val ?? '').trim();
1446
+ if (trimmed) {
1447
+ const detail = this.EnsurePaymentDetail();
1448
+ if (detail)
1449
+ detail.ReferenceNumber = trimmed;
1450
+ }
1451
+ else if (this.record?.PaymentDetailID_Object) {
1452
+ this.record.PaymentDetailID_Object.ReferenceNumber = null;
1453
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1454
+ this.record.ClearPaymentDetail();
1455
+ }
1456
+ }
1457
+ }
1458
+ get InstrumentDateInput() {
1459
+ const d = this.record?.PaymentDetailID_Object?.InstrumentDate;
1460
+ if (!d)
1461
+ return '';
1462
+ return new Date(d).toISOString().split('T')[0];
1463
+ }
1464
+ set InstrumentDateInput(val) {
1465
+ if (val) {
1466
+ const detail = this.EnsurePaymentDetail();
1467
+ if (detail)
1468
+ detail.InstrumentDate = new Date(val);
1469
+ }
1470
+ else if (this.record?.PaymentDetailID_Object) {
1471
+ this.record.PaymentDetailID_Object.InstrumentDate = null;
1472
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1473
+ this.record.ClearPaymentDetail();
1474
+ }
1475
+ }
1476
+ }
1477
+ get CardBrand() {
1478
+ return this.record?.PaymentDetailID_Object?.Brand ?? '';
1479
+ }
1480
+ set CardBrand(val) {
1481
+ const trimmed = (val ?? '').trim();
1482
+ if (trimmed) {
1483
+ const detail = this.EnsurePaymentDetail();
1484
+ if (detail)
1485
+ detail.Brand = trimmed;
1486
+ }
1487
+ else if (this.record?.PaymentDetailID_Object) {
1488
+ this.record.PaymentDetailID_Object.Brand = null;
1489
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1490
+ this.record.ClearPaymentDetail();
1491
+ }
1492
+ }
1493
+ }
1494
+ get CardLast4() {
1495
+ return this.record?.PaymentDetailID_Object?.Last4 ?? '';
1496
+ }
1497
+ set CardLast4(val) {
1498
+ const trimmed = (val ?? '').trim().slice(-4);
1499
+ if (trimmed) {
1500
+ const detail = this.EnsurePaymentDetail();
1501
+ if (detail)
1502
+ detail.Last4 = trimmed;
1503
+ }
1504
+ else if (this.record?.PaymentDetailID_Object) {
1505
+ this.record.PaymentDetailID_Object.Last4 = null;
1506
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1507
+ this.record.ClearPaymentDetail();
1508
+ }
1509
+ }
1510
+ }
1511
+ get CardHolderName() {
1512
+ return this.record?.PaymentDetailID_Object?.HolderName ?? '';
1513
+ }
1514
+ set CardHolderName(val) {
1515
+ const trimmed = (val ?? '').trim();
1516
+ if (trimmed) {
1517
+ const detail = this.EnsurePaymentDetail();
1518
+ if (detail)
1519
+ detail.HolderName = trimmed;
1520
+ }
1521
+ else if (this.record?.PaymentDetailID_Object) {
1522
+ this.record.PaymentDetailID_Object.HolderName = null;
1523
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1524
+ this.record.ClearPaymentDetail();
1525
+ }
1526
+ }
1527
+ }
1528
+ get CardExpMonth() {
1529
+ return this.record?.PaymentDetailID_Object?.ExpiryMonth ?? null;
1530
+ }
1531
+ set CardExpMonth(val) {
1532
+ const num = val != null && val !== '' ? Number(val) : null;
1533
+ if (num && num >= 1 && num <= 12) {
1534
+ const detail = this.EnsurePaymentDetail();
1535
+ if (detail)
1536
+ detail.ExpiryMonth = num;
1537
+ }
1538
+ else if (this.record?.PaymentDetailID_Object) {
1539
+ this.record.PaymentDetailID_Object.ExpiryMonth = null;
1540
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1541
+ this.record.ClearPaymentDetail();
1542
+ }
1543
+ }
1544
+ }
1545
+ get CardExpYear() {
1546
+ return this.record?.PaymentDetailID_Object?.ExpiryYear ?? null;
1547
+ }
1548
+ set CardExpYear(val) {
1549
+ const num = val != null && val !== '' ? Number(val) : null;
1550
+ if (num && num >= 2020) {
1551
+ const detail = this.EnsurePaymentDetail();
1552
+ if (detail)
1553
+ detail.ExpiryYear = num;
1554
+ }
1555
+ else if (this.record?.PaymentDetailID_Object) {
1556
+ this.record.PaymentDetailID_Object.ExpiryYear = null;
1557
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1558
+ this.record.ClearPaymentDetail();
1559
+ }
1560
+ }
1561
+ }
1562
+ get BankName() {
1563
+ return this.record?.PaymentDetailID_Object?.BankName ?? '';
1564
+ }
1565
+ set BankName(val) {
1566
+ const trimmed = (val ?? '').trim();
1567
+ if (trimmed) {
1568
+ const detail = this.EnsurePaymentDetail();
1569
+ if (detail)
1570
+ detail.BankName = trimmed;
1571
+ }
1572
+ else if (this.record?.PaymentDetailID_Object) {
1573
+ this.record.PaymentDetailID_Object.BankName = null;
1574
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1575
+ this.record.ClearPaymentDetail();
1576
+ }
1577
+ }
1578
+ }
1579
+ get BankAccountType() {
1580
+ return this.record?.PaymentDetailID_Object?.BankAccountType ?? null;
1581
+ }
1582
+ set BankAccountType(val) {
1583
+ if (val === 'Checking' || val === 'Savings') {
1584
+ const detail = this.EnsurePaymentDetail();
1585
+ if (detail)
1586
+ detail.BankAccountType = val;
1587
+ }
1588
+ else if (this.record?.PaymentDetailID_Object) {
1589
+ this.record.PaymentDetailID_Object.BankAccountType = null;
1590
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1591
+ this.record.ClearPaymentDetail();
1592
+ }
1593
+ }
1594
+ }
1595
+ get RoutingLast4() {
1596
+ return this.record?.PaymentDetailID_Object?.RoutingLast4 ?? '';
1597
+ }
1598
+ set RoutingLast4(val) {
1599
+ const trimmed = (val ?? '').trim().slice(-4);
1600
+ if (trimmed) {
1601
+ const detail = this.EnsurePaymentDetail();
1602
+ if (detail)
1603
+ detail.RoutingLast4 = trimmed;
1604
+ }
1605
+ else if (this.record?.PaymentDetailID_Object) {
1606
+ this.record.PaymentDetailID_Object.RoutingLast4 = null;
1607
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1608
+ this.record.ClearPaymentDetail();
1609
+ }
1610
+ }
1611
+ }
1612
+ get AccountLast4() {
1613
+ return this.record?.PaymentDetailID_Object?.AccountLast4 ?? '';
1614
+ }
1615
+ set AccountLast4(val) {
1616
+ const trimmed = (val ?? '').trim().slice(-4);
1617
+ if (trimmed) {
1618
+ const detail = this.EnsurePaymentDetail();
1619
+ if (detail)
1620
+ detail.AccountLast4 = trimmed;
1621
+ }
1622
+ else if (this.record?.PaymentDetailID_Object) {
1623
+ this.record.PaymentDetailID_Object.AccountLast4 = null;
1624
+ if (this.isPaymentDetailEmpty(this.record.PaymentDetailID_Object)) {
1625
+ this.record.ClearPaymentDetail();
1626
+ }
1627
+ }
1628
+ }
1629
+ OnPaymentTypeSelected(paymentTypeID) {
1630
+ if (!this.record)
1631
+ return;
1632
+ this.record.PaymentTypeID = paymentTypeID || '';
1633
+ if (paymentTypeID && this.record.PaymentDetailID_Object) {
1634
+ this.record.PaymentDetailID_Object.PaymentTypeID = paymentTypeID;
1635
+ }
1636
+ this.cdr?.detectChanges?.();
1637
+ }
1638
+ // ── Payment Inputs & Changes ────────────────────────────────────────────
1639
+ OnAmountChanged(val) {
1640
+ if (!this.record)
1641
+ return;
1642
+ this.AmountManuallySet = true;
1643
+ const num = typeof val === 'number' ? val : parseFloat(val) || 0;
1644
+ this.record.Amount = num;
1645
+ this.record.NetAmount = Math.max(0, num - (this.record.ProcessingFeeAmount || 0));
1646
+ this.cdr?.detectChanges?.();
1647
+ }
1648
+ OnFeeChanged(val) {
1649
+ if (!this.record)
1650
+ return;
1651
+ this.record.ProcessingFeeAmount = typeof val === 'number' ? val : parseFloat(val) || 0;
1652
+ this.record.NetAmount = Math.max(0, (this.record.Amount || 0) - this.record.ProcessingFeeAmount);
1653
+ this.cdr?.detectChanges?.();
1654
+ }
1655
+ get PaymentDateInput() {
1656
+ if (!this.record?.PaymentDate)
1657
+ return '';
1658
+ const d = new Date(this.record.PaymentDate);
1659
+ return d.toISOString().split('T')[0];
1660
+ }
1661
+ set PaymentDateInput(val) {
1662
+ if (!this.record)
1663
+ return;
1664
+ this.record.PaymentDate = val ? new Date(val) : new Date();
1665
+ }
1666
+ async OnPayerSelectionChanged() {
1667
+ const currentKey = `${this.record?.BillToOrganizationID || ''}:${this.record?.BillToPersonID || ''}`;
1668
+ if (currentKey !== this.lastLoadedCustomerKey) {
1669
+ this.lastLoadedCustomerKey = currentKey;
1670
+ await this.loadOpenOrdersForCustomer();
1671
+ }
1672
+ }
1673
+ // ── GL Books Impact Breakdown ───────────────────────────────────────────
1674
+ get ReceivingCompanyName() {
1675
+ if (!this.record?.ReceivingCompanyID)
1676
+ return 'Primary Company';
1677
+ const found = this.SellingCompanies.find(c => UUIDsEqual(c.ID, this.record.ReceivingCompanyID));
1678
+ return found?.Name || this.record.ReceivingCompanyID;
1679
+ }
1680
+ // ── Allocation Matrix & Workbench Methods ───────────────────────────────
1681
+ get FilteredOpenOrders() {
1682
+ const q = (this.SearchQuery || '').trim().toLowerCase();
1683
+ if (!q)
1684
+ return this.OpenOrders;
1685
+ return this.OpenOrders.filter((o) => (o.OrderNumber && o.OrderNumber.toLowerCase().includes(q)) ||
1686
+ (o.Description && o.Description.toLowerCase().includes(q)) ||
1687
+ (o.Company && o.Company.toLowerCase().includes(q)));
1688
+ }
1689
+ async loadOpenOrdersForCustomer() {
1690
+ const orgID = this.record?.BillToOrganizationID;
1691
+ const personID = this.record?.BillToPersonID;
1692
+ this.LoadingOpenOrders = true;
1693
+ this.AllocationError = null;
1694
+ this.cdr?.detectChanges?.();
1695
+ try {
1696
+ const orders = await GetOrders({
1697
+ BillToOrganizationID: orgID ?? undefined,
1698
+ BillToPersonID: personID ?? undefined,
1699
+ Preset: 'unpaid',
1700
+ MaxRows: 100,
1701
+ User: this.ProviderToUse?.CurrentUser,
1702
+ });
1703
+ this.OpenOrders = orders;
1704
+ const orderIDs = orders.map((o) => o.ID).filter((id) => Boolean(id));
1705
+ if (orderIDs.length > 0) {
1706
+ const linesMap = await GetOrderLinesForOrders(orderIDs, this.ProviderToUse?.CurrentUser);
1707
+ this.OrderLinesMap = linesMap;
1708
+ }
1709
+ else {
1710
+ this.OrderLinesMap.clear();
1711
+ }
1712
+ }
1713
+ catch (err) {
1714
+ this.AllocationError = err instanceof Error ? err.message : 'Failed to load open orders';
1715
+ }
1716
+ finally {
1717
+ this.LoadingOpenOrders = false;
1718
+ this.cdr?.detectChanges?.();
1719
+ }
1720
+ }
1721
+ populateExistingAllocations() {
1722
+ if (!this.record?.Lines?.Items?.length)
1723
+ return;
1724
+ this.OrderAllocations = {};
1725
+ this.LineAllocations = {};
1726
+ for (const line of this.record.Lines.Items) {
1727
+ if (line.OrderLineID) {
1728
+ this.LineAllocations[String(line.OrderLineID).toLowerCase()] = line.Amount ?? 0;
1729
+ if (line.OrderHeaderID) {
1730
+ this.ExpandedOrderIDs.add(String(line.OrderHeaderID).toLowerCase());
1731
+ }
1732
+ }
1733
+ else if (line.OrderHeaderID) {
1734
+ this.OrderAllocations[String(line.OrderHeaderID).toLowerCase()] = line.Amount ?? 0;
1735
+ }
1736
+ }
1737
+ }
1738
+ ToggleOrderExpanded(orderID) {
1739
+ const key = orderID.toLowerCase();
1740
+ if (this.ExpandedOrderIDs.has(key)) {
1741
+ this.ExpandedOrderIDs.delete(key);
1742
+ }
1743
+ else {
1744
+ this.ExpandedOrderIDs.add(key);
1745
+ }
1746
+ this.cdr?.detectChanges?.();
1747
+ }
1748
+ IsOrderExpanded(orderID) {
1749
+ return this.ExpandedOrderIDs.has(orderID.toLowerCase());
1750
+ }
1751
+ GetOrderLines(orderID) {
1752
+ if (!this.OrderLinesMap)
1753
+ return [];
1754
+ return this.OrderLinesMap.get(orderID.toLowerCase()) || this.OrderLinesMap.get(orderID) || [];
1755
+ }
1756
+ GetTotalLineAllocationsForOrder(orderID) {
1757
+ const lines = this.GetOrderLines(orderID);
1758
+ let sum = 0;
1759
+ for (const l of lines) {
1760
+ if (l.ID) {
1761
+ sum += (this.LineAllocations || {})[l.ID.toLowerCase()] ?? 0;
1762
+ }
1763
+ }
1764
+ return Math.round(sum * 100) / 100;
1765
+ }
1766
+ HasLineAllocations(orderID) {
1767
+ return this.GetTotalLineAllocationsForOrder(orderID) > 0;
1768
+ }
1769
+ GetEffectiveOrderAllocation(orderID) {
1770
+ const key = (orderID || '').toLowerCase();
1771
+ if (this.HasLineAllocations(key)) {
1772
+ return this.GetTotalLineAllocationsForOrder(key);
1773
+ }
1774
+ return (this.OrderAllocations || {})[key] ?? 0;
1775
+ }
1776
+ GetOrderAllocation(orderID) {
1777
+ return this.GetEffectiveOrderAllocation(orderID);
1778
+ }
1779
+ GetLineAllocation(orderLineID) {
1780
+ return (this.LineAllocations || {})[orderLineID.toLowerCase()] ?? 0;
1781
+ }
1782
+ SetOrderAllocation(orderID, value) {
1783
+ const key = (orderID || '').toLowerCase();
1784
+ if (this.HasLineAllocations(key))
1785
+ return;
1786
+ const amount = typeof value === 'number' ? value : parseFloat(value) || 0;
1787
+ if (!this.OrderAllocations)
1788
+ this.OrderAllocations = {};
1789
+ this.OrderAllocations[key] = Math.max(0, amount);
1790
+ if (this.record && !this.record.BillToOrganizationID && !this.record.BillToPersonID && this.OpenOrders) {
1791
+ const order = this.OpenOrders.find(o => UUIDsEqual(o.ID, orderID));
1792
+ if (order) {
1793
+ if (order.BillToOrganizationID)
1794
+ this.record.BillToOrganizationID = order.BillToOrganizationID;
1795
+ if (order.BillToPersonID)
1796
+ this.record.BillToPersonID = order.BillToPersonID;
1797
+ }
1798
+ }
1799
+ if (!this.AmountManuallySet && this.record) {
1800
+ this.record.Amount = this.TotalAllocated;
1801
+ this.record.NetAmount = Math.max(0, (this.record.Amount || 0) - (this.record.ProcessingFeeAmount || 0));
1802
+ }
1803
+ this.cdr?.detectChanges?.();
1804
+ }
1805
+ SetLineAllocation(orderLineID, value, parentOrderID) {
1806
+ const key = (orderLineID || '').toLowerCase();
1807
+ const amount = typeof value === 'number' ? value : parseFloat(value) || 0;
1808
+ if (!this.LineAllocations)
1809
+ this.LineAllocations = {};
1810
+ this.LineAllocations[key] = Math.max(0, amount);
1811
+ let pID = parentOrderID;
1812
+ if (!pID && this.OrderLinesMap) {
1813
+ for (const [oID, lines] of this.OrderLinesMap.entries()) {
1814
+ if (lines.some(l => (l.ID || '').toLowerCase() === key)) {
1815
+ pID = oID;
1816
+ break;
1817
+ }
1818
+ }
1819
+ }
1820
+ if (pID) {
1821
+ if (!this.OrderAllocations)
1822
+ this.OrderAllocations = {};
1823
+ this.OrderAllocations[pID.toLowerCase()] = 0;
1824
+ if (this.record && !this.record.BillToOrganizationID && !this.record.BillToPersonID && this.OpenOrders) {
1825
+ const order = this.OpenOrders.find(o => UUIDsEqual(o.ID, pID));
1826
+ if (order) {
1827
+ if (order.BillToOrganizationID)
1828
+ this.record.BillToOrganizationID = order.BillToOrganizationID;
1829
+ if (order.BillToPersonID)
1830
+ this.record.BillToPersonID = order.BillToPersonID;
1831
+ }
1832
+ }
1833
+ }
1834
+ if (!this.AmountManuallySet && this.record) {
1835
+ this.record.Amount = this.TotalAllocated;
1836
+ this.record.NetAmount = Math.max(0, (this.record.Amount || 0) - (this.record.ProcessingFeeAmount || 0));
1837
+ }
1838
+ this.cdr?.detectChanges?.();
1839
+ }
1840
+ FullPayOrder(order) {
1841
+ if (!order.ID)
1842
+ return;
1843
+ const key = order.ID.toLowerCase();
1844
+ const lines = this.GetOrderLines(key);
1845
+ for (const l of lines) {
1846
+ if (l.ID) {
1847
+ delete this.LineAllocations[l.ID.toLowerCase()];
1848
+ }
1849
+ }
1850
+ const openBal = Math.max(0, order.Balance ?? order.TotalGross ?? 0);
1851
+ this.SetOrderAllocation(order.ID, openBal);
1852
+ }
1853
+ FullPayLine(order, line) {
1854
+ if (!line.ID)
1855
+ return;
1856
+ const lineGross = Math.max(0, line.LineTotalGross ?? (line.UnitPrice || 0) * (line.Quantity || 1));
1857
+ this.SetLineAllocation(line.ID, lineGross, order.ID);
1858
+ }
1859
+ get TotalAllocated() {
1860
+ let total = 0;
1861
+ const openOrders = this.OpenOrders || [];
1862
+ for (const order of openOrders) {
1863
+ if (order.ID) {
1864
+ total += this.GetEffectiveOrderAllocation(order.ID);
1865
+ }
1866
+ }
1867
+ const openOrderKeys = new Set(openOrders.map(o => (o.ID || '').toLowerCase()));
1868
+ for (const [orderID, amt] of Object.entries(this.OrderAllocations || {})) {
1869
+ if (!openOrderKeys.has(orderID)) {
1870
+ total += amt;
1871
+ }
1872
+ }
1873
+ for (const [lineID, amt] of Object.entries(this.LineAllocations || {})) {
1874
+ let lineFound = false;
1875
+ if (this.OrderLinesMap) {
1876
+ for (const lines of this.OrderLinesMap.values()) {
1877
+ if (lines.some(l => (l.ID || '').toLowerCase() === lineID)) {
1878
+ lineFound = true;
1879
+ break;
1880
+ }
1881
+ }
1882
+ }
1883
+ if (!lineFound) {
1884
+ total += amt;
1885
+ }
1886
+ }
1887
+ return Math.round(total * 100) / 100;
1888
+ }
1889
+ get UnallocatedRemainder() {
1890
+ const gross = this.record?.Amount ?? 0;
1891
+ return Math.round((gross - this.TotalAllocated) * 100) / 100;
1892
+ }
1893
+ get IsAllocationBalanced() {
1894
+ return Math.abs(this.UnallocatedRemainder) < 0.005 && this.TotalAllocated > 0;
1895
+ }
1896
+ AutoApplyOldestFirst() {
1897
+ this.OrderAllocations = {};
1898
+ this.LineAllocations = {};
1899
+ let remainingCash = this.record?.Amount ?? 0;
1900
+ if (remainingCash <= 0)
1901
+ return;
1902
+ const sorted = [...this.OpenOrders].sort((a, b) => {
1903
+ const dateA = new Date(a.DueDate || a.OrderDate || 0).getTime();
1904
+ const dateB = new Date(b.DueDate || b.OrderDate || 0).getTime();
1905
+ return dateA - dateB;
1906
+ });
1907
+ for (const order of sorted) {
1908
+ if (remainingCash <= 0)
1909
+ break;
1910
+ const openBal = Math.max(0, order.Balance ?? order.TotalGross ?? 0);
1911
+ const applyAmount = Math.min(openBal, remainingCash);
1912
+ if (applyAmount > 0 && order.ID) {
1913
+ this.OrderAllocations[order.ID.toLowerCase()] = Math.round(applyAmount * 100) / 100;
1914
+ remainingCash = Math.round((remainingCash - applyAmount) * 100) / 100;
1915
+ }
1916
+ }
1917
+ if (remainingCash > 0 && sorted.length > 0 && sorted[0].ID) {
1918
+ const firstKey = sorted[0].ID.toLowerCase();
1919
+ const current = this.OrderAllocations[firstKey] ?? 0;
1920
+ this.OrderAllocations[firstKey] = Math.round((current + remainingCash) * 100) / 100;
1921
+ }
1922
+ this.cdr?.detectChanges?.();
1923
+ }
1924
+ ClearAllocations() {
1925
+ this.OrderAllocations = {};
1926
+ this.LineAllocations = {};
1927
+ if (!this.AmountManuallySet && this.record) {
1928
+ this.record.Amount = 0;
1929
+ this.record.NetAmount = 0;
1930
+ }
1931
+ this.cdr?.detectChanges?.();
1932
+ }
1933
+ CalculateLeavesBalance(order) {
1934
+ const baseBal = order.Balance ?? order.TotalGross ?? 0;
1935
+ const applied = this.GetEffectiveOrderAllocation(order.ID || '');
1936
+ return Math.max(0, Math.round((baseBal - applied) * 100) / 100);
1937
+ }
1938
+ FormatOrderDueDate(order) {
1939
+ if (!order.DueDate)
1940
+ return '—';
1941
+ return FormatDate(order.DueDate);
1942
+ }
1943
+ GetOrderDaysOverdue(order) {
1944
+ if (!order.DueDate)
1945
+ return 0;
1946
+ const due = new Date(order.DueDate).getTime();
1947
+ const now = Date.now();
1948
+ if (now <= due)
1949
+ return 0;
1950
+ return Math.floor((now - due) / (1000 * 60 * 60 * 24));
1951
+ }
1952
+ OpenOrderRecord(order, event) {
1953
+ event.stopPropagation();
1954
+ if (order.ID && this.navigationService) {
1955
+ this.navigationService.OpenEntityRecord(MJO_ENTITIES.OrderHeader, CompositeKey.FromID(order.ID));
1956
+ }
1957
+ }
1958
+ async SyncAllocationsToRecord() {
1959
+ if (!this.record?.Lines)
1960
+ return;
1961
+ if (this.record.IsSaved && !this.record.Lines.IsLoaded) {
1962
+ await this.record.Lines.Load();
1963
+ }
1964
+ const activeOrderAllocs = new Map();
1965
+ for (const [orderID, amount] of Object.entries(this.OrderAllocations)) {
1966
+ if (amount > 0 && !this.HasLineAllocations(orderID)) {
1967
+ activeOrderAllocs.set(orderID.toLowerCase(), amount);
1968
+ }
1969
+ }
1970
+ const activeLineAllocs = new Map();
1971
+ for (const [lineID, amount] of Object.entries(this.LineAllocations)) {
1972
+ if (amount > 0) {
1973
+ activeLineAllocs.set(lineID.toLowerCase(), amount);
1974
+ }
1975
+ }
1976
+ for (const item of [...this.record.Lines.Items]) {
1977
+ if (item.BookedAt)
1978
+ continue;
1979
+ if (item.OrderLineID) {
1980
+ const key = item.OrderLineID.toLowerCase();
1981
+ if (activeLineAllocs.has(key)) {
1982
+ item.Amount = activeLineAllocs.get(key);
1983
+ activeLineAllocs.delete(key);
1984
+ }
1985
+ else {
1986
+ this.record.Lines.Remove(item);
1987
+ }
1988
+ }
1989
+ else if (item.OrderHeaderID) {
1990
+ const key = item.OrderHeaderID.toLowerCase();
1991
+ if (activeOrderAllocs.has(key)) {
1992
+ item.Amount = activeOrderAllocs.get(key);
1993
+ activeOrderAllocs.delete(key);
1994
+ }
1995
+ else {
1996
+ this.record.Lines.Remove(item);
1997
+ }
1998
+ }
1999
+ else {
2000
+ this.record.Lines.Remove(item);
2001
+ }
2002
+ }
2003
+ for (const [orderID, amount] of activeOrderAllocs.entries()) {
2004
+ const line = await this.record.Lines.Create();
2005
+ line.OrderHeaderID = orderID;
2006
+ line.OrderLineID = null;
2007
+ line.Amount = amount;
2008
+ line.AllocatedAt = new Date();
2009
+ }
2010
+ for (const [orderLineID, amount] of activeLineAllocs.entries()) {
2011
+ let parentOrderID;
2012
+ for (const [ordID, lines] of this.OrderLinesMap.entries()) {
2013
+ if (lines.some((l) => l.ID?.toLowerCase() === orderLineID)) {
2014
+ parentOrderID = ordID;
2015
+ break;
2016
+ }
2017
+ }
2018
+ const line = await this.record.Lines.Create();
2019
+ line.OrderLineID = orderLineID;
2020
+ if (parentOrderID) {
2021
+ line.OrderHeaderID = parentOrderID;
2022
+ }
2023
+ line.Amount = amount;
2024
+ line.AllocatedAt = new Date();
2025
+ }
2026
+ }
2027
+ // ── Save & Capture Execution ────────────────────────────────────────────
2028
+ async SaveAsDraft() {
2029
+ if (this.Saving || this.Capturing)
2030
+ return;
2031
+ this.Saving = true;
2032
+ this.AllocationError = null;
2033
+ this.CaptureError = null;
2034
+ try {
2035
+ this.record.Status = 'Pending';
2036
+ await this.SyncAllocationsToRecord();
2037
+ await this.SaveRecord(false);
2038
+ }
2039
+ catch (err) {
2040
+ this.AllocationError = err instanceof Error ? err.message : String(err);
2041
+ }
2042
+ finally {
2043
+ this.Saving = false;
2044
+ this.cdr?.detectChanges?.();
2045
+ }
2046
+ }
2047
+ async CapturePayment() {
2048
+ if (this.Capturing || this.Saving)
2049
+ return;
2050
+ this.Capturing = true;
2051
+ this.CaptureError = null;
2052
+ this.AllocationError = null;
2053
+ try {
2054
+ if (!this.record.Amount || this.record.Amount <= 0) {
2055
+ throw new Error('Payment amount must be greater than zero.');
2056
+ }
2057
+ if (!this.hasPayer) {
2058
+ throw new Error('Please select who is paying (Bill-To Customer) before capturing.');
2059
+ }
2060
+ if (!this.IsAllocationBalanced) {
2061
+ throw new Error(`Allocations must exactly match payment amount. Remainder: $${this.UnallocatedRemainder.toFixed(2)}`);
2062
+ }
2063
+ await this.SyncAllocationsToRecord();
2064
+ this.record.Status = 'Captured';
2065
+ const saved = await this.record.Save();
2066
+ if (!saved) {
2067
+ throw new Error(this.record.LatestResult?.Message || 'Failed to capture and book payment.');
2068
+ }
2069
+ this.ActiveTab = 'accounting';
2070
+ await this.loadPaymentJournalRollup();
2071
+ }
2072
+ catch (err) {
2073
+ this.CaptureError = err instanceof Error ? err.message : String(err);
2074
+ }
2075
+ finally {
2076
+ this.Capturing = false;
2077
+ this.cdr?.detectChanges?.();
2078
+ }
2079
+ }
2080
+ // ── Accounting Journal Rollup ───────────────────────────────────────────
2081
+ get PaymentJournalEntryParams() {
2082
+ if (!this.record?.IsSaved || !this.record?.ID)
2083
+ return null;
2084
+ return {
2085
+ EntityName: MJO_ACCOUNTING_ENTITIES.JournalEntry,
2086
+ ExtraFilter: BuildPaymentJournalFilter(this.record),
2087
+ OrderBy: '__mj_CreatedAt DESC',
2088
+ ResultType: 'entity_object',
2089
+ };
2090
+ }
2091
+ SetAccountingView(view) {
2092
+ if (this.AccountingView === view)
2093
+ return;
2094
+ this.AccountingView = view;
2095
+ UserInfoEngine.Instance.SetSettingDebounced(ACCOUNTING_VIEW_SETTING, view);
2096
+ if (view === 'summary')
2097
+ void this.loadPaymentJournalRollup();
2098
+ }
2099
+ CardIsBalanced(card) {
2100
+ return Math.abs(card.TotalDebit - card.TotalCredit) < 0.005;
2101
+ }
2102
+ RollupAmount(amount) {
2103
+ return FormatMoney(amount);
2104
+ }
2105
+ SourceLineLabel(count) {
2106
+ return count === 1 ? '1 allocation' : `${count} allocations`;
2107
+ }
2108
+ async loadPaymentJournalRollup() {
2109
+ if (!this.record?.IsSaved || !this.record?.ID) {
2110
+ this.RollupCards = [];
2111
+ this.RollupJournalCount = 0;
2112
+ return;
2113
+ }
2114
+ this.RollupLoading = true;
2115
+ this.RollupError = null;
2116
+ this.cdr?.detectChanges?.();
2117
+ try {
2118
+ const rollup = await GetPaymentJournalRollup(this.record, this.ProviderToUse?.CurrentUser);
2119
+ this.RollupCards = rollup.Cards;
2120
+ this.RollupJournalCount = rollup.JournalCount;
2121
+ }
2122
+ catch (error) {
2123
+ this.RollupCards = [];
2124
+ this.RollupJournalCount = 0;
2125
+ this.RollupError = error instanceof Error ? error.message : 'Could not roll up the journals.';
2126
+ }
2127
+ finally {
2128
+ this.RollupLoading = false;
2129
+ this.cdr?.detectChanges?.();
2130
+ }
2131
+ }
2132
+ // ── Reference Data Loaders ──────────────────────────────────────────────
2133
+ async loadPaymentTypes() {
2134
+ try {
2135
+ this.PaymentTypes = await GetPaymentTypes(this.ProviderToUse?.CurrentUser);
2136
+ }
2137
+ catch {
2138
+ this.PaymentTypes = [];
2139
+ }
2140
+ }
2141
+ async loadSellingCompanies() {
2142
+ try {
2143
+ this.SellingCompanies = await GetSellingCompanies(this.ProviderToUse?.CurrentUser);
2144
+ }
2145
+ catch {
2146
+ this.SellingCompanies = [];
2147
+ }
2148
+ }
2149
+ static ɵfac = /*@__PURE__*/ (() => { let ɵBizAppsPaymentHeaderFormComponent_BaseFactory; return function BizAppsPaymentHeaderFormComponent_Factory(__ngFactoryType__) { return (ɵBizAppsPaymentHeaderFormComponent_BaseFactory || (ɵBizAppsPaymentHeaderFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BizAppsPaymentHeaderFormComponent)))(__ngFactoryType__ || BizAppsPaymentHeaderFormComponent); }; })();
2150
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsPaymentHeaderFormComponent, selectors: [["bizapps-payment-header-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "Record", "FormComponent"], [3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], [1, "mjo-ph-hero"], [1, "mjo-ph-hero__top"], [1, "mjo-ph-who"], [1, "mjo-ph-avatar"], [1, "mjo-ph-title-row"], [1, "mjo-ph-title"], [1, "mjo-status-chip", "mjo-status-chip--purple"], [1, "mjo-ph-sub"], [1, "mjo-ph-hero__aside"], [1, "mjo-ph-money"], [1, "mjo-ph-kicker"], [1, "mjo-ph-amt"], [1, "mjo-ph-actions"], [1, "mjo-ph-tabs"], [3, "TabChange", "Tabs", "ActiveKey"], [1, "mjo-alert", "mjo-alert--error"], [1, "mjo-ph-workbench"], [1, "mjo-ph-tab-body"], [1, "fa-solid", "fa-rotate-left"], ["type", "button", 1, "mjo-btn", "mjo-btn--secondary", 3, "click", "disabled"], [1, "fa-solid", "fa-floppy-disk"], ["type", "button", 1, "mjo-btn", "mjo-btn--primary", 3, "click", "disabled"], [1, "fa-solid", "fa-check-double"], [1, "fa-solid", "fa-circle-exclamation"], [1, "mjo-ph-money-pane"], [1, "mjo-card"], [1, "mjo-card__header"], [1, "mjo-card__title"], [1, "fa-solid", "fa-user-tag"], [1, "mjo-card__body"], [1, "mjo-ph-fields-stack"], ["DisplayNameOverride", "Organization", "FieldName", "BillToOrganizationID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["DisplayNameOverride", "Person", "FieldName", "BillToPersonID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-payer-chip"], [1, "fa-solid", "fa-money-check-dollar"], [1, "mjo-field"], [1, "mjo-label"], [1, "mjo-input-money-wrap"], [1, "mjo-currency-prefix"], ["type", "number", "placeholder", "0.00", "step", "0.01", 1, "mj-input", "is-num", "mjo-input--money", 3, "ngModelChange", "ngModel", "disabled"], ["DisplayNameOverride", "Payment Date", "FieldName", "PaymentDate", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mj-input", 3, "ngModel"], ["FieldName", "PaymentTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [1, "mjo-instrument-box"], ["DisplayNameOverride", "Receiving Co.", "FieldName", "ReceivingCompanyID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["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, "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, "fa-solid", "fa-equals"], [1, "mjo-alloc-hero__message"], [1, "mjo-alloc-toolbar"], [1, "mjo-alloc-toolbar__left"], [1, "mjo-alloc-toolbar__title"], [1, "fa-solid", "fa-receipt"], [1, "mjo-badge"], [1, "mjo-alloc-toolbar__right"], [1, "mjo-card", "mjo-card--table"], [1, "mjo-empty-state"], [1, "mjo-table-responsive"], [1, "fa-solid", "fa-circle-check", "text-success"], [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-credit-card"], [1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], ["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-building-columns"], ["type", "text", "placeholder", "e.g. Wells Fargo", 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"], ["type", "text", "placeholder", "Confirmation or transfer id", 1, "mj-input", 3, "ngModelChange", "ngModel", "disabled"], [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"], [1, "fa-solid", "fa-spinner", "fa-spin", "fa-2x", "text-muted"], [1, "fa-solid", "fa-receipt", "fa-3x", "text-muted"], [1, "mjo-table"], [1, "w-8"], [1, "text-right"], [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", 1, "mjo-link", 3, "click"], [1, "mjo-subtext"], [1, "mjo-badge", "mjo-badge--error"], [1, "mjo-company-pill"], [1, "text-right", "font-mono"], [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"], [1, "mjo-gl-cards-grid"], [1, "fa-solid", "fa-book-open", "fa-3x", "text-muted"], [1, "mjo-card", "mjo-card--gl"], [1, "mjo-card__body", "p-0"], [1, "mjo-table", "mjo-table--compact"], ["colspan", "2"], [1, "font-mono"], [3, "Params", "AllowLoad", "ShowToolbar"], [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) {
2151
+ i0.ɵɵconditionalCreate(0, BizAppsPaymentHeaderFormComponent_Conditional_0_Template, 47, 34, "mj-record-form-container", 0);
2152
+ } if (rf & 2) {
2153
+ i0.ɵɵconditional(ctx.record ? 0 : -1);
2154
+ } }, 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], 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-xs, 0 1px 2px rgba(0, 0, 0, 0.04));\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.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-header, rgba(0, 0, 0, 0.02));\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.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-header, rgba(0, 0, 0, 0.02));\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-empty-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-empty-state[_ngcontent-%COMP%] h3[_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}\n\n.mjo-empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-text-muted, #64748b);\n max-width: 380px;\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}"] });
2155
+ };
2156
+ BizAppsPaymentHeaderFormComponent = __decorate([
2157
+ RegisterClass(BaseFormComponent, 'MJ_BizApps_Orders: Payment Headers', 2)
2158
+ ], BizAppsPaymentHeaderFormComponent);
2159
+ export { BizAppsPaymentHeaderFormComponent };
2160
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsPaymentHeaderFormComponent, [{
2161
+ type: Component,
2162
+ 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 {{ GetSectionRowCount('mJBizAppsOrdersPaymentLines') || 0 }} Settled\n } @else {\n ${{ TotalAllocated.toFixed(2) }}\n }\n </span>\n </div>\n </div>\n\n @if (!IsCaptured) {\n <div class=\"mjo-ph-actions\">\n <button type=\"button\" class=\"mjo-btn mjo-btn--secondary\" (click)=\"SaveAsDraft()\" [disabled]=\"Saving || Capturing\">\n <i class=\"fa-solid fa-floppy-disk\"></i> {{ Saving ? 'Saving\u2026' : 'Save draft' }}\n </button>\n <button type=\"button\" class=\"mjo-btn mjo-btn--primary\" (click)=\"CapturePayment()\" [disabled]=\"Capturing || Saving || !IsAllocationBalanced || !record.Amount || !hasPayer\">\n <i class=\"fa-solid fa-check-double\"></i> {{ Capturing ? 'Capturing\u2026' : 'Capture & Book' }}\n </button>\n </div>\n }\n </div>\n </div>\n </div>\n\n <!-- TAB NAVIGATION STRIP -->\n <div class=\"mjo-ph-tabs\">\n <mj-tab-nav [Tabs]=\"ContextTabs\" [ActiveKey]=\"ActiveTab ?? ''\" (TabChange)=\"SelectTab($event)\"></mj-tab-nav>\n </div>\n\n @if (CaptureError) {\n <div class=\"mjo-alert mjo-alert--error\">\n <i class=\"fa-solid fa-circle-exclamation\"></i>\n <div>\n <strong>Failed to capture payment:</strong> {{ CaptureError }}\n </div>\n </div>\n }\n\n <!-- ================================================================\n TAB 1: PAYMENT & ALLOCATION WORKBENCH\n ================================================================ -->\n @if (ActiveTab === 'payment') {\n <div class=\"mjo-ph-workbench\">\n\n <!-- LEFT COLUMN: THE MONEY & PAYER (380px) -->\n <aside class=\"mjo-ph-money-pane\">\n\n <!-- 1. Payer Card -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <div class=\"mjo-card__title\">\n <i class=\"fa-solid fa-user-tag\"></i> Who is paying?\n </div>\n </div>\n <div class=\"mjo-card__body\">\n <div class=\"mjo-ph-fields-stack\">\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Organization\"\n FieldName=\"BillToOrganizationID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event); OnPayerSelectionChanged()\">\n </mj-form-field>\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Person\"\n FieldName=\"BillToPersonID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event); OnPayerSelectionChanged()\">\n </mj-form-field>\n </div>\n @if (hasPayer) {\n <div class=\"mjo-payer-chip\">\n <i class=\"fa-solid fa-circle-check text-success\"></i>\n <span>{{ PayerDisplayName }}</span>\n @if (OpenOrders.length > 0) {\n <span class=\"mjo-badge\">{{ OpenOrders.length }} unpaid orders</span>\n }\n </div>\n }\n </div>\n </div>\n\n <!-- 2. Payment Details Card -->\n <div class=\"mjo-card\">\n <div class=\"mjo-card__header\">\n <div class=\"mjo-card__title\">\n <i class=\"fa-solid fa-money-check-dollar\"></i> Payment details\n </div>\n </div>\n <div class=\"mjo-card__body\">\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Amount received ($)</label>\n <div class=\"mjo-input-money-wrap\">\n <span class=\"mjo-currency-prefix\">$</span>\n <input\n type=\"number\"\n class=\"mj-input is-num mjo-input--money\"\n [ngModel]=\"record.Amount\"\n (ngModelChange)=\"OnAmountChanged($event)\"\n [disabled]=\"!ComposeMode\"\n placeholder=\"0.00\"\n step=\"0.01\"\n />\n </div>\n </div>\n\n <div class=\"mjo-ph-fields-stack\">\n <mj-form-field\n [Record]=\"record\"\n [ShowLabel]=\"true\"\n DisplayNameOverride=\"Payment Date\"\n FieldName=\"PaymentDate\"\n Type=\"datepicker\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\n\n <div class=\"mjo-field\">\n <label class=\"mjo-label\">Payment Type</label>\n @if (ComposeMode && PaymentTypes.length > 0) {\n <select class=\"mj-input\" [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 } @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 (PaymentTypeCode === 'check' || (SelectedPaymentType?.RequiresReference && !RequiresInstrument)) {\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 (PaymentTypeCode === 'card' || RequiresInstrument) {\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 (PaymentTypeCode === '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 (RequiresReference) {\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 Co.\"\n FieldName=\"ReceivingCompanyID\"\n Type=\"textbox\"\n LinkType=\"Record\"\n [EditMode]=\"ComposeMode\"\n [FormContext]=\"formContext\"\n (Navigate)=\"OnFormNavigate($event)\">\n </mj-form-field>\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 <!-- 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-empty-state\">\n <i class=\"fa-solid fa-spinner fa-spin fa-2x text-muted\"></i>\n <p>Loading open orders\u2026</p>\n </div>\n } @else if (OpenOrders.length === 0) {\n <div class=\"mjo-empty-state\">\n <i class=\"fa-solid fa-receipt fa-3x text-muted\"></i>\n <h3>No unpaid orders found</h3>\n <p>There are zero open unpaid orders. Any recorded payment will be retained as unallocated credit.</p>\n </div>\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>{{ order.OrderDate ? FormatOrderDueDate(order) : '\u2014' }}</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 ${{ CalculateLeavesBalance(order).toFixed(2) }}\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 </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-empty-state\">\n <i class=\"fa-solid fa-spinner fa-spin fa-2x text-muted\"></i>\n <p>Rolling up general ledger accounts\u2026</p>\n </div>\n } @else if (RollupError) {\n <div class=\"mjo-alert mjo-alert--error\">{{ RollupError }}</div>\n } @else if (RollupCards.length === 0) {\n <div class=\"mjo-empty-state\">\n <i class=\"fa-solid fa-book-open fa-3x text-muted\"></i>\n <h3>No journal entries booked yet</h3>\n <p>Journal entries are booked automatically upon capturing and settling the payment.</p>\n </div>\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 <mj-explorer-entity-data-grid\n [Params]=\"PaymentJournalEntryParams\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"false\"\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-xs, 0 1px 2px rgba(0, 0, 0, 0.04));\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.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-header, rgba(0, 0, 0, 0.02));\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.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-header, rgba(0, 0, 0, 0.02));\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-empty-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-empty-state h3 {\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}\n\n.mjo-empty-state p {\n margin: 0;\n font-size: var(--mj-text-xs, 12px);\n color: var(--mj-text-muted, #64748b);\n max-width: 380px;\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"] }]
2163
+ }], null, null); })();
2164
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsPaymentHeaderFormComponent, { className: "BizAppsPaymentHeaderFormComponent", filePath: "lib/custom/PaymentHeader/payment-header-form.component.ts", lineNumber: 56 }); })();
2165
+ /** Tree-shaking prevention anchor function */
2166
+ export function LoadPaymentHeaderFormComponent() {
2167
+ // Anchors BizAppsPaymentHeaderFormComponent in bundlers
2168
+ }
2169
+ //# sourceMappingURL=payment-header-form.component.js.map