@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.
- package/LICENSE +183 -0
- package/README.md +34 -2
- package/dist/checkout-element/main.js +38080 -0
- package/dist/lib/checkout-widget/checkout-draft-line.d.ts +25 -0
- package/dist/lib/checkout-widget/checkout-draft-line.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-draft-line.js +46 -0
- package/dist/lib/checkout-widget/checkout-draft-line.js.map +1 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.d.ts +80 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.js +360 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.js.map +1 -0
- package/dist/lib/checkout-widget/checkout-widget.component.d.ts +143 -0
- package/dist/lib/checkout-widget/checkout-widget.component.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-widget.component.js +873 -0
- package/dist/lib/checkout-widget/checkout-widget.component.js.map +1 -0
- package/dist/lib/custom/OrderHeader/line-extension-cache.d.ts +22 -0
- package/dist/lib/custom/OrderHeader/line-extension-cache.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/line-extension-cache.js +46 -0
- package/dist/lib/custom/OrderHeader/line-extension-cache.js.map +1 -0
- package/dist/lib/custom/OrderHeader/line-extension-fields.d.ts +58 -0
- package/dist/lib/custom/OrderHeader/line-extension-fields.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/line-extension-fields.js +137 -0
- package/dist/lib/custom/OrderHeader/line-extension-fields.js.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +127 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.js +1429 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-prefs.d.ts +18 -0
- package/dist/lib/custom/OrderHeader/order-header-prefs.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-prefs.js +20 -0
- package/dist/lib/custom/OrderHeader/order-header-prefs.js.map +1 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +72 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +621 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts +135 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts.map +1 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.js +2169 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.js.map +1 -0
- package/dist/lib/custom/PriceList/price-list-form.component.d.ts +46 -0
- package/dist/lib/custom/PriceList/price-list-form.component.d.ts.map +1 -0
- package/dist/lib/custom/PriceList/price-list-form.component.js +363 -0
- package/dist/lib/custom/PriceList/price-list-form.component.js.map +1 -0
- package/dist/lib/custom/Product/product-form.component.d.ts +81 -0
- package/dist/lib/custom/Product/product-form.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/product-form.component.js +665 -0
- package/dist/lib/custom/Product/product-form.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.d.ts +16 -0
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +55 -0
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.d.ts +16 -0
- package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.js +65 -0
- package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +103 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +950 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-promotions-widget.component.d.ts +21 -0
- package/dist/lib/custom/Product/widgets/product-promotions-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-promotions-widget.component.js +67 -0
- package/dist/lib/custom/Product/widgets/product-promotions-widget.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-subscription-widget.component.d.ts +18 -0
- package/dist/lib/custom/Product/widgets/product-subscription-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-subscription-widget.component.js +55 -0
- package/dist/lib/custom/Product/widgets/product-subscription-widget.component.js.map +1 -0
- package/dist/lib/custom/Promotion/promotion-form.component.d.ts +33 -0
- package/dist/lib/custom/Promotion/promotion-form.component.d.ts.map +1 -0
- package/dist/lib/custom/Promotion/promotion-form.component.js +350 -0
- package/dist/lib/custom/Promotion/promotion-form.component.js.map +1 -0
- package/dist/lib/custom/Subscription/subscription-form.component.d.ts +96 -0
- package/dist/lib/custom/Subscription/subscription-form.component.d.ts.map +1 -0
- package/dist/lib/custom/Subscription/subscription-form.component.js +885 -0
- package/dist/lib/custom/Subscription/subscription-form.component.js.map +1 -0
- package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.d.ts +60 -0
- package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.d.ts.map +1 -0
- package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.js +567 -0
- package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.js.map +1 -0
- package/dist/lib/custom/custom-forms.module.d.ts +29 -0
- package/dist/lib/custom/custom-forms.module.d.ts.map +1 -0
- package/dist/lib/custom/custom-forms.module.js +127 -0
- package/dist/lib/custom/custom-forms.module.js.map +1 -0
- package/dist/lib/custom/form-navigation-helper.d.ts +10 -0
- package/dist/lib/custom/form-navigation-helper.d.ts.map +1 -0
- package/dist/lib/custom/form-navigation-helper.js +51 -0
- package/dist/lib/custom/form-navigation-helper.js.map +1 -0
- package/dist/lib/data/entity-names.d.ts +84 -0
- package/dist/lib/data/entity-names.d.ts.map +1 -0
- package/dist/lib/data/entity-names.js +85 -0
- package/dist/lib/data/entity-names.js.map +1 -0
- package/dist/lib/data/orders-queries.d.ts +394 -0
- package/dist/lib/data/orders-queries.d.ts.map +1 -0
- package/dist/lib/data/orders-queries.js +897 -0
- package/dist/lib/data/orders-queries.js.map +1 -0
- package/dist/lib/form-panels/catalog-overviews.panels.d.ts +36 -0
- package/dist/lib/form-panels/catalog-overviews.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/catalog-overviews.panels.js +443 -0
- package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -0
- package/dist/lib/form-panels/commercial-overviews.panels.d.ts +30 -0
- package/dist/lib/form-panels/commercial-overviews.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/commercial-overviews.panels.js +315 -0
- package/dist/lib/form-panels/commercial-overviews.panels.js.map +1 -0
- package/dist/lib/form-panels/document-form.helpers.d.ts +38 -0
- package/dist/lib/form-panels/document-form.helpers.d.ts.map +1 -0
- package/dist/lib/form-panels/document-form.helpers.js +183 -0
- package/dist/lib/form-panels/document-form.helpers.js.map +1 -0
- package/dist/lib/form-panels/document-forms.module.d.ts +34 -0
- package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -0
- package/dist/lib/form-panels/document-forms.module.js +183 -0
- package/dist/lib/form-panels/document-forms.module.js.map +1 -0
- package/dist/lib/form-panels/document-hero.component.d.ts +28 -0
- package/dist/lib/form-panels/document-hero.component.d.ts.map +1 -0
- package/dist/lib/form-panels/document-hero.component.js +167 -0
- package/dist/lib/form-panels/document-hero.component.js.map +1 -0
- package/dist/lib/form-panels/document-overviews.panels.d.ts +42 -0
- package/dist/lib/form-panels/document-overviews.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/document-overviews.panels.js +457 -0
- package/dist/lib/form-panels/document-overviews.panels.js.map +1 -0
- package/dist/lib/form-panels/lookup-headers.panels.d.ts +68 -0
- package/dist/lib/form-panels/lookup-headers.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/lookup-headers.panels.js +399 -0
- package/dist/lib/form-panels/lookup-headers.panels.js.map +1 -0
- package/dist/lib/form-panels/organization-header.panel.d.ts +15 -0
- package/dist/lib/form-panels/organization-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/organization-header.panel.js +77 -0
- package/dist/lib/form-panels/organization-header.panel.js.map +1 -0
- package/dist/lib/form-panels/organization-orders-overview.panel.d.ts +13 -0
- package/dist/lib/form-panels/organization-orders-overview.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/organization-orders-overview.panel.js +77 -0
- package/dist/lib/form-panels/organization-orders-overview.panel.js.map +1 -0
- package/dist/lib/form-panels/organization-orders.panel.d.ts +16 -0
- package/dist/lib/form-panels/organization-orders.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/organization-orders.panel.js +88 -0
- package/dist/lib/form-panels/organization-orders.panel.js.map +1 -0
- package/dist/lib/form-panels/overview-cards.component.d.ts +30 -0
- package/dist/lib/form-panels/overview-cards.component.d.ts.map +1 -0
- package/dist/lib/form-panels/overview-cards.component.js +250 -0
- package/dist/lib/form-panels/overview-cards.component.js.map +1 -0
- package/dist/lib/form-panels/overview-load.d.ts +7 -0
- package/dist/lib/form-panels/overview-load.d.ts.map +1 -0
- package/dist/lib/form-panels/overview-load.js +31 -0
- package/dist/lib/form-panels/overview-load.js.map +1 -0
- package/dist/lib/form-panels/party-headers.module.d.ts +18 -0
- package/dist/lib/form-panels/party-headers.module.d.ts.map +1 -0
- package/dist/lib/form-panels/party-headers.module.js +63 -0
- package/dist/lib/form-panels/party-headers.module.js.map +1 -0
- package/dist/lib/form-panels/party-order-stats.d.ts +26 -0
- package/dist/lib/form-panels/party-order-stats.d.ts.map +1 -0
- package/dist/lib/form-panels/party-order-stats.js +149 -0
- package/dist/lib/form-panels/party-order-stats.js.map +1 -0
- package/dist/lib/form-panels/payment-header.panel.d.ts +21 -0
- package/dist/lib/form-panels/payment-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/payment-header.panel.js +111 -0
- package/dist/lib/form-panels/payment-header.panel.js.map +1 -0
- package/dist/lib/form-panels/payment-journals.panel.d.ts +32 -0
- package/dist/lib/form-panels/payment-journals.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/payment-journals.panel.js +332 -0
- package/dist/lib/form-panels/payment-journals.panel.js.map +1 -0
- package/dist/lib/form-panels/person-header.panel.d.ts +15 -0
- package/dist/lib/form-panels/person-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/person-header.panel.js +77 -0
- package/dist/lib/form-panels/person-header.panel.js.map +1 -0
- package/dist/lib/form-panels/person-orders-overview.panel.d.ts +13 -0
- package/dist/lib/form-panels/person-orders-overview.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/person-orders-overview.panel.js +77 -0
- package/dist/lib/form-panels/person-orders-overview.panel.js.map +1 -0
- package/dist/lib/form-panels/person-orders.panel.d.ts +17 -0
- package/dist/lib/form-panels/person-orders.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/person-orders.panel.js +89 -0
- package/dist/lib/form-panels/person-orders.panel.js.map +1 -0
- package/dist/lib/form-panels/price-list-header.panel.d.ts +11 -0
- package/dist/lib/form-panels/price-list-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/price-list-header.panel.js +76 -0
- package/dist/lib/form-panels/price-list-header.panel.js.map +1 -0
- package/dist/lib/form-panels/price-list-simulator.panel.d.ts +19 -0
- package/dist/lib/form-panels/price-list-simulator.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/price-list-simulator.panel.js +125 -0
- package/dist/lib/form-panels/price-list-simulator.panel.js.map +1 -0
- package/dist/lib/form-panels/product-category-hierarchy.panel.d.ts +23 -0
- package/dist/lib/form-panels/product-category-hierarchy.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/product-category-hierarchy.panel.js +118 -0
- package/dist/lib/form-panels/product-category-hierarchy.panel.js.map +1 -0
- package/dist/lib/form-panels/product-header.panel.d.ts +14 -0
- package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/product-header.panel.js +105 -0
- package/dist/lib/form-panels/product-header.panel.js.map +1 -0
- package/dist/lib/form-panels/product-widget.panels.d.ts +24 -0
- package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/product-widget.panels.js +253 -0
- package/dist/lib/form-panels/product-widget.panels.js.map +1 -0
- package/dist/lib/form-panels/promotion-header.panel.d.ts +14 -0
- package/dist/lib/form-panels/promotion-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/promotion-header.panel.js +112 -0
- package/dist/lib/form-panels/promotion-header.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-header.panel.d.ts +17 -0
- package/dist/lib/form-panels/subscription-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-header.panel.js +127 -0
- package/dist/lib/form-panels/subscription-header.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-revrec.panel.d.ts +32 -0
- package/dist/lib/form-panels/subscription-revrec.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-revrec.panel.js +184 -0
- package/dist/lib/form-panels/subscription-revrec.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-term-header.panel.d.ts +13 -0
- package/dist/lib/form-panels/subscription-term-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-term-header.panel.js +113 -0
- package/dist/lib/form-panels/subscription-term-header.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-term-revrec.panel.d.ts +23 -0
- package/dist/lib/form-panels/subscription-term-revrec.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-term-revrec.panel.js +144 -0
- package/dist/lib/form-panels/subscription-term-revrec.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-terms.panel.d.ts +25 -0
- package/dist/lib/form-panels/subscription-terms.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-terms.panel.js +173 -0
- package/dist/lib/form-panels/subscription-terms.panel.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.js +102 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js +103 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.js +136 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.js +106 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.js +98 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.js +89 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.js +103 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.js +107 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js +139 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js +129 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.js +122 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.js +67 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.js +132 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.js +67 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js +85 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js +342 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js +378 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.js +71 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.js +89 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.js +63 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.js +180 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js +206 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js +128 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.js +87 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.js +158 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.js +110 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.js +63 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.js +108 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.js +144 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.js +134 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.js +89 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.js +71 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js +294 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.js +83 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js +168 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.js +114 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.js +162 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js +136 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.js +182 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.js +108 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.js +75 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.js +90 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.js +138 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js +98 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.js +87 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.js +134 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.js +87 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.js +234 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.js +87 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.js +63 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.js +122 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.js +188 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.js.map +1 -0
- package/dist/lib/generated/class-registrations-manifest.d.ts +7 -0
- package/dist/lib/generated/class-registrations-manifest.d.ts.map +1 -0
- package/dist/lib/generated/class-registrations-manifest.js +7 -0
- package/dist/lib/generated/class-registrations-manifest.js.map +1 -0
- package/dist/lib/generated/generated-forms.module.d.ts +79 -0
- package/dist/lib/generated/generated-forms.module.d.ts.map +1 -0
- package/dist/lib/generated/generated-forms.module.js +276 -0
- package/dist/lib/generated/generated-forms.module.js.map +1 -0
- package/dist/lib/pages/catalog/pricing.page.d.ts +81 -0
- package/dist/lib/pages/catalog/pricing.page.d.ts.map +1 -0
- package/dist/lib/pages/catalog/pricing.page.js +555 -0
- package/dist/lib/pages/catalog/pricing.page.js.map +1 -0
- package/dist/lib/pages/catalog/products.page.d.ts +98 -0
- package/dist/lib/pages/catalog/products.page.d.ts.map +1 -0
- package/dist/lib/pages/catalog/products.page.js +877 -0
- package/dist/lib/pages/catalog/products.page.js.map +1 -0
- package/dist/lib/pages/orders/fulfillment.page.d.ts +54 -0
- package/dist/lib/pages/orders/fulfillment.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/fulfillment.page.js +279 -0
- package/dist/lib/pages/orders/fulfillment.page.js.map +1 -0
- package/dist/lib/pages/orders/order-document.page.d.ts +71 -0
- package/dist/lib/pages/orders/order-document.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/order-document.page.js +573 -0
- package/dist/lib/pages/orders/order-document.page.js.map +1 -0
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts +79 -0
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/orders-dashboard.page.js +819 -0
- package/dist/lib/pages/orders/orders-dashboard.page.js.map +1 -0
- package/dist/lib/pages/orders/orders-list.page.d.ts +21 -0
- package/dist/lib/pages/orders/orders-list.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/orders-list.page.js +74 -0
- package/dist/lib/pages/orders/orders-list.page.js.map +1 -0
- package/dist/lib/pages/orders/return.page.d.ts +96 -0
- package/dist/lib/pages/orders/return.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/return.page.js +549 -0
- package/dist/lib/pages/orders/return.page.js.map +1 -0
- package/dist/lib/pages/payments/account-credit.page.d.ts +96 -0
- package/dist/lib/pages/payments/account-credit.page.d.ts.map +1 -0
- package/dist/lib/pages/payments/account-credit.page.js +463 -0
- package/dist/lib/pages/payments/account-credit.page.js.map +1 -0
- package/dist/lib/pages/payments/payments-dashboard.page.d.ts +61 -0
- package/dist/lib/pages/payments/payments-dashboard.page.d.ts.map +1 -0
- package/dist/lib/pages/payments/payments-dashboard.page.js +359 -0
- package/dist/lib/pages/payments/payments-dashboard.page.js.map +1 -0
- package/dist/lib/pages/payments/payments-list.page.d.ts +18 -0
- package/dist/lib/pages/payments/payments-list.page.d.ts.map +1 -0
- package/dist/lib/pages/payments/payments-list.page.js +71 -0
- package/dist/lib/pages/payments/payments-list.page.js.map +1 -0
- package/dist/lib/pages/payments/refund.page.d.ts +74 -0
- package/dist/lib/pages/payments/refund.page.d.ts.map +1 -0
- package/dist/lib/pages/payments/refund.page.js +477 -0
- package/dist/lib/pages/payments/refund.page.js.map +1 -0
- package/dist/lib/pages/receivables/customer-ar.page.d.ts +102 -0
- package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -0
- package/dist/lib/pages/receivables/customer-ar.page.js +782 -0
- package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -0
- package/dist/lib/pages/receivables/overdue.page.d.ts +71 -0
- package/dist/lib/pages/receivables/overdue.page.d.ts.map +1 -0
- package/dist/lib/pages/receivables/overdue.page.js +338 -0
- package/dist/lib/pages/receivables/overdue.page.js.map +1 -0
- package/dist/lib/pages/receivables/subscriptions.page.d.ts +115 -0
- package/dist/lib/pages/receivables/subscriptions.page.d.ts.map +1 -0
- package/dist/lib/pages/receivables/subscriptions.page.js +632 -0
- package/dist/lib/pages/receivables/subscriptions.page.js.map +1 -0
- package/dist/lib/panels/aging-bar.component.d.ts +59 -0
- package/dist/lib/panels/aging-bar.component.d.ts.map +1 -0
- package/dist/lib/panels/aging-bar.component.js +180 -0
- package/dist/lib/panels/aging-bar.component.js.map +1 -0
- package/dist/lib/panels/allocation-grid.component.d.ts +90 -0
- package/dist/lib/panels/allocation-grid.component.d.ts.map +1 -0
- package/dist/lib/panels/allocation-grid.component.js +425 -0
- package/dist/lib/panels/allocation-grid.component.js.map +1 -0
- package/dist/lib/panels/allocation-math.d.ts +59 -0
- package/dist/lib/panels/allocation-math.d.ts.map +1 -0
- package/dist/lib/panels/allocation-math.js +99 -0
- package/dist/lib/panels/allocation-math.js.map +1 -0
- package/dist/lib/panels/chips.component.d.ts +104 -0
- package/dist/lib/panels/chips.component.d.ts.map +1 -0
- package/dist/lib/panels/chips.component.js +274 -0
- package/dist/lib/panels/chips.component.js.map +1 -0
- package/dist/lib/panels/day-bars.component.d.ts +64 -0
- package/dist/lib/panels/day-bars.component.d.ts.map +1 -0
- package/dist/lib/panels/day-bars.component.js +143 -0
- package/dist/lib/panels/day-bars.component.js.map +1 -0
- package/dist/lib/panels/decomposition-ladder.component.d.ts +68 -0
- package/dist/lib/panels/decomposition-ladder.component.d.ts.map +1 -0
- package/dist/lib/panels/decomposition-ladder.component.js +217 -0
- package/dist/lib/panels/decomposition-ladder.component.js.map +1 -0
- package/dist/lib/panels/index.d.ts +46 -0
- package/dist/lib/panels/index.d.ts.map +1 -0
- package/dist/lib/panels/index.js +58 -0
- package/dist/lib/panels/index.js.map +1 -0
- package/dist/lib/panels/journal-entry-preview.component.d.ts +71 -0
- package/dist/lib/panels/journal-entry-preview.component.d.ts.map +1 -0
- package/dist/lib/panels/journal-entry-preview.component.js +281 -0
- package/dist/lib/panels/journal-entry-preview.component.js.map +1 -0
- package/dist/lib/panels/money-format.d.ts +182 -0
- package/dist/lib/panels/money-format.d.ts.map +1 -0
- package/dist/lib/panels/money-format.js +297 -0
- package/dist/lib/panels/money-format.js.map +1 -0
- package/dist/lib/panels/money-strip.component.d.ts +69 -0
- package/dist/lib/panels/money-strip.component.d.ts.map +1 -0
- package/dist/lib/panels/money-strip.component.js +233 -0
- package/dist/lib/panels/money-strip.component.js.map +1 -0
- package/dist/lib/panels/order-stages.d.ts +75 -0
- package/dist/lib/panels/order-stages.d.ts.map +1 -0
- package/dist/lib/panels/order-stages.js +100 -0
- package/dist/lib/panels/order-stages.js.map +1 -0
- package/dist/lib/panels/party-orders-overview.component.d.ts +79 -0
- package/dist/lib/panels/party-orders-overview.component.d.ts.map +1 -0
- package/dist/lib/panels/party-orders-overview.component.js +906 -0
- package/dist/lib/panels/party-orders-overview.component.js.map +1 -0
- package/dist/lib/panels/stat-tile.component.d.ts +75 -0
- package/dist/lib/panels/stat-tile.component.d.ts.map +1 -0
- package/dist/lib/panels/stat-tile.component.js +214 -0
- package/dist/lib/panels/stat-tile.component.js.map +1 -0
- package/dist/lib/panels/status-stepper.component.d.ts +60 -0
- package/dist/lib/panels/status-stepper.component.d.ts.map +1 -0
- package/dist/lib/panels/status-stepper.component.js +160 -0
- package/dist/lib/panels/status-stepper.component.js.map +1 -0
- package/dist/lib/panels/summary-strip.component.d.ts +48 -0
- package/dist/lib/panels/summary-strip.component.d.ts.map +1 -0
- package/dist/lib/panels/summary-strip.component.js +100 -0
- package/dist/lib/panels/summary-strip.component.js.map +1 -0
- package/dist/lib/panels/worklist-table.component.d.ts +127 -0
- package/dist/lib/panels/worklist-table.component.d.ts.map +1 -0
- package/dist/lib/panels/worklist-table.component.js +444 -0
- package/dist/lib/panels/worklist-table.component.js.map +1 -0
- package/dist/lib/sections/orders-sections.component.d.ts +282 -0
- package/dist/lib/sections/orders-sections.component.d.ts.map +1 -0
- package/dist/lib/sections/orders-sections.component.js +1117 -0
- package/dist/lib/sections/orders-sections.component.js.map +1 -0
- package/dist/lib/sections/section-nav.model.d.ts +74 -0
- package/dist/lib/sections/section-nav.model.d.ts.map +1 -0
- package/dist/lib/sections/section-nav.model.js +114 -0
- package/dist/lib/sections/section-nav.model.js.map +1 -0
- package/dist/lib/sections/section-shell.component.d.ts +70 -0
- package/dist/lib/sections/section-shell.component.d.ts.map +1 -0
- package/dist/lib/sections/section-shell.component.js +193 -0
- package/dist/lib/sections/section-shell.component.js.map +1 -0
- package/dist/lib/services/pricing-scheduler.service.d.ts +181 -0
- package/dist/lib/services/pricing-scheduler.service.d.ts.map +1 -0
- package/dist/lib/services/pricing-scheduler.service.js +292 -0
- package/dist/lib/services/pricing-scheduler.service.js.map +1 -0
- package/dist/lib/services/save-error.d.ts +24 -0
- package/dist/lib/services/save-error.d.ts.map +1 -0
- package/dist/lib/services/save-error.js +47 -0
- package/dist/lib/services/save-error.js.map +1 -0
- package/dist/lib/styles/orders-kit.css +841 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.d.ts +55 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.js +243 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.js.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.d.ts +47 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.js +112 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.js.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.d.ts +36 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.js +179 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.js.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.d.ts +36 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.js +9 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.js.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.d.ts +35 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.js +124 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.js.map +1 -0
- package/dist/public-api.d.ts +80 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +98 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +78 -5
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MJOMoneyPipe, FormatMoney, FormatDate } from './money-format.js';
|
|
4
|
+
import { MJAlertComponent, MJButtonDirective } from '@memberjunction/ng-ui-components';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
const _forTrack0 = ($index, $item) => $item.ID;
|
|
7
|
+
function MJOAllocationGridComponent_For_30_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelementStart(0, "div", 22);
|
|
9
|
+
i0.ɵɵtext(1);
|
|
10
|
+
i0.ɵɵelementEnd();
|
|
11
|
+
} if (rf & 2) {
|
|
12
|
+
const order_r2 = i0.ɵɵnextContext().$implicit;
|
|
13
|
+
i0.ɵɵadvance();
|
|
14
|
+
i0.ɵɵtextInterpolate1("", order_r2.DaysLate, "d late");
|
|
15
|
+
} }
|
|
16
|
+
function MJOAllocationGridComponent_For_30_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
i0.ɵɵelementStart(0, "div", 26);
|
|
18
|
+
i0.ɵɵtext(1, "credit");
|
|
19
|
+
i0.ɵɵelementEnd();
|
|
20
|
+
} }
|
|
21
|
+
function MJOAllocationGridComponent_For_30_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
23
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 20);
|
|
24
|
+
i0.ɵɵtext(2);
|
|
25
|
+
i0.ɵɵelementEnd();
|
|
26
|
+
i0.ɵɵelementStart(3, "td", 21);
|
|
27
|
+
i0.ɵɵtext(4);
|
|
28
|
+
i0.ɵɵelementEnd();
|
|
29
|
+
i0.ɵɵelementStart(5, "td");
|
|
30
|
+
i0.ɵɵtext(6);
|
|
31
|
+
i0.ɵɵconditionalCreate(7, MJOAllocationGridComponent_For_30_Conditional_7_Template, 2, 1, "div", 22);
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
i0.ɵɵelementStart(8, "td", 10)(9, "span", 23);
|
|
34
|
+
i0.ɵɵtext(10);
|
|
35
|
+
i0.ɵɵelementEnd()();
|
|
36
|
+
i0.ɵɵelementStart(11, "td", 24);
|
|
37
|
+
i0.ɵɵtext(12);
|
|
38
|
+
i0.ɵɵpipe(13, "mjoMoney");
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
i0.ɵɵelementStart(14, "td", 24)(15, "input", 25);
|
|
41
|
+
i0.ɵɵlistener("change", function MJOAllocationGridComponent_For_30_Template_input_change_15_listener($event) { const order_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.setAllocation(order_r2, $event.target.value)); });
|
|
42
|
+
i0.ɵɵelementEnd()();
|
|
43
|
+
i0.ɵɵelementStart(16, "td", 24);
|
|
44
|
+
i0.ɵɵtext(17);
|
|
45
|
+
i0.ɵɵconditionalCreate(18, MJOAllocationGridComponent_For_30_Conditional_18_Template, 2, 0, "div", 26);
|
|
46
|
+
i0.ɵɵelementEnd()();
|
|
47
|
+
} if (rf & 2) {
|
|
48
|
+
const order_r2 = ctx.$implicit;
|
|
49
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
50
|
+
i0.ɵɵadvance(2);
|
|
51
|
+
i0.ɵɵtextInterpolate(order_r2.OrderNumber);
|
|
52
|
+
i0.ɵɵadvance(2);
|
|
53
|
+
i0.ɵɵtextInterpolate(order_r2.Description ?? "\u2014");
|
|
54
|
+
i0.ɵɵadvance(2);
|
|
55
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.dueDate(order_r2), " ");
|
|
56
|
+
i0.ɵɵadvance();
|
|
57
|
+
i0.ɵɵconditional(order_r2.DaysLate && order_r2.DaysLate > 0 ? 7 : -1);
|
|
58
|
+
i0.ɵɵadvance(3);
|
|
59
|
+
i0.ɵɵtextInterpolate(order_r2.CompanyName ?? "\u2014");
|
|
60
|
+
i0.ɵɵadvance(2);
|
|
61
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 12, order_r2.Balance));
|
|
62
|
+
i0.ɵɵadvance(3);
|
|
63
|
+
i0.ɵɵproperty("value", ctx_r2.applied(order_r2) || "");
|
|
64
|
+
i0.ɵɵattribute("aria-label", "Amount to apply to " + order_r2.OrderNumber);
|
|
65
|
+
i0.ɵɵadvance();
|
|
66
|
+
i0.ɵɵclassProp("mj-money--credit", ctx_r2.leaves(order_r2) < 0);
|
|
67
|
+
i0.ɵɵadvance();
|
|
68
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.leaves(order_r2) === 0 ? "settled" : ctx_r2.formatLeaves(order_r2), " ");
|
|
69
|
+
i0.ɵɵadvance();
|
|
70
|
+
i0.ɵɵconditional(ctx_r2.leaves(order_r2) < 0 ? 18 : -1);
|
|
71
|
+
} }
|
|
72
|
+
function MJOAllocationGridComponent_ForEmpty_31_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
i0.ɵɵelementStart(0, "tr")(1, "td", 27)(2, "div", 28);
|
|
74
|
+
i0.ɵɵelement(3, "i", 29);
|
|
75
|
+
i0.ɵɵelementStart(4, "div", 30);
|
|
76
|
+
i0.ɵɵtext(5, "Nothing open");
|
|
77
|
+
i0.ɵɵelementEnd();
|
|
78
|
+
i0.ɵɵelementStart(6, "div", 21);
|
|
79
|
+
i0.ɵɵtext(7, " This customer owes nothing. Cash taken now becomes credit on whichever order it is applied to. ");
|
|
80
|
+
i0.ɵɵelementEnd()()()();
|
|
81
|
+
} }
|
|
82
|
+
function MJOAllocationGridComponent_Conditional_41_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
83
|
+
i0.ɵɵtext(0);
|
|
84
|
+
} if (rf & 2) {
|
|
85
|
+
const order_r4 = ctx.$implicit;
|
|
86
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
87
|
+
i0.ɵɵtextInterpolate3(" ", order_r4.OrderNumber, " goes to ", ctx_r2.formatLeaves(order_r4), " \u2014 ", ctx_r2.creditAmount(order_r4), " of spendable credit. ");
|
|
88
|
+
} }
|
|
89
|
+
function MJOAllocationGridComponent_Conditional_41_Template(rf, ctx) { if (rf & 1) {
|
|
90
|
+
i0.ɵɵelementStart(0, "mj-alert", 18)(1, "strong");
|
|
91
|
+
i0.ɵɵtext(2, "This creates account credit.");
|
|
92
|
+
i0.ɵɵelementEnd();
|
|
93
|
+
i0.ɵɵrepeaterCreate(3, MJOAllocationGridComponent_Conditional_41_For_4_Template, 1, 3, null, null, _forTrack0);
|
|
94
|
+
i0.ɵɵelementStart(5, "div", 31);
|
|
95
|
+
i0.ɵɵtext(6, " Legitimate and common. No separate credit record is created; the negative balance ");
|
|
96
|
+
i0.ɵɵelementStart(7, "b");
|
|
97
|
+
i0.ɵɵtext(8, "is");
|
|
98
|
+
i0.ɵɵelementEnd();
|
|
99
|
+
i0.ɵɵtext(9, " the credit. ");
|
|
100
|
+
i0.ɵɵelementEnd()();
|
|
101
|
+
} if (rf & 2) {
|
|
102
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
103
|
+
i0.ɵɵadvance(3);
|
|
104
|
+
i0.ɵɵrepeater(ctx_r2.overAppliedOrders);
|
|
105
|
+
} }
|
|
106
|
+
function MJOAllocationGridComponent_Conditional_42_Template(rf, ctx) { if (rf & 1) {
|
|
107
|
+
i0.ɵɵelementStart(0, "mj-alert", 19)(1, "strong");
|
|
108
|
+
i0.ɵɵtext(2, "This allocation crosses companies.");
|
|
109
|
+
i0.ɵɵelementEnd();
|
|
110
|
+
i0.ɵɵtext(3);
|
|
111
|
+
i0.ɵɵelementStart(4, "div", 31);
|
|
112
|
+
i0.ɵɵtext(5, " The intercompany legs book ");
|
|
113
|
+
i0.ɵɵelementStart(6, "b");
|
|
114
|
+
i0.ɵɵtext(7, "here, at allocation");
|
|
115
|
+
i0.ɵɵelementEnd();
|
|
116
|
+
i0.ɵɵtext(8, " \u2014 not at capture. A capture only says how much cash arrived; only an allocation says whose revenue it settles. ");
|
|
117
|
+
i0.ɵɵelementEnd()();
|
|
118
|
+
} if (rf & 2) {
|
|
119
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
120
|
+
i0.ɵɵadvance(3);
|
|
121
|
+
i0.ɵɵtextInterpolate1(" Cash landed with one entity but settles receivables owned by ", ctx_r2.companiesInvolved.join(" and "), ". ");
|
|
122
|
+
} }
|
|
123
|
+
/**
|
|
124
|
+
* `mjo-allocation-grid` — say what a payment settles.
|
|
125
|
+
*
|
|
126
|
+
* THE UNALLOCATED FIGURE IS THE CENTRE OF THIS COMPONENT, and it is why the
|
|
127
|
+
* component exists rather than a plain table. A payment's amount MUST equal the
|
|
128
|
+
* sum of what it settles, so the running remainder is displayed prominently at
|
|
129
|
+
* all times and capture is unavailable until it reads zero. That check happens at
|
|
130
|
+
* capture rather than on every keystroke — a pending payment is a draft, exactly
|
|
131
|
+
* as a draft order may have no lines yet.
|
|
132
|
+
*
|
|
133
|
+
* OVER-APPLYING IS LEGITIMATE, NOT AN ERROR. Applying more than an order is worth
|
|
134
|
+
* drives its balance negative, and that negative balance IS the customer's credit
|
|
135
|
+
* — there is no separate instrument. So the grid announces the credit it will
|
|
136
|
+
* create rather than refusing the entry. Refusing would make an everyday event
|
|
137
|
+
* unrecordable while the money sat in the bank.
|
|
138
|
+
*
|
|
139
|
+
* The component computes NOTHING about the payment beyond arithmetic on the
|
|
140
|
+
* numbers handed to it: which orders are open, what they are worth, and what the
|
|
141
|
+
* intercompany consequences are all come from the server.
|
|
142
|
+
*
|
|
143
|
+
* ## Example
|
|
144
|
+
*
|
|
145
|
+
* ```html
|
|
146
|
+
* <mjo-allocation-grid
|
|
147
|
+
* [Orders]="openOrders"
|
|
148
|
+
* [Amount]="amount"
|
|
149
|
+
* [Allocations]="allocations"
|
|
150
|
+
* (AllocationsChanged)="allocations = $event"
|
|
151
|
+
* (AutoApplyRequested)="autoApply()" />
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
export class MJOAllocationGridComponent {
|
|
155
|
+
/**
|
|
156
|
+
* The due date, formatted.
|
|
157
|
+
*
|
|
158
|
+
* This cell rendered `{{ order.DueDate ?? '—' }}` — the RAW value. An ISO string printed as
|
|
159
|
+
* `2026-08-01T00:00:00.000Z` and a `Date` as `Mon Aug 01 2026 00:00:00 GMT+0000 (…)`. Neither
|
|
160
|
+
* is a date anybody wants to read while deciding which order to settle.
|
|
161
|
+
*/
|
|
162
|
+
dueDate(order) {
|
|
163
|
+
return FormatDate(order.DueDate);
|
|
164
|
+
}
|
|
165
|
+
Title = 'Apply it to open orders';
|
|
166
|
+
/** Open orders, oldest first. */
|
|
167
|
+
Orders = [];
|
|
168
|
+
/** The payment's amount — what the allocations must sum to. */
|
|
169
|
+
Amount = 0;
|
|
170
|
+
/** Order ID → amount applied. */
|
|
171
|
+
Allocations = {};
|
|
172
|
+
/** The map changed. The host owns the state; this component never mutates it in place. */
|
|
173
|
+
AllocationsChanged = new EventEmitter();
|
|
174
|
+
/** The user asked for oldest-first auto-apply. The host decides the strategy. */
|
|
175
|
+
AutoApplyRequested = new EventEmitter();
|
|
176
|
+
/** What is not yet applied. Must be zero to capture. */
|
|
177
|
+
get Unallocated() {
|
|
178
|
+
const applied = Object.values(this.Allocations).reduce((s, v) => s + v, 0);
|
|
179
|
+
return this.round(this.Amount - applied);
|
|
180
|
+
}
|
|
181
|
+
/** Whether the host's capture button should be live. */
|
|
182
|
+
get IsBalanced() {
|
|
183
|
+
return this.Unallocated === 0;
|
|
184
|
+
}
|
|
185
|
+
get unallocatedNote() {
|
|
186
|
+
if (this.Unallocated === 0)
|
|
187
|
+
return 'Balanced — ready to capture.';
|
|
188
|
+
if (this.Unallocated > 0) {
|
|
189
|
+
return `${FormatMoney(this.Unallocated)} of this payment is not yet applied to anything.`;
|
|
190
|
+
}
|
|
191
|
+
return `Applied ${FormatMoney(-this.Unallocated)} more than was received — reduce an allocation.`;
|
|
192
|
+
}
|
|
193
|
+
get overAppliedOrders() {
|
|
194
|
+
return this.Orders.filter((o) => this.applied(o) > o.Balance);
|
|
195
|
+
}
|
|
196
|
+
get companiesInvolved() {
|
|
197
|
+
const names = this.Orders.filter((o) => this.applied(o) > 0).map((o) => o.CompanyName ?? o.CompanyID);
|
|
198
|
+
return [...new Set(names)];
|
|
199
|
+
}
|
|
200
|
+
applied(order) {
|
|
201
|
+
return this.Allocations[order.ID] ?? 0;
|
|
202
|
+
}
|
|
203
|
+
leaves(order) {
|
|
204
|
+
return this.round(order.Balance - this.applied(order));
|
|
205
|
+
}
|
|
206
|
+
formatLeaves(order) {
|
|
207
|
+
return FormatMoney(this.leaves(order));
|
|
208
|
+
}
|
|
209
|
+
creditAmount(order) {
|
|
210
|
+
return FormatMoney(this.applied(order) - order.Balance);
|
|
211
|
+
}
|
|
212
|
+
setAllocation(order, raw) {
|
|
213
|
+
const parsed = Number.parseFloat(String(raw).replace(/[^0-9.\-]/g, ''));
|
|
214
|
+
const next = { ...this.Allocations };
|
|
215
|
+
if (!Number.isFinite(parsed) || parsed <= 0)
|
|
216
|
+
delete next[order.ID];
|
|
217
|
+
else
|
|
218
|
+
next[order.ID] = this.round(parsed);
|
|
219
|
+
this.AllocationsChanged.emit(next);
|
|
220
|
+
}
|
|
221
|
+
clearAll() {
|
|
222
|
+
this.AllocationsChanged.emit({});
|
|
223
|
+
}
|
|
224
|
+
round(value) {
|
|
225
|
+
return Math.round((value + Number.EPSILON) * 100) / 100;
|
|
226
|
+
}
|
|
227
|
+
static ɵfac = function MJOAllocationGridComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MJOAllocationGridComponent)(); };
|
|
228
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJOAllocationGridComponent, selectors: [["mjo-allocation-grid"]], inputs: { Title: "Title", Orders: "Orders", Amount: "Amount", Allocations: "Allocations" }, outputs: { AllocationsChanged: "AllocationsChanged", AutoApplyRequested: "AutoApplyRequested" }, decls: 43, vars: 12, consts: [[1, "mj-card"], [1, "mj-card-head"], ["aria-hidden", "true", 1, "fa-solid", "fa-list-check"], [1, "right"], ["type", "button", "mjButton", "", "variant", "outline", "size", "sm", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-wand-magic-sparkles"], ["type", "button", "mjButton", "", "variant", "flat", "size", "sm", 3, "click"], [1, "mj-table", "mj-table--compact"], [1, "mjo-ag__order"], [1, "mjo-ag__due"], [1, "mjo-ag__co"], [1, "num", "mjo-ag__bal"], [1, "num", "mjo-ag__apply"], [1, "num", "mjo-ag__leaves"], ["role", "status", "aria-live", "polite", 1, "mjo-ag__unallocated"], [1, "sec-label", "mjo-ag__unallocated-label"], [1, "small", "muted"], [1, "spacer", "mjo-ag__unallocated-value"], ["Variant", "success", "Icon", "fa-solid fa-piggy-bank", 1, "mjo-ag__effect"], ["Variant", "warning", "Icon", "fa-solid fa-building-columns", 1, "mjo-ag__effect"], [1, "mono", "primary"], [1, "small"], [1, "secondary", "mjo-ag__late"], [1, "mj-chip", "mj-chip--outline"], [1, "num"], ["placeholder", "0.00", 1, "mj-input", "is-num", "mjo-ag__input", 3, "change", "value"], [1, "secondary"], ["colspan", "7"], [1, "mj-empty", "mjo-ag__empty"], ["aria-hidden", "true", 1, "fa-solid", "fa-check"], [1, "t"], [1, "small", "mjo-ag__effect-note"]], template: function MJOAllocationGridComponent_Template(rf, ctx) { if (rf & 1) {
|
|
229
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
230
|
+
i0.ɵɵelement(2, "i", 2);
|
|
231
|
+
i0.ɵɵelementStart(3, "h3");
|
|
232
|
+
i0.ɵɵtext(4);
|
|
233
|
+
i0.ɵɵelementEnd();
|
|
234
|
+
i0.ɵɵelementStart(5, "span", 3)(6, "button", 4);
|
|
235
|
+
i0.ɵɵlistener("click", function MJOAllocationGridComponent_Template_button_click_6_listener() { return ctx.AutoApplyRequested.emit(); });
|
|
236
|
+
i0.ɵɵelement(7, "i", 5);
|
|
237
|
+
i0.ɵɵtext(8, " Auto-apply oldest first ");
|
|
238
|
+
i0.ɵɵelementEnd();
|
|
239
|
+
i0.ɵɵelementStart(9, "button", 6);
|
|
240
|
+
i0.ɵɵlistener("click", function MJOAllocationGridComponent_Template_button_click_9_listener() { return ctx.clearAll(); });
|
|
241
|
+
i0.ɵɵtext(10, "Clear");
|
|
242
|
+
i0.ɵɵelementEnd()()();
|
|
243
|
+
i0.ɵɵelementStart(11, "table", 7)(12, "thead")(13, "tr")(14, "th", 8);
|
|
244
|
+
i0.ɵɵtext(15, "Order");
|
|
245
|
+
i0.ɵɵelementEnd();
|
|
246
|
+
i0.ɵɵelementStart(16, "th");
|
|
247
|
+
i0.ɵɵtext(17, "Memo");
|
|
248
|
+
i0.ɵɵelementEnd();
|
|
249
|
+
i0.ɵɵelementStart(18, "th", 9);
|
|
250
|
+
i0.ɵɵtext(19, "Due");
|
|
251
|
+
i0.ɵɵelementEnd();
|
|
252
|
+
i0.ɵɵelementStart(20, "th", 10);
|
|
253
|
+
i0.ɵɵtext(21, "Co.");
|
|
254
|
+
i0.ɵɵelementEnd();
|
|
255
|
+
i0.ɵɵelementStart(22, "th", 11);
|
|
256
|
+
i0.ɵɵtext(23, "Balance");
|
|
257
|
+
i0.ɵɵelementEnd();
|
|
258
|
+
i0.ɵɵelementStart(24, "th", 12);
|
|
259
|
+
i0.ɵɵtext(25, "Apply");
|
|
260
|
+
i0.ɵɵelementEnd();
|
|
261
|
+
i0.ɵɵelementStart(26, "th", 13);
|
|
262
|
+
i0.ɵɵtext(27, "Leaves");
|
|
263
|
+
i0.ɵɵelementEnd()()();
|
|
264
|
+
i0.ɵɵelementStart(28, "tbody");
|
|
265
|
+
i0.ɵɵrepeaterCreate(29, MJOAllocationGridComponent_For_30_Template, 19, 14, "tr", null, _forTrack0, false, MJOAllocationGridComponent_ForEmpty_31_Template, 8, 0, "tr");
|
|
266
|
+
i0.ɵɵelementEnd()();
|
|
267
|
+
i0.ɵɵelementStart(32, "div", 14)(33, "div")(34, "div", 15);
|
|
268
|
+
i0.ɵɵtext(35, "Unallocated");
|
|
269
|
+
i0.ɵɵelementEnd();
|
|
270
|
+
i0.ɵɵelementStart(36, "div", 16);
|
|
271
|
+
i0.ɵɵtext(37);
|
|
272
|
+
i0.ɵɵelementEnd()();
|
|
273
|
+
i0.ɵɵelementStart(38, "span", 17);
|
|
274
|
+
i0.ɵɵtext(39);
|
|
275
|
+
i0.ɵɵpipe(40, "mjoMoney");
|
|
276
|
+
i0.ɵɵelementEnd()()();
|
|
277
|
+
i0.ɵɵconditionalCreate(41, MJOAllocationGridComponent_Conditional_41_Template, 10, 0, "mj-alert", 18);
|
|
278
|
+
i0.ɵɵconditionalCreate(42, MJOAllocationGridComponent_Conditional_42_Template, 9, 1, "mj-alert", 19);
|
|
279
|
+
} if (rf & 2) {
|
|
280
|
+
i0.ɵɵadvance(4);
|
|
281
|
+
i0.ɵɵtextInterpolate(ctx.Title);
|
|
282
|
+
i0.ɵɵadvance(25);
|
|
283
|
+
i0.ɵɵrepeater(ctx.Orders);
|
|
284
|
+
i0.ɵɵadvance(3);
|
|
285
|
+
i0.ɵɵclassProp("is-zero", ctx.Unallocated === 0)("is-over", ctx.Unallocated < 0);
|
|
286
|
+
i0.ɵɵadvance(5);
|
|
287
|
+
i0.ɵɵtextInterpolate(ctx.unallocatedNote);
|
|
288
|
+
i0.ɵɵadvance(2);
|
|
289
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(40, 10, ctx.Unallocated));
|
|
290
|
+
i0.ɵɵadvance(2);
|
|
291
|
+
i0.ɵɵconditional(ctx.overAppliedOrders.length ? 41 : -1);
|
|
292
|
+
i0.ɵɵadvance();
|
|
293
|
+
i0.ɵɵconditional(ctx.companiesInvolved.length > 1 ? 42 : -1);
|
|
294
|
+
} }, dependencies: [MJButtonDirective, CommonModule, MJAlertComponent, MJOMoneyPipe], styles: [".mjo-ag__order[_ngcontent-%COMP%] { width: 112px; }\n .mjo-ag__due[_ngcontent-%COMP%] { width: 100px; }\n .mjo-ag__co[_ngcontent-%COMP%] { width: 96px; }\n .mjo-ag__bal[_ngcontent-%COMP%] { width: 118px; }\n .mjo-ag__apply[_ngcontent-%COMP%] { width: 132px; }\n .mjo-ag__leaves[_ngcontent-%COMP%] { width: 124px; }\n .mjo-ag__input[_ngcontent-%COMP%] { width: 110px; }\n .mjo-ag__late[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n font-weight: var(--mj-font-semibold);\n }\n .mjo-ag__empty[_ngcontent-%COMP%] { padding: var(--mj-space-6); }\n\n .mjo-ag__unallocated[_ngcontent-%COMP%] {\n position: sticky;\n bottom: 0;\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n padding: var(--mj-space-3) var(--mj-space-4);\n border-top: 2px solid var(--mj-border-strong);\n background: var(--mj-bg-surface);\n }\n .mjo-ag__unallocated-label[_ngcontent-%COMP%] { margin: 0; }\n .mjo-ag__unallocated-value[_ngcontent-%COMP%] {\n font-size: 20px;\n font-weight: var(--mj-font-bold);\n font-variant-numeric: tabular-nums;\n }\n .mjo-ag__unallocated.is-zero[_ngcontent-%COMP%] {\n background: var(--mj-status-success-bg);\n border-top-color: var(--mj-status-success);\n }\n .mjo-ag__unallocated.is-zero[_ngcontent-%COMP%] .mjo-ag__unallocated-value[_ngcontent-%COMP%] {\n color: var(--mj-status-success-text);\n }\n .mjo-ag__unallocated.is-over[_ngcontent-%COMP%] {\n background: var(--mj-status-error-bg);\n border-top-color: var(--mj-status-error);\n }\n .mjo-ag__unallocated.is-over[_ngcontent-%COMP%] .mjo-ag__unallocated-value[_ngcontent-%COMP%] {\n color: var(--mj-status-error-text);\n }\n\n .mjo-ag__effect[_ngcontent-%COMP%] { margin-top: var(--mj-space-3); }\n .mjo-ag__effect-note[_ngcontent-%COMP%] { margin-top: 4px; }\n\n @media (max-width: 760px) {\n .mjo-ag__co[_ngcontent-%COMP%], \n .mjo-ag__due[_ngcontent-%COMP%] {\n display: none;\n }\n }"] });
|
|
295
|
+
}
|
|
296
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOAllocationGridComponent, [{
|
|
297
|
+
type: Component,
|
|
298
|
+
args: [{ selector: 'mjo-allocation-grid', standalone: true, imports: [MJButtonDirective, CommonModule, MJOMoneyPipe, MJAlertComponent], template: `
|
|
299
|
+
<div class="mj-card">
|
|
300
|
+
<div class="mj-card-head">
|
|
301
|
+
<i class="fa-solid fa-list-check" aria-hidden="true"></i>
|
|
302
|
+
<h3>{{ Title }}</h3>
|
|
303
|
+
<span class="right">
|
|
304
|
+
<button type="button" mjButton variant="outline" size="sm" (click)="AutoApplyRequested.emit()">
|
|
305
|
+
<i class="fa-solid fa-wand-magic-sparkles" aria-hidden="true"></i> Auto-apply oldest first
|
|
306
|
+
</button>
|
|
307
|
+
<button type="button" mjButton variant="flat" size="sm" (click)="clearAll()">Clear</button>
|
|
308
|
+
</span>
|
|
309
|
+
</div>
|
|
310
|
+
|
|
311
|
+
<table class="mj-table mj-table--compact">
|
|
312
|
+
<thead>
|
|
313
|
+
<tr>
|
|
314
|
+
<th class="mjo-ag__order">Order</th>
|
|
315
|
+
<th>Memo</th>
|
|
316
|
+
<th class="mjo-ag__due">Due</th>
|
|
317
|
+
<th class="mjo-ag__co">Co.</th>
|
|
318
|
+
<th class="num mjo-ag__bal">Balance</th>
|
|
319
|
+
<th class="num mjo-ag__apply">Apply</th>
|
|
320
|
+
<th class="num mjo-ag__leaves">Leaves</th>
|
|
321
|
+
</tr>
|
|
322
|
+
</thead>
|
|
323
|
+
<tbody>
|
|
324
|
+
@for (order of Orders; track order.ID) {
|
|
325
|
+
<tr>
|
|
326
|
+
<td class="mono primary">{{ order.OrderNumber }}</td>
|
|
327
|
+
<td class="small">{{ order.Description ?? '—' }}</td>
|
|
328
|
+
<td>
|
|
329
|
+
{{ dueDate(order) }}
|
|
330
|
+
@if (order.DaysLate && order.DaysLate > 0) {
|
|
331
|
+
<div class="secondary mjo-ag__late">{{ order.DaysLate }}d late</div>
|
|
332
|
+
}
|
|
333
|
+
</td>
|
|
334
|
+
<td class="mjo-ag__co">
|
|
335
|
+
<span class="mj-chip mj-chip--outline">{{ order.CompanyName ?? '—' }}</span>
|
|
336
|
+
</td>
|
|
337
|
+
<td class="num">{{ order.Balance | mjoMoney }}</td>
|
|
338
|
+
<td class="num">
|
|
339
|
+
<input
|
|
340
|
+
class="mj-input is-num mjo-ag__input"
|
|
341
|
+
[value]="applied(order) || ''"
|
|
342
|
+
placeholder="0.00"
|
|
343
|
+
[attr.aria-label]="'Amount to apply to ' + order.OrderNumber"
|
|
344
|
+
(change)="setAllocation(order, $any($event.target).value)">
|
|
345
|
+
</td>
|
|
346
|
+
<td class="num" [class.mj-money--credit]="leaves(order) < 0">
|
|
347
|
+
{{ leaves(order) === 0 ? 'settled' : formatLeaves(order) }}
|
|
348
|
+
@if (leaves(order) < 0) {
|
|
349
|
+
<div class="secondary">credit</div>
|
|
350
|
+
}
|
|
351
|
+
</td>
|
|
352
|
+
</tr>
|
|
353
|
+
} @empty {
|
|
354
|
+
<tr>
|
|
355
|
+
<td colspan="7">
|
|
356
|
+
<div class="mj-empty mjo-ag__empty">
|
|
357
|
+
<i class="fa-solid fa-check" aria-hidden="true"></i>
|
|
358
|
+
<div class="t">Nothing open</div>
|
|
359
|
+
<div class="small">
|
|
360
|
+
This customer owes nothing. Cash taken now becomes credit on whichever
|
|
361
|
+
order it is applied to.
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</td>
|
|
365
|
+
</tr>
|
|
366
|
+
}
|
|
367
|
+
</tbody>
|
|
368
|
+
</table>
|
|
369
|
+
|
|
370
|
+
<!-- The centre of the screen. Must reach zero to capture. -->
|
|
371
|
+
<div
|
|
372
|
+
class="mjo-ag__unallocated"
|
|
373
|
+
[class.is-zero]="Unallocated === 0"
|
|
374
|
+
[class.is-over]="Unallocated < 0"
|
|
375
|
+
role="status"
|
|
376
|
+
aria-live="polite">
|
|
377
|
+
<div>
|
|
378
|
+
<div class="sec-label mjo-ag__unallocated-label">Unallocated</div>
|
|
379
|
+
<div class="small muted">{{ unallocatedNote }}</div>
|
|
380
|
+
</div>
|
|
381
|
+
<span class="spacer mjo-ag__unallocated-value">{{ Unallocated | mjoMoney }}</span>
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
384
|
+
|
|
385
|
+
@if (overAppliedOrders.length) {
|
|
386
|
+
<mj-alert Variant="success" Icon="fa-solid fa-piggy-bank" class="mjo-ag__effect">
|
|
387
|
+
<strong>This creates account credit.</strong>
|
|
388
|
+
@for (order of overAppliedOrders; track order.ID) {
|
|
389
|
+
{{ order.OrderNumber }} goes to {{ formatLeaves(order) }} —
|
|
390
|
+
{{ creditAmount(order) }} of spendable credit.
|
|
391
|
+
}
|
|
392
|
+
<div class="small mjo-ag__effect-note">
|
|
393
|
+
Legitimate and common. No separate credit record is created; the negative balance
|
|
394
|
+
<b>is</b> the credit.
|
|
395
|
+
</div>
|
|
396
|
+
</mj-alert>
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
@if (companiesInvolved.length > 1) {
|
|
400
|
+
<mj-alert Variant="warning" Icon="fa-solid fa-building-columns" class="mjo-ag__effect">
|
|
401
|
+
<strong>This allocation crosses companies.</strong>
|
|
402
|
+
Cash landed with one entity but settles receivables owned by
|
|
403
|
+
{{ companiesInvolved.join(' and ') }}.
|
|
404
|
+
<div class="small mjo-ag__effect-note">
|
|
405
|
+
The intercompany legs book <b>here, at allocation</b> — not at capture. A capture only
|
|
406
|
+
says how much cash arrived; only an allocation says whose revenue it settles.
|
|
407
|
+
</div>
|
|
408
|
+
</mj-alert>
|
|
409
|
+
}
|
|
410
|
+
`, styles: ["\n .mjo-ag__order { width: 112px; }\n .mjo-ag__due { width: 100px; }\n .mjo-ag__co { width: 96px; }\n .mjo-ag__bal { width: 118px; }\n .mjo-ag__apply { width: 132px; }\n .mjo-ag__leaves { width: 124px; }\n .mjo-ag__input { width: 110px; }\n .mjo-ag__late {\n color: var(--mj-status-error-text);\n font-weight: var(--mj-font-semibold);\n }\n .mjo-ag__empty { padding: var(--mj-space-6); }\n\n .mjo-ag__unallocated {\n position: sticky;\n bottom: 0;\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n padding: var(--mj-space-3) var(--mj-space-4);\n border-top: 2px solid var(--mj-border-strong);\n background: var(--mj-bg-surface);\n }\n .mjo-ag__unallocated-label { margin: 0; }\n .mjo-ag__unallocated-value {\n font-size: 20px;\n font-weight: var(--mj-font-bold);\n font-variant-numeric: tabular-nums;\n }\n .mjo-ag__unallocated.is-zero {\n background: var(--mj-status-success-bg);\n border-top-color: var(--mj-status-success);\n }\n .mjo-ag__unallocated.is-zero .mjo-ag__unallocated-value {\n color: var(--mj-status-success-text);\n }\n .mjo-ag__unallocated.is-over {\n background: var(--mj-status-error-bg);\n border-top-color: var(--mj-status-error);\n }\n .mjo-ag__unallocated.is-over .mjo-ag__unallocated-value {\n color: var(--mj-status-error-text);\n }\n\n .mjo-ag__effect { margin-top: var(--mj-space-3); }\n .mjo-ag__effect-note { margin-top: 4px; }\n\n @media (max-width: 760px) {\n .mjo-ag__co,\n .mjo-ag__due {\n display: none;\n }\n }\n "] }]
|
|
411
|
+
}], null, { Title: [{
|
|
412
|
+
type: Input
|
|
413
|
+
}], Orders: [{
|
|
414
|
+
type: Input
|
|
415
|
+
}], Amount: [{
|
|
416
|
+
type: Input
|
|
417
|
+
}], Allocations: [{
|
|
418
|
+
type: Input
|
|
419
|
+
}], AllocationsChanged: [{
|
|
420
|
+
type: Output
|
|
421
|
+
}], AutoApplyRequested: [{
|
|
422
|
+
type: Output
|
|
423
|
+
}] }); })();
|
|
424
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJOAllocationGridComponent, { className: "MJOAllocationGridComponent", filePath: "lib/panels/allocation-grid.component.ts", lineNumber: 233 }); })();
|
|
425
|
+
//# sourceMappingURL=allocation-grid.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocation-grid.component.js","sourceRoot":"","sources":["../../../src/lib/panels/allocation-grid.component.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Allocation arithmetic — pure, no Angular.
|
|
3
|
+
*
|
|
4
|
+
* The rules the payment screen depends on. Separate from the component for the
|
|
5
|
+
* same reason the lifecycle rules are: they are the part that can be silently
|
|
6
|
+
* WRONG, and they should be checkable without a rendering environment.
|
|
7
|
+
*
|
|
8
|
+
* One idea runs through all of it: **a payment must equal what it settles.**
|
|
9
|
+
* There is no such thing as unapplied cash in this system — surplus becomes a
|
|
10
|
+
* negative balance on an order, and that negative balance IS the customer's
|
|
11
|
+
* credit. Every function here preserves that invariant.
|
|
12
|
+
*
|
|
13
|
+
* @module @mj-biz-apps/orders-ng
|
|
14
|
+
*/
|
|
15
|
+
/** The minimum an order must expose to take an allocation. */
|
|
16
|
+
export interface MJOAllocatableOrderLike {
|
|
17
|
+
ID: string;
|
|
18
|
+
Balance: number;
|
|
19
|
+
/** Either representation: an entity carries a `Date`, a wire row an ISO string. */
|
|
20
|
+
DueDate?: Date | string | null;
|
|
21
|
+
}
|
|
22
|
+
/** Order ID → amount applied. */
|
|
23
|
+
export type MJOAllocationMapLike = Record<string, number>;
|
|
24
|
+
/**
|
|
25
|
+
* Total applied.
|
|
26
|
+
*
|
|
27
|
+
* Rounds the SUM rather than trusting float addition: thirty allocations of
|
|
28
|
+
* 33.33 add up to 999.9000000000001, and an unallocated figure that never quite
|
|
29
|
+
* reaches zero is a payment that can never be captured.
|
|
30
|
+
*/
|
|
31
|
+
export declare function SumAllocations(allocations: MJOAllocationMapLike): number;
|
|
32
|
+
/** What is left to apply. Zero means capturable; negative means over-applied. */
|
|
33
|
+
export declare function UnallocatedRemainder(amount: number, allocations: MJOAllocationMapLike): number;
|
|
34
|
+
/**
|
|
35
|
+
* Spread a payment across open orders, oldest first.
|
|
36
|
+
*
|
|
37
|
+
* Two decisions worth stating:
|
|
38
|
+
*
|
|
39
|
+
* - **An order with no due date sorts oldest.** It has been open longest without
|
|
40
|
+
* ever being billed on terms, so it is the one most likely to be forgotten.
|
|
41
|
+
* - **Surplus lands on the LAST order rather than being left unapplied.** Unapplied
|
|
42
|
+
* cash is not a concept here; the surplus drives that order's balance negative,
|
|
43
|
+
* which is precisely how a customer credit is represented. Leaving it unapplied
|
|
44
|
+
* would produce a payment that cannot capture.
|
|
45
|
+
*
|
|
46
|
+
* @param amount What was received.
|
|
47
|
+
* @param orders Open orders. Only positive balances are considered.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* AllocateOldestFirst(500, [
|
|
52
|
+
* { ID: 'a', Balance: 300, DueDate: '2026-01-01' },
|
|
53
|
+
* { ID: 'b', Balance: 400, DueDate: '2026-06-01' },
|
|
54
|
+
* ]);
|
|
55
|
+
* // { a: 300, b: 200 }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function AllocateOldestFirst(amount: number, orders: MJOAllocatableOrderLike[]): MJOAllocationMapLike;
|
|
59
|
+
//# sourceMappingURL=allocation-math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocation-math.d.ts","sourceRoot":"","sources":["../../../src/lib/panels/allocation-math.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,8DAA8D;AAC9D,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,iCAAiC;AACjC,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAsB1D;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,oBAAoB,GAAG,MAAM,CAExE;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB,GAAG,MAAM,CAE9F;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mBAAmB,CAC/B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,uBAAuB,EAAE,GAClC,oBAAoB,CA4BtB"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Allocation arithmetic — pure, no Angular.
|
|
3
|
+
*
|
|
4
|
+
* The rules the payment screen depends on. Separate from the component for the
|
|
5
|
+
* same reason the lifecycle rules are: they are the part that can be silently
|
|
6
|
+
* WRONG, and they should be checkable without a rendering environment.
|
|
7
|
+
*
|
|
8
|
+
* One idea runs through all of it: **a payment must equal what it settles.**
|
|
9
|
+
* There is no such thing as unapplied cash in this system — surplus becomes a
|
|
10
|
+
* negative balance on an order, and that negative balance IS the customer's
|
|
11
|
+
* credit. Every function here preserves that invariant.
|
|
12
|
+
*
|
|
13
|
+
* @module @mj-biz-apps/orders-ng
|
|
14
|
+
*/
|
|
15
|
+
/** Round to cents. Every function here rounds, so remainders reach exactly zero. */
|
|
16
|
+
function cents(value) {
|
|
17
|
+
return Math.round((value + Number.EPSILON) * 100) / 100;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A due date as a sortable number. **No due date sorts FIRST** — open longest, most easily
|
|
21
|
+
* forgotten — which is why the fallback is `-Infinity` rather than 0 or `Infinity`.
|
|
22
|
+
*
|
|
23
|
+
* This compared `(a.DueDate ?? '').localeCompare(...)`, which only ordered correctly while every
|
|
24
|
+
* value was an ISO string in the same format. A `Date` stringifies to `Mon Aug 01 2026 …`, so a
|
|
25
|
+
* mixed list sorted alphabetically by weekday name — and the oldest debt quietly stopped being paid
|
|
26
|
+
* first, with every allocation still summing to the payment.
|
|
27
|
+
*/
|
|
28
|
+
function dueMillis(value) {
|
|
29
|
+
if (!value)
|
|
30
|
+
return -Infinity;
|
|
31
|
+
const time = value instanceof Date ? value.getTime() : new Date(String(value)).getTime();
|
|
32
|
+
return Number.isNaN(time) ? -Infinity : time;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Total applied.
|
|
36
|
+
*
|
|
37
|
+
* Rounds the SUM rather than trusting float addition: thirty allocations of
|
|
38
|
+
* 33.33 add up to 999.9000000000001, and an unallocated figure that never quite
|
|
39
|
+
* reaches zero is a payment that can never be captured.
|
|
40
|
+
*/
|
|
41
|
+
export function SumAllocations(allocations) {
|
|
42
|
+
return cents(Object.values(allocations).reduce((sum, value) => sum + value, 0));
|
|
43
|
+
}
|
|
44
|
+
/** What is left to apply. Zero means capturable; negative means over-applied. */
|
|
45
|
+
export function UnallocatedRemainder(amount, allocations) {
|
|
46
|
+
return cents(amount - SumAllocations(allocations));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Spread a payment across open orders, oldest first.
|
|
50
|
+
*
|
|
51
|
+
* Two decisions worth stating:
|
|
52
|
+
*
|
|
53
|
+
* - **An order with no due date sorts oldest.** It has been open longest without
|
|
54
|
+
* ever being billed on terms, so it is the one most likely to be forgotten.
|
|
55
|
+
* - **Surplus lands on the LAST order rather than being left unapplied.** Unapplied
|
|
56
|
+
* cash is not a concept here; the surplus drives that order's balance negative,
|
|
57
|
+
* which is precisely how a customer credit is represented. Leaving it unapplied
|
|
58
|
+
* would produce a payment that cannot capture.
|
|
59
|
+
*
|
|
60
|
+
* @param amount What was received.
|
|
61
|
+
* @param orders Open orders. Only positive balances are considered.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* AllocateOldestFirst(500, [
|
|
66
|
+
* { ID: 'a', Balance: 300, DueDate: '2026-01-01' },
|
|
67
|
+
* { ID: 'b', Balance: 400, DueDate: '2026-06-01' },
|
|
68
|
+
* ]);
|
|
69
|
+
* // { a: 300, b: 200 }
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export function AllocateOldestFirst(amount, orders) {
|
|
73
|
+
const allocations = {};
|
|
74
|
+
if (amount <= 0)
|
|
75
|
+
return allocations;
|
|
76
|
+
const owing = orders
|
|
77
|
+
.filter((order) => order.Balance > 0)
|
|
78
|
+
.slice()
|
|
79
|
+
.sort((a, b) => dueMillis(a.DueDate) - dueMillis(b.DueDate));
|
|
80
|
+
if (!owing.length)
|
|
81
|
+
return allocations;
|
|
82
|
+
let remaining = cents(amount);
|
|
83
|
+
for (const order of owing) {
|
|
84
|
+
if (remaining <= 0)
|
|
85
|
+
break;
|
|
86
|
+
const take = cents(Math.min(remaining, order.Balance));
|
|
87
|
+
allocations[order.ID] = take;
|
|
88
|
+
remaining = cents(remaining - take);
|
|
89
|
+
}
|
|
90
|
+
// Everything settled and cash still in hand: park it on the last order so the
|
|
91
|
+
// payment balances. That turns the surplus into credit rather than into an
|
|
92
|
+
// uncapturable payment.
|
|
93
|
+
if (remaining > 0) {
|
|
94
|
+
const last = owing[owing.length - 1];
|
|
95
|
+
allocations[last.ID] = cents((allocations[last.ID] ?? 0) + remaining);
|
|
96
|
+
}
|
|
97
|
+
return allocations;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=allocation-math.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allocation-math.js","sourceRoot":"","sources":["../../../src/lib/panels/allocation-math.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAaH,oFAAoF;AACpF,SAAS,KAAK,CAAC,KAAa;IACxB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AAC5D,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,SAAS,CAAC,KAAuC;IACtD,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,QAAQ,CAAC;IAC7B,MAAM,IAAI,GAAG,KAAK,YAAY,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACzF,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;AACjD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,WAAiC;IAC5D,OAAO,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;AACpF,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,oBAAoB,CAAC,MAAc,EAAE,WAAiC;IAClF,OAAO,KAAK,CAAC,MAAM,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,mBAAmB,CAC/B,MAAc,EACd,MAAiC;IAEjC,MAAM,WAAW,GAAyB,EAAE,CAAC;IAC7C,IAAI,MAAM,IAAI,CAAC;QAAE,OAAO,WAAW,CAAC;IAEpC,MAAM,KAAK,GAAG,MAAM;SACf,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;SACpC,KAAK,EAAE;SACP,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAEjE,IAAI,CAAC,KAAK,CAAC,MAAM;QAAE,OAAO,WAAW,CAAC;IAEtC,IAAI,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;QACxB,IAAI,SAAS,IAAI,CAAC;YAAE,MAAM;QAC1B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACvD,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;QAC7B,SAAS,GAAG,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,8EAA8E;IAC9E,2EAA2E;IAC3E,wBAAwB;IACxB,IAAI,SAAS,GAAG,CAAC,EAAE,CAAC;QAChB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACrC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,WAAW,CAAC;AACvB,CAAC"}
|