@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,96 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { type RecordSelectedEvent, type RecordOpenedEvent } from '@memberjunction/ng-entity-viewer';
3
+ import { type EntityInfo } from '@memberjunction/core';
4
+ import { type MJUserViewEntityExtended } from '@memberjunction/core-entities';
5
+ import { type mjBizAppsOrdersOrderHeaderEntity } from '@mj-biz-apps/orders-entities';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * `mjo-account-credit-page` — spend a credit a customer is holding.
9
+ *
10
+ * A CREDIT IS AN ORDER WITH A NEGATIVE BALANCE. There is no credit table, no
11
+ * stored credit balance, no credit-memo record — because a second record holding
12
+ * the same number is a second thing that can disagree with it. That single
13
+ * decision is why this screen looks like a transfer between two orders rather
14
+ * than like drawing down an account.
15
+ *
16
+ * SPENDING ONE WRITES A ZERO-AMOUNT PAYMENT with two offsetting lines: plus on
17
+ * the credit order, minus on the target. No new cash entered the business, so
18
+ * zero is the truth rather than a degenerate case — and the
19
+ * payment-equals-its-lines rule is satisfied exactly.
20
+ *
21
+ * When the two orders belong to different companies the intercompany legs are
22
+ * REQUIRED rather than convenient: a single Dr A/R / Cr A/R spanning two legal
23
+ * entities could not be booked at all, since a resolved account must belong to
24
+ * its own company.
25
+ *
26
+ * ## Example
27
+ *
28
+ * ```html
29
+ * <mjo-account-credit-page (Applied)="refresh()" />
30
+ * ```
31
+ */
32
+ export declare class MJOAccountCreditPageComponent implements OnInit {
33
+ private readonly cdr;
34
+ /** A credit was applied. */
35
+ Applied: EventEmitter<void>;
36
+ OrderEntityInfo: EntityInfo | null;
37
+ Credits: mjBizAppsOrdersOrderHeaderEntity[];
38
+ Targets: mjBizAppsOrdersOrderHeaderEntity[];
39
+ get CreditOrdersView(): MJUserViewEntityExtended | null;
40
+ /**
41
+ * The target list with its label precomputed.
42
+ *
43
+ * The `<option>` built its text inline (`{{ OrderNumber }} — {{ money(Balance) }}`), which a
44
+ * data-driven dropdown cannot do. Projecting keeps the balance IN the choice — picking which
45
+ * order to credit without seeing what is owed on it is the whole decision.
46
+ */
47
+ get TargetOptions(): Array<{
48
+ ID: string;
49
+ Label: string;
50
+ }>;
51
+ SourceID: string | null;
52
+ TargetID: string | null;
53
+ Amount: number;
54
+ Busy: boolean;
55
+ Error: string | null;
56
+ ngOnInit(): Promise<void>;
57
+ OnRecordSelected(event: RecordSelectedEvent): void;
58
+ OnRecordOpened(event: RecordOpenedEvent): void;
59
+ get Source(): mjBizAppsOrdersOrderHeaderEntity | undefined;
60
+ get Target(): mjBizAppsOrdersOrderHeaderEntity | undefined;
61
+ get Available(): number;
62
+ get TargetAfter(): number;
63
+ get IsCrossCompany(): boolean;
64
+ get CanApply(): boolean;
65
+ get TotalDisplay(): string;
66
+ SelectSource(row: mjBizAppsOrdersOrderHeaderEntity): Promise<void>;
67
+ /**
68
+ * Select a credit WITHOUT rendering.
69
+ *
70
+ * The render is split out because the initial load selects the first credit
71
+ * itself. Rendering inside that call put a DOM write between two assignments
72
+ * of the same load, so the header total was written as $0.00 and then changed
73
+ * to $1,784.32 before the load finished — NG0100, which aborts the update and
74
+ * freezes the view. One load, one render.
75
+ */
76
+ private applySource;
77
+ SetAmount(raw: string): void;
78
+ Apply(): Promise<void>;
79
+ protected money(value: number): string;
80
+ /**
81
+ * Load everything, THEN assign, then render once.
82
+ *
83
+ * The order matters. Assigning `Credits` and only afterwards awaiting the
84
+ * targets leaves a window where a tick can run: the header total reads
85
+ * $1,784.32 from the new data while the DOM still says $0.00 from before the
86
+ * load, and dev mode aborts the update. Splitting the render out of
87
+ * `applySource` was not enough on its own, because the ASSIGNMENT was still
88
+ * straddling an await.
89
+ *
90
+ * Nothing is written to the component until every await has settled.
91
+ */
92
+ private load;
93
+ static ɵfac: i0.ɵɵFactoryDeclaration<MJOAccountCreditPageComponent, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<MJOAccountCreditPageComponent, "mjo-account-credit-page", never, {}, { "Applied": "Applied"; }, never, never, true, never>;
95
+ }
96
+ //# sourceMappingURL=account-credit.page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-credit.page.d.ts","sourceRoot":"","sources":["../../../../src/lib/pages/payments/account-credit.page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,YAAY,EAAE,MAAM,EAAkB,MAAM,eAAe,CAAC;AAGnG,OAAO,EAAsB,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACxH,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,KAAK,wBAA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K/E;;;;;;;;OAQG;YACW,WAAW;IAYlB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAStB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBnC,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAItC;;;;;;;;;;;OAWG;YACW,IAAI;yCApKT,6BAA6B;2CAA7B,6BAA6B;CAwLzC"}
@@ -0,0 +1,463 @@
1
+ import { ChangeDetectorRef, Component, EventEmitter, Output, inject } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { FormsModule } from '@angular/forms';
4
+ import { EntityViewerModule } from '@memberjunction/ng-entity-viewer';
5
+ import { Metadata } from '@memberjunction/core';
6
+ import { OrdersApplyAccountCreditOperation } from '@mj-biz-apps/orders-entities';
7
+ import { MJOStatedValueComponent } from '../../panels/chips.component.js';
8
+ import { MJOMoneyPipe, FormatMoney } from '../../panels/money-format.js';
9
+ import { MJO_ENTITIES } from '../../data/entity-names.js';
10
+ import { MJAlertComponent, MJButtonDirective, MJDropdownComponent } from '@memberjunction/ng-ui-components';
11
+ import { GetOrders } from '../../data/orders-queries.js';
12
+ import * as i0 from "@angular/core";
13
+ import * as i1 from "@angular/forms";
14
+ import * as i2 from "@memberjunction/ng-entity-viewer";
15
+ function MJOAccountCreditPageComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
16
+ const _r1 = i0.ɵɵgetCurrentView();
17
+ i0.ɵɵelementStart(0, "mj-entity-viewer", 8);
18
+ i0.ɵɵlistener("RecordSelected", function MJOAccountCreditPageComponent_Conditional_15_Template_mj_entity_viewer_RecordSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordSelected($event)); })("RecordOpened", function MJOAccountCreditPageComponent_Conditional_15_Template_mj_entity_viewer_RecordOpened_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnRecordOpened($event)); });
19
+ i0.ɵɵelementEnd();
20
+ } if (rf & 2) {
21
+ const ctx_r1 = i0.ɵɵnextContext();
22
+ i0.ɵɵproperty("Entity", ctx_r1.OrderEntityInfo)("ViewEntity", ctx_r1.CreditOrdersView);
23
+ } }
24
+ function MJOAccountCreditPageComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
25
+ i0.ɵɵelementStart(0, "div", 7);
26
+ i0.ɵɵtext(1, "Loading credits...");
27
+ i0.ɵɵelementEnd();
28
+ } }
29
+ function MJOAccountCreditPageComponent_Conditional_17_Conditional_24_Conditional_6_Template(rf, ctx) { if (rf & 1) {
30
+ i0.ɵɵelementStart(0, "mj-alert", 30)(1, "strong");
31
+ i0.ɵɵtext(2, "This crosses companies.");
32
+ i0.ɵɵelementEnd();
33
+ i0.ɵɵtext(3, " The intercompany legs are required, not optional \u2014 a single Dr A/R / Cr A/R spanning two legal entities could not be booked at all. ");
34
+ i0.ɵɵelementEnd();
35
+ } }
36
+ function MJOAccountCreditPageComponent_Conditional_17_Conditional_24_Template(rf, ctx) { if (rf & 1) {
37
+ i0.ɵɵelementStart(0, "mjo-stated-value", 28);
38
+ i0.ɵɵtext(1);
39
+ i0.ɵɵpipe(2, "mjoMoney");
40
+ i0.ɵɵelementEnd();
41
+ i0.ɵɵelementStart(3, "mjo-stated-value", 29);
42
+ i0.ɵɵtext(4);
43
+ i0.ɵɵpipe(5, "mjoMoney");
44
+ i0.ɵɵelementEnd();
45
+ i0.ɵɵconditionalCreate(6, MJOAccountCreditPageComponent_Conditional_17_Conditional_24_Conditional_6_Template, 4, 0, "mj-alert", 30);
46
+ } if (rf & 2) {
47
+ const ctx_r1 = i0.ɵɵnextContext(2);
48
+ i0.ɵɵadvance();
49
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 3, ctx_r1.Target.Balance ?? 0));
50
+ i0.ɵɵadvance(3);
51
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 5, ctx_r1.TargetAfter));
52
+ i0.ɵɵadvance(2);
53
+ i0.ɵɵconditional(ctx_r1.IsCrossCompany ? 6 : -1);
54
+ } }
55
+ function MJOAccountCreditPageComponent_Conditional_17_Conditional_35_Template(rf, ctx) { if (rf & 1) {
56
+ i0.ɵɵelementStart(0, "span", 27);
57
+ i0.ɵɵtext(1);
58
+ i0.ɵɵelementEnd();
59
+ } if (rf & 2) {
60
+ const ctx_r1 = i0.ɵɵnextContext(2);
61
+ i0.ɵɵadvance();
62
+ i0.ɵɵtextInterpolate(ctx_r1.Error);
63
+ } }
64
+ function MJOAccountCreditPageComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
65
+ const _r3 = i0.ɵɵgetCurrentView();
66
+ i0.ɵɵelementStart(0, "div", 9)(1, "div", 10)(2, "div", 11)(3, "span", 12);
67
+ i0.ɵɵtext(4, "From \u2014 the credit");
68
+ i0.ɵɵelementEnd();
69
+ i0.ɵɵelementStart(5, "div", 13);
70
+ i0.ɵɵtext(6);
71
+ i0.ɵɵelementEnd();
72
+ i0.ɵɵelementStart(7, "mjo-stated-value", 14)(8, "b", 15);
73
+ i0.ɵɵtext(9);
74
+ i0.ɵɵpipe(10, "mjoMoney");
75
+ i0.ɵɵelementEnd()();
76
+ i0.ɵɵelementStart(11, "label", 16)(12, "label");
77
+ i0.ɵɵtext(13, "Amount to spend");
78
+ i0.ɵɵelementEnd();
79
+ i0.ɵɵelementStart(14, "input", 17);
80
+ i0.ɵɵlistener("change", function MJOAccountCreditPageComponent_Conditional_17_Template_input_change_14_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetAmount($event.target.value)); });
81
+ i0.ɵɵelementEnd()()()();
82
+ i0.ɵɵelement(15, "i", 18);
83
+ i0.ɵɵelementStart(16, "div", 19)(17, "div", 11)(18, "span", 20);
84
+ i0.ɵɵtext(19, "To \u2014 an open order");
85
+ i0.ɵɵelementEnd();
86
+ i0.ɵɵelementStart(20, "label", 16)(21, "label");
87
+ i0.ɵɵtext(22, "Target order");
88
+ i0.ɵɵelementEnd();
89
+ i0.ɵɵelementStart(23, "mj-dropdown", 21);
90
+ i0.ɵɵtwoWayListener("ngModelChange", function MJOAccountCreditPageComponent_Conditional_17_Template_mj_dropdown_ngModelChange_23_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.TargetID, $event) || (ctx_r1.TargetID = $event); return i0.ɵɵresetView($event); });
91
+ i0.ɵɵelementEnd()();
92
+ i0.ɵɵconditionalCreate(24, MJOAccountCreditPageComponent_Conditional_17_Conditional_24_Template, 7, 7);
93
+ i0.ɵɵelementEnd()()();
94
+ i0.ɵɵelementStart(25, "div", 22)(26, "mj-alert", 23)(27, "strong");
95
+ i0.ɵɵtext(28, "The payment this writes, and what books.");
96
+ i0.ɵɵelementEnd();
97
+ i0.ɵɵtext(29, " A payment whose Amount is ZERO, carrying two offsetting allocations: the credit order is drawn down, the target order is settled. Zero is not a degenerate case \u2014 no new cash entered the business. The money arrived earlier, on the payment that over-paid the first order; this only re-attributes it, so cash nets to nothing and A/R moves between orders. ");
98
+ i0.ɵɵelementEnd();
99
+ i0.ɵɵelementStart(30, "button", 24);
100
+ i0.ɵɵlistener("click", function MJOAccountCreditPageComponent_Conditional_17_Template_button_click_30_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.Apply()); });
101
+ i0.ɵɵelement(31, "i", 25);
102
+ i0.ɵɵtext(32);
103
+ i0.ɵɵelementEnd();
104
+ i0.ɵɵelementStart(33, "span", 26);
105
+ i0.ɵɵtext(34, "No cash moves \u2014 this re-attributes money already received.");
106
+ i0.ɵɵelementEnd();
107
+ i0.ɵɵconditionalCreate(35, MJOAccountCreditPageComponent_Conditional_17_Conditional_35_Template, 2, 1, "span", 27);
108
+ i0.ɵɵelementEnd();
109
+ } if (rf & 2) {
110
+ const ctx_r1 = i0.ɵɵnextContext();
111
+ i0.ɵɵadvance(6);
112
+ i0.ɵɵtextInterpolate(ctx_r1.Source.OrderNumber);
113
+ i0.ɵɵadvance(3);
114
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 10, ctx_r1.Available));
115
+ i0.ɵɵadvance(5);
116
+ i0.ɵɵproperty("value", ctx_r1.Amount);
117
+ i0.ɵɵadvance(9);
118
+ i0.ɵɵproperty("Data", ctx_r1.TargetOptions)("ValuePrimitive", true);
119
+ i0.ɵɵtwoWayProperty("ngModel", ctx_r1.TargetID);
120
+ i0.ɵɵadvance();
121
+ i0.ɵɵconditional(ctx_r1.Target ? 24 : -1);
122
+ i0.ɵɵadvance(6);
123
+ i0.ɵɵproperty("disabled", !ctx_r1.CanApply || ctx_r1.Busy);
124
+ i0.ɵɵadvance(2);
125
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.Busy ? "Applying\u2026" : "Apply credit", " ");
126
+ i0.ɵɵadvance(3);
127
+ i0.ɵɵconditional(ctx_r1.Error ? 35 : -1);
128
+ } }
129
+ /**
130
+ * `mjo-account-credit-page` — spend a credit a customer is holding.
131
+ *
132
+ * A CREDIT IS AN ORDER WITH A NEGATIVE BALANCE. There is no credit table, no
133
+ * stored credit balance, no credit-memo record — because a second record holding
134
+ * the same number is a second thing that can disagree with it. That single
135
+ * decision is why this screen looks like a transfer between two orders rather
136
+ * than like drawing down an account.
137
+ *
138
+ * SPENDING ONE WRITES A ZERO-AMOUNT PAYMENT with two offsetting lines: plus on
139
+ * the credit order, minus on the target. No new cash entered the business, so
140
+ * zero is the truth rather than a degenerate case — and the
141
+ * payment-equals-its-lines rule is satisfied exactly.
142
+ *
143
+ * When the two orders belong to different companies the intercompany legs are
144
+ * REQUIRED rather than convenient: a single Dr A/R / Cr A/R spanning two legal
145
+ * entities could not be booked at all, since a resolved account must belong to
146
+ * its own company.
147
+ *
148
+ * ## Example
149
+ *
150
+ * ```html
151
+ * <mjo-account-credit-page (Applied)="refresh()" />
152
+ * ```
153
+ */
154
+ export class MJOAccountCreditPageComponent {
155
+ cdr = inject(ChangeDetectorRef);
156
+ /** A credit was applied. */
157
+ Applied = new EventEmitter();
158
+ OrderEntityInfo = null;
159
+ Credits = [];
160
+ Targets = [];
161
+ get CreditOrdersView() {
162
+ if (!this.OrderEntityInfo)
163
+ return null;
164
+ return {
165
+ EntityID: this.OrderEntityInfo.ID,
166
+ Entity: this.OrderEntityInfo.Name,
167
+ WhereClause: `Balance < 0`,
168
+ ID: 'preset-credit-orders',
169
+ Name: 'Credits Held'
170
+ };
171
+ }
172
+ /**
173
+ * The target list with its label precomputed.
174
+ *
175
+ * The `<option>` built its text inline (`{{ OrderNumber }} — {{ money(Balance) }}`), which a
176
+ * data-driven dropdown cannot do. Projecting keeps the balance IN the choice — picking which
177
+ * order to credit without seeing what is owed on it is the whole decision.
178
+ */
179
+ get TargetOptions() {
180
+ return this.Targets.map((o) => ({ ID: o.ID, Label: `${o.OrderNumber} — ${this.money((o.Balance ?? 0))}` }));
181
+ }
182
+ SourceID = null;
183
+ TargetID = null;
184
+ Amount = 0;
185
+ Busy = false;
186
+ Error = null;
187
+ async ngOnInit() {
188
+ const md = new Metadata();
189
+ this.OrderEntityInfo = md.Entities.find((e) => e.Name === MJO_ENTITIES.OrderHeader) || null;
190
+ await this.load();
191
+ this.cdr.detectChanges();
192
+ }
193
+ OnRecordSelected(event) {
194
+ const id = (event.compositeKey?.GetValueByFieldName('ID') ?? event.record?.['ID']);
195
+ if (id) {
196
+ const row = this.Credits.find((c) => c.ID === id) || { ID: id };
197
+ void this.SelectSource(row);
198
+ }
199
+ }
200
+ OnRecordOpened(event) {
201
+ const id = (event.compositeKey?.GetValueByFieldName('ID') ?? event.record?.['ID']);
202
+ if (id) {
203
+ const row = this.Credits.find((c) => c.ID === id) || { ID: id };
204
+ void this.SelectSource(row);
205
+ }
206
+ }
207
+ get Source() {
208
+ return this.Credits.find((c) => c.ID === this.SourceID);
209
+ }
210
+ get Target() {
211
+ return this.Targets.find((t) => t.ID === this.TargetID);
212
+ }
213
+ get Available() {
214
+ return Math.abs(this.Source?.Balance ?? 0);
215
+ }
216
+ get TargetAfter() {
217
+ return Math.round(((this.Target?.Balance ?? 0) - (this.Amount ?? 0)) * 100) / 100;
218
+ }
219
+ get IsCrossCompany() {
220
+ return !!this.Source && !!this.Target && this.Source.CompanyID !== this.Target.CompanyID;
221
+ }
222
+ get CanApply() {
223
+ return !!this.Source && !!this.Target && (this.Amount ?? 0) > 0;
224
+ }
225
+ get TotalDisplay() {
226
+ return FormatMoney(this.Credits.reduce((s, c) => s + Math.abs((c.Balance ?? 0)), 0));
227
+ }
228
+ async SelectSource(row) {
229
+ await this.applySource(row);
230
+ this.cdr.detectChanges();
231
+ }
232
+ /**
233
+ * Select a credit WITHOUT rendering.
234
+ *
235
+ * The render is split out because the initial load selects the first credit
236
+ * itself. Rendering inside that call put a DOM write between two assignments
237
+ * of the same load, so the header total was written as $0.00 and then changed
238
+ * to $1,784.32 before the load finished — NG0100, which aborts the update and
239
+ * freezes the view. One load, one render.
240
+ */
241
+ async applySource(row) {
242
+ this.SourceID = row.ID;
243
+ // Only this customer's open orders can receive it — a credit belongs to
244
+ // whoever earned it.
245
+ const customerID = row['BillToOrganizationID'] ?? undefined;
246
+ this.Targets = await GetOrders({ Preset: 'unpaid', BillToOrganizationID: customerID });
247
+ this.TargetID = this.Targets[0]?.ID ?? null;
248
+ // Default to the most that both sides allow — the common intent.
249
+ this.Amount = Math.min(this.Available, this.Targets[0]?.Balance ?? 0);
250
+ this.cdr.detectChanges();
251
+ }
252
+ SetAmount(raw) {
253
+ const parsed = Number.parseFloat(String(raw).replace(/[^0-9.]/g, ''));
254
+ const next = Number.isFinite(parsed) ? Math.round(parsed * 100) / 100 : 0;
255
+ // Clamped by BOTH sides: you cannot spend credit you do not have, and you
256
+ // cannot over-pay the target through this path — that is what taking a
257
+ // payment is for.
258
+ this.Amount = Math.min(next, this.Available, this.Target?.Balance ?? next);
259
+ }
260
+ async Apply() {
261
+ if (!this.CanApply)
262
+ return;
263
+ this.Busy = true;
264
+ this.Error = null;
265
+ try {
266
+ const op = new OrdersApplyAccountCreditOperation();
267
+ const result = await op.Execute({
268
+ SourceOrderHeaderID: this.SourceID,
269
+ TargetOrderHeaderID: this.TargetID,
270
+ Amount: (this.Amount ?? 0),
271
+ });
272
+ if (result.Success && result.Output?.Success) {
273
+ this.Applied.emit();
274
+ await this.load();
275
+ }
276
+ else {
277
+ this.Error = result.Output?.Message ?? result.ErrorMessage ?? 'The credit could not be applied.';
278
+ }
279
+ }
280
+ catch (e) {
281
+ this.Error = e instanceof Error ? e.message : String(e);
282
+ }
283
+ finally {
284
+ this.Busy = false;
285
+ }
286
+ this.cdr.detectChanges();
287
+ }
288
+ money(value) {
289
+ return FormatMoney(value);
290
+ }
291
+ /**
292
+ * Load everything, THEN assign, then render once.
293
+ *
294
+ * The order matters. Assigning `Credits` and only afterwards awaiting the
295
+ * targets leaves a window where a tick can run: the header total reads
296
+ * $1,784.32 from the new data while the DOM still says $0.00 from before the
297
+ * load, and dev mode aborts the update. Splitting the render out of
298
+ * `applySource` was not enough on its own, because the ASSIGNMENT was still
299
+ * straddling an await.
300
+ *
301
+ * Nothing is written to the component until every await has settled.
302
+ */
303
+ async load() {
304
+ const credits = await GetOrders({ Preset: 'credits' });
305
+ const first = !this.SourceID ? credits[0] : undefined;
306
+ const targets = first
307
+ ? await GetOrders({
308
+ Preset: 'unpaid',
309
+ BillToOrganizationID: first['BillToOrganizationID'] ?? undefined,
310
+ })
311
+ : [];
312
+ this.Credits = credits;
313
+ if (first) {
314
+ this.SourceID = first.ID;
315
+ this.Targets = targets;
316
+ this.TargetID = targets[0]?.ID ?? null;
317
+ this.Amount = Math.min(this.Available, targets[0]?.Balance ?? 0);
318
+ }
319
+ this.cdr.detectChanges();
320
+ }
321
+ static ɵfac = function MJOAccountCreditPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOAccountCreditPageComponent)(); };
322
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOAccountCreditPageComponent, selectors: [["mjo-account-credit-page"]], outputs: { Applied: "Applied" }, decls: 18, vars: 4, consts: [["Variant", "info", "Icon", "fa-solid fa-piggy-bank", 1, "mjo-cr__note"], [1, "mj-card", "mjo-cr__list"], [1, "mj-card-head"], ["aria-hidden", "true", 1, "fa-solid", "fa-hand-holding-dollar"], [1, "right", "small", "muted"], [1, "mjo-cr__viewer-host"], [3, "Entity", "ViewEntity"], [1, "small", "muted", 2, "padding", "24px"], [3, "RecordSelected", "RecordOpened", "Entity", "ViewEntity"], [1, "mjo-cr__flow"], [1, "mj-card", "mjo-cr__side", "mjo-cr__side--from"], [1, "mj-card-pad"], [1, "mj-chip", "mj-chip--success"], [1, "mjo-cr__order"], ["Label", "Available"], [1, "mj-money--credit"], [1, "mj-field", "mjo-cr__field"], ["aria-label", "Amount to spend", 1, "mj-input", "is-num", 3, "change", "value"], ["aria-hidden", "true", 1, "fa-solid", "fa-arrow-right", "mjo-cr__arrow"], [1, "mj-card", "mjo-cr__side", "mjo-cr__side--to"], [1, "mj-chip", "mj-chip--brand"], ["TextField", "Label", "ValueField", "ID", "name", "target", 3, "ngModelChange", "Data", "ValuePrimitive", "ngModel"], [1, "mjo-cr__actions"], ["Variant", "info", "Icon", "fa-solid fa-scale-balanced", 1, "mjo-cr__note"], ["type", "button", "mjButton", "", "variant", "primary", 3, "click", "disabled"], ["aria-hidden", "true", 1, "fa-solid", "fa-check"], [1, "small", "muted"], [1, "small", "mjo-cr__error"], ["Label", "Balance now"], ["Label", "After credit"], ["Variant", "warning", "Icon", "fa-solid fa-building-columns", 1, "mjo-cr__cross"]], template: function MJOAccountCreditPageComponent_Template(rf, ctx) { if (rf & 1) {
323
+ i0.ɵɵelementStart(0, "mj-alert", 0)(1, "strong");
324
+ i0.ɵɵtext(2, "A credit is an order with a negative balance.");
325
+ i0.ɵɵelementEnd();
326
+ i0.ɵɵtext(3, " There is no credit table and no stored balance \u2014 a second record holding the same number is a second thing that can disagree with it. Spending one writes a ");
327
+ i0.ɵɵelementStart(4, "b");
328
+ i0.ɵɵtext(5, "zero-amount");
329
+ i0.ɵɵelementEnd();
330
+ i0.ɵɵtext(6, " payment with two offsetting lines: no new cash entered the business, this only re-attributes money already received. ");
331
+ i0.ɵɵelementEnd();
332
+ i0.ɵɵelementStart(7, "div", 1)(8, "div", 2);
333
+ i0.ɵɵelement(9, "i", 3);
334
+ i0.ɵɵelementStart(10, "h3");
335
+ i0.ɵɵtext(11, "Credits customers are holding");
336
+ i0.ɵɵelementEnd();
337
+ i0.ɵɵelementStart(12, "span", 4);
338
+ i0.ɵɵtext(13);
339
+ i0.ɵɵelementEnd()();
340
+ i0.ɵɵelementStart(14, "div", 5);
341
+ i0.ɵɵconditionalCreate(15, MJOAccountCreditPageComponent_Conditional_15_Template, 1, 2, "mj-entity-viewer", 6)(16, MJOAccountCreditPageComponent_Conditional_16_Template, 2, 0, "div", 7);
342
+ i0.ɵɵelementEnd()();
343
+ i0.ɵɵconditionalCreate(17, MJOAccountCreditPageComponent_Conditional_17_Template, 36, 12);
344
+ } if (rf & 2) {
345
+ i0.ɵɵadvance(13);
346
+ i0.ɵɵtextInterpolate2("", ctx.TotalDisplay, " across ", ctx.Credits.length);
347
+ i0.ɵɵadvance(2);
348
+ i0.ɵɵconditional(ctx.OrderEntityInfo ? 15 : 16);
349
+ i0.ɵɵadvance(2);
350
+ i0.ɵɵconditional(ctx.Source ? 17 : -1);
351
+ } }, dependencies: [MJButtonDirective, MJDropdownComponent, CommonModule, FormsModule, i1.NgControlStatus, i1.NgModel, EntityViewerModule, i2.EntityViewerComponent, MJOStatedValueComponent, MJAlertComponent, MJOMoneyPipe], styles: ["[_nghost-%COMP%] {\n display: block;\n height: 100%;\n overflow: auto;\n padding: var(--mj-space-6);\n }\n .mjo-cr__note[_ngcontent-%COMP%] { margin-bottom: var(--mj-space-4); }\n .mjo-cr__list[_ngcontent-%COMP%] {\n margin-bottom: var(--mj-space-6);\n display: flex;\n flex-direction: column;\n height: 520px;\n min-height: 450px;\n }\n .mjo-cr__viewer-host[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n height: 100%;\n min-height: 380px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n mj-entity-viewer[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n }\n .mjo-cr__flow[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: var(--mj-space-4);\n align-items: center;\n }\n .mjo-cr__side--from[_ngcontent-%COMP%] { border-color: color-mix(in srgb, var(--mj-status-success) 45%, transparent); }\n .mjo-cr__side--to[_ngcontent-%COMP%] { border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, transparent); }\n .mjo-cr__order[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n font-size: 15px;\n font-weight: var(--mj-font-bold);\n margin: var(--mj-space-2) 0;\n }\n .mjo-cr__field[_ngcontent-%COMP%] { margin-top: var(--mj-space-3); }\n .mjo-cr__arrow[_ngcontent-%COMP%] { color: var(--mj-text-muted); font-size: 20px; }\n .mjo-cr__cross[_ngcontent-%COMP%] { margin-top: var(--mj-space-3); }\n .mjo-cr__actions[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n margin-top: var(--mj-space-4);\n flex-wrap: wrap;\n }\n .mjo-cr__error[_ngcontent-%COMP%] { color: var(--mj-status-error-text); }\n\n @media (max-width: 900px) {\n .mjo-cr__flow[_ngcontent-%COMP%] { grid-template-columns: 1fr; }\n .mjo-cr__arrow[_ngcontent-%COMP%] { transform: rotate(90deg); justify-self: center; }\n }\n @media (max-width: 760px) {\n [_nghost-%COMP%] { padding: var(--mj-space-4); }\n }"] });
352
+ }
353
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOAccountCreditPageComponent, [{
354
+ type: Component,
355
+ args: [{ selector: 'mjo-account-credit-page', standalone: true, imports: [MJButtonDirective, MJDropdownComponent, CommonModule, FormsModule, EntityViewerModule, MJOStatedValueComponent, MJOMoneyPipe, MJAlertComponent], template: `
356
+ <mj-alert Variant="info" Icon="fa-solid fa-piggy-bank" class="mjo-cr__note">
357
+ <strong>A credit is an order with a negative balance.</strong>
358
+ There is no credit table and no stored balance — a second record holding the same number is
359
+ a second thing that can disagree with it. Spending one writes a <b>zero-amount</b> payment
360
+ with two offsetting lines: no new cash entered the business, this only re-attributes money
361
+ already received.
362
+ </mj-alert>
363
+
364
+ <div class="mj-card mjo-cr__list">
365
+ <div class="mj-card-head">
366
+ <i class="fa-solid fa-hand-holding-dollar" aria-hidden="true"></i>
367
+ <h3>Credits customers are holding</h3>
368
+ <span class="right small muted">{{ TotalDisplay }} across {{ Credits.length }}</span>
369
+ </div>
370
+ <div class="mjo-cr__viewer-host">
371
+ @if (OrderEntityInfo) {
372
+ <mj-entity-viewer
373
+ [Entity]="OrderEntityInfo"
374
+ [ViewEntity]="CreditOrdersView"
375
+ (RecordSelected)="OnRecordSelected($event)"
376
+ (RecordOpened)="OnRecordOpened($event)">
377
+ </mj-entity-viewer>
378
+ } @else {
379
+ <div class="small muted" style="padding: 24px;">Loading credits...</div>
380
+ }
381
+ </div>
382
+ </div>
383
+
384
+ @if (Source) {
385
+ <div class="mjo-cr__flow">
386
+ <div class="mj-card mjo-cr__side mjo-cr__side--from">
387
+ <div class="mj-card-pad">
388
+ <span class="mj-chip mj-chip--success">From — the credit</span>
389
+ <div class="mjo-cr__order">{{ Source.OrderNumber }}</div>
390
+ <mjo-stated-value Label="Available">
391
+ <b class="mj-money--credit">{{ Available | mjoMoney }}</b>
392
+ </mjo-stated-value>
393
+ <label class="mj-field mjo-cr__field">
394
+ <label>Amount to spend</label>
395
+ <input
396
+ class="mj-input is-num"
397
+ [value]="Amount"
398
+ (change)="SetAmount($any($event.target).value)"
399
+ aria-label="Amount to spend">
400
+ </label>
401
+ </div>
402
+ </div>
403
+
404
+ <i class="fa-solid fa-arrow-right mjo-cr__arrow" aria-hidden="true"></i>
405
+
406
+ <div class="mj-card mjo-cr__side mjo-cr__side--to">
407
+ <div class="mj-card-pad">
408
+ <span class="mj-chip mj-chip--brand">To — an open order</span>
409
+ <label class="mj-field mjo-cr__field">
410
+ <label>Target order</label>
411
+ <mj-dropdown
412
+ [Data]="TargetOptions"
413
+ TextField="Label"
414
+ ValueField="ID"
415
+ [ValuePrimitive]="true"
416
+ [(ngModel)]="TargetID"
417
+ name="target" />
418
+ </label>
419
+ @if (Target) {
420
+ <mjo-stated-value Label="Balance now">{{ (Target.Balance ?? 0) | mjoMoney }}</mjo-stated-value>
421
+ <mjo-stated-value Label="After credit">{{ TargetAfter | mjoMoney }}</mjo-stated-value>
422
+ @if (IsCrossCompany) {
423
+ <mj-alert Variant="warning" Icon="fa-solid fa-building-columns" class="mjo-cr__cross">
424
+ <strong>This crosses companies.</strong>
425
+ The intercompany legs are required, not optional — a single
426
+ Dr A/R / Cr A/R spanning two legal entities could not be booked at all.
427
+ </mj-alert>
428
+ }
429
+ }
430
+ </div>
431
+ </div>
432
+ </div>
433
+
434
+ <div class="mjo-cr__actions">
435
+ <mj-alert Variant="info" Icon="fa-solid fa-scale-balanced" class="mjo-cr__note">
436
+ <strong>The payment this writes, and what books.</strong>
437
+ A payment whose Amount is ZERO, carrying two offsetting allocations: the
438
+ credit order is drawn down, the target order is settled. Zero is not a
439
+ degenerate case — no new cash entered the business. The money arrived
440
+ earlier, on the payment that over-paid the first order; this only
441
+ re-attributes it, so cash nets to nothing and A/R moves between orders.
442
+ </mj-alert>
443
+
444
+ <button
445
+ type="button"
446
+ mjButton variant="primary"
447
+ [disabled]="!CanApply || Busy"
448
+ (click)="Apply()">
449
+ <i class="fa-solid fa-check" aria-hidden="true"></i>
450
+ {{ Busy ? 'Applying…' : 'Apply credit' }}
451
+ </button>
452
+ <span class="small muted">No cash moves — this re-attributes money already received.</span>
453
+ @if (Error) {
454
+ <span class="small mjo-cr__error">{{ Error }}</span>
455
+ }
456
+ </div>
457
+ }
458
+ `, styles: ["\n :host {\n display: block;\n height: 100%;\n overflow: auto;\n padding: var(--mj-space-6);\n }\n .mjo-cr__note { margin-bottom: var(--mj-space-4); }\n .mjo-cr__list {\n margin-bottom: var(--mj-space-6);\n display: flex;\n flex-direction: column;\n height: 520px;\n min-height: 450px;\n }\n .mjo-cr__viewer-host {\n flex: 1 1 auto;\n height: 100%;\n min-height: 380px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n }\n mj-entity-viewer {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n height: 100%;\n width: 100%;\n }\n .mjo-cr__flow {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n gap: var(--mj-space-4);\n align-items: center;\n }\n .mjo-cr__side--from { border-color: color-mix(in srgb, var(--mj-status-success) 45%, transparent); }\n .mjo-cr__side--to { border-color: color-mix(in srgb, var(--mj-brand-primary) 45%, transparent); }\n .mjo-cr__order {\n font-family: var(--mj-font-family-mono);\n font-size: 15px;\n font-weight: var(--mj-font-bold);\n margin: var(--mj-space-2) 0;\n }\n .mjo-cr__field { margin-top: var(--mj-space-3); }\n .mjo-cr__arrow { color: var(--mj-text-muted); font-size: 20px; }\n .mjo-cr__cross { margin-top: var(--mj-space-3); }\n .mjo-cr__actions {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n margin-top: var(--mj-space-4);\n flex-wrap: wrap;\n }\n .mjo-cr__error { color: var(--mj-status-error-text); }\n\n @media (max-width: 900px) {\n .mjo-cr__flow { grid-template-columns: 1fr; }\n .mjo-cr__arrow { transform: rotate(90deg); justify-self: center; }\n }\n @media (max-width: 760px) {\n :host { padding: var(--mj-space-4); }\n }\n "] }]
459
+ }], null, { Applied: [{
460
+ type: Output
461
+ }] }); })();
462
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOAccountCreditPageComponent, { className: "MJOAccountCreditPageComponent", filePath: "lib/pages/payments/account-credit.page.ts", lineNumber: 215 }); })();
463
+ //# sourceMappingURL=account-credit.page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-credit.page.js","sourceRoot":"","sources":["../../../../src/lib/pages/payments/account-credit.page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,YAAY,EAAU,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAoD,MAAM,kCAAkC,CAAC;AACxH,OAAO,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAE,iCAAiC,EAAyC,MAAM,8BAA8B,CAAC;AACxH,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5G,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;;;;;;IAgDlC,2CAI4C;IAAxC,AADA,oOAAkB,+BAAwB,KAAC,mNAC3B,6BAAsB,KAAC;IAC3C,iBAAmB;;;IAHf,AADA,+CAA0B,uCACK;;;IAKnC,8BAAgD;IAAA,kCAAkB;IAAA,iBAAM;;;IA6CpD,AADR,oCAAsF,aACtE;IAAA,uCAAuB;IAAA,iBAAS;IACxC,0JAER;IAAA,iBAAW;;;IAPf,4CAAsC;IAAA,YAAsC;;IAAA,iBAAmB;IAC/F,4CAAuC;IAAA,YAA4B;;IAA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;YAG9E,eASC;YATD,+CASC;YAIT,eAyEC;YAzED,sCAyEC;4BAvGK,iBAAiB,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,kCAAE,kBAAkB,4BAAE,uBAAuB,EAAgB,gBAAgB,EAA9B,YAAY;;iFA4K7H,6BAA6B;cA/KzC,SAAS;2BACI,yBAAyB,cACvB,IAAI,WACP,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,YAAY,EAAE,gBAAgB,CAAC,YAC/I;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuGT;;kBAwEA,MAAM;;kFAJE,6BAA6B"}
@@ -0,0 +1,61 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { type MJOBarRow } from '../../panels/stat-tile.component.js';
3
+ import { type MJODayBar } from '../../panels/day-bars.component.js';
4
+ import { type RecordOpenedEvent } from '@memberjunction/ng-entity-viewer';
5
+ import { type EntityInfo } from '@memberjunction/core';
6
+ import { type mjBizAppsOrdersPaymentHeaderEntity } from '@mj-biz-apps/orders-entities';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * `mjo-payments-dashboard-page` — what came in, and does it tie?
10
+ *
11
+ * The accounting team's first two questions, in that order. The reconciliation
12
+ * tile is not decoration: unallocated cash is structurally always zero here,
13
+ * because a payment cannot capture unless its allocations sum to its amount. That
14
+ * guarantee is worth stating on the screen rather than leaving people to trust it.
15
+ *
16
+ * ## Example
17
+ *
18
+ * ```html
19
+ * <mjo-payments-dashboard-page />
20
+ * ```
21
+ */
22
+ export declare class MJOPaymentsDashboardPageComponent implements OnInit {
23
+ private readonly cdr;
24
+ PaymentOpened: EventEmitter<mjBizAppsOrdersPaymentHeaderEntity>;
25
+ PaymentEntityInfo: EntityInfo | null;
26
+ private payments;
27
+ ngOnInit(): Promise<void>;
28
+ OnRecordOpened(event: RecordOpenedEvent): void;
29
+ private get captured();
30
+ private get pending();
31
+ get CapturedTotal(): string;
32
+ get CapturedDetail(): string;
33
+ get PendingTotal(): string;
34
+ get PendingDetail(): string;
35
+ get FeeTotal(): string;
36
+ /** Cash by tender, largest first — the eye wants the dominant one immediately. */
37
+ /**
38
+ * The last seven days by AMOUNT, not count.
39
+ *
40
+ * One large wire and thirty small cards are the same number of payments and
41
+ * nothing like the same day, so a count would be the wrong shape of answer
42
+ * for a panel about cash.
43
+ */
44
+ get CashPerDay(): MJODayBar[];
45
+ /** Newest first. */
46
+ get LatestPayments(): mjBizAppsOrdersPaymentHeaderEntity[];
47
+ /** Who paid, however they are recorded. */
48
+ payerOf(payment: mjBizAppsOrdersPaymentHeaderEntity): string;
49
+ /**
50
+ * Fees as a share of what was actually captured.
51
+ *
52
+ * Computed rather than quoted. A hardcoded 2.9% describes a card schedule,
53
+ * not this company's mix, and a business taking mostly ACH would read a card
54
+ * rate as its own cost.
55
+ */
56
+ get EffectiveRate(): string;
57
+ get TenderMix(): MJOBarRow[];
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<MJOPaymentsDashboardPageComponent, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<MJOPaymentsDashboardPageComponent, "mjo-payments-dashboard-page", never, {}, { "PaymentOpened": "PaymentOpened"; }, never, never, true, never>;
60
+ }
61
+ //# sourceMappingURL=payments-dashboard.page.d.ts.map