@solvimon/solvimon-web 0.1.0-alpha.21 → 0.1.0-alpha.22
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/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Co3XAxaY.js} +1 -1
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DFv-awxb.mjs} +6 -6
- package/dist/{Avatar.vue.es-CJw5z7Uu.js → Avatar.vue.es-D42J_izE.js} +1 -1
- package/dist/{Avatar.vue.es-ChcLSNaN.mjs → Avatar.vue.es-DNJ-jexx.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js → BillingInformation.vue_vue_type_script_setup_true_lang-BEVkWJXT.js} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-D1uVidXk.mjs} +4 -4
- package/dist/{Button.vue.es-VQCd3V3C.mjs → Button.vue.es-Dz-2L8dJ.mjs} +1 -1
- package/dist/{Button.vue.es-BWl37nzm.js → Button.vue.es-M_jXZda4.js} +1 -1
- package/dist/{Checkout.entry.ce-DRHqEFd7.mjs → Checkout.entry.ce-B5-0AM67.mjs} +1298 -1225
- package/dist/Checkout.entry.ce-C52gkrNZ.js +1 -0
- package/dist/{Chip.vue.es-CXG8o1Qf.mjs → Chip.vue.es-DMK9C78d.mjs} +2 -2
- package/dist/{Chip.vue.es-DUgjuRWm.js → Chip.vue.es-G8doKsZb.js} +1 -1
- package/dist/{ContextMenu.vue.es-BllxeDTt.js → ContextMenu.vue.es-B3Rz6Ojk.js} +1 -1
- package/dist/{ContextMenu.vue.es-C6TKlSXs.mjs → ContextMenu.vue.es-CzkkNoJG.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-CMCZ-lIM.js → CustomerBillingInformation.vue.es-BmtU9Pk0.js} +1 -1
- package/dist/{CustomerBillingInformation.vue.es-CKQH_ds0.mjs → CustomerBillingInformation.vue.es-Db6bN2RZ.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BGHaTx1A.js} +1 -1
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-fESZVyPe.mjs} +5 -5
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Cnlbp0om.js +1 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DdMHG1_Y.mjs} +485 -501
- package/dist/{DividerText.vue.es-BBdydUy_.js → DividerText.vue.es-D-QxT2OD.js} +1 -1
- package/dist/{DividerText.vue.es-Bomiy4if.mjs → DividerText.vue.es-IK2fns6f.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CM_8Asmw.js} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-lhJnqrrh.mjs} +4 -4
- package/dist/{ErrorNotification.vue.es-C6ngWAVU.mjs → ErrorNotification.vue.es-BGckEwHf.mjs} +2 -2
- package/dist/{ErrorNotification.vue.es-0ZC_DozN.js → ErrorNotification.vue.es-Cd2UKPAz.js} +1 -1
- package/dist/{IconButton.vue.es-DGLIdHkR.js → IconButton.vue.es-BTAkuFsm.js} +1 -1
- package/dist/{IconButton.vue.es-DAR7e8NA.mjs → IconButton.vue.es-C4dQEQAc.mjs} +2 -2
- package/dist/{IconTitle.vue.es-Bbusc4wK.mjs → IconTitle.vue.es-BmX68uJx.mjs} +3 -3
- package/dist/{IconTitle.vue.es-D-q6w2E-.js → IconTitle.vue.es-CmR2xoeu.js} +1 -1
- package/dist/{Input.vue.es-AY1c0Rui.mjs → Input.vue.es-BGPELaZU.mjs} +2 -2
- package/dist/{Input.vue.es-BN95nPBw.js → Input.vue.es-CTOrmrcB.js} +1 -1
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CMEOOuSU.mjs} +2 -2
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-bheNAKzK.js} +1 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Xo9BR6AD.js +1 -0
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-avhwysNq.mjs} +3 -3
- package/dist/{InvoiceSummary.vue.es-Bs5c2Ovx.mjs → InvoiceSummary.vue.es-BWLiwlNs.mjs} +692 -705
- package/dist/InvoiceSummary.vue.es-hpG8Tq1D.js +1 -0
- package/dist/{Modal.vue.es-Chi6_MH_.js → Modal.vue.es-BD4vUaOQ.js} +1 -1
- package/dist/{Modal.vue.es-DSkC4eMv.mjs → Modal.vue.es-B_G8NQS2.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BnilyGBO.mjs} +3 -3
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-CSv-Luvz.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DIJbzWMV.js} +1 -1
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DuorCFo9.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-budeR7ep.mjs → PaymentHistoryBlock-ComJzB3H.mjs} +1 -1
- package/dist/{PaymentHistoryBlock-DGJ_PiVq.js → PaymentHistoryBlock-DSHW_eW1.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DUN0Hf2v.js} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-hjtksV2D.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-Crrhar96.mjs → PaymentIntegrationForm-CH5B6BY5.mjs} +1 -1
- package/dist/{PaymentIntegrationForm-DqqGcEP1.js → PaymentIntegrationForm-CwfCLnKt.js} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BqYk4_T9.mjs} +3 -3
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DzSQC951.js} +1 -1
- package/dist/{PaymentIntegrationFormAdyen-DM-xMcm0.mjs → PaymentIntegrationFormAdyen-DfN7cPYZ.mjs} +5 -5
- package/dist/{PaymentIntegrationFormAdyen-DronjwO3.js → PaymentIntegrationFormAdyen-Q48aDXR7.js} +1 -1
- package/dist/{PaymentIntegrationFormStripe-ybM6wirp.js → PaymentIntegrationFormStripe-BSEqarl7.js} +1 -1
- package/dist/{PaymentIntegrationFormStripe-yBm4KnpV.mjs → PaymentIntegrationFormStripe-CBsXDuhy.mjs} +4 -4
- package/dist/{PaymentMethod.vue.es-Ctw9Es1g.js → PaymentMethod.vue.es-D18g-QB4.js} +1 -1
- package/dist/{PaymentMethod.vue.es-BdMcKq8_.mjs → PaymentMethod.vue.es-DkQdPXfk.mjs} +3 -3
- package/dist/{PaymentMethodForm-C1bIGX10.mjs → PaymentMethodForm-CpIZKfPH.mjs} +1 -1
- package/dist/{PaymentMethodForm-BQ5TVHlS.js → PaymentMethodForm-DK8ntFA0.js} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-C1tGJsay.mjs} +5 -5
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D7fDguwa.js} +1 -1
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-C6BcIkEV.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-H3vrPllf.js} +1 -1
- package/dist/PlanCustomizationEditor-0zCXN-cv.mjs +877 -0
- package/dist/PlanCustomizationEditor-XpofGULc.js +1 -0
- package/dist/{PricingGroupRangeInput.vue.es-Bnb-ARie.mjs → PricingGroupRangeInput.vue.es-8_5nfZDI.mjs} +4 -4
- package/dist/{PricingGroupRangeInput.vue.es-D82XvoC_.js → PricingGroupRangeInput.vue.es-QnpfHxaY.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CGJhKKNL.js} +1 -1
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-t6h1j6WD.mjs} +5 -5
- package/dist/{RadioGroupExtended.vue.es-WDbo_yj1.mjs → RadioGroupExtended.vue.es-C92xlCFQ.mjs} +3 -3
- package/dist/{RadioGroupExtended.vue.es-B1YtLNKG.js → RadioGroupExtended.vue.es-Cb1iD73r.js} +1 -1
- package/dist/{Section.vue.es-DuK52y67.js → Section.vue.es-Btff-cLY.js} +1 -1
- package/dist/{Section.vue.es-By1JltGi.mjs → Section.vue.es-DQ5H7mqW.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BfvX14E3.js} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DKsunuGT.mjs} +6 -6
- package/dist/{SubscriptionSchedules-DDCjVEbG.mjs → SubscriptionSchedules-Dc0rUnnf.mjs} +1 -1
- package/dist/{SubscriptionSchedules-DEjIERyF.js → SubscriptionSchedules-pzNsego6.js} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Brs9qDs5.mjs} +1655 -1620
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-nmVRb6hj.js +1 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-C1mkIPMr.mjs} +3 -3
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-s5_uhyuB.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-CFmCJK8M.js} +1 -1
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DSoNs7Xx.mjs} +7 -7
- package/dist/{TooltipParagraph.vue.es-sTgWAgcd.js → TooltipParagraph.vue.es-BaqCDjl8.js} +1 -1
- package/dist/{TooltipParagraph.vue.es-DYu2ReL7.mjs → TooltipParagraph.vue.es-CIedcXGT.mjs} +1 -1
- package/dist/{TrialChip.vue.es-Cl-9_pdr.js → TrialChip.vue.es-BzNI94k0.js} +1 -1
- package/dist/{TrialChip.vue.es-DX53r0ku.mjs → TrialChip.vue.es-DkBuMNr_.mjs} +2 -2
- package/dist/{cn.es-DjnGlmqV.mjs → cn.es-BGqYNPM3.mjs} +2 -2
- package/dist/{cn.es-CNvIP217.js → cn.es-CvmLj7KH.js} +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +6 -6
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.cjs +1 -1
- package/dist/components/Invoice/Invoice.mjs +9 -9
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.mjs +3 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-Com2NiGU.mjs → customElements-CSE7dwUr.mjs} +312 -282
- package/dist/{customElements-Bt8PbjIn.js → customElements-Vox1PB6G.js} +42 -18
- package/dist/{customer-CKgMJEgv.mjs → customer-5krPxZ8i.mjs} +1 -1
- package/dist/{customer-Q4JGfVfq.js → customer-Dsq-Moea.js} +1 -1
- package/dist/{de-DE-DqLD4IX2.js → de-DE-BSlbAnPE.js} +1 -1
- package/dist/{de-DE-Ds_yJLS3.js → de-DE-C3DzP1nj.js} +1 -1
- package/dist/{de-DE-DBO5f-Eu.mjs → de-DE-DXsG-vXA.mjs} +13 -8
- package/dist/{de-DE-CVCmzlNH.mjs → de-DE-DsFtpLsx.mjs} +2 -0
- package/dist/{en-US-CvFmmI_O.js → en-US-9xdcz3T5.js} +1 -1
- package/dist/{en-US-3UmnS23B.mjs → en-US-C939IZ5i.mjs} +13 -8
- package/dist/{en-US-DVR9O7b_.mjs → en-US-DvkvbV0p.mjs} +2 -0
- package/dist/{en-US-C51ILrVv.js → en-US-X_pSFsNm.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{invoices-CV9iAUHf.mjs → invoices-DRgfpkJ6.mjs} +8 -5
- package/dist/invoices-xOV2YaEV.js +1 -0
- package/dist/{it-IT-CxBRisRm.mjs → it-IT-BxpwB3oJ.mjs} +8 -3
- package/dist/it-IT-DT3rfjOY.js +1 -0
- package/dist/{it-IT-CDMnnFKZ.mjs → it-IT-TE7oqvXa.mjs} +2 -0
- package/dist/{it-IT-Dxw59eR_.js → it-IT-YBtHAao1.js} +1 -1
- package/dist/{nl-NL-Btbfd9p2.js → nl-NL-C8wnyKju.js} +1 -1
- package/dist/nl-NL-DfkhOJKc.js +1 -0
- package/dist/{nl-NL-o3UvtSNg.mjs → nl-NL-Di3-JArV.mjs} +2 -0
- package/dist/{nl-NL-BWGkVweu.mjs → nl-NL-na2I4aiP.mjs} +8 -3
- package/dist/{paymentMethods-ChWAwDSF.js → paymentMethods-CRDIw9lz.js} +1 -1
- package/dist/{paymentMethods-BuwoJ1y9.mjs → paymentMethods-PmkHYomw.mjs} +1 -1
- package/dist/{payments-C_cMXQzE.mjs → payments-Dvqh6CGW.mjs} +1 -1
- package/dist/{payments-DGckugN0.js → payments-jAgXhdp_.js} +1 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +1 -0
- package/dist/{pricingItemConfigs.es-DMf1e6y7.mjs → pricingItemConfigs.es-ORxsk_YS.mjs} +23 -22
- package/dist/pricingPlanSchedule-BM8vsKkV.js +1 -0
- package/dist/pricingPlanSchedule-BPrS2WRd.mjs +132 -0
- package/dist/screens/Checkout/Checkout.cjs +1 -1
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +11 -11
- package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
- package/dist/screens/PayInvoice/PayInvoice.mjs +13 -13
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +20 -20
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +19 -19
- package/dist/{subscription-CvfAEJeP.mjs → subscription-CrVOr5MF.mjs} +1 -1
- package/dist/{subscription-9GORG-Gt.js → subscription-ZA62t4E9.js} +1 -1
- package/dist/{subscriptions-B5VqRayX.mjs → subscriptions-XDyI2Cqm.mjs} +1 -1
- package/dist/{subscriptions-X0Ciw8z3.js → subscriptions-fJcj88X9.js} +1 -1
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +1 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +1 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +1 -1
- package/dist/{useActionDispatchProvider-e2lQXTid.mjs → useActionDispatchProvider-B8-oycQk.mjs} +1 -1
- package/dist/{useActionDispatchProvider-B54GYEY7.js → useActionDispatchProvider-CNAuaHdm.js} +1 -1
- package/dist/{useCustomer-CC9zxV6c.mjs → useCustomer-CP8eWUZV.mjs} +1 -1
- package/dist/{useCustomer-BJwJ9BkJ.js → useCustomer-DSx-wN-6.js} +1 -1
- package/dist/useCustomerFormLabels-DW6jnDYH.mjs +968 -0
- package/dist/useCustomerFormLabels-TVTgy0MT.js +1 -0
- package/dist/{useExperimentalFeature-B0IFn3Uw.mjs → useExperimentalFeature-BvE_EOX-.mjs} +1 -1
- package/dist/{useExperimentalFeature-8Mzpj5wc.js → useExperimentalFeature-CC-DrIcL.js} +1 -1
- package/dist/{useInvoiceData-Bblwdl0f.js → useInvoiceData-CRRPdXc6.js} +1 -1
- package/dist/{useInvoiceData-6mHUZC9a.mjs → useInvoiceData-D8ds05CX.mjs} +2 -2
- package/dist/{useInvoicesList-_U1-tn9_.js → useInvoicesList-DIfQcvER.js} +1 -1
- package/dist/{useInvoicesList-B5H5JfvY.mjs → useInvoicesList-SJU5YWBQ.mjs} +7 -7
- package/dist/{useLoadInitialData-CezlvhBV.js → useLoadInitialData-DsabgMLZ.js} +1 -1
- package/dist/{useLoadInitialData-ux_wpNiR.mjs → useLoadInitialData-MUljS38K.mjs} +1 -1
- package/dist/{usePaymentMethodAvailability-DRwrBdto.js → usePaymentMethodAvailability-Bt7P9InI.js} +1 -1
- package/dist/{usePaymentMethodAvailability-CkR4TwoV.mjs → usePaymentMethodAvailability-D0NUanyF.mjs} +4 -4
- package/dist/{usePaymentMethodOptions-BfnLBZOo.mjs → usePaymentMethodOptions-B7JYkGsw.mjs} +1 -1
- package/dist/{usePaymentMethodOptions-B6GIM9q4.js → usePaymentMethodOptions-cT1o-BA1.js} +1 -1
- package/dist/{usePaymentMethods-C3QfLSrP.mjs → usePaymentMethods-CpzqXQUT.mjs} +1 -1
- package/dist/{usePaymentMethods-GFmQRp0X.js → usePaymentMethods-DNVw2eVg.js} +1 -1
- package/dist/{usePayments-SQF_V7oL.js → usePayments-D9Eo-uBk.js} +1 -1
- package/dist/{usePayments-BkwGyZT0.mjs → usePayments-Gx9kBvNB.mjs} +6 -6
- package/dist/{usePortal-DDG9b6FI.mjs → usePortal-3VCZwSUE.mjs} +1 -1
- package/dist/{usePortal-BdM7hDge.js → usePortal-DsebXdhx.js} +1 -1
- package/dist/{useSubscription-BJJYHYgr.mjs → useSubscription-DnL1wVh1.mjs} +1 -1
- package/dist/{useSubscription-Q4C2DPhw.js → useSubscription-K_gP9TeX.js} +1 -1
- package/dist/{useTimePeriod.es-pepm2TpV.js → useTimePeriod.es-CmltiTE-.js} +1 -1
- package/dist/{useTimePeriod.es-9tZvAhyb.mjs → useTimePeriod.es-DMtKzcoB.mjs} +1 -1
- package/dist/wallets.es-CNIMW5ay.js +1 -0
- package/dist/wallets.es-eH2C2ygn.mjs +102 -0
- package/package.json +1 -1
- package/dist/Checkout.entry.ce-BTVuGyNq.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +0 -1
- package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +0 -1
- package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +0 -769
- package/dist/PlanCustomizationEditor-CiZnVCM6.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +0 -1
- package/dist/invoices-CvpL4rv5.js +0 -1
- package/dist/it-IT-CFEfSpPH.js +0 -1
- package/dist/nl-NL-jtVgF3jx.js +0 -1
- package/dist/pricingItemConfigs.es-DlybwIh1.js +0 -1
- package/dist/pricingPlanSchedule-COfmWv_o.js +0 -1
- package/dist/pricingPlanSchedule-J1nb9pCu.mjs +0 -129
- package/dist/useCustomerFormLabels-72Pxw8X5.js +0 -1
- package/dist/useCustomerFormLabels-V2YuYMLU.mjs +0 -930
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { ref as re, openBlock as t, createElementBlock as o, renderSlot as M, defineComponent as
|
|
2
|
-
import { u as H, _ as
|
|
1
|
+
import { ref as re, openBlock as t, createElementBlock as o, renderSlot as M, defineComponent as S, normalizeClass as N, Fragment as p, renderList as V, createVNode as a, withCtx as i, createElementVNode as _, createTextVNode as d, toDisplayString as r, createBlock as h, unref as l, createCommentVNode as y, createSlots as Ie, withKeys as j, normalizeProps as ve, guardReactiveProps as fe, computed as B, mergeProps as Q, isRef as Ae } from "vue";
|
|
2
|
+
import { u as H, _ as Pe, k as pe } from "./customElements-CSE7dwUr.mjs";
|
|
3
3
|
import { _ as $ } from "./Amount.vue.es-DPqHB8Xd.mjs";
|
|
4
|
-
import { i as
|
|
5
|
-
import { a as G, _ as
|
|
4
|
+
import { i as Ue } from "./useService-Bh47bllz.mjs";
|
|
5
|
+
import { a as G, _ as Le } from "./Button.vue.es-Dz-2L8dJ.mjs";
|
|
6
6
|
import { _ as Se } from "./floating-ui.vue.es-CYt0fSY7.mjs";
|
|
7
7
|
import { a as $e } from "./customer.es-B5ppZf0j.mjs";
|
|
8
|
-
import { M as Me, f as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as Re } from "./Chip.vue.es-
|
|
11
|
-
import { g as
|
|
12
|
-
import { _ as de, T as ue, a as ce } from "./TooltipParagraph.vue.es-
|
|
8
|
+
import { M as Me, f as we, a as De } from "./formatting.es-RclXHhKo.mjs";
|
|
9
|
+
import { _ as Ee, u as ge } from "./Comparators.vue.es-CwhX3rbx.mjs";
|
|
10
|
+
import { _ as Re } from "./Chip.vue.es-DMK9C78d.mjs";
|
|
11
|
+
import { g as be } from "./getComposedString.es-C__uhJpd.mjs";
|
|
12
|
+
import { _ as de, T as ue, a as ce } from "./TooltipParagraph.vue.es-CIedcXGT.mjs";
|
|
13
13
|
import { f as Fe } from "./index.es-CXkP_k3u.mjs";
|
|
14
|
-
import {
|
|
15
|
-
import { _ as
|
|
16
|
-
import {
|
|
14
|
+
import { g as Ve, a as We, f as ze } from "./wallets.es-eH2C2ygn.mjs";
|
|
15
|
+
import { _ as He } from "./DividerText.vue.es-IK2fns6f.mjs";
|
|
16
|
+
import { _ as Ge } from "./IconTitle.vue.es-BmX68uJx.mjs";
|
|
17
|
+
import { a as Xe } from "./ContextMenu.vue.es-CzkkNoJG.mjs";
|
|
17
18
|
const xe = (e = []) => {
|
|
18
19
|
const n = re(e);
|
|
19
|
-
return [n, (
|
|
20
|
-
typeof n.value.find((
|
|
20
|
+
return [n, (c) => {
|
|
21
|
+
typeof n.value.find((s) => s === c) == "number" ? n.value = n.value.filter((s) => s !== c) : n.value = [...n.value, c];
|
|
21
22
|
}];
|
|
22
|
-
}, qe = {},
|
|
23
|
-
function
|
|
24
|
-
return t(), o("table",
|
|
23
|
+
}, qe = {}, je = { class: "w-full table-fixed" };
|
|
24
|
+
function Ye(e, n) {
|
|
25
|
+
return t(), o("table", je, [
|
|
25
26
|
M(e.$slots, "default")
|
|
26
27
|
]);
|
|
27
28
|
}
|
|
28
|
-
const J = /* @__PURE__ */ Se(qe, [["render",
|
|
29
|
+
const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
|
|
29
30
|
__name: "InvoiceTableData",
|
|
30
31
|
props: {
|
|
31
32
|
number: { type: Boolean, default: !1 },
|
|
32
33
|
hasPadding: { type: Boolean, default: !0 }
|
|
33
34
|
},
|
|
34
35
|
setup(e) {
|
|
35
|
-
return (n,
|
|
36
|
-
class:
|
|
36
|
+
return (n, u) => (t(), o("td", {
|
|
37
|
+
class: N({
|
|
37
38
|
"text-right tabular-nums": e.number,
|
|
38
39
|
"py-2": e.hasPadding
|
|
39
40
|
})
|
|
@@ -41,23 +42,23 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
41
42
|
M(n.$slots, "default")
|
|
42
43
|
], 2));
|
|
43
44
|
}
|
|
44
|
-
}), w = /* @__PURE__ */
|
|
45
|
+
}), w = /* @__PURE__ */ S({
|
|
45
46
|
__name: "InvoiceTableHeader",
|
|
46
47
|
props: {
|
|
47
48
|
left: { type: Boolean, default: !1 },
|
|
48
49
|
right: { type: Boolean, default: !1 }
|
|
49
50
|
},
|
|
50
51
|
setup(e) {
|
|
51
|
-
return (n,
|
|
52
|
-
class:
|
|
52
|
+
return (n, u) => (t(), o("th", {
|
|
53
|
+
class: N(["border-b py-1.5 text-xs font-bold uppercase text-subtle", { "text-left": e.left, "text-right": e.right }])
|
|
53
54
|
}, [
|
|
54
55
|
M(n.$slots, "default")
|
|
55
56
|
], 2));
|
|
56
57
|
}
|
|
57
|
-
}),
|
|
58
|
+
}), Ke = "INVOICE_PERIOD", Qe = "INVOICE_PERIOD_SUBTOTAL", ie = "INVOICE_PERIOD_TOTAL", se = "SUMMARY_LINE_AMOUNT", Je = "SUMMARY_TOTAL_TAX", Ze = "SUMMARY_TOTAL_INCLUDING_TAX", et = "SUMMARY_TOTAL_EXCLUDING_TAX", tt = "SUMMARY_TOTAL_DISCOUNT", nt = "SUMMARY_AMOUNT_DUE", it = "DEDUCTION", at = "HAS_SUBLINES", ot = { class: "flex items-center" }, lt = {
|
|
58
59
|
key: 0,
|
|
59
60
|
class: "text-xs text-secondary"
|
|
60
|
-
},
|
|
61
|
+
}, rt = { class: "flex items-center" }, ye = /* @__PURE__ */ S({
|
|
61
62
|
__name: "InvoiceSubLineRow",
|
|
62
63
|
props: {
|
|
63
64
|
subLines: {},
|
|
@@ -70,77 +71,77 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
70
71
|
showTaxPerLineItem: { type: Boolean, default: !0 }
|
|
71
72
|
},
|
|
72
73
|
setup(e) {
|
|
73
|
-
const { formatMessage: n, formatNumber:
|
|
74
|
-
var
|
|
75
|
-
const
|
|
76
|
-
(x) => x.id ===
|
|
74
|
+
const { formatMessage: n, formatNumber: u } = H(), c = e, m = (v) => {
|
|
75
|
+
var b;
|
|
76
|
+
const f = (b = c.processingOnlyCustomers) == null ? void 0 : b.find(
|
|
77
|
+
(x) => x.id === v
|
|
77
78
|
);
|
|
78
|
-
return
|
|
79
|
+
return f ? $e(f) : n({
|
|
79
80
|
id: "generic.not_available",
|
|
80
81
|
defaultMessage: "N/A",
|
|
81
82
|
description: "Used in scenarios where no data is available to be displayed"
|
|
82
83
|
});
|
|
83
|
-
},
|
|
84
|
-
var
|
|
85
|
-
return ((
|
|
86
|
-
},
|
|
87
|
-
var
|
|
88
|
-
const x = (
|
|
84
|
+
}, s = (v) => {
|
|
85
|
+
var b;
|
|
86
|
+
return ((b = v.usage_based_conversion) == null ? void 0 : b.conditions) ?? v.conditions;
|
|
87
|
+
}, g = (v) => {
|
|
88
|
+
var b, f;
|
|
89
|
+
const x = (f = (b = v.details.conversion) == null ? void 0 : b.credits) == null ? void 0 : f.quantity;
|
|
89
90
|
return x === void 0 ? n({
|
|
90
91
|
id: "generic.not_available",
|
|
91
92
|
defaultMessage: "N/A",
|
|
92
93
|
description: "Used in scenarios where no data is available to be displayed"
|
|
93
|
-
}) :
|
|
94
|
+
}) : u(+x, { maximumFractionDigits: Me });
|
|
94
95
|
};
|
|
95
|
-
return (
|
|
96
|
-
|
|
96
|
+
return (v, b) => e.subLines && e.isOpen ? (t(!0), o(p, { key: 0 }, V(e.subLines, (f, x) => (t(), o(p, { key: x }, [
|
|
97
|
+
f.processing_only_customer_resource_id ? e.displayInvoiceSubLinesPerProcessingOnlyCustomer && e.processingOnlyCustomers ? (t(), o("tr", {
|
|
97
98
|
key: 1,
|
|
98
|
-
class:
|
|
99
|
+
class: N(["group", { "border-t": x > 0 }])
|
|
99
100
|
}, [
|
|
100
101
|
a(k, { class: "pl-4" }, {
|
|
101
102
|
default: i(() => [
|
|
102
|
-
_("div",
|
|
103
|
-
_("div", null, r(
|
|
103
|
+
_("div", rt, [
|
|
104
|
+
_("div", null, r(m(f.processing_only_customer_resource_id)), 1)
|
|
104
105
|
])
|
|
105
106
|
]),
|
|
106
107
|
_: 2
|
|
107
108
|
}, 1024),
|
|
108
|
-
M(
|
|
109
|
-
details:
|
|
109
|
+
M(v.$slots, "subline-content", {
|
|
110
|
+
details: f.details,
|
|
110
111
|
hideTaxDetails: !0
|
|
111
112
|
})
|
|
112
|
-
], 2)) :
|
|
113
|
+
], 2)) : y("", !0) : (t(), o("tr", {
|
|
113
114
|
key: 0,
|
|
114
|
-
class:
|
|
115
|
+
class: N(x > 0 ? "border-t" : "")
|
|
115
116
|
}, [
|
|
116
117
|
a(k, null, {
|
|
117
118
|
default: i(() => {
|
|
118
|
-
var O, I,
|
|
119
|
+
var O, I, P, U, L, E;
|
|
119
120
|
return [
|
|
120
|
-
_("div",
|
|
121
|
-
M(
|
|
121
|
+
_("div", ot, [
|
|
122
|
+
M(v.$slots, "invoice-line-prefix", {
|
|
122
123
|
lineOrder: e.lineOrder,
|
|
123
124
|
periodOrder: e.periodOrder,
|
|
124
125
|
groupOrder: e.groupOrder
|
|
125
126
|
}),
|
|
126
127
|
_("div", null, [
|
|
127
128
|
_("div", null, [
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
], 64)) :
|
|
131
|
-
|
|
129
|
+
f.description ? (t(), o(p, { key: 0 }, [
|
|
130
|
+
d(r(f.description), 1)
|
|
131
|
+
], 64)) : f.details.description ? (t(), o(p, { key: 1 }, [
|
|
132
|
+
d(r(f.details.description), 1)
|
|
132
133
|
], 64)) : (t(), o(p, { key: 2 }, [
|
|
133
|
-
|
|
134
|
+
d(" N/A ")
|
|
134
135
|
], 64))
|
|
135
136
|
]),
|
|
136
|
-
(O =
|
|
137
|
-
(
|
|
138
|
-
|
|
139
|
-
], 64)) : (
|
|
137
|
+
(O = s(f)) != null && O.name || (I = s(f)) != null && I.meter_properties ? (t(), o("div", lt, [
|
|
138
|
+
(P = s(f)) != null && P.name ? (t(), o(p, { key: 0 }, [
|
|
139
|
+
d(r((U = s(f)) == null ? void 0 : U.name), 1)
|
|
140
|
+
], 64)) : (L = s(f)) != null && L.meter_properties ? (t(), h(l(Ee), {
|
|
140
141
|
key: 1,
|
|
141
|
-
comparators: (E =
|
|
142
|
-
}, null, 8, ["comparators"])) :
|
|
143
|
-
])) :
|
|
142
|
+
comparators: (E = s(f)) == null ? void 0 : E.meter_properties
|
|
143
|
+
}, null, 8, ["comparators"])) : y("", !0)
|
|
144
|
+
])) : y("", !0)
|
|
144
145
|
])
|
|
145
146
|
])
|
|
146
147
|
];
|
|
@@ -152,7 +153,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
152
153
|
class: "text-right tabular-nums"
|
|
153
154
|
}, {
|
|
154
155
|
default: i(() => [
|
|
155
|
-
|
|
156
|
+
d(r(g(f)), 1)
|
|
156
157
|
]),
|
|
157
158
|
_: 2
|
|
158
159
|
}, 1024),
|
|
@@ -160,49 +161,49 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
160
161
|
default: i(() => {
|
|
161
162
|
var O, I;
|
|
162
163
|
return [
|
|
163
|
-
(O =
|
|
164
|
+
(O = f.details.band) != null && O.amount ? (t(), h($, {
|
|
164
165
|
key: 0,
|
|
165
|
-
value:
|
|
166
|
-
}, null, 8, ["value"])) : (I =
|
|
167
|
-
|
|
166
|
+
value: f.details.band.amount
|
|
167
|
+
}, null, 8, ["value"])) : (I = f.details.band) != null && I.percentage ? (t(), o(p, { key: 1 }, [
|
|
168
|
+
d(r(f.details.band.percentage) + "% ", 1)
|
|
168
169
|
], 64)) : (t(), o(p, { key: 2 }, [
|
|
169
|
-
|
|
170
|
+
d(" N/A ")
|
|
170
171
|
], 64))
|
|
171
172
|
];
|
|
172
173
|
}),
|
|
173
174
|
_: 2
|
|
174
175
|
}, 1024),
|
|
175
176
|
e.showTaxPerLineItem ? (t(), h(k, { key: 0 }, {
|
|
176
|
-
default: i(() => [...
|
|
177
|
-
|
|
177
|
+
default: i(() => [...b[0] || (b[0] = [
|
|
178
|
+
d(" ", -1)
|
|
178
179
|
])]),
|
|
179
180
|
_: 1
|
|
180
|
-
})) :
|
|
181
|
-
|
|
181
|
+
})) : y("", !0),
|
|
182
|
+
f.details.amount ? (t(), h(k, {
|
|
182
183
|
key: 1,
|
|
183
184
|
class: "text-right tabular-nums"
|
|
184
185
|
}, {
|
|
185
186
|
default: i(() => [
|
|
186
187
|
a($, {
|
|
187
|
-
value:
|
|
188
|
-
"data-testid": l(
|
|
188
|
+
value: f.details.amount,
|
|
189
|
+
"data-testid": l(Qe)
|
|
189
190
|
}, null, 8, ["value", "data-testid"])
|
|
190
191
|
]),
|
|
191
192
|
_: 2
|
|
192
|
-
}, 1024)) :
|
|
193
|
+
}, 1024)) : y("", !0)
|
|
193
194
|
], 2))
|
|
194
|
-
], 64))), 128)) :
|
|
195
|
+
], 64))), 128)) : y("", !0);
|
|
195
196
|
}
|
|
196
|
-
}),
|
|
197
|
+
}), st = { class: "flex gap-4" }, dt = { class: "flex items-center gap-2" }, le = /* @__PURE__ */ S({
|
|
197
198
|
__name: "PricingClauseChip",
|
|
198
199
|
props: {
|
|
199
200
|
iconName: {}
|
|
200
201
|
},
|
|
201
202
|
setup(e) {
|
|
202
|
-
return (n,
|
|
203
|
+
return (n, u) => (t(), o("div", st, [
|
|
203
204
|
a(Re, null, {
|
|
204
205
|
default: i(() => [
|
|
205
|
-
_("div",
|
|
206
|
+
_("div", dt, [
|
|
206
207
|
a(G, {
|
|
207
208
|
icon: e.iconName,
|
|
208
209
|
size: "xs"
|
|
@@ -217,7 +218,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
217
218
|
M(n.$slots, "chip-postfix")
|
|
218
219
|
]));
|
|
219
220
|
}
|
|
220
|
-
}),
|
|
221
|
+
}), ut = { class: "flex flex-col gap-2" }, Ce = /* @__PURE__ */ S({
|
|
221
222
|
__name: "InvoicePricingClauseChip",
|
|
222
223
|
props: {
|
|
223
224
|
clauseType: {},
|
|
@@ -226,7 +227,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
226
227
|
},
|
|
227
228
|
setup(e) {
|
|
228
229
|
const n = H();
|
|
229
|
-
return (
|
|
230
|
+
return (u, c) => (t(), o("div", ut, [
|
|
230
231
|
_("span", null, r(e.invoiceLineDescription), 1),
|
|
231
232
|
e.clauseType === "DISCOUNT" && e.priceDetailsBand ? (t(), h(l(le), {
|
|
232
233
|
key: 0,
|
|
@@ -235,14 +236,14 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
235
236
|
e.priceDetailsBand.amount ? {
|
|
236
237
|
name: "chip-content",
|
|
237
238
|
fn: i(() => [
|
|
238
|
-
|
|
239
|
+
d(r(l(n).$t(
|
|
239
240
|
{
|
|
240
241
|
id: "invoice.amount_discount",
|
|
241
242
|
defaultMessage: "{amount} discount",
|
|
242
243
|
description: "Represents a certain amount of discount, where {amount} is replaced with the amount"
|
|
243
244
|
},
|
|
244
245
|
{
|
|
245
|
-
amount: l(
|
|
246
|
+
amount: l(we)(e.priceDetailsBand.amount)
|
|
246
247
|
}
|
|
247
248
|
).toUpperCase()), 1)
|
|
248
249
|
]),
|
|
@@ -250,7 +251,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
250
251
|
} : e.priceDetailsBand.percentage ? {
|
|
251
252
|
name: "chip-content",
|
|
252
253
|
fn: i(() => [
|
|
253
|
-
|
|
254
|
+
d(r(l(n).$t(
|
|
254
255
|
{
|
|
255
256
|
id: "invoice.percentage_discount",
|
|
256
257
|
defaultMessage: "{percentage}% discount",
|
|
@@ -268,7 +269,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
268
269
|
"icon-name": "info"
|
|
269
270
|
}, {
|
|
270
271
|
"chip-content": i(() => [
|
|
271
|
-
|
|
272
|
+
d(r(l(n).$t({
|
|
272
273
|
id: "invoice.adjustment_chip_body",
|
|
273
274
|
defaultMessage: "Adjustment",
|
|
274
275
|
description: "Used on invoice lines to mark as adjusted"
|
|
@@ -280,15 +281,15 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
280
281
|
"icon-name": "north_east"
|
|
281
282
|
}, {
|
|
282
283
|
"chip-content": i(() => {
|
|
283
|
-
var
|
|
284
|
+
var m;
|
|
284
285
|
return [
|
|
285
|
-
|
|
286
|
+
d(r(l(n).$t(
|
|
286
287
|
{
|
|
287
288
|
id: "invoice.markup_percentage",
|
|
288
289
|
defaultMessage: "{percentage}% markup",
|
|
289
290
|
description: "Markup percentage, where {percentage} is replaced with the percentage (number only)"
|
|
290
291
|
},
|
|
291
|
-
{ percentage: ((
|
|
292
|
+
{ percentage: ((m = e.priceDetailsBand) == null ? void 0 : m.percentage) ?? "0" }
|
|
292
293
|
).toUpperCase()), 1)
|
|
293
294
|
];
|
|
294
295
|
}),
|
|
@@ -298,17 +299,17 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
298
299
|
"icon-name": "sell"
|
|
299
300
|
}, {
|
|
300
301
|
"chip-content": i(() => [
|
|
301
|
-
|
|
302
|
+
d(r(l(n).$t({
|
|
302
303
|
id: "invoice.commitment",
|
|
303
304
|
defaultMessage: "commitment",
|
|
304
305
|
description: "Used on invoice lines to mark as commitment"
|
|
305
306
|
}).toUpperCase()), 1)
|
|
306
307
|
]),
|
|
307
308
|
_: 1
|
|
308
|
-
})) :
|
|
309
|
+
})) : y("", !0)
|
|
309
310
|
]));
|
|
310
311
|
}
|
|
311
|
-
}),
|
|
312
|
+
}), ct = ["tabindex", "onClick"], mt = { class: "flex items-center" }, vt = /* @__PURE__ */ S({
|
|
312
313
|
__name: "InvoiceCommitment",
|
|
313
314
|
props: {
|
|
314
315
|
commitments: {},
|
|
@@ -318,17 +319,17 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
318
319
|
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
|
|
319
320
|
},
|
|
320
321
|
setup(e) {
|
|
321
|
-
const n = H(), { getIsOpen:
|
|
322
|
-
|
|
323
|
-
},
|
|
324
|
-
var
|
|
325
|
-
return
|
|
322
|
+
const n = H(), { getIsOpen: u, toggle: c } = ge(), m = (v, b) => {
|
|
323
|
+
c(s(v, b));
|
|
324
|
+
}, s = (v, b) => `${v}-line-${b}`, g = (v) => {
|
|
325
|
+
var b;
|
|
326
|
+
return v.description ?? ((b = v.details) == null ? void 0 : b.description) ?? n.$t({
|
|
326
327
|
id: "generic.not_available",
|
|
327
328
|
defaultMessage: "N/A",
|
|
328
329
|
description: "Used in scenarios where no data is available to be displayed"
|
|
329
330
|
});
|
|
330
331
|
};
|
|
331
|
-
return (
|
|
332
|
+
return (v, b) => (t(), h(J, null, {
|
|
332
333
|
default: i(() => [
|
|
333
334
|
_("tr", null, [
|
|
334
335
|
a(w, {
|
|
@@ -336,7 +337,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
336
337
|
colspan: "5"
|
|
337
338
|
}, {
|
|
338
339
|
default: i(() => [
|
|
339
|
-
|
|
340
|
+
d(r(l(n).$t({
|
|
340
341
|
id: "invoice.table_header.unit",
|
|
341
342
|
defaultMessage: "Unit",
|
|
342
343
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -349,7 +350,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
349
350
|
class: "w-60"
|
|
350
351
|
}, {
|
|
351
352
|
default: i(() => [
|
|
352
|
-
|
|
353
|
+
d(r(l(n).$t({
|
|
353
354
|
id: "invoice.table_header.sub_total",
|
|
354
355
|
defaultMessage: "Subtotal",
|
|
355
356
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -358,34 +359,34 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
358
359
|
_: 1
|
|
359
360
|
})
|
|
360
361
|
]),
|
|
361
|
-
(t(!0), o(p, null,
|
|
362
|
+
(t(!0), o(p, null, V(e.commitments, (f, x) => (t(), o(p, { key: x }, [
|
|
362
363
|
_("tr", {
|
|
363
|
-
class:
|
|
364
|
-
tabindex:
|
|
365
|
-
onClick: (O) =>
|
|
364
|
+
class: N(["border-t", { "cursor-pointer": f.sub_lines }]),
|
|
365
|
+
tabindex: f.sub_lines ? 0 : void 0,
|
|
366
|
+
onClick: (O) => m(e.groupOrder, f.line_order)
|
|
366
367
|
}, [
|
|
367
368
|
a(k, { colspan: "2" }, {
|
|
368
369
|
default: i(() => {
|
|
369
370
|
var O;
|
|
370
371
|
return [
|
|
371
|
-
|
|
372
|
+
f.sub_lines ? (t(), h(G, {
|
|
372
373
|
key: 0,
|
|
373
374
|
icon: "keyboard_arrow_down",
|
|
374
375
|
size: "md",
|
|
375
|
-
class:
|
|
376
|
-
"-rotate-90": !l(
|
|
376
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
377
|
+
"-rotate-90": !l(u)(s(e.groupOrder, f.line_order))
|
|
377
378
|
}])
|
|
378
|
-
}, null, 8, ["class"])) :
|
|
379
|
-
_("div",
|
|
380
|
-
M(
|
|
381
|
-
lineOrder:
|
|
379
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
380
|
+
_("div", mt, [
|
|
381
|
+
M(v.$slots, "invoice-line-prefix", {
|
|
382
|
+
lineOrder: f.line_order,
|
|
382
383
|
periodOrder: e.invoicePeriodOrder,
|
|
383
384
|
groupOrder: e.groupOrder
|
|
384
385
|
}),
|
|
385
|
-
a(
|
|
386
|
+
a(Ce, {
|
|
386
387
|
"clause-type": "COMMITMENT",
|
|
387
|
-
"invoice-line-description":
|
|
388
|
-
"price-details-band": (O =
|
|
388
|
+
"invoice-line-description": g(f),
|
|
389
|
+
"price-details-band": (O = f.details) == null ? void 0 : O.band
|
|
389
390
|
}, null, 8, ["invoice-line-description", "price-details-band"])
|
|
390
391
|
])
|
|
391
392
|
];
|
|
@@ -393,8 +394,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
393
394
|
_: 2
|
|
394
395
|
}, 1024),
|
|
395
396
|
a(k, { colspan: "3" }, {
|
|
396
|
-
default: i(() => [...
|
|
397
|
-
|
|
397
|
+
default: i(() => [...b[0] || (b[0] = [
|
|
398
|
+
d(" ", -1)
|
|
398
399
|
])]),
|
|
399
400
|
_: 1
|
|
400
401
|
}),
|
|
@@ -402,24 +403,24 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
402
403
|
default: i(() => {
|
|
403
404
|
var O, I;
|
|
404
405
|
return [
|
|
405
|
-
(O =
|
|
406
|
+
(O = f.details) != null && O.amount ? (t(), h($, {
|
|
406
407
|
key: 0,
|
|
407
|
-
value: (I =
|
|
408
|
+
value: (I = f.details) == null ? void 0 : I.amount,
|
|
408
409
|
"data-testid": l(se)
|
|
409
|
-
}, null, 8, ["value", "data-testid"])) :
|
|
410
|
+
}, null, 8, ["value", "data-testid"])) : y("", !0)
|
|
410
411
|
];
|
|
411
412
|
}),
|
|
412
413
|
_: 2
|
|
413
414
|
}, 1024)
|
|
414
|
-
], 10,
|
|
415
|
-
a(
|
|
415
|
+
], 10, ct),
|
|
416
|
+
a(ye, {
|
|
416
417
|
ref_for: !0,
|
|
417
|
-
ref:
|
|
418
|
-
"sub-lines":
|
|
419
|
-
"line-order":
|
|
418
|
+
ref: s(e.groupOrder, f.line_order),
|
|
419
|
+
"sub-lines": f.sub_lines ?? [],
|
|
420
|
+
"line-order": f.line_order,
|
|
420
421
|
"period-order": e.invoicePeriodOrder,
|
|
421
422
|
"group-order": e.groupOrder,
|
|
422
|
-
"is-open": l(
|
|
423
|
+
"is-open": l(u)(s(e.groupOrder, f.line_order)),
|
|
423
424
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
424
425
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
425
426
|
}, null, 8, ["sub-lines", "line-order", "period-order", "group-order", "is-open", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
@@ -428,7 +429,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
428
429
|
_: 3
|
|
429
430
|
}));
|
|
430
431
|
}
|
|
431
|
-
}),
|
|
432
|
+
}), ft = ["tabindex", "onClick"], gt = { class: "flex items-center" }, bt = /* @__PURE__ */ S({
|
|
432
433
|
__name: "InvoiceDiscountMarkup",
|
|
433
434
|
props: {
|
|
434
435
|
lines: {},
|
|
@@ -443,10 +444,10 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
443
444
|
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
|
|
444
445
|
},
|
|
445
446
|
setup(e) {
|
|
446
|
-
const n = H(), { getIsOpen:
|
|
447
|
-
|
|
448
|
-
},
|
|
449
|
-
return (
|
|
447
|
+
const n = H(), { getIsOpen: u, toggle: c } = ge(), m = (g, v) => {
|
|
448
|
+
c(s(g, v));
|
|
449
|
+
}, s = (g, v) => `${g}-line-${v}`;
|
|
450
|
+
return (g, v) => (t(), h(J, null, {
|
|
450
451
|
default: i(() => [
|
|
451
452
|
_("tr", null, [
|
|
452
453
|
a(w, {
|
|
@@ -454,7 +455,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
454
455
|
class: "w-3/5"
|
|
455
456
|
}, {
|
|
456
457
|
default: i(() => [
|
|
457
|
-
|
|
458
|
+
d(r(l(n).$t({
|
|
458
459
|
id: "invoice.table_header.quantity",
|
|
459
460
|
defaultMessage: "Quantity",
|
|
460
461
|
description: "Table header for quantity column"
|
|
@@ -463,8 +464,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
463
464
|
_: 1
|
|
464
465
|
}),
|
|
465
466
|
a(w, { colspan: "2" }, {
|
|
466
|
-
default: i(() => [...
|
|
467
|
-
|
|
467
|
+
default: i(() => [...v[0] || (v[0] = [
|
|
468
|
+
d(" ", -1)
|
|
468
469
|
])]),
|
|
469
470
|
_: 1
|
|
470
471
|
}),
|
|
@@ -473,7 +474,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
473
474
|
class: "w-1/5"
|
|
474
475
|
}, {
|
|
475
476
|
default: i(() => [
|
|
476
|
-
|
|
477
|
+
d(r(e.type === "DISCOUNT" ? l(n).$t({
|
|
477
478
|
id: "invoice.table_header.discount",
|
|
478
479
|
defaultMessage: "Discount",
|
|
479
480
|
description: "Table header for discount column"
|
|
@@ -490,7 +491,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
490
491
|
class: "w-1/5"
|
|
491
492
|
}, {
|
|
492
493
|
default: i(() => [
|
|
493
|
-
|
|
494
|
+
d(r(e.type === "DISCOUNT" ? l(n).$t({
|
|
494
495
|
id: "invoice.table_header.total",
|
|
495
496
|
defaultMessage: "Total",
|
|
496
497
|
description: "Table header for total column"
|
|
@@ -503,7 +504,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
503
504
|
class: "w-1/5"
|
|
504
505
|
}, {
|
|
505
506
|
default: i(() => [
|
|
506
|
-
|
|
507
|
+
d(r(l(n).$t({
|
|
507
508
|
id: "invoice.table_header.sub_total",
|
|
508
509
|
defaultMessage: "Subtotal",
|
|
509
510
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -512,36 +513,36 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
512
513
|
_: 1
|
|
513
514
|
})
|
|
514
515
|
]),
|
|
515
|
-
(t(!0), o(p, null,
|
|
516
|
+
(t(!0), o(p, null, V(e.lines, (b, f) => (t(), o(p, { key: f }, [
|
|
516
517
|
_("tr", {
|
|
517
|
-
class:
|
|
518
|
+
class: N(["border-t", { "cursor-pointer": e.isExpandable }]),
|
|
518
519
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
519
|
-
onClick: (x) =>
|
|
520
|
+
onClick: (x) => m(e.groupOrder, b.line_order)
|
|
520
521
|
}, [
|
|
521
522
|
a(k, { class: "w-3/5" }, {
|
|
522
523
|
default: i(() => {
|
|
523
524
|
var x, O;
|
|
524
525
|
return [
|
|
525
|
-
|
|
526
|
+
b.sub_lines ? (t(), h(G, {
|
|
526
527
|
key: 0,
|
|
527
528
|
icon: "keyboard_arrow_down",
|
|
528
529
|
size: "md",
|
|
529
|
-
class:
|
|
530
|
-
"-rotate-90": !l(
|
|
530
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
531
|
+
"-rotate-90": !l(u)(s(e.groupOrder, b.line_order))
|
|
531
532
|
}])
|
|
532
|
-
}, null, 8, ["class"])) :
|
|
533
|
-
_("div",
|
|
534
|
-
M(
|
|
535
|
-
lineOrder:
|
|
533
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
534
|
+
_("div", gt, [
|
|
535
|
+
M(g.$slots, "invoice-line-prefix", {
|
|
536
|
+
lineOrder: b.line_order,
|
|
536
537
|
periodOrder: e.invoicePeriodOrder,
|
|
537
538
|
groupOrder: e.groupOrder
|
|
538
539
|
}),
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
], 64)) : (x =
|
|
542
|
-
|
|
540
|
+
b.description ? (t(), o(p, { key: 0 }, [
|
|
541
|
+
d(r(b.description), 1)
|
|
542
|
+
], 64)) : (x = b.details) != null && x.description ? (t(), o(p, { key: 1 }, [
|
|
543
|
+
d(r((O = b.details) == null ? void 0 : O.description), 1)
|
|
543
544
|
], 64)) : (t(), o(p, { key: 2 }, [
|
|
544
|
-
|
|
545
|
+
d("N/A")
|
|
545
546
|
], 64))
|
|
546
547
|
])
|
|
547
548
|
];
|
|
@@ -549,8 +550,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
549
550
|
_: 2
|
|
550
551
|
}, 1024),
|
|
551
552
|
a(k, { colspan: "2" }, {
|
|
552
|
-
default: i(() => [...
|
|
553
|
-
|
|
553
|
+
default: i(() => [...v[1] || (v[1] = [
|
|
554
|
+
d(" ", -1)
|
|
554
555
|
])]),
|
|
555
556
|
_: 1
|
|
556
557
|
}),
|
|
@@ -558,14 +559,14 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
558
559
|
default: i(() => {
|
|
559
560
|
var x, O, I;
|
|
560
561
|
return [
|
|
561
|
-
|
|
562
|
+
d(r((O = (x = b.details) == null ? void 0 : x.band) != null && O.percentage ? `${(I = b.details) == null ? void 0 : I.band.percentage}%` : " "), 1)
|
|
562
563
|
];
|
|
563
564
|
}),
|
|
564
565
|
_: 2
|
|
565
566
|
}, 1024),
|
|
566
567
|
a(k, { class: "w-1/5" }, {
|
|
567
|
-
default: i(() => [...
|
|
568
|
-
|
|
568
|
+
default: i(() => [...v[2] || (v[2] = [
|
|
569
|
+
d(" ", -1)
|
|
569
570
|
])]),
|
|
570
571
|
_: 1
|
|
571
572
|
}),
|
|
@@ -576,22 +577,22 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
576
577
|
default: i(() => {
|
|
577
578
|
var x;
|
|
578
579
|
return [
|
|
579
|
-
(x =
|
|
580
|
+
(x = b.details) != null && x.amount ? (t(), h($, {
|
|
580
581
|
key: 0,
|
|
581
|
-
value:
|
|
582
|
+
value: b.details.amount,
|
|
582
583
|
"data-testid": l(se)
|
|
583
|
-
}, null, 8, ["value", "data-testid"])) :
|
|
584
|
+
}, null, 8, ["value", "data-testid"])) : y("", !0)
|
|
584
585
|
];
|
|
585
586
|
}),
|
|
586
587
|
_: 2
|
|
587
588
|
}, 1024)
|
|
588
|
-
], 10,
|
|
589
|
-
a(
|
|
589
|
+
], 10, ft),
|
|
590
|
+
a(ye, {
|
|
590
591
|
ref_for: !0,
|
|
591
|
-
ref:
|
|
592
|
-
"sub-lines":
|
|
593
|
-
"line-order":
|
|
594
|
-
"is-open": l(
|
|
592
|
+
ref: s(e.groupOrder, b.line_order),
|
|
593
|
+
"sub-lines": b.sub_lines ?? [],
|
|
594
|
+
"line-order": b.line_order,
|
|
595
|
+
"is-open": l(u)(s(e.groupOrder, b.line_order)),
|
|
595
596
|
"period-order": e.invoicePeriodOrder,
|
|
596
597
|
"group-order": e.groupOrder,
|
|
597
598
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
@@ -604,11 +605,11 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
604
605
|
}
|
|
605
606
|
}), ae = (e) => {
|
|
606
607
|
var n;
|
|
607
|
-
return (n = e.lines) != null && n.some((
|
|
608
|
-
},
|
|
608
|
+
return (n = e.lines) != null && n.some((u) => !!u.sub_lines) ? at : void 0;
|
|
609
|
+
}, yt = ["tabindex"], pt = { key: 0 }, xt = {
|
|
609
610
|
colspan: "2",
|
|
610
611
|
class: "p-0"
|
|
611
|
-
},
|
|
612
|
+
}, ht = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, _t = /* @__PURE__ */ S({
|
|
612
613
|
__name: "InvoiceGroupCommitment",
|
|
613
614
|
props: {
|
|
614
615
|
group: {},
|
|
@@ -626,14 +627,14 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
626
627
|
},
|
|
627
628
|
setup(e) {
|
|
628
629
|
const n = H();
|
|
629
|
-
return (
|
|
630
|
+
return (u, c) => (t(), o(p, null, [
|
|
630
631
|
_("tr", {
|
|
631
|
-
class:
|
|
632
|
+
class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
|
|
632
633
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
633
|
-
onClick:
|
|
634
|
+
onClick: c[0] || (c[0] = (m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
634
635
|
onKeyup: [
|
|
635
|
-
|
|
636
|
-
|
|
636
|
+
c[1] || (c[1] = j((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
637
|
+
c[2] || (c[2] = j((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
637
638
|
]
|
|
638
639
|
}, [
|
|
639
640
|
a(k, { class: "p-0" }, {
|
|
@@ -642,13 +643,13 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
642
643
|
key: 0,
|
|
643
644
|
icon: "keyboard_arrow_down",
|
|
644
645
|
size: "md",
|
|
645
|
-
class:
|
|
646
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
646
647
|
"-rotate-90": !e.expandedItems.includes(
|
|
647
648
|
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
648
649
|
)
|
|
649
650
|
}])
|
|
650
|
-
}, null, 8, ["class"])) :
|
|
651
|
-
|
|
651
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
652
|
+
d(" " + r(l(n).$t({
|
|
652
653
|
id: "invoice.commitment_heading",
|
|
653
654
|
defaultMessage: "Commitment",
|
|
654
655
|
description: "Heading used for commitment in invoice tables"
|
|
@@ -672,11 +673,11 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
672
673
|
]),
|
|
673
674
|
_: 1
|
|
674
675
|
})
|
|
675
|
-
], 42,
|
|
676
|
-
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), o("tr",
|
|
677
|
-
_("td",
|
|
678
|
-
_("div",
|
|
679
|
-
a(
|
|
676
|
+
], 42, yt),
|
|
677
|
+
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), o("tr", pt, [
|
|
678
|
+
_("td", xt, [
|
|
679
|
+
_("div", ht, [
|
|
680
|
+
a(vt, {
|
|
680
681
|
commitments: e.group.lines,
|
|
681
682
|
"format-index": e.formatIndex,
|
|
682
683
|
"handle-toggle-items": e.handleToggleItems,
|
|
@@ -687,20 +688,20 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
687
688
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
688
689
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
689
690
|
}, {
|
|
690
|
-
"invoice-line-prefix": i((
|
|
691
|
-
M(
|
|
691
|
+
"invoice-line-prefix": i((m) => [
|
|
692
|
+
M(u.$slots, "invoice-line-prefix", ve(fe(m)))
|
|
692
693
|
]),
|
|
693
694
|
_: 3
|
|
694
695
|
}, 8, ["commitments", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
695
696
|
])
|
|
696
697
|
])
|
|
697
|
-
])) :
|
|
698
|
+
])) : y("", !0)
|
|
698
699
|
], 64));
|
|
699
700
|
}
|
|
700
|
-
}),
|
|
701
|
+
}), kt = ["tabindex"], Tt = { key: 0 }, Ot = {
|
|
701
702
|
colspan: "2",
|
|
702
703
|
class: "p-0"
|
|
703
|
-
},
|
|
704
|
+
}, It = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, $t = /* @__PURE__ */ S({
|
|
704
705
|
__name: "InvoiceGroupDiscountMarkup",
|
|
705
706
|
props: {
|
|
706
707
|
heading: {},
|
|
@@ -718,14 +719,14 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
718
719
|
showTaxPerLineItem: { type: Boolean }
|
|
719
720
|
},
|
|
720
721
|
setup(e) {
|
|
721
|
-
return (n,
|
|
722
|
+
return (n, u) => (t(), o(p, null, [
|
|
722
723
|
_("tr", {
|
|
723
|
-
class:
|
|
724
|
+
class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
|
|
724
725
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
725
|
-
onClick:
|
|
726
|
+
onClick: u[0] || (u[0] = (c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
726
727
|
onKeyup: [
|
|
727
|
-
|
|
728
|
-
|
|
728
|
+
u[1] || (u[1] = j((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
729
|
+
u[2] || (u[2] = j((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
729
730
|
]
|
|
730
731
|
}, [
|
|
731
732
|
a(k, { class: "p-0" }, {
|
|
@@ -734,13 +735,13 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
734
735
|
key: 0,
|
|
735
736
|
icon: "keyboard_arrow_down",
|
|
736
737
|
size: "md",
|
|
737
|
-
class:
|
|
738
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
738
739
|
"-rotate-90": !e.expandedItems.includes(
|
|
739
740
|
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
740
741
|
)
|
|
741
742
|
}])
|
|
742
|
-
}, null, 8, ["class"])) :
|
|
743
|
-
|
|
743
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
744
|
+
d(" " + r(e.heading), 1)
|
|
744
745
|
]),
|
|
745
746
|
_: 1
|
|
746
747
|
}),
|
|
@@ -760,11 +761,11 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
760
761
|
]),
|
|
761
762
|
_: 1
|
|
762
763
|
})
|
|
763
|
-
], 42,
|
|
764
|
-
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), o("tr",
|
|
765
|
-
_("td",
|
|
766
|
-
_("div",
|
|
767
|
-
a(
|
|
764
|
+
], 42, kt),
|
|
765
|
+
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), o("tr", Tt, [
|
|
766
|
+
_("td", Ot, [
|
|
767
|
+
_("div", It, [
|
|
768
|
+
a(bt, {
|
|
768
769
|
type: e.group.type,
|
|
769
770
|
lines: e.group.lines,
|
|
770
771
|
"format-index": e.formatIndex,
|
|
@@ -776,60 +777,60 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
776
777
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
777
778
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
778
779
|
}, {
|
|
779
|
-
"invoice-line-prefix": i((
|
|
780
|
-
M(n.$slots, "invoice-line-prefix", ve(fe(
|
|
780
|
+
"invoice-line-prefix": i((c) => [
|
|
781
|
+
M(n.$slots, "invoice-line-prefix", ve(fe(c)))
|
|
781
782
|
]),
|
|
782
783
|
_: 3
|
|
783
784
|
}, 8, ["type", "lines", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
784
785
|
])
|
|
785
786
|
])
|
|
786
|
-
])) :
|
|
787
|
+
])) : y("", !0)
|
|
787
788
|
], 64));
|
|
788
789
|
}
|
|
789
|
-
}),
|
|
790
|
+
}), Mt = (e, n) => {
|
|
790
791
|
if (n)
|
|
791
792
|
return e.forwarded_from_customer_id;
|
|
792
|
-
},
|
|
793
|
-
let n = { kind: "default" },
|
|
793
|
+
}, wt = (e) => {
|
|
794
|
+
let n = { kind: "default" }, u = { kind: "default" };
|
|
794
795
|
if (e.tier_lower_bound && "number" in e.tier_lower_bound)
|
|
795
796
|
n = { kind: "number", value: +e.tier_lower_bound.number };
|
|
796
797
|
else if (e.tier_lower_bound && "amount" in e.tier_lower_bound) {
|
|
797
|
-
const { quantity:
|
|
798
|
-
n = { kind: "amount", currency:
|
|
798
|
+
const { quantity: c, currency: m } = e.tier_lower_bound.amount;
|
|
799
|
+
n = { kind: "amount", currency: m, quantity: c ?? 0 };
|
|
799
800
|
}
|
|
800
801
|
if (e.tier_top_bound && "number" in e.tier_top_bound)
|
|
801
|
-
|
|
802
|
+
u = { kind: "number", value: +e.tier_top_bound.number };
|
|
802
803
|
else if (e.tier_top_bound && "amount" in e.tier_top_bound) {
|
|
803
|
-
const { quantity:
|
|
804
|
-
|
|
804
|
+
const { quantity: c, currency: m } = e.tier_top_bound.amount;
|
|
805
|
+
u = { kind: "amount", currency: m, quantity: c };
|
|
805
806
|
}
|
|
806
|
-
return { lowerBound: n, topBound:
|
|
807
|
-
},
|
|
808
|
-
var n,
|
|
807
|
+
return { lowerBound: n, topBound: u };
|
|
808
|
+
}, Et = (e) => {
|
|
809
|
+
var n, u, c, m;
|
|
809
810
|
switch (e == null ? void 0 : e.price_bound) {
|
|
810
811
|
case "BELOW_MINIMUM_AMOUNT":
|
|
811
812
|
return { kind: "band_minimum_amount", amount: (n = e.band) == null ? void 0 : n.minimum_amount };
|
|
812
813
|
case "NOT_HIT":
|
|
813
814
|
return { kind: "price_bound_within_bounds" };
|
|
814
815
|
case "ABOVE_MAXIMUM_AMOUNT":
|
|
815
|
-
return { kind: "price_bound_maximum_amount", amount: (
|
|
816
|
+
return { kind: "price_bound_maximum_amount", amount: (u = e.band) == null ? void 0 : u.maximum_amount };
|
|
816
817
|
case "BELOW_MINIMUM_NUMBER":
|
|
817
|
-
return { kind: "band_minimum_number", value: (
|
|
818
|
+
return { kind: "band_minimum_number", value: (c = e.band) == null ? void 0 : c.minimum_number };
|
|
818
819
|
case "ABOVE_MAXIMUM_NUMBER":
|
|
819
|
-
return { kind: "band_maximum_number", value: (
|
|
820
|
+
return { kind: "band_maximum_number", value: (m = e.band) == null ? void 0 : m.maximum_number };
|
|
820
821
|
default:
|
|
821
822
|
return { kind: "none" };
|
|
822
823
|
}
|
|
823
|
-
},
|
|
824
|
+
}, Ct = { class: "items-left flex flex-col gap-1 leading-none" }, Nt = { class: "flex items-center" }, Bt = {
|
|
824
825
|
key: 0,
|
|
825
826
|
class: "ml-1 text-xs text-secondary"
|
|
826
|
-
},
|
|
827
|
+
}, At = { key: 0 }, Pt = {
|
|
827
828
|
key: 1,
|
|
828
829
|
class: "text-xs text-secondary"
|
|
829
|
-
},
|
|
830
|
+
}, Ut = {
|
|
830
831
|
key: 2,
|
|
831
832
|
class: "text-xs text-secondary"
|
|
832
|
-
},
|
|
833
|
+
}, Lt = { class: "text-[9pt] text-secondary" }, St = /* @__PURE__ */ S({
|
|
833
834
|
__name: "InvoiceLineRow",
|
|
834
835
|
props: {
|
|
835
836
|
data: {},
|
|
@@ -840,189 +841,189 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
840
841
|
isExpanded: { type: Boolean }
|
|
841
842
|
},
|
|
842
843
|
setup(e) {
|
|
843
|
-
const { $t: n, formatNumber:
|
|
844
|
-
if (
|
|
845
|
-
return
|
|
846
|
-
},
|
|
847
|
-
if (!
|
|
848
|
-
const { lowerBound: x, topBound: O } =
|
|
849
|
-
return (
|
|
850
|
-
},
|
|
851
|
-
var
|
|
852
|
-
return (
|
|
853
|
-
}),
|
|
854
|
-
var
|
|
855
|
-
return (
|
|
844
|
+
const { $t: n, formatNumber: u } = H(), c = e, m = (f) => {
|
|
845
|
+
if (f.kind !== "default")
|
|
846
|
+
return f.kind === "number" ? u(f.value) : `${f.currency} ${f.quantity}`;
|
|
847
|
+
}, s = (f) => {
|
|
848
|
+
if (!f) return "";
|
|
849
|
+
const { lowerBound: x, topBound: O } = wt(f), I = m(O);
|
|
850
|
+
return (m(x) ?? "0") + (I ? ` - ${I}` : "+");
|
|
851
|
+
}, g = B(() => {
|
|
852
|
+
var f;
|
|
853
|
+
return (f = c.data.details) == null ? void 0 : f.included_volume_details;
|
|
854
|
+
}), v = B(() => Et(c.data.details)), b = B(() => {
|
|
855
|
+
var f, x;
|
|
856
|
+
return (f = c.data) != null && f.product_items ? be(c.data.product_items.map((O) => O.name)) : ((x = c.data) == null ? void 0 : x.description) ?? "N/A";
|
|
856
857
|
});
|
|
857
|
-
return (
|
|
858
|
+
return (f, x) => (t(), o(p, null, [
|
|
858
859
|
a(k, { class: "align-top" }, {
|
|
859
860
|
default: i(() => {
|
|
860
|
-
var O, I,
|
|
861
|
+
var O, I, P, U, L, E, W, C, z;
|
|
861
862
|
return [
|
|
862
|
-
_("div",
|
|
863
|
+
_("div", Ct, [
|
|
863
864
|
_("div", null, [
|
|
864
865
|
e.data.sub_lines ? (t(), h(G, {
|
|
865
866
|
key: 0,
|
|
866
867
|
icon: "keyboard_arrow_down",
|
|
867
868
|
size: "md",
|
|
868
|
-
class:
|
|
869
|
+
class: N(["absolute -translate-x-7 -translate-y-2 text-slate-400", {
|
|
869
870
|
"-rotate-90": !e.isExpanded
|
|
870
871
|
}])
|
|
871
|
-
}, null, 8, ["class"])) :
|
|
872
|
-
_("div",
|
|
873
|
-
M(
|
|
872
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
873
|
+
_("div", Nt, [
|
|
874
|
+
M(f.$slots, "invoice-line-prefix", {
|
|
874
875
|
lineOrder: e.data.line_order,
|
|
875
876
|
periodOrder: e.periodOrder,
|
|
876
877
|
groupOrder: e.groupOrder
|
|
877
878
|
}),
|
|
878
879
|
["PRICING", "REVENUE", "ONE_OFF"].includes(e.data.type) ? (t(), o(p, { key: 0 }, [
|
|
879
|
-
|
|
880
|
-
e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), o("div",
|
|
881
|
-
], 64)) : (t(), h(
|
|
880
|
+
d(r(b.value) + " ", 1),
|
|
881
|
+
e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), o("div", Bt, r(l(De)(e.data.type)), 1)) : y("", !0)
|
|
882
|
+
], 64)) : (t(), h(Ce, {
|
|
882
883
|
key: 1,
|
|
883
|
-
"invoice-line-description":
|
|
884
|
+
"invoice-line-description": b.value,
|
|
884
885
|
"clause-type": e.data.type,
|
|
885
886
|
"price-details-band": (O = e.data.details) == null ? void 0 : O.band
|
|
886
887
|
}, null, 8, ["invoice-line-description", "clause-type", "price-details-band"]))
|
|
887
888
|
])
|
|
888
889
|
]),
|
|
889
|
-
["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !
|
|
890
|
-
(
|
|
891
|
-
(t(!0), o(p, null,
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
], 64)) :
|
|
890
|
+
["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !g.value && ((I = e.data.details) != null && I.band) ? (t(), o("div", At, r(s((P = e.data.details) == null ? void 0 : P.band)), 1)) : y("", !0),
|
|
891
|
+
(L = (U = e.data.details) == null ? void 0 : U.split_pricing) != null && L.meter_properties ? (t(), o("span", Pt, [
|
|
892
|
+
(t(!0), o(p, null, V((W = (E = e.data.details) == null ? void 0 : E.split_pricing) == null ? void 0 : W.meter_properties, (X, q) => (t(), o(p, null, [
|
|
893
|
+
d(r(X.meter_property.name) + ": " + r(X.value), 1),
|
|
894
|
+
q < e.data.details.split_pricing.meter_properties.length - 1 ? (t(), o(p, { key: 0 }, [
|
|
895
|
+
d(r(", "))
|
|
896
|
+
], 64)) : y("", !0)
|
|
896
897
|
], 64))), 256))
|
|
897
|
-
])) :
|
|
898
|
-
(C = e.data.conditions) != null && C.name || (
|
|
898
|
+
])) : y("", !0),
|
|
899
|
+
(C = e.data.conditions) != null && C.name || (z = e.data.conditions) != null && z.meter_properties ? (t(), o("div", Ut, [
|
|
899
900
|
e.data.conditions.name ? (t(), o(p, { key: 0 }, [
|
|
900
|
-
|
|
901
|
-
], 64)) : e.data.conditions.meter_properties ? (t(), h(l(
|
|
901
|
+
d(r(e.data.conditions.name), 1)
|
|
902
|
+
], 64)) : e.data.conditions.meter_properties ? (t(), h(l(Ee), {
|
|
902
903
|
key: 1,
|
|
903
904
|
comparators: e.data.conditions.meter_properties
|
|
904
|
-
}, null, 8, ["comparators"])) :
|
|
905
|
-
])) :
|
|
905
|
+
}, null, 8, ["comparators"])) : y("", !0)
|
|
906
|
+
])) : y("", !0)
|
|
906
907
|
]),
|
|
907
|
-
_("span",
|
|
908
|
-
|
|
909
|
-
|
|
908
|
+
_("span", Lt, [
|
|
909
|
+
v.value.kind === "band_minimum_amount" ? (t(), o(p, { key: 0 }, [
|
|
910
|
+
d(r(l(n)({
|
|
910
911
|
id: "invoice.line.band_minimum_amount",
|
|
911
912
|
defaultMessage: "Band minimum amount",
|
|
912
913
|
description: "Minimum amount specified in a band"
|
|
913
914
|
})) + " ", 1),
|
|
914
|
-
|
|
915
|
+
v.value.amount ? (t(), h($, {
|
|
915
916
|
key: 0,
|
|
916
|
-
value:
|
|
917
|
-
}, null, 8, ["value"])) :
|
|
918
|
-
], 64)) :
|
|
919
|
-
|
|
917
|
+
value: v.value.amount
|
|
918
|
+
}, null, 8, ["value"])) : y("", !0)
|
|
919
|
+
], 64)) : v.value.kind === "price_bound_within_bounds" ? (t(), o(p, { key: 1 }, [
|
|
920
|
+
d(r(l(n)({
|
|
920
921
|
id: "invoice.line.price_bound_within_bounds",
|
|
921
922
|
defaultMessage: "Within bounds",
|
|
922
923
|
description: "Label used when min and max bounds are specified but reached"
|
|
923
924
|
})), 1)
|
|
924
|
-
], 64)) :
|
|
925
|
-
|
|
925
|
+
], 64)) : v.value.kind === "price_bound_maximum_amount" ? (t(), o(p, { key: 2 }, [
|
|
926
|
+
d(r(l(n)({
|
|
926
927
|
id: "invoice.line.price_bound_maximum_amount",
|
|
927
928
|
defaultMessage: "Maximum amount",
|
|
928
929
|
description: "Maximum amount specified in a band"
|
|
929
930
|
})) + " ", 1),
|
|
930
|
-
|
|
931
|
+
v.value.amount ? (t(), h($, {
|
|
931
932
|
key: 0,
|
|
932
|
-
value:
|
|
933
|
-
}, null, 8, ["value"])) :
|
|
934
|
-
], 64)) :
|
|
935
|
-
|
|
933
|
+
value: v.value.amount
|
|
934
|
+
}, null, 8, ["value"])) : y("", !0)
|
|
935
|
+
], 64)) : v.value.kind === "band_minimum_number" ? (t(), o(p, { key: 3 }, [
|
|
936
|
+
d(r(l(n)({
|
|
936
937
|
id: "invoice.line.band_minimum_number",
|
|
937
938
|
defaultMessage: "Minimum number",
|
|
938
939
|
description: "Minimum number of units specified in a band"
|
|
939
|
-
})) + " " + r(
|
|
940
|
-
], 64)) :
|
|
941
|
-
|
|
940
|
+
})) + " " + r(v.value.value), 1)
|
|
941
|
+
], 64)) : v.value.kind === "band_maximum_number" ? (t(), o(p, { key: 4 }, [
|
|
942
|
+
d(r(l(n)({
|
|
942
943
|
id: "invoice.line.band_maximum_number",
|
|
943
944
|
defaultMessage: "Maximum number",
|
|
944
945
|
description: "Maximum number of units specified in a band"
|
|
945
|
-
})) + " " + r(
|
|
946
|
-
], 64)) :
|
|
946
|
+
})) + " " + r(v.value.value), 1)
|
|
947
|
+
], 64)) : y("", !0)
|
|
947
948
|
])
|
|
948
949
|
];
|
|
949
950
|
}),
|
|
950
951
|
_: 3
|
|
951
952
|
}),
|
|
952
|
-
M(
|
|
953
|
+
M(f.$slots, "line-content", {
|
|
953
954
|
details: e.data.details
|
|
954
955
|
})
|
|
955
956
|
], 64));
|
|
956
957
|
}
|
|
957
|
-
}),
|
|
958
|
-
var
|
|
958
|
+
}), Dt = (e, n, u) => {
|
|
959
|
+
var c, m;
|
|
959
960
|
if (e === "PASS_THROUGH") return { kind: "hidden" };
|
|
960
|
-
if (
|
|
961
|
+
if (u && ((m = (c = n == null ? void 0 : n.conversion) == null ? void 0 : c.credits) != null && m.quantity))
|
|
961
962
|
return { kind: "conversion-credits", value: n.conversion.credits.quantity };
|
|
962
963
|
if (n != null && n.price_bound) {
|
|
963
|
-
const { price_bound:
|
|
964
|
-
return
|
|
964
|
+
const { price_bound: s, meter_value: g, band: v } = n;
|
|
965
|
+
return s === "BELOW_MINIMUM_AMOUNT" || s === "ABOVE_MAXIMUM_AMOUNT" ? { kind: "raw", value: g.count } : s === "NOT_HIT" && "amount" in g && g.amount ? { kind: "amount", amount: g.amount } : s === "NOT_HIT" && "number" in g && g.number ? { kind: "raw", value: g.number } : s === "RATIO" && g.number ? { kind: "number", value: +g.number } : s === "BELOW_MINIMUM_NUMBER" && (v != null && v.minimum_number) ? { kind: "number", value: +v.minimum_number } : s === "ABOVE_MAXIMUM_NUMBER" && (v != null && v.maximum_number) ? { kind: "number", value: +v.maximum_number } : { kind: "hidden" };
|
|
965
966
|
}
|
|
966
967
|
return n != null && n.meter_value && "number" in n.meter_value ? { kind: "number", value: +n.meter_value.number } : n != null && n.meter_value && "amount" in n.meter_value ? { kind: "amount", amount: n.meter_value.amount } : { kind: "one" };
|
|
967
|
-
},
|
|
968
|
+
}, Rt = ["NOT_HIT", "BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"], Ft = (e, n, u) => {
|
|
968
969
|
if (e === "PASS_THROUGH") return { kind: "pass-through" };
|
|
969
970
|
if (n != null && n.price_bound) {
|
|
970
|
-
const { price_bound:
|
|
971
|
-
if (
|
|
972
|
-
return { kind: "amount", amount:
|
|
973
|
-
if (
|
|
974
|
-
return { kind: "amount", amount:
|
|
975
|
-
if (
|
|
976
|
-
return { kind: "amount", amount: (
|
|
977
|
-
if (
|
|
978
|
-
if (
|
|
979
|
-
return { kind: "amount", amount:
|
|
980
|
-
if (
|
|
981
|
-
return { kind: "percentage", value:
|
|
982
|
-
if (
|
|
983
|
-
return { kind: "amount", amount:
|
|
971
|
+
const { price_bound: s, band: g, amount: v } = n;
|
|
972
|
+
if (s === "BELOW_MINIMUM_AMOUNT" && (g != null && g.minimum_amount))
|
|
973
|
+
return { kind: "amount", amount: g.minimum_amount };
|
|
974
|
+
if (s === "ABOVE_MAXIMUM_AMOUNT" && (g != null && g.maximum_amount))
|
|
975
|
+
return { kind: "amount", amount: g.maximum_amount };
|
|
976
|
+
if (s === "RATIO")
|
|
977
|
+
return { kind: "amount", amount: (u === "PER_SEAT" ? g == null ? void 0 : g.amount : void 0) ?? v, suffix: { kind: "tier-top-bound" } };
|
|
978
|
+
if (Rt.includes(s)) {
|
|
979
|
+
if (g && g.amount)
|
|
980
|
+
return { kind: "amount", amount: g.amount };
|
|
981
|
+
if (g && "percentage" in g)
|
|
982
|
+
return { kind: "percentage", value: g.percentage };
|
|
983
|
+
if (g && v)
|
|
984
|
+
return { kind: "amount", amount: v, suffix: { kind: "fixed-amount" } };
|
|
984
985
|
}
|
|
985
986
|
return { kind: "hidden" };
|
|
986
987
|
}
|
|
987
|
-
const
|
|
988
|
-
return
|
|
989
|
-
},
|
|
988
|
+
const c = n == null ? void 0 : n.band, m = n == null ? void 0 : n.amount;
|
|
989
|
+
return c && c.amount ? { kind: "amount", amount: c.amount, suffix: { kind: "block-size-or-per-unit" } } : c && "percentage" in c ? { kind: "percentage", value: c.percentage } : c && m ? e === "STAIR_STEP" || e === "STAIR_STEP_TOP_UP" ? { kind: "amount", amount: m, suffix: { kind: "fixed-amount" } } : e === "TOP_TIERED" ? { kind: "amount", amount: m, suffix: { kind: "per-unit" } } : e === "FLAT" ? { kind: "amount", amount: m, suffix: { kind: "flat-fee" } } : { kind: "amount", amount: m } : { kind: "hidden" };
|
|
990
|
+
}, Vt = {
|
|
990
991
|
key: 5,
|
|
991
992
|
class: "text-xs text-secondary"
|
|
992
|
-
},
|
|
993
|
+
}, Wt = {
|
|
993
994
|
key: 1,
|
|
994
995
|
class: "tabular-nums"
|
|
995
|
-
},
|
|
996
|
+
}, zt = {
|
|
996
997
|
key: 0,
|
|
997
998
|
class: "text-2xs text-secondary"
|
|
998
|
-
},
|
|
999
|
+
}, Ht = {
|
|
999
1000
|
key: 1,
|
|
1000
1001
|
class: "text-2xs text-secondary"
|
|
1001
|
-
},
|
|
1002
|
+
}, Gt = {
|
|
1002
1003
|
key: 0,
|
|
1003
1004
|
class: "text-2xs text-secondary"
|
|
1004
|
-
},
|
|
1005
|
+
}, Xt = {
|
|
1005
1006
|
key: 1,
|
|
1006
1007
|
class: "text-2xs text-secondary"
|
|
1007
1008
|
}, qt = {
|
|
1008
1009
|
key: 2,
|
|
1009
1010
|
class: "text-2xs text-secondary"
|
|
1010
|
-
},
|
|
1011
|
+
}, jt = {
|
|
1011
1012
|
key: 3,
|
|
1012
1013
|
class: "text-2xs text-secondary"
|
|
1013
|
-
},
|
|
1014
|
+
}, Yt = {
|
|
1014
1015
|
key: 4,
|
|
1015
1016
|
class: "text-2xs text-secondary"
|
|
1016
|
-
},
|
|
1017
|
+
}, Kt = { class: "text-2xs text-secondary" }, Qt = {
|
|
1017
1018
|
key: 0,
|
|
1018
1019
|
class: "flex justify-end"
|
|
1019
|
-
},
|
|
1020
|
+
}, Jt = { class: "flex items-center justify-end gap-1" }, Zt = {
|
|
1020
1021
|
key: 0,
|
|
1021
1022
|
class: "text-2xs tabular-nums text-secondary"
|
|
1022
|
-
},
|
|
1023
|
+
}, en = {
|
|
1023
1024
|
key: 1,
|
|
1024
1025
|
class: "inline-block"
|
|
1025
|
-
},
|
|
1026
|
+
}, tn = { class: "flex items-center justify-end gap-1" }, he = /* @__PURE__ */ S({
|
|
1026
1027
|
__name: "InvoiceRowContent",
|
|
1027
1028
|
props: {
|
|
1028
1029
|
pricingType: {},
|
|
@@ -1035,37 +1036,37 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1035
1036
|
preferConversionCredits: { type: Boolean }
|
|
1036
1037
|
},
|
|
1037
1038
|
setup(e) {
|
|
1038
|
-
const n = e,
|
|
1039
|
+
const n = e, u = B(() => {
|
|
1039
1040
|
var E;
|
|
1040
1041
|
return (E = n.details) == null ? void 0 : E.included_volume_details;
|
|
1041
|
-
}),
|
|
1042
|
+
}), c = B(
|
|
1042
1043
|
() => {
|
|
1043
1044
|
var E;
|
|
1044
|
-
return (E =
|
|
1045
|
+
return (E = u.value) == null ? void 0 : E.available_included_volume;
|
|
1045
1046
|
}
|
|
1046
|
-
),
|
|
1047
|
-
() =>
|
|
1048
|
-
),
|
|
1049
|
-
() =>
|
|
1050
|
-
), { $t:
|
|
1051
|
-
() =>
|
|
1047
|
+
), m = B(
|
|
1048
|
+
() => Dt(n.pricingType, n.details, n.preferConversionCredits)
|
|
1049
|
+
), s = B(
|
|
1050
|
+
() => Ft(n.pricingType, n.details, n.modelType)
|
|
1051
|
+
), { $t: g, formatNumber: v } = H(), b = B(
|
|
1052
|
+
() => g({
|
|
1052
1053
|
id: "invoice.line.fixed_amount",
|
|
1053
1054
|
defaultMessage: "Fixed amount",
|
|
1054
1055
|
description: "Label shown when a price band charges a fixed amount regardless of usage"
|
|
1055
1056
|
})
|
|
1056
|
-
),
|
|
1057
|
-
() =>
|
|
1057
|
+
), f = B(
|
|
1058
|
+
() => g({
|
|
1058
1059
|
id: "invoice.line.flat_fee",
|
|
1059
1060
|
defaultMessage: "Flat fee",
|
|
1060
1061
|
description: "Label shown for a flat, usage-independent fee"
|
|
1061
1062
|
})
|
|
1062
1063
|
), x = B(() => {
|
|
1063
|
-
var E,
|
|
1064
|
-
const C = (
|
|
1064
|
+
var E, W;
|
|
1065
|
+
const C = (W = (E = n.details) == null ? void 0 : E.band) == null ? void 0 : W.tier_top_bound;
|
|
1065
1066
|
return C && "number" in C ? C.number : void 0;
|
|
1066
1067
|
}), O = B(() => {
|
|
1067
1068
|
if (x.value !== void 0)
|
|
1068
|
-
return
|
|
1069
|
+
return g(
|
|
1069
1070
|
{
|
|
1070
1071
|
id: "invoice.line.per_units_tier_top_bound",
|
|
1071
1072
|
defaultMessage: "per {count, plural, one {unit} other {{formattedCount} units}}",
|
|
@@ -1075,38 +1076,38 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1075
1076
|
);
|
|
1076
1077
|
}), I = B(
|
|
1077
1078
|
() => {
|
|
1078
|
-
var E,
|
|
1079
|
-
return n.modelType === "PER_SEAT" ? (
|
|
1079
|
+
var E, W;
|
|
1080
|
+
return n.modelType === "PER_SEAT" ? (W = (E = n.details) == null ? void 0 : E.band) == null ? void 0 : W.amount : void 0;
|
|
1080
1081
|
}
|
|
1081
|
-
),
|
|
1082
|
-
() => n.modelType === "PER_SEAT" ?
|
|
1082
|
+
), P = B(
|
|
1083
|
+
() => n.modelType === "PER_SEAT" ? g({
|
|
1083
1084
|
id: "invoice.line.per_seat",
|
|
1084
1085
|
defaultMessage: "Per seat",
|
|
1085
1086
|
description: "Label shown when a price band applies per single seat"
|
|
1086
|
-
}) :
|
|
1087
|
+
}) : g({
|
|
1087
1088
|
id: "invoice.line.per_unit",
|
|
1088
1089
|
defaultMessage: "Per unit",
|
|
1089
1090
|
description: "Label shown when a price band applies per single unit"
|
|
1090
1091
|
})
|
|
1091
|
-
),
|
|
1092
|
-
var E,
|
|
1093
|
-
const C = (
|
|
1092
|
+
), U = B(() => {
|
|
1093
|
+
var E, W;
|
|
1094
|
+
const C = (W = (E = n.details) == null ? void 0 : E.band) == null ? void 0 : W.block_size;
|
|
1094
1095
|
return C && "number" in C ? C.number : void 0;
|
|
1095
|
-
}),
|
|
1096
|
-
if (
|
|
1097
|
-
return
|
|
1096
|
+
}), L = B(() => {
|
|
1097
|
+
if (U.value !== void 0)
|
|
1098
|
+
return g(
|
|
1098
1099
|
{
|
|
1099
1100
|
id: "invoice.line.per_units_block_size",
|
|
1100
1101
|
defaultMessage: "Per {count, plural, one {unit} other {{formattedCount} units}}",
|
|
1101
1102
|
description: "Number of units a price band block applies per. Singular form omits the count."
|
|
1102
1103
|
},
|
|
1103
1104
|
{
|
|
1104
|
-
count: +
|
|
1105
|
-
formattedCount:
|
|
1105
|
+
count: +U.value,
|
|
1106
|
+
formattedCount: v(+U.value)
|
|
1106
1107
|
}
|
|
1107
1108
|
);
|
|
1108
1109
|
});
|
|
1109
|
-
return (E,
|
|
1110
|
+
return (E, W) => (t(), o(p, null, [
|
|
1110
1111
|
a(k, {
|
|
1111
1112
|
number: "",
|
|
1112
1113
|
class: "align-top"
|
|
@@ -1114,46 +1115,46 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1114
1115
|
default: i(() => {
|
|
1115
1116
|
var C;
|
|
1116
1117
|
return [
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
], 64)) :
|
|
1118
|
+
m.value.kind === "raw" ? (t(), o(p, { key: 0 }, [
|
|
1119
|
+
d(r(m.value.value), 1)
|
|
1120
|
+
], 64)) : m.value.kind === "amount" ? (t(), h($, {
|
|
1120
1121
|
key: 1,
|
|
1121
|
-
value:
|
|
1122
|
-
}, null, 8, ["value"])) :
|
|
1123
|
-
|
|
1124
|
-
], 64)) :
|
|
1125
|
-
|
|
1122
|
+
value: m.value.amount
|
|
1123
|
+
}, null, 8, ["value"])) : m.value.kind === "number" ? (t(), o(p, { key: 2 }, [
|
|
1124
|
+
d(r(l(v)(m.value.value)), 1)
|
|
1125
|
+
], 64)) : m.value.kind === "conversion-credits" ? (t(), o(p, { key: 3 }, [
|
|
1126
|
+
d(r(l(v)(+m.value.value, {
|
|
1126
1127
|
maximumFractionDigits: l(Me)
|
|
1127
1128
|
})), 1)
|
|
1128
|
-
], 64)) :
|
|
1129
|
-
|
|
1130
|
-
], 64)) :
|
|
1131
|
-
|
|
1132
|
-
|
|
1129
|
+
], 64)) : m.value.kind === "one" ? (t(), o(p, { key: 4 }, [
|
|
1130
|
+
d("1")
|
|
1131
|
+
], 64)) : y("", !0),
|
|
1132
|
+
m.value.kind !== "conversion-credits" && m.value.kind !== "hidden" && !((C = e.details) != null && C.price_bound) && c.value ? (t(), o("div", Vt, [
|
|
1133
|
+
c.value.type === "AMOUNT" ? (t(), o(p, { key: 0 }, [
|
|
1133
1134
|
a($, {
|
|
1134
|
-
value:
|
|
1135
|
+
value: c.value.amount
|
|
1135
1136
|
}, null, 8, ["value"]),
|
|
1136
|
-
|
|
1137
|
+
d(" " + r(l(g)({
|
|
1137
1138
|
id: "invoice.line.included",
|
|
1138
1139
|
defaultMessage: "included",
|
|
1139
1140
|
description: "Used to specify an included amount. Should be lowercase."
|
|
1140
1141
|
})), 1)
|
|
1141
|
-
], 64)) :
|
|
1142
|
+
], 64)) : c.value.type === "NUMBER" ? (t(), o("span", Wt, r(c.value.number) + " " + r(l(g)({
|
|
1142
1143
|
id: "invoice.line.units_included",
|
|
1143
1144
|
defaultMessage: "units included",
|
|
1144
1145
|
description: "Used to specify an included units. Should be lowercase."
|
|
1145
|
-
})), 1)) :
|
|
1146
|
-
])) :
|
|
1146
|
+
})), 1)) : y("", !0)
|
|
1147
|
+
])) : y("", !0)
|
|
1147
1148
|
];
|
|
1148
1149
|
}),
|
|
1149
1150
|
_: 1
|
|
1150
1151
|
}),
|
|
1151
|
-
|
|
1152
|
+
s.value.kind === "pass-through" ? (t(), h(k, {
|
|
1152
1153
|
key: 0,
|
|
1153
1154
|
class: "text-right align-top"
|
|
1154
1155
|
}, {
|
|
1155
1156
|
default: i(() => [
|
|
1156
|
-
|
|
1157
|
+
d(r(l(g)({
|
|
1157
1158
|
id: "invoice.line.pass_through",
|
|
1158
1159
|
defaultMessage: "Pass through",
|
|
1159
1160
|
description: "Name of the pass through pricing type"
|
|
@@ -1166,20 +1167,20 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1166
1167
|
class: "align-top"
|
|
1167
1168
|
}, {
|
|
1168
1169
|
default: i(() => {
|
|
1169
|
-
var C,
|
|
1170
|
+
var C, z, X, q, Z;
|
|
1170
1171
|
return [
|
|
1171
|
-
|
|
1172
|
+
s.value.kind === "amount" ? (t(), o(p, { key: 0 }, [
|
|
1172
1173
|
a($, {
|
|
1173
|
-
value:
|
|
1174
|
+
value: s.value.amount
|
|
1174
1175
|
}, null, 8, ["value"]),
|
|
1175
|
-
((C =
|
|
1176
|
-
O.value ? (t(), o("div",
|
|
1177
|
-
], 64)) : ((
|
|
1178
|
-
|
|
1179
|
-
], 64)) : ((X =
|
|
1180
|
-
], 64)) :
|
|
1181
|
-
|
|
1182
|
-
], 64)) :
|
|
1176
|
+
((C = s.value.suffix) == null ? void 0 : C.kind) === "tier-top-bound" ? (t(), o(p, { key: 0 }, [
|
|
1177
|
+
O.value ? (t(), o("div", zt, r(O.value), 1)) : I.value ? (t(), o("div", Ht, r(P.value), 1)) : y("", !0)
|
|
1178
|
+
], 64)) : ((z = s.value.suffix) == null ? void 0 : z.kind) === "block-size-or-per-unit" ? (t(), o(p, { key: 1 }, [
|
|
1179
|
+
L.value ? (t(), o("div", Gt, r(L.value), 1)) : e.modelType !== "RECURRING" ? (t(), o("div", Xt, r(P.value), 1)) : y("", !0)
|
|
1180
|
+
], 64)) : ((X = s.value.suffix) == null ? void 0 : X.kind) === "per-unit" ? (t(), o("div", qt, r(P.value), 1)) : ((q = s.value.suffix) == null ? void 0 : q.kind) === "fixed-amount" ? (t(), o("div", jt, r(b.value), 1)) : ((Z = s.value.suffix) == null ? void 0 : Z.kind) === "flat-fee" ? (t(), o("div", Yt, r(f.value), 1)) : y("", !0)
|
|
1181
|
+
], 64)) : s.value.kind === "percentage" ? (t(), o(p, { key: 1 }, [
|
|
1182
|
+
d(r(s.value.value) + "% ", 1)
|
|
1183
|
+
], 64)) : y("", !0)
|
|
1183
1184
|
];
|
|
1184
1185
|
}),
|
|
1185
1186
|
_: 1
|
|
@@ -1190,12 +1191,12 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1190
1191
|
class: "align-top"
|
|
1191
1192
|
}, {
|
|
1192
1193
|
default: i(() => [
|
|
1193
|
-
e.hideTaxDetails ?
|
|
1194
|
-
key:
|
|
1194
|
+
e.hideTaxDetails ? y("", !0) : (t(!0), o(p, { key: 0 }, V(e.taxCategories, (C, z) => (t(), o("div", {
|
|
1195
|
+
key: z,
|
|
1195
1196
|
class: "tabular-nums"
|
|
1196
1197
|
}, [
|
|
1197
1198
|
_("div", null, r(C.percentage) + "%", 1),
|
|
1198
|
-
_("div",
|
|
1199
|
+
_("div", Kt, [
|
|
1199
1200
|
a($, {
|
|
1200
1201
|
value: C.tax_amount
|
|
1201
1202
|
}, null, 8, ["value"])
|
|
@@ -1203,22 +1204,22 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1203
1204
|
]))), 128))
|
|
1204
1205
|
]),
|
|
1205
1206
|
_: 1
|
|
1206
|
-
})) :
|
|
1207
|
+
})) : y("", !0),
|
|
1207
1208
|
a(k, {
|
|
1208
1209
|
number: "",
|
|
1209
1210
|
class: "align-top"
|
|
1210
1211
|
}, {
|
|
1211
1212
|
default: i(() => {
|
|
1212
|
-
var C,
|
|
1213
|
+
var C, z, X, q, Z;
|
|
1213
1214
|
return [
|
|
1214
|
-
(
|
|
1215
|
-
e.showTaxPerLineItem ? (t(!0), o(p, { key: 0 },
|
|
1215
|
+
(z = (C = e.details) == null ? void 0 : C.amount) != null && z.currency && ((q = (X = e.details) == null ? void 0 : X.amount) != null && q.quantity) ? (t(), o("div", Qt, [
|
|
1216
|
+
e.showTaxPerLineItem ? (t(!0), o(p, { key: 0 }, V(e.taxCategories, (oe, T) => {
|
|
1216
1217
|
var D;
|
|
1217
1218
|
return t(), o("div", {
|
|
1218
1219
|
key: T,
|
|
1219
1220
|
class: "inline-block"
|
|
1220
1221
|
}, [
|
|
1221
|
-
_("div",
|
|
1222
|
+
_("div", Jt, [
|
|
1222
1223
|
a($, {
|
|
1223
1224
|
value: e.details.amount,
|
|
1224
1225
|
"data-testid": l(se)
|
|
@@ -1232,7 +1233,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1232
1233
|
default: i(() => [
|
|
1233
1234
|
a(ce, null, {
|
|
1234
1235
|
default: i(() => [
|
|
1235
|
-
|
|
1236
|
+
d(r(l(g)({
|
|
1236
1237
|
id: "invoice.line.original_currency",
|
|
1237
1238
|
defaultMessage: "Original currency",
|
|
1238
1239
|
description: "Original currency"
|
|
@@ -1255,11 +1256,11 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1255
1256
|
})
|
|
1256
1257
|
]),
|
|
1257
1258
|
_: 1
|
|
1258
|
-
})) :
|
|
1259
|
+
})) : y("", !0)
|
|
1259
1260
|
]),
|
|
1260
|
-
e.hideTaxDetails ?
|
|
1261
|
+
e.hideTaxDetails ? y("", !0) : (t(), o("div", Zt, [
|
|
1261
1262
|
e.amountType === "INCLUDING_TAX" ? (t(), o(p, { key: 0 }, [
|
|
1262
|
-
|
|
1263
|
+
d(r(l(g)({
|
|
1263
1264
|
id: "invoice.line.excl.tax",
|
|
1264
1265
|
defaultMessage: "Excl. tax",
|
|
1265
1266
|
description: "Value excludes tax"
|
|
@@ -1268,7 +1269,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1268
1269
|
value: oe.base_amount
|
|
1269
1270
|
}, null, 8, ["value"])
|
|
1270
1271
|
], 64)) : (t(), o(p, { key: 1 }, [
|
|
1271
|
-
|
|
1272
|
+
d(r(l(g)({
|
|
1272
1273
|
id: "invoice.line.incl.tax",
|
|
1273
1274
|
defaultMessage: "Incl. tax",
|
|
1274
1275
|
description: "Value includes tax"
|
|
@@ -1279,8 +1280,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1279
1280
|
], 64))
|
|
1280
1281
|
]))
|
|
1281
1282
|
]);
|
|
1282
|
-
}), 128)) : (t(), o("div",
|
|
1283
|
-
_("div",
|
|
1283
|
+
}), 128)) : (t(), o("div", en, [
|
|
1284
|
+
_("div", tn, [
|
|
1284
1285
|
a($, {
|
|
1285
1286
|
value: e.details.amount,
|
|
1286
1287
|
"data-testid": l(se)
|
|
@@ -1294,7 +1295,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1294
1295
|
default: i(() => [
|
|
1295
1296
|
a(ce, null, {
|
|
1296
1297
|
default: i(() => [
|
|
1297
|
-
|
|
1298
|
+
d(r(l(g)({
|
|
1298
1299
|
id: "invoice.line.original_currency",
|
|
1299
1300
|
defaultMessage: "Original currency",
|
|
1300
1301
|
description: "Original currency"
|
|
@@ -1317,12 +1318,12 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1317
1318
|
})
|
|
1318
1319
|
]),
|
|
1319
1320
|
_: 1
|
|
1320
|
-
})) :
|
|
1321
|
+
})) : y("", !0)
|
|
1321
1322
|
])
|
|
1322
1323
|
])),
|
|
1323
1324
|
M(E.$slots, "one-off-line-context-menu")
|
|
1324
1325
|
])) : (t(), o(p, { key: 1 }, [
|
|
1325
|
-
|
|
1326
|
+
d("-")
|
|
1326
1327
|
], 64))
|
|
1327
1328
|
];
|
|
1328
1329
|
}),
|
|
@@ -1330,7 +1331,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1330
1331
|
})
|
|
1331
1332
|
], 64));
|
|
1332
1333
|
}
|
|
1333
|
-
}),
|
|
1334
|
+
}), nn = ["tabindex", "onClick"], Ne = /* @__PURE__ */ S({
|
|
1334
1335
|
__name: "InvoiceLineGroup",
|
|
1335
1336
|
props: {
|
|
1336
1337
|
group: {},
|
|
@@ -1345,15 +1346,15 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1345
1346
|
isExpandable: { type: Boolean, default: !0 }
|
|
1346
1347
|
},
|
|
1347
1348
|
setup(e) {
|
|
1348
|
-
const n = e,
|
|
1349
|
+
const n = e, u = B(
|
|
1349
1350
|
() => {
|
|
1350
|
-
var
|
|
1351
|
-
return (
|
|
1351
|
+
var b;
|
|
1352
|
+
return (b = [...n.group.lines ?? []]) == null ? void 0 : b.sort((f, x) => f.line_order - x.line_order);
|
|
1352
1353
|
}
|
|
1353
|
-
),
|
|
1354
|
-
|
|
1355
|
-
},
|
|
1356
|
-
return (
|
|
1354
|
+
), c = H(), { getIsOpen: m, toggle: s } = ge(), g = (b, f) => {
|
|
1355
|
+
s(v(b, f));
|
|
1356
|
+
}, v = (b, f) => `${b}-line-${f}`;
|
|
1357
|
+
return (b, f) => (t(), o("div", null, [
|
|
1357
1358
|
a(J, null, {
|
|
1358
1359
|
default: i(() => [
|
|
1359
1360
|
_("tr", null, [
|
|
@@ -1362,7 +1363,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1362
1363
|
class: "w-1/5 text-secondary"
|
|
1363
1364
|
}, {
|
|
1364
1365
|
default: i(() => [
|
|
1365
|
-
|
|
1366
|
+
d(r(l(c).$t({
|
|
1366
1367
|
id: "invoice.table_header.unit",
|
|
1367
1368
|
defaultMessage: "Unit",
|
|
1368
1369
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -1375,7 +1376,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1375
1376
|
class: "w-1/5 text-secondary"
|
|
1376
1377
|
}, {
|
|
1377
1378
|
default: i(() => [
|
|
1378
|
-
|
|
1379
|
+
d(r(l(c).$t({
|
|
1379
1380
|
id: "invoice.table_header.quantity",
|
|
1380
1381
|
defaultMessage: "Quantity",
|
|
1381
1382
|
description: "Table header for quantity column"
|
|
@@ -1388,7 +1389,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1388
1389
|
class: "w-1/5 text-secondary"
|
|
1389
1390
|
}, {
|
|
1390
1391
|
default: i(() => [
|
|
1391
|
-
|
|
1392
|
+
d(r(l(c).$t({
|
|
1392
1393
|
id: "invoice.table_header.price",
|
|
1393
1394
|
defaultMessage: "Price",
|
|
1394
1395
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -1402,20 +1403,20 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1402
1403
|
class: "w-1/5 text-secondary"
|
|
1403
1404
|
}, {
|
|
1404
1405
|
default: i(() => [
|
|
1405
|
-
|
|
1406
|
+
d(r(l(c).$t({
|
|
1406
1407
|
id: "invoice.table_header.tax_rate",
|
|
1407
1408
|
defaultMessage: "Tax rate",
|
|
1408
1409
|
description: "Table header for the column containing the tax percentage of invoice groups"
|
|
1409
1410
|
})), 1)
|
|
1410
1411
|
]),
|
|
1411
1412
|
_: 1
|
|
1412
|
-
})) :
|
|
1413
|
+
})) : y("", !0),
|
|
1413
1414
|
a(w, {
|
|
1414
1415
|
right: "",
|
|
1415
1416
|
class: "w-1/5 text-secondary"
|
|
1416
1417
|
}, {
|
|
1417
1418
|
default: i(() => [
|
|
1418
|
-
|
|
1419
|
+
d(r(l(c).$t({
|
|
1419
1420
|
id: "invoice.table_header.sub_total",
|
|
1420
1421
|
defaultMessage: "Subtotal",
|
|
1421
1422
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -1424,42 +1425,42 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1424
1425
|
_: 1
|
|
1425
1426
|
})
|
|
1426
1427
|
]),
|
|
1427
|
-
(t(!0), o(p, null,
|
|
1428
|
+
(t(!0), o(p, null, V(u.value, (x, O) => (t(), o(p, { key: O }, [
|
|
1428
1429
|
_("tr", {
|
|
1429
1430
|
tabindex: e.isExpandable && x.sub_lines ? 0 : void 0,
|
|
1430
|
-
class:
|
|
1431
|
+
class: N(["group", {
|
|
1431
1432
|
"cursor-pointer": e.isExpandable && x.sub_lines,
|
|
1432
1433
|
"border-t": O !== 0
|
|
1433
1434
|
}]),
|
|
1434
|
-
onClick: (I) =>
|
|
1435
|
+
onClick: (I) => g(e.group.group_order, x.line_order)
|
|
1435
1436
|
}, [
|
|
1436
|
-
(t(), h(
|
|
1437
|
+
(t(), h(St, {
|
|
1437
1438
|
key: O,
|
|
1438
1439
|
data: x,
|
|
1439
1440
|
"period-order": e.invoicePeriodOrder,
|
|
1440
1441
|
"group-order": e.group.group_order,
|
|
1441
|
-
"is-last": O ===
|
|
1442
|
+
"is-last": O === u.value.length - 1,
|
|
1442
1443
|
"group-type": e.group.type,
|
|
1443
|
-
"is-expanded": l(
|
|
1444
|
+
"is-expanded": l(m)(v(e.group.group_order, x.line_order))
|
|
1444
1445
|
}, {
|
|
1445
1446
|
"invoice-line-prefix": i((I) => [
|
|
1446
|
-
M(
|
|
1447
|
+
M(b.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, I))
|
|
1447
1448
|
]),
|
|
1448
1449
|
"line-content": i((I) => {
|
|
1449
|
-
var
|
|
1450
|
+
var P, U;
|
|
1450
1451
|
return [
|
|
1451
1452
|
a(he, {
|
|
1452
1453
|
details: I.details,
|
|
1453
1454
|
"pricing-type": x.pricing_type,
|
|
1454
1455
|
"tax-categories": x.tax_categories,
|
|
1455
1456
|
"amount-type": e.amountType,
|
|
1456
|
-
"model-type": (
|
|
1457
|
+
"model-type": (U = (P = x.product_items) == null ? void 0 : P[0]) == null ? void 0 : U.model_type,
|
|
1457
1458
|
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1458
1459
|
}, Ie({ _: 2 }, [
|
|
1459
1460
|
x.type === "ONE_OFF" ? {
|
|
1460
1461
|
name: "one-off-line-context-menu",
|
|
1461
|
-
fn: i((
|
|
1462
|
-
M(
|
|
1462
|
+
fn: i((L) => [
|
|
1463
|
+
M(b.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, L, {
|
|
1463
1464
|
lineOrder: x.line_order
|
|
1464
1465
|
}))
|
|
1465
1466
|
]),
|
|
@@ -1470,24 +1471,24 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1470
1471
|
}),
|
|
1471
1472
|
_: 2
|
|
1472
1473
|
}, 1032, ["data", "period-order", "group-order", "is-last", "group-type", "is-expanded"]))
|
|
1473
|
-
], 10,
|
|
1474
|
-
a(
|
|
1474
|
+
], 10, nn),
|
|
1475
|
+
a(ye, {
|
|
1475
1476
|
ref_for: !0,
|
|
1476
|
-
ref:
|
|
1477
|
+
ref: v(e.group.group_order, x.line_order),
|
|
1477
1478
|
"sub-lines": x.sub_lines ?? [],
|
|
1478
1479
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
1479
1480
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer,
|
|
1480
1481
|
"line-order": x.line_order,
|
|
1481
|
-
"is-open": l(
|
|
1482
|
+
"is-open": l(m)(v(e.group.group_order, x.line_order)),
|
|
1482
1483
|
"period-order": e.invoicePeriodOrder,
|
|
1483
1484
|
"group-order": e.group.group_order,
|
|
1484
1485
|
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1485
1486
|
}, {
|
|
1486
1487
|
"invoice-line-prefix": i((I) => [
|
|
1487
|
-
M(
|
|
1488
|
+
M(b.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, I))
|
|
1488
1489
|
]),
|
|
1489
1490
|
"subline-content": i((I) => {
|
|
1490
|
-
var
|
|
1491
|
+
var P, U;
|
|
1491
1492
|
return [
|
|
1492
1493
|
a(he, {
|
|
1493
1494
|
details: I.details,
|
|
@@ -1496,7 +1497,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1496
1497
|
"pricing-type": x.pricing_type,
|
|
1497
1498
|
"tax-categories": x.tax_categories,
|
|
1498
1499
|
"amount-type": e.amountType,
|
|
1499
|
-
"model-type": (
|
|
1500
|
+
"model-type": (U = (P = x.product_items) == null ? void 0 : P[0]) == null ? void 0 : U.model_type,
|
|
1500
1501
|
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1501
1502
|
}, null, 8, ["details", "hide-tax-details", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
|
|
1502
1503
|
];
|
|
@@ -1509,21 +1510,21 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1509
1510
|
})
|
|
1510
1511
|
]));
|
|
1511
1512
|
}
|
|
1512
|
-
}),
|
|
1513
|
+
}), an = { class: "flex items-center" }, on = {
|
|
1513
1514
|
key: 2,
|
|
1514
1515
|
class: "ml-1 inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-full bg-primary-100 text-2xs font-bold text-primary-600"
|
|
1515
|
-
}, me = /* @__PURE__ */
|
|
1516
|
+
}, me = /* @__PURE__ */ S({
|
|
1516
1517
|
__name: "InvoiceTableRowLabel",
|
|
1517
1518
|
props: {
|
|
1518
1519
|
label: {},
|
|
1519
1520
|
count: {}
|
|
1520
1521
|
},
|
|
1521
1522
|
setup(e) {
|
|
1522
|
-
const n = re(),
|
|
1523
|
-
return Fe(n, ([
|
|
1524
|
-
|
|
1525
|
-
}), (
|
|
1526
|
-
|
|
1523
|
+
const n = re(), u = re(!1);
|
|
1524
|
+
return Fe(n, ([c]) => {
|
|
1525
|
+
u.value = c.target.clientWidth < c.target.scrollWidth;
|
|
1526
|
+
}), (c, m) => (t(), o("div", an, [
|
|
1527
|
+
u.value ? (t(), h(de, {
|
|
1527
1528
|
key: 0,
|
|
1528
1529
|
placement: "bottom-start",
|
|
1529
1530
|
class: "min-w-0 leading-normal"
|
|
@@ -1533,7 +1534,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1533
1534
|
default: i(() => [
|
|
1534
1535
|
a(ce, null, {
|
|
1535
1536
|
default: i(() => [
|
|
1536
|
-
|
|
1537
|
+
d(r(e.label), 1)
|
|
1537
1538
|
]),
|
|
1538
1539
|
_: 1
|
|
1539
1540
|
})
|
|
@@ -1553,15 +1554,15 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1553
1554
|
key: 1,
|
|
1554
1555
|
ref_key: "labelElement",
|
|
1555
1556
|
ref: n,
|
|
1556
|
-
class:
|
|
1557
|
+
class: N(["block", { truncate: e.count !== void 0 }])
|
|
1557
1558
|
}, r(e.label), 3)),
|
|
1558
|
-
e.count !== void 0 ? (t(), o("span",
|
|
1559
|
+
e.count !== void 0 ? (t(), o("span", on, r(e.count), 1)) : y("", !0)
|
|
1559
1560
|
]));
|
|
1560
1561
|
}
|
|
1561
|
-
}),
|
|
1562
|
+
}), ln = ["tabindex"], rn = { key: 0 }, sn = {
|
|
1562
1563
|
colspan: "2",
|
|
1563
1564
|
class: "p-0"
|
|
1564
|
-
},
|
|
1565
|
+
}, dn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, un = /* @__PURE__ */ S({
|
|
1565
1566
|
__name: "InvoiceGroupRevenue",
|
|
1566
1567
|
props: {
|
|
1567
1568
|
forwardedFromCustomers: {},
|
|
@@ -1580,49 +1581,49 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1580
1581
|
showTaxPerLineItem: { type: Boolean, default: !0 }
|
|
1581
1582
|
},
|
|
1582
1583
|
setup(e) {
|
|
1583
|
-
const n = e,
|
|
1584
|
-
var
|
|
1585
|
-
const
|
|
1586
|
-
(
|
|
1587
|
-
|
|
1588
|
-
].filter(Boolean).join(" - "),
|
|
1584
|
+
const n = e, u = B(() => {
|
|
1585
|
+
var c, m, s;
|
|
1586
|
+
const g = [
|
|
1587
|
+
(c = n.group.pricing) == null ? void 0 : c.name,
|
|
1588
|
+
be(((m = n.group.products) == null ? void 0 : m.map((f) => f.name)) ?? [])
|
|
1589
|
+
].filter(Boolean).join(" - "), v = Mt(
|
|
1589
1590
|
n.group,
|
|
1590
1591
|
!!n.showOriginalCustomerInvoiceLine
|
|
1591
1592
|
);
|
|
1592
|
-
if (!
|
|
1593
|
-
return
|
|
1594
|
-
const
|
|
1595
|
-
(
|
|
1593
|
+
if (!v)
|
|
1594
|
+
return g;
|
|
1595
|
+
const b = (s = n.forwardedFromCustomers) == null ? void 0 : s.find(
|
|
1596
|
+
(f) => f.id === v
|
|
1596
1597
|
);
|
|
1597
|
-
return [
|
|
1598
|
+
return [b && $e(b), g].filter(Boolean).join(" - ");
|
|
1598
1599
|
});
|
|
1599
|
-
return (
|
|
1600
|
+
return (c, m) => (t(), o(p, null, [
|
|
1600
1601
|
_("tr", {
|
|
1601
|
-
class:
|
|
1602
|
+
class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
|
|
1602
1603
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
1603
|
-
onClick:
|
|
1604
|
+
onClick: m[0] || (m[0] = (s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
1604
1605
|
onKeyup: [
|
|
1605
|
-
|
|
1606
|
-
|
|
1606
|
+
m[1] || (m[1] = j((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
1607
|
+
m[2] || (m[2] = j((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
1607
1608
|
]
|
|
1608
1609
|
}, [
|
|
1609
1610
|
a(k, { class: "p-0" }, {
|
|
1610
1611
|
default: i(() => {
|
|
1611
|
-
var
|
|
1612
|
+
var s;
|
|
1612
1613
|
return [
|
|
1613
1614
|
e.isExpandable ? (t(), h(G, {
|
|
1614
1615
|
key: 0,
|
|
1615
1616
|
icon: "keyboard_arrow_down",
|
|
1616
1617
|
size: "md",
|
|
1617
|
-
class:
|
|
1618
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
1618
1619
|
"-rotate-90": !e.expandedItems.includes(
|
|
1619
1620
|
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
1620
1621
|
)
|
|
1621
1622
|
}])
|
|
1622
|
-
}, null, 8, ["class"])) :
|
|
1623
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
1623
1624
|
a(me, {
|
|
1624
|
-
label:
|
|
1625
|
-
count: e.isExpandable ? ((
|
|
1625
|
+
label: u.value,
|
|
1626
|
+
count: e.isExpandable ? ((s = e.group.lines) == null ? void 0 : s.length) ?? 0 : void 0
|
|
1626
1627
|
}, null, 8, ["label", "count"])
|
|
1627
1628
|
];
|
|
1628
1629
|
}),
|
|
@@ -1644,11 +1645,11 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1644
1645
|
]),
|
|
1645
1646
|
_: 1
|
|
1646
1647
|
})
|
|
1647
|
-
], 42,
|
|
1648
|
-
e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), o("tr",
|
|
1649
|
-
_("td",
|
|
1650
|
-
_("div",
|
|
1651
|
-
a(
|
|
1648
|
+
], 42, ln),
|
|
1649
|
+
e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), o("tr", rn, [
|
|
1650
|
+
_("td", sn, [
|
|
1651
|
+
_("div", dn, [
|
|
1652
|
+
a(Ne, {
|
|
1652
1653
|
"invoice-period-order": e.invoicePeriodOrder,
|
|
1653
1654
|
"start-date": e.group.start_at,
|
|
1654
1655
|
"end-date": e.group.end_at,
|
|
@@ -1660,59 +1661,45 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1660
1661
|
"show-tax-per-line-item": e.showTaxPerLineItem,
|
|
1661
1662
|
"is-expandable": e.isExpandable
|
|
1662
1663
|
}, {
|
|
1663
|
-
"invoice-line-prefix": i((
|
|
1664
|
-
M(
|
|
1664
|
+
"invoice-line-prefix": i((s) => [
|
|
1665
|
+
M(c.$slots, "invoice-line-prefix", ve(fe(s)))
|
|
1665
1666
|
]),
|
|
1666
|
-
"one-off-line-context-menu": i((
|
|
1667
|
-
M(
|
|
1667
|
+
"one-off-line-context-menu": i((s) => [
|
|
1668
|
+
M(c.$slots, "one-off-line-context-menu", Q(s, { groupOrder: e.groupOrder }))
|
|
1668
1669
|
]),
|
|
1669
1670
|
_: 3
|
|
1670
1671
|
}, 8, ["invoice-period-order", "start-date", "end-date", "total", "group", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "show-tax-per-line-item", "is-expandable"])
|
|
1671
1672
|
])
|
|
1672
1673
|
])
|
|
1673
|
-
])) :
|
|
1674
|
+
])) : y("", !0)
|
|
1674
1675
|
], 64));
|
|
1675
1676
|
}
|
|
1676
|
-
}), _e = /* @__PURE__ */
|
|
1677
|
+
}), _e = /* @__PURE__ */ S({
|
|
1677
1678
|
__name: "InvoiceGroupWalletBalance",
|
|
1678
1679
|
props: {
|
|
1679
1680
|
lines: {},
|
|
1680
1681
|
creditTypes: {}
|
|
1681
1682
|
},
|
|
1682
1683
|
setup(e) {
|
|
1683
|
-
const n = e, { $t:
|
|
1684
|
-
() =>
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1684
|
+
const n = e, { $t: u } = H(), c = B(
|
|
1685
|
+
() => Ve(We(n.lines), {
|
|
1686
|
+
creditTypes: n.creditTypes,
|
|
1687
|
+
creditsLabel: u({
|
|
1688
|
+
defaultMessage: "Credits",
|
|
1689
|
+
description: "Generic fallback label for a wallet balance row with no known credit type",
|
|
1690
|
+
id: "invoiceGroupWalletBalance.creditsLabel"
|
|
1691
|
+
}),
|
|
1692
|
+
walletLabel: u({
|
|
1693
|
+
defaultMessage: "Wallet balance",
|
|
1694
|
+
description: "Label for a wallet balance row of a wallet that pays in money",
|
|
1695
|
+
id: "invoiceGroupWalletBalance.walletBalanceLabel"
|
|
1696
|
+
})
|
|
1688
1697
|
})
|
|
1689
|
-
),
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
const c = /* @__PURE__ */ new Set();
|
|
1693
|
-
return (n.lines ?? []).map((u) => {
|
|
1694
|
-
var s;
|
|
1695
|
-
return (s = u.details) == null ? void 0 : s.wallet_balance_details;
|
|
1696
|
-
}).filter((u) => !!u).map((u, s) => {
|
|
1697
|
-
var x, O, I;
|
|
1698
|
-
const N = [
|
|
1699
|
-
u.used_wallet_credits,
|
|
1700
|
-
u.left_wallet_credits,
|
|
1701
|
-
u.available_wallet_credits
|
|
1702
|
-
].find((A) => !!(A != null && A.credit_type_id));
|
|
1703
|
-
return {
|
|
1704
|
-
key: `${(N == null ? void 0 : N.credit_type_id) ?? "credits"}-${s}`,
|
|
1705
|
-
label: d(N),
|
|
1706
|
-
available: ((x = u.available_wallet_credits) == null ? void 0 : x.quantity) ?? "-",
|
|
1707
|
-
used: ((O = u.used_wallet_credits) == null ? void 0 : O.quantity) ?? "-",
|
|
1708
|
-
left: ((I = u.left_wallet_credits) == null ? void 0 : I.quantity) ?? "-"
|
|
1709
|
-
};
|
|
1710
|
-
}).filter((u) => {
|
|
1711
|
-
const s = `${u.label}-${u.available}-${u.used}-${u.left}`;
|
|
1712
|
-
return c.has(s) ? !1 : (c.add(s), !0);
|
|
1713
|
-
});
|
|
1698
|
+
), m = (s) => ze(s, {
|
|
1699
|
+
formatMoney: we,
|
|
1700
|
+
formatQuantity: (g) => g
|
|
1714
1701
|
});
|
|
1715
|
-
return (
|
|
1702
|
+
return (s, g) => c.value.length ? (t(), h(J, { key: 0 }, {
|
|
1716
1703
|
default: i(() => [
|
|
1717
1704
|
_("tr", null, [
|
|
1718
1705
|
a(w, {
|
|
@@ -1720,10 +1707,10 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1720
1707
|
class: "w-2/5 text-gray-400"
|
|
1721
1708
|
}, {
|
|
1722
1709
|
default: i(() => [
|
|
1723
|
-
|
|
1724
|
-
defaultMessage: "
|
|
1725
|
-
description: "Table heading for the
|
|
1726
|
-
id: "invoiceGroupWalletBalance.
|
|
1710
|
+
d(r(l(u)({
|
|
1711
|
+
defaultMessage: "Wallet breakdown",
|
|
1712
|
+
description: "Table heading for the wallet column in the wallet balance table",
|
|
1713
|
+
id: "invoiceGroupWalletBalance.walletBreakdownHeading"
|
|
1727
1714
|
})), 1)
|
|
1728
1715
|
]),
|
|
1729
1716
|
_: 1
|
|
@@ -1733,10 +1720,10 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1733
1720
|
class: "w-1/5 text-gray-400"
|
|
1734
1721
|
}, {
|
|
1735
1722
|
default: i(() => [
|
|
1736
|
-
|
|
1737
|
-
defaultMessage: "
|
|
1738
|
-
description: "Table heading for the
|
|
1739
|
-
id: "invoiceGroupWalletBalance.
|
|
1723
|
+
d(r(l(u)({
|
|
1724
|
+
defaultMessage: "Balance",
|
|
1725
|
+
description: "Table heading for the balance column in the wallet balance table",
|
|
1726
|
+
id: "invoiceGroupWalletBalance.balanceHeading"
|
|
1740
1727
|
})), 1)
|
|
1741
1728
|
]),
|
|
1742
1729
|
_: 1
|
|
@@ -1746,9 +1733,9 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1746
1733
|
class: "w-1/5 text-gray-400"
|
|
1747
1734
|
}, {
|
|
1748
1735
|
default: i(() => [
|
|
1749
|
-
|
|
1736
|
+
d(r(l(u)({
|
|
1750
1737
|
defaultMessage: "Used",
|
|
1751
|
-
description: "Table heading for the used-
|
|
1738
|
+
description: "Table heading for the used-balance column in the wallet balance table",
|
|
1752
1739
|
id: "invoiceGroupWalletBalance.usedHeading"
|
|
1753
1740
|
})), 1)
|
|
1754
1741
|
]),
|
|
@@ -1759,82 +1746,82 @@ const J = /* @__PURE__ */ Se(qe, [["render", Xe]]), k = /* @__PURE__ */ L({
|
|
|
1759
1746
|
class: "w-1/5 text-gray-400"
|
|
1760
1747
|
}, {
|
|
1761
1748
|
default: i(() => [
|
|
1762
|
-
|
|
1763
|
-
defaultMessage: "
|
|
1764
|
-
description: "Table heading for the remaining-
|
|
1765
|
-
id: "invoiceGroupWalletBalance.
|
|
1749
|
+
d(r(l(u)({
|
|
1750
|
+
defaultMessage: "Remaining",
|
|
1751
|
+
description: "Table heading for the remaining-balance column in the wallet balance table",
|
|
1752
|
+
id: "invoiceGroupWalletBalance.remainingHeading"
|
|
1766
1753
|
})), 1)
|
|
1767
1754
|
]),
|
|
1768
1755
|
_: 1
|
|
1769
1756
|
})
|
|
1770
1757
|
]),
|
|
1771
|
-
(t(!0), o(p, null,
|
|
1772
|
-
key:
|
|
1758
|
+
(t(!0), o(p, null, V(c.value, (v) => (t(), o("tr", {
|
|
1759
|
+
key: v.key
|
|
1773
1760
|
}, [
|
|
1774
1761
|
a(k, null, {
|
|
1775
1762
|
default: i(() => [
|
|
1776
|
-
|
|
1763
|
+
d(r(v.label), 1)
|
|
1777
1764
|
]),
|
|
1778
1765
|
_: 2
|
|
1779
1766
|
}, 1024),
|
|
1780
1767
|
a(k, { number: "" }, {
|
|
1781
1768
|
default: i(() => [
|
|
1782
|
-
|
|
1769
|
+
d(r(m(v.availableBalance)), 1)
|
|
1783
1770
|
]),
|
|
1784
1771
|
_: 2
|
|
1785
1772
|
}, 1024),
|
|
1786
1773
|
a(k, { number: "" }, {
|
|
1787
1774
|
default: i(() => [
|
|
1788
|
-
|
|
1775
|
+
d(r(m(v.usedBalance)), 1)
|
|
1789
1776
|
]),
|
|
1790
1777
|
_: 2
|
|
1791
1778
|
}, 1024),
|
|
1792
1779
|
a(k, { number: "" }, {
|
|
1793
1780
|
default: i(() => [
|
|
1794
|
-
|
|
1781
|
+
d(r(m(v.leftBalance)), 1)
|
|
1795
1782
|
]),
|
|
1796
1783
|
_: 2
|
|
1797
1784
|
}, 1024)
|
|
1798
1785
|
]))), 128))
|
|
1799
1786
|
]),
|
|
1800
1787
|
_: 1
|
|
1801
|
-
})) :
|
|
1788
|
+
})) : y("", !0);
|
|
1802
1789
|
}
|
|
1803
1790
|
});
|
|
1804
1791
|
function ke(e) {
|
|
1805
1792
|
return typeof e == "function" ? e() : l(e);
|
|
1806
1793
|
}
|
|
1807
1794
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1808
|
-
function
|
|
1795
|
+
function cn(e = !1, n = {}) {
|
|
1809
1796
|
const {
|
|
1810
|
-
truthyValue:
|
|
1811
|
-
falsyValue:
|
|
1812
|
-
} = n,
|
|
1813
|
-
function
|
|
1797
|
+
truthyValue: u = !0,
|
|
1798
|
+
falsyValue: c = !1
|
|
1799
|
+
} = n, m = Ae(e), s = re(e);
|
|
1800
|
+
function g(v) {
|
|
1814
1801
|
if (arguments.length)
|
|
1815
|
-
return
|
|
1802
|
+
return s.value = v, s.value;
|
|
1816
1803
|
{
|
|
1817
|
-
const
|
|
1818
|
-
return
|
|
1804
|
+
const b = ke(u);
|
|
1805
|
+
return s.value = s.value === b ? ke(c) : b, s.value;
|
|
1819
1806
|
}
|
|
1820
1807
|
}
|
|
1821
|
-
return
|
|
1808
|
+
return m ? g : [s, g];
|
|
1822
1809
|
}
|
|
1823
|
-
const
|
|
1810
|
+
const mn = {
|
|
1824
1811
|
key: 0,
|
|
1825
1812
|
totals: "",
|
|
1826
1813
|
class: "border-t break-inside-avoid"
|
|
1827
|
-
}, Te = /* @__PURE__ */
|
|
1814
|
+
}, Te = /* @__PURE__ */ S({
|
|
1828
1815
|
__name: "InvoiceSummaryTotalExcludingTax",
|
|
1829
1816
|
props: {
|
|
1830
1817
|
baseAmount: {}
|
|
1831
1818
|
},
|
|
1832
1819
|
setup(e) {
|
|
1833
1820
|
const n = H();
|
|
1834
|
-
return (
|
|
1821
|
+
return (u, c) => e.baseAmount ? (t(), o("tr", mn, [
|
|
1835
1822
|
a(k, null, {
|
|
1836
1823
|
default: i(() => [
|
|
1837
|
-
|
|
1824
|
+
d(r(l(n).$t({
|
|
1838
1825
|
id: "invoice.table_header.total_excluding_taxes",
|
|
1839
1826
|
defaultMessage: "Total excluding taxes",
|
|
1840
1827
|
description: "Table row header for the total excluding taxes column in the invoice table"
|
|
@@ -1846,17 +1833,17 @@ const dn = {
|
|
|
1846
1833
|
default: i(() => [
|
|
1847
1834
|
a($, {
|
|
1848
1835
|
value: e.baseAmount,
|
|
1849
|
-
"data-testid": l(
|
|
1836
|
+
"data-testid": l(et)
|
|
1850
1837
|
}, null, 8, ["value", "data-testid"])
|
|
1851
1838
|
]),
|
|
1852
1839
|
_: 1
|
|
1853
1840
|
})
|
|
1854
|
-
])) :
|
|
1841
|
+
])) : y("", !0);
|
|
1855
1842
|
}
|
|
1856
|
-
}),
|
|
1843
|
+
}), vn = {
|
|
1857
1844
|
key: 0,
|
|
1858
1845
|
class: "border-t font-bold break-inside-avoid"
|
|
1859
|
-
}, Oe = /* @__PURE__ */
|
|
1846
|
+
}, Oe = /* @__PURE__ */ S({
|
|
1860
1847
|
__name: "InvoiceSummaryTotalIncludingTax",
|
|
1861
1848
|
props: {
|
|
1862
1849
|
totalAmount: {},
|
|
@@ -1864,10 +1851,10 @@ const dn = {
|
|
|
1864
1851
|
},
|
|
1865
1852
|
setup(e) {
|
|
1866
1853
|
const n = H();
|
|
1867
|
-
return (
|
|
1854
|
+
return (u, c) => e.totalAmount ? (t(), o("tr", vn, [
|
|
1868
1855
|
a(k, { class: "font-bold" }, {
|
|
1869
1856
|
default: i(() => [
|
|
1870
|
-
|
|
1857
|
+
d(r(e.isCustomerFacing ? l(n).$t({
|
|
1871
1858
|
id: "invoice.table_header.total_including_taxes_customer_facing",
|
|
1872
1859
|
defaultMessage: "Total due today",
|
|
1873
1860
|
description: "Table row header for the total including taxes column in the invoice table for a customer facing component"
|
|
@@ -1883,30 +1870,30 @@ const dn = {
|
|
|
1883
1870
|
default: i(() => [
|
|
1884
1871
|
a($, {
|
|
1885
1872
|
value: e.totalAmount,
|
|
1886
|
-
"data-testid": l(
|
|
1873
|
+
"data-testid": l(Ze)
|
|
1887
1874
|
}, null, 8, ["value", "data-testid"])
|
|
1888
1875
|
]),
|
|
1889
1876
|
_: 1
|
|
1890
1877
|
})
|
|
1891
|
-
])) :
|
|
1878
|
+
])) : y("", !0);
|
|
1892
1879
|
}
|
|
1893
|
-
}),
|
|
1880
|
+
}), fn = {
|
|
1894
1881
|
key: 0,
|
|
1895
1882
|
colspan: "4",
|
|
1896
1883
|
class: "p-0"
|
|
1897
|
-
},
|
|
1884
|
+
}, gn = /* @__PURE__ */ S({
|
|
1898
1885
|
__name: "InvoiceTaxes",
|
|
1899
1886
|
props: {
|
|
1900
1887
|
taxCategories: {}
|
|
1901
1888
|
},
|
|
1902
1889
|
setup(e) {
|
|
1903
1890
|
const n = H();
|
|
1904
|
-
return (
|
|
1891
|
+
return (u, c) => (t(), h(J, { class: "table-fixed" }, {
|
|
1905
1892
|
default: i(() => [
|
|
1906
1893
|
_("tr", null, [
|
|
1907
1894
|
a(w, { left: "" }, {
|
|
1908
1895
|
default: i(() => [
|
|
1909
|
-
|
|
1896
|
+
d(r(l(n).$t({
|
|
1910
1897
|
id: "invoice.table_header.tax type",
|
|
1911
1898
|
defaultMessage: "Tax type",
|
|
1912
1899
|
description: "Table header for the column containing the tax type"
|
|
@@ -1916,7 +1903,7 @@ const dn = {
|
|
|
1916
1903
|
}),
|
|
1917
1904
|
a(w, { right: "" }, {
|
|
1918
1905
|
default: i(() => [
|
|
1919
|
-
|
|
1906
|
+
d(r(l(n).$t({
|
|
1920
1907
|
id: "invoice.table_header.base amount",
|
|
1921
1908
|
defaultMessage: "Base amount",
|
|
1922
1909
|
description: "Table header for the column containing the base amount"
|
|
@@ -1926,7 +1913,7 @@ const dn = {
|
|
|
1926
1913
|
}),
|
|
1927
1914
|
a(w, { right: "" }, {
|
|
1928
1915
|
default: i(() => [
|
|
1929
|
-
|
|
1916
|
+
d(r(l(n).$t({
|
|
1930
1917
|
id: "invoice.table_header.tax_percentage",
|
|
1931
1918
|
defaultMessage: "Percentage",
|
|
1932
1919
|
description: "Table header for the column containing the tax percentage"
|
|
@@ -1936,7 +1923,7 @@ const dn = {
|
|
|
1936
1923
|
}),
|
|
1937
1924
|
a(w, { right: "" }, {
|
|
1938
1925
|
default: i(() => [
|
|
1939
|
-
|
|
1926
|
+
d(r(l(n).$t({
|
|
1940
1927
|
id: "invoice.table_header.tax amount",
|
|
1941
1928
|
defaultMessage: "Tax amount",
|
|
1942
1929
|
description: "Table header for the column containing the tax amount"
|
|
@@ -1945,35 +1932,35 @@ const dn = {
|
|
|
1945
1932
|
_: 1
|
|
1946
1933
|
})
|
|
1947
1934
|
]),
|
|
1948
|
-
(t(!0), o(p, null,
|
|
1949
|
-
|
|
1935
|
+
(t(!0), o(p, null, V(e.taxCategories, (m, s) => (t(), o("tr", { key: s }, [
|
|
1936
|
+
m.rates ? (t(), o("td", fn, [
|
|
1950
1937
|
a(J, { class: "table-fixed" }, {
|
|
1951
1938
|
default: i(() => [
|
|
1952
|
-
(t(!0), o(p, null,
|
|
1939
|
+
(t(!0), o(p, null, V(m.rates, (g, v) => (t(), o("tr", { key: v }, [
|
|
1953
1940
|
a(k, null, {
|
|
1954
1941
|
default: i(() => [
|
|
1955
|
-
|
|
1942
|
+
d(r(g.name) + " (" + r(m.category) + ") ", 1)
|
|
1956
1943
|
]),
|
|
1957
1944
|
_: 2
|
|
1958
1945
|
}, 1024),
|
|
1959
1946
|
a(k, { number: "" }, {
|
|
1960
1947
|
default: i(() => [
|
|
1961
1948
|
a($, {
|
|
1962
|
-
value:
|
|
1949
|
+
value: m.base_amount
|
|
1963
1950
|
}, null, 8, ["value"])
|
|
1964
1951
|
]),
|
|
1965
1952
|
_: 2
|
|
1966
1953
|
}, 1024),
|
|
1967
1954
|
a(k, { number: "" }, {
|
|
1968
1955
|
default: i(() => [
|
|
1969
|
-
|
|
1956
|
+
d(r(g.percentage) + "%", 1)
|
|
1970
1957
|
]),
|
|
1971
1958
|
_: 2
|
|
1972
1959
|
}, 1024),
|
|
1973
1960
|
a(k, { number: "" }, {
|
|
1974
1961
|
default: i(() => [
|
|
1975
1962
|
a($, {
|
|
1976
|
-
value:
|
|
1963
|
+
value: g.tax_amount
|
|
1977
1964
|
}, null, 8, ["value"])
|
|
1978
1965
|
]),
|
|
1979
1966
|
_: 2
|
|
@@ -1985,28 +1972,28 @@ const dn = {
|
|
|
1985
1972
|
])) : (t(), o(p, { key: 1 }, [
|
|
1986
1973
|
a(k, null, {
|
|
1987
1974
|
default: i(() => [
|
|
1988
|
-
|
|
1975
|
+
d(r(m.name) + " (" + r(m.category) + ") ", 1)
|
|
1989
1976
|
]),
|
|
1990
1977
|
_: 2
|
|
1991
1978
|
}, 1024),
|
|
1992
1979
|
a(k, { number: "" }, {
|
|
1993
1980
|
default: i(() => [
|
|
1994
1981
|
a($, {
|
|
1995
|
-
value:
|
|
1982
|
+
value: m.base_amount
|
|
1996
1983
|
}, null, 8, ["value"])
|
|
1997
1984
|
]),
|
|
1998
1985
|
_: 2
|
|
1999
1986
|
}, 1024),
|
|
2000
1987
|
a(k, { number: "" }, {
|
|
2001
1988
|
default: i(() => [
|
|
2002
|
-
|
|
1989
|
+
d(r(m.percentage) + "%", 1)
|
|
2003
1990
|
]),
|
|
2004
1991
|
_: 2
|
|
2005
1992
|
}, 1024),
|
|
2006
1993
|
a(k, { number: "" }, {
|
|
2007
1994
|
default: i(() => [
|
|
2008
1995
|
a($, {
|
|
2009
|
-
value:
|
|
1996
|
+
value: m.tax_amount
|
|
2010
1997
|
}, null, 8, ["value"])
|
|
2011
1998
|
]),
|
|
2012
1999
|
_: 2
|
|
@@ -2017,25 +2004,25 @@ const dn = {
|
|
|
2017
2004
|
_: 1
|
|
2018
2005
|
}));
|
|
2019
2006
|
}
|
|
2020
|
-
}),
|
|
2007
|
+
}), bn = { class: "flex items-start justify-between" }, yn = {
|
|
2021
2008
|
key: 0,
|
|
2022
2009
|
class: "max-h-9"
|
|
2023
|
-
},
|
|
2010
|
+
}, pn = { class: "flex flex-col gap-2" }, xn = { key: 0 }, hn = { key: 3 }, _n = {
|
|
2024
2011
|
colspan: "2",
|
|
2025
2012
|
class: "p-0"
|
|
2026
|
-
},
|
|
2013
|
+
}, kn = ["tabindex"], Tn = { key: 1 }, On = {
|
|
2027
2014
|
colspan: "2",
|
|
2028
2015
|
class: "p-0"
|
|
2029
|
-
},
|
|
2016
|
+
}, In = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, $n = ["tabindex", "onClick", "onKeyup"], Mn = { key: 0 }, wn = {
|
|
2030
2017
|
colspan: "2",
|
|
2031
2018
|
class: "p-0"
|
|
2032
|
-
},
|
|
2019
|
+
}, En = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Cn = { key: 1 }, Nn = {
|
|
2033
2020
|
colspan: "2",
|
|
2034
2021
|
class: "p-0"
|
|
2035
|
-
},
|
|
2022
|
+
}, Bn = {
|
|
2036
2023
|
key: 0,
|
|
2037
2024
|
class: "break-inside-avoid border-t font-bold"
|
|
2038
|
-
},
|
|
2025
|
+
}, Kn = /* @__PURE__ */ S({
|
|
2039
2026
|
__name: "InvoiceSummary",
|
|
2040
2027
|
props: {
|
|
2041
2028
|
invoice: {},
|
|
@@ -2047,66 +2034,66 @@ const dn = {
|
|
|
2047
2034
|
showRenderedServicesHeader: { type: Boolean, default: !0 },
|
|
2048
2035
|
isCustomerFacing: { type: Boolean },
|
|
2049
2036
|
showTotals: { type: Boolean, default: !0 },
|
|
2050
|
-
|
|
2037
|
+
hideOneOffWalletBalance: { type: Boolean, default: !1 },
|
|
2051
2038
|
showWalletBalance: { type: Boolean, default: !0 }
|
|
2052
2039
|
},
|
|
2053
2040
|
emits: ["add-invoice-line", "add-note"],
|
|
2054
2041
|
setup(e, { emit: n }) {
|
|
2055
|
-
const
|
|
2056
|
-
|
|
2057
|
-
},
|
|
2058
|
-
|
|
2059
|
-
},
|
|
2060
|
-
!
|
|
2061
|
-
},
|
|
2042
|
+
const u = H(), { formatMessage: c } = u, m = n, s = e, [g, v] = xe(), [b, f] = xe(), [x, O] = cn(), I = (...T) => {
|
|
2043
|
+
s.isExpandable && v(...T);
|
|
2044
|
+
}, P = (T) => {
|
|
2045
|
+
s.isExpandable && f(T);
|
|
2046
|
+
}, U = () => {
|
|
2047
|
+
!s.invoice.tax_categories || !s.isExpandable || O();
|
|
2048
|
+
}, L = (T, D) => +`${T}${D}`, E = (T) => u.$t(
|
|
2062
2049
|
{
|
|
2063
2050
|
id: "invoice.service_period_heading",
|
|
2064
2051
|
defaultMessage: "Service period - {start_at} - {end_at}",
|
|
2065
2052
|
description: "Heading for rendered services where {start_at} is replaced for the start date and {end_at} for the end date in invoice summary"
|
|
2066
2053
|
},
|
|
2067
2054
|
{
|
|
2068
|
-
start_at:
|
|
2055
|
+
start_at: u.formatDate({
|
|
2069
2056
|
date: T.start_at,
|
|
2070
2057
|
format: "date",
|
|
2071
|
-
timezone: pe(
|
|
2058
|
+
timezone: pe(s.invoice.customer.timezone),
|
|
2072
2059
|
offsetType: "offsetted"
|
|
2073
2060
|
}),
|
|
2074
|
-
end_at:
|
|
2061
|
+
end_at: u.formatDate({
|
|
2075
2062
|
date: T.end_at,
|
|
2076
2063
|
format: "date",
|
|
2077
|
-
timezone: pe(
|
|
2064
|
+
timezone: pe(s.invoice.customer.timezone),
|
|
2078
2065
|
offsetType: "offsetted"
|
|
2079
2066
|
})
|
|
2080
2067
|
}
|
|
2081
|
-
),
|
|
2068
|
+
), W = (T) => {
|
|
2082
2069
|
switch (T) {
|
|
2083
2070
|
case "PRICING":
|
|
2084
2071
|
case "REVENUE":
|
|
2085
|
-
return
|
|
2072
|
+
return u.$t({
|
|
2086
2073
|
id: "invoice.table_heading.products",
|
|
2087
2074
|
defaultMessage: "Products",
|
|
2088
2075
|
description: "Table heading for the column containing the products of the invoice"
|
|
2089
2076
|
});
|
|
2090
2077
|
case "COMMITMENT":
|
|
2091
|
-
return
|
|
2078
|
+
return u.$t({
|
|
2092
2079
|
id: "invoice.table_heading.commitments",
|
|
2093
2080
|
defaultMessage: "Commitments",
|
|
2094
2081
|
description: "Table heading for the column containing the commitments of the invoice"
|
|
2095
2082
|
});
|
|
2096
2083
|
case "DISCOUNT":
|
|
2097
|
-
return
|
|
2084
|
+
return u.$t({
|
|
2098
2085
|
id: "invoice.table_heading.discounts",
|
|
2099
2086
|
defaultMessage: "Discounts",
|
|
2100
2087
|
description: "Table heading for the column containing the discounts of the invoice"
|
|
2101
2088
|
});
|
|
2102
2089
|
case "MARKUP":
|
|
2103
|
-
return
|
|
2090
|
+
return u.$t({
|
|
2104
2091
|
id: "invoice.table_heading.markups",
|
|
2105
2092
|
defaultMessage: "Markups",
|
|
2106
2093
|
description: "Table heading for the column containing the markups of the invoice"
|
|
2107
2094
|
});
|
|
2108
2095
|
case "ONE_OFF":
|
|
2109
|
-
return
|
|
2096
|
+
return u.$t({
|
|
2110
2097
|
id: "invoice.table_heading.one_offs",
|
|
2111
2098
|
defaultMessage: "One-off's",
|
|
2112
2099
|
description: "Table heading for the column containing the one-offs of the invoice"
|
|
@@ -2114,61 +2101,61 @@ const dn = {
|
|
|
2114
2101
|
}
|
|
2115
2102
|
}, C = (T) => {
|
|
2116
2103
|
var D, R;
|
|
2117
|
-
return (D = T.products) != null && D.length ? [(R = T.pricing) == null ? void 0 : R.name,
|
|
2118
|
-
},
|
|
2119
|
-
var R;
|
|
2120
|
-
return !!((R = D.details) != null &&
|
|
2104
|
+
return (D = T.products) != null && D.length ? [(R = T.pricing) == null ? void 0 : R.name, be(T.products.map((F) => F.name))].filter(Boolean).join(" - ") : T.description ?? "";
|
|
2105
|
+
}, z = (T) => s.showWalletBalance && !(s.hideOneOffWalletBalance && T.type === "ONE_OFF") && (T.lines ?? []).some((D) => {
|
|
2106
|
+
var R, F;
|
|
2107
|
+
return !!((F = (R = D.details) == null ? void 0 : R.wallet_balances) != null && F.length);
|
|
2121
2108
|
}), X = (T) => T.groups.reduce(
|
|
2122
2109
|
(D, R) => R.type in D ? {
|
|
2123
2110
|
...D,
|
|
2124
2111
|
[R.type]: [...D[R.type], R]
|
|
2125
2112
|
} : { ...D, [R.type]: [R] },
|
|
2126
2113
|
{}
|
|
2127
|
-
),
|
|
2114
|
+
), q = B(() => {
|
|
2128
2115
|
const T = [];
|
|
2129
|
-
return ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(
|
|
2130
|
-
label:
|
|
2116
|
+
return ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(s.invoice.type) && ["DRAFT", "OPEN"].includes(s.invoice.status) && s.isInvoiceLineCreatable && T.push({
|
|
2117
|
+
label: c({
|
|
2131
2118
|
defaultMessage: "Invoice line",
|
|
2132
2119
|
id: "JlhdD2",
|
|
2133
2120
|
description: "Label for adding an invoice line"
|
|
2134
2121
|
}),
|
|
2135
|
-
onClick: () =>
|
|
2136
|
-
}),
|
|
2137
|
-
label:
|
|
2122
|
+
onClick: () => m("add-invoice-line")
|
|
2123
|
+
}), s.isNoteCreatable && T.push({
|
|
2124
|
+
label: c({
|
|
2138
2125
|
defaultMessage: "Note",
|
|
2139
2126
|
id: "jB8+k/",
|
|
2140
2127
|
description: "Label for adding a note to an invoice"
|
|
2141
2128
|
}),
|
|
2142
|
-
onClick: () =>
|
|
2129
|
+
onClick: () => m("add-note")
|
|
2143
2130
|
}), T;
|
|
2144
|
-
}), Z = B(() =>
|
|
2145
|
-
if (
|
|
2146
|
-
return
|
|
2131
|
+
}), Z = B(() => s.invoice.show_tax_per_line_item !== !1), oe = B(() => {
|
|
2132
|
+
if (s.heading === "summary")
|
|
2133
|
+
return u.$t({
|
|
2147
2134
|
id: "invoice.summaryTitle",
|
|
2148
2135
|
defaultMessage: "Invoice summary",
|
|
2149
2136
|
description: "Title for the compact, always-shown invoice summary section"
|
|
2150
2137
|
});
|
|
2151
|
-
switch (
|
|
2138
|
+
switch (s.invoice.type) {
|
|
2152
2139
|
case "CREDIT":
|
|
2153
|
-
return
|
|
2140
|
+
return u.$t({
|
|
2154
2141
|
id: "invoice.creditDetailsTitle",
|
|
2155
2142
|
defaultMessage: "Credit details",
|
|
2156
2143
|
description: "Title for the invoice summary of a credit-note invoice"
|
|
2157
2144
|
});
|
|
2158
2145
|
case "ONE_OFF":
|
|
2159
|
-
return
|
|
2146
|
+
return u.$t({
|
|
2160
2147
|
id: "invoice.oneOffDetailsTitle",
|
|
2161
2148
|
defaultMessage: "One-off details",
|
|
2162
2149
|
description: "Title for the invoice summary of a one-off invoice"
|
|
2163
2150
|
});
|
|
2164
2151
|
case "ONE_OFF_CREDIT":
|
|
2165
|
-
return
|
|
2152
|
+
return u.$t({
|
|
2166
2153
|
id: "invoice.oneOffCreditDetailsTitle",
|
|
2167
2154
|
defaultMessage: "One-off credit details",
|
|
2168
2155
|
description: "Title for the invoice summary of a one-off credit-note invoice"
|
|
2169
2156
|
});
|
|
2170
2157
|
default:
|
|
2171
|
-
return
|
|
2158
|
+
return u.$t({
|
|
2172
2159
|
id: "invoice.title",
|
|
2173
2160
|
defaultMessage: "Details",
|
|
2174
2161
|
description: "Title for the invoice summary"
|
|
@@ -2178,10 +2165,10 @@ const dn = {
|
|
|
2178
2165
|
return (T, D) => {
|
|
2179
2166
|
var R;
|
|
2180
2167
|
return t(), o("div", null, [
|
|
2181
|
-
_("div",
|
|
2182
|
-
T.$slots.logo ? (t(), o("div",
|
|
2168
|
+
_("div", bn, [
|
|
2169
|
+
T.$slots.logo ? (t(), o("div", yn, [
|
|
2183
2170
|
M(T.$slots, "logo")
|
|
2184
|
-
])) : (t(), h(
|
|
2171
|
+
])) : (t(), h(Ge, {
|
|
2185
2172
|
key: 1,
|
|
2186
2173
|
title: oe.value,
|
|
2187
2174
|
variant: "neutral",
|
|
@@ -2189,21 +2176,21 @@ const dn = {
|
|
|
2189
2176
|
"icon-class": "print:hidden",
|
|
2190
2177
|
"title-class": "print:text-sm"
|
|
2191
2178
|
}, null, 8, ["title"])),
|
|
2192
|
-
T.$slots.intro ? M(T.$slots, "intro", {}, void 0, void 0, 2) :
|
|
2193
|
-
_("div",
|
|
2194
|
-
(R =
|
|
2179
|
+
T.$slots.intro ? M(T.$slots, "intro", {}, void 0, void 0, 2) : y("", !0),
|
|
2180
|
+
_("div", pn, [
|
|
2181
|
+
(R = q.value) != null && R.length ? (t(), h(Xe, {
|
|
2195
2182
|
key: 0,
|
|
2196
|
-
items:
|
|
2183
|
+
items: q.value,
|
|
2197
2184
|
width: "auto"
|
|
2198
2185
|
}, {
|
|
2199
2186
|
trigger: i(() => [
|
|
2200
|
-
a(
|
|
2187
|
+
a(Le, {
|
|
2201
2188
|
"icon-prefix": "add",
|
|
2202
2189
|
size: "sm",
|
|
2203
2190
|
intent: "secondary"
|
|
2204
2191
|
}, {
|
|
2205
2192
|
default: i(() => [
|
|
2206
|
-
|
|
2193
|
+
d(r(l(c)({
|
|
2207
2194
|
defaultMessage: "Add",
|
|
2208
2195
|
id: "YnK/yF",
|
|
2209
2196
|
description: "Label for adding an item to an invoice"
|
|
@@ -2213,51 +2200,51 @@ const dn = {
|
|
|
2213
2200
|
})
|
|
2214
2201
|
]),
|
|
2215
2202
|
_: 1
|
|
2216
|
-
}, 8, ["items"])) :
|
|
2203
|
+
}, 8, ["items"])) : y("", !0),
|
|
2217
2204
|
M(T.$slots, "child-customers-selector")
|
|
2218
2205
|
])
|
|
2219
2206
|
]),
|
|
2220
|
-
T.$slots.total ? M(T.$slots, "total", {}, void 0, void 0, 0) :
|
|
2207
|
+
T.$slots.total ? M(T.$slots, "total", {}, void 0, void 0, 0) : y("", !0),
|
|
2221
2208
|
M(T.$slots, "notes"),
|
|
2222
|
-
(t(!0), o(p, null,
|
|
2223
|
-
e.showRenderedServicesHeader ? (t(), h(
|
|
2209
|
+
(t(!0), o(p, null, V(e.invoice.periods, (F, Y) => (t(), o(p, { key: Y }, [
|
|
2210
|
+
e.showRenderedServicesHeader ? (t(), h(He, {
|
|
2224
2211
|
key: 0,
|
|
2225
2212
|
class: "mt-6"
|
|
2226
2213
|
}, {
|
|
2227
2214
|
default: i(() => [
|
|
2228
|
-
a(
|
|
2215
|
+
a(Pe, {
|
|
2229
2216
|
tag: "h2",
|
|
2230
2217
|
variant: "caps-heading"
|
|
2231
2218
|
}, {
|
|
2232
2219
|
default: i(() => [
|
|
2233
|
-
|
|
2220
|
+
d(r(E(F)), 1)
|
|
2234
2221
|
]),
|
|
2235
2222
|
_: 2
|
|
2236
2223
|
}, 1024)
|
|
2237
2224
|
]),
|
|
2238
2225
|
_: 2
|
|
2239
|
-
}, 1024)) :
|
|
2240
|
-
|
|
2226
|
+
}, 1024)) : y("", !0),
|
|
2227
|
+
F.groups ? (t(), h(J, {
|
|
2241
2228
|
key: 1,
|
|
2242
|
-
class:
|
|
2243
|
-
"data-testid": l(
|
|
2229
|
+
class: N(["text-sm", { "mt-3": e.showRenderedServicesHeader }]),
|
|
2230
|
+
"data-testid": l(Ke)
|
|
2244
2231
|
}, {
|
|
2245
2232
|
default: i(() => [
|
|
2246
|
-
(t(!0), o(p, null,
|
|
2247
|
-
X(
|
|
2248
|
-
), ([
|
|
2249
|
-
|
|
2233
|
+
(t(!0), o(p, null, V(Object.entries(
|
|
2234
|
+
X(F)
|
|
2235
|
+
), ([A, ee], K) => (t(), o(p, { key: A }, [
|
|
2236
|
+
K > 0 ? (t(), o("tr", xn, [...D[0] || (D[0] = [
|
|
2250
2237
|
_("td", null, [
|
|
2251
2238
|
_("div", { class: "h-4" })
|
|
2252
2239
|
], -1)
|
|
2253
|
-
])])) :
|
|
2240
|
+
])])) : y("", !0),
|
|
2254
2241
|
_("tr", null, [
|
|
2255
2242
|
a(w, {
|
|
2256
2243
|
left: "",
|
|
2257
2244
|
class: "text-secondary"
|
|
2258
2245
|
}, {
|
|
2259
2246
|
default: i(() => [
|
|
2260
|
-
|
|
2247
|
+
d(r(W(A)), 1)
|
|
2261
2248
|
]),
|
|
2262
2249
|
_: 2
|
|
2263
2250
|
}, 1024),
|
|
@@ -2266,7 +2253,7 @@ const dn = {
|
|
|
2266
2253
|
class: "w-28 text-secondary"
|
|
2267
2254
|
}, {
|
|
2268
2255
|
default: i(() => [
|
|
2269
|
-
|
|
2256
|
+
d(r(l(u).$t({
|
|
2270
2257
|
id: "invoice.amount_table_heading",
|
|
2271
2258
|
defaultMessage: "Amount",
|
|
2272
2259
|
description: "Table heading for the amount column in the invoice table"
|
|
@@ -2275,16 +2262,16 @@ const dn = {
|
|
|
2275
2262
|
_: 1
|
|
2276
2263
|
})
|
|
2277
2264
|
]),
|
|
2278
|
-
(t(!0), o(p, null,
|
|
2279
|
-
|
|
2265
|
+
(t(!0), o(p, null, V(ee, (te, Be) => (t(), o(p, { key: Be }, [
|
|
2266
|
+
A === "REVENUE" || A === "PRICING" || A === "ONE_OFF" ? (t(), h(un, {
|
|
2280
2267
|
key: 0,
|
|
2281
2268
|
group: te,
|
|
2282
|
-
"expanded-items": l(
|
|
2269
|
+
"expanded-items": l(g),
|
|
2283
2270
|
"handle-toggle-items": I,
|
|
2284
2271
|
"is-expandable": e.isExpandable,
|
|
2285
2272
|
"force-expanded": e.forceExpanded,
|
|
2286
|
-
"format-index":
|
|
2287
|
-
"invoice-period-order":
|
|
2273
|
+
"format-index": L,
|
|
2274
|
+
"invoice-period-order": F.period_order,
|
|
2288
2275
|
"group-order": te.group_order,
|
|
2289
2276
|
"amount-type": e.invoice.pricing_amount_type,
|
|
2290
2277
|
"processing-only-customers": e.invoice.processing_only_customers,
|
|
@@ -2298,26 +2285,26 @@ const dn = {
|
|
|
2298
2285
|
]),
|
|
2299
2286
|
"one-off-line-context-menu": i((ne) => [
|
|
2300
2287
|
M(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, ne, {
|
|
2301
|
-
periodOrder:
|
|
2288
|
+
periodOrder: F.period_order
|
|
2302
2289
|
}))
|
|
2303
2290
|
]),
|
|
2304
2291
|
_: 2
|
|
2305
|
-
}, 1032, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "show-tax-per-line-item", "forwarded-from-customers", "show-original-customer-invoice-line"])) :
|
|
2292
|
+
}, 1032, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "show-tax-per-line-item", "forwarded-from-customers", "show-original-customer-invoice-line"])) : A === "DISCOUNT" || A === "MARKUP" ? (t(), h($t, {
|
|
2306
2293
|
key: 1,
|
|
2307
2294
|
group: te,
|
|
2308
|
-
"expanded-items": l(
|
|
2295
|
+
"expanded-items": l(g),
|
|
2309
2296
|
"handle-toggle-items": I,
|
|
2310
2297
|
"is-expandable": e.isExpandable,
|
|
2311
2298
|
"force-expanded": e.forceExpanded,
|
|
2312
|
-
"format-index":
|
|
2313
|
-
"invoice-period-order":
|
|
2299
|
+
"format-index": L,
|
|
2300
|
+
"invoice-period-order": F.period_order,
|
|
2314
2301
|
"group-order": te.group_order,
|
|
2315
2302
|
"amount-type": e.invoice.pricing_amount_type,
|
|
2316
|
-
heading:
|
|
2303
|
+
heading: A === "DISCOUNT" ? l(u).$t({
|
|
2317
2304
|
id: "invoice.discounts_table_heading",
|
|
2318
2305
|
defaultMessage: "Discounts",
|
|
2319
2306
|
description: "Heading for discounts in the invoice table"
|
|
2320
|
-
}) : l(
|
|
2307
|
+
}) : l(u).$t({
|
|
2321
2308
|
id: "invoice.markups_table_heading",
|
|
2322
2309
|
defaultMessage: "Markups",
|
|
2323
2310
|
description: "Heading for markups in the invoice table"
|
|
@@ -2327,15 +2314,15 @@ const dn = {
|
|
|
2327
2314
|
M(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
|
|
2328
2315
|
]),
|
|
2329
2316
|
_: 3
|
|
2330
|
-
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "heading"])) :
|
|
2317
|
+
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "heading"])) : A === "COMMITMENT" ? (t(), h(_t, {
|
|
2331
2318
|
key: 2,
|
|
2332
2319
|
group: te,
|
|
2333
|
-
"expanded-items": l(
|
|
2320
|
+
"expanded-items": l(g),
|
|
2334
2321
|
"handle-toggle-items": I,
|
|
2335
2322
|
"is-expandable": e.isExpandable,
|
|
2336
2323
|
"force-expanded": e.forceExpanded,
|
|
2337
|
-
"format-index":
|
|
2338
|
-
"invoice-period-order":
|
|
2324
|
+
"format-index": L,
|
|
2325
|
+
"invoice-period-order": F.period_order,
|
|
2339
2326
|
"group-order": te.group_order,
|
|
2340
2327
|
"amount-type": e.invoice.pricing_amount_type
|
|
2341
2328
|
}, {
|
|
@@ -2343,20 +2330,20 @@ const dn = {
|
|
|
2343
2330
|
M(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
|
|
2344
2331
|
]),
|
|
2345
2332
|
_: 3
|
|
2346
|
-
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type"])) :
|
|
2347
|
-
|
|
2348
|
-
_("td",
|
|
2333
|
+
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type"])) : y("", !0),
|
|
2334
|
+
z(te) ? (t(), o("tr", hn, [
|
|
2335
|
+
_("td", _n, [
|
|
2349
2336
|
a(_e, {
|
|
2350
2337
|
lines: te.lines,
|
|
2351
2338
|
"credit-types": e.invoice.credit_types
|
|
2352
2339
|
}, null, 8, ["lines", "credit-types"])
|
|
2353
2340
|
])
|
|
2354
|
-
])) :
|
|
2341
|
+
])) : y("", !0)
|
|
2355
2342
|
], 64))), 128))
|
|
2356
2343
|
], 64))), 128))
|
|
2357
2344
|
]),
|
|
2358
2345
|
_: 2
|
|
2359
|
-
}, 1032, ["class", "data-testid"])) :
|
|
2346
|
+
}, 1032, ["class", "data-testid"])) : y("", !0)
|
|
2360
2347
|
], 64))), 128)),
|
|
2361
2348
|
e.invoice.tax_summary && (e.showTotals || (e.forceExpanded || l(x)) && e.invoice.tax_categories) ? (t(), h(J, {
|
|
2362
2349
|
key: 1,
|
|
@@ -2370,7 +2357,7 @@ const dn = {
|
|
|
2370
2357
|
class: "text-secondary"
|
|
2371
2358
|
}, {
|
|
2372
2359
|
default: i(() => [
|
|
2373
|
-
|
|
2360
|
+
d(r(l(u).$t({
|
|
2374
2361
|
id: "invoice.totals_table_heading",
|
|
2375
2362
|
defaultMessage: "Totals",
|
|
2376
2363
|
description: "Table heading for the totals column in the invoice table"
|
|
@@ -2383,7 +2370,7 @@ const dn = {
|
|
|
2383
2370
|
class: "w-28 text-secondary"
|
|
2384
2371
|
}, {
|
|
2385
2372
|
default: i(() => [
|
|
2386
|
-
|
|
2373
|
+
d(r(l(u).$t({
|
|
2387
2374
|
id: "invoice.amount_table_heading",
|
|
2388
2375
|
defaultMessage: "Amount",
|
|
2389
2376
|
description: "Table heading for the amount column in the invoice table"
|
|
@@ -2402,12 +2389,12 @@ const dn = {
|
|
|
2402
2389
|
}, null, 8, ["base-amount"])),
|
|
2403
2390
|
e.invoice.tax_summary.tax_amount ? (t(), o("tr", {
|
|
2404
2391
|
key: 2,
|
|
2405
|
-
class:
|
|
2392
|
+
class: N([{ "cursor-pointer": e.invoice.tax_categories && e.isExpandable }, "break-inside-avoid border-t"]),
|
|
2406
2393
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
2407
|
-
onClick:
|
|
2394
|
+
onClick: U,
|
|
2408
2395
|
onKeyup: [
|
|
2409
|
-
j(
|
|
2410
|
-
j(
|
|
2396
|
+
j(U, ["enter"]),
|
|
2397
|
+
j(U, ["space"])
|
|
2411
2398
|
]
|
|
2412
2399
|
}, [
|
|
2413
2400
|
a(k, null, {
|
|
@@ -2416,10 +2403,10 @@ const dn = {
|
|
|
2416
2403
|
key: 0,
|
|
2417
2404
|
icon: "keyboard_arrow_down",
|
|
2418
2405
|
size: "md",
|
|
2419
|
-
class:
|
|
2420
|
-
}, null, 8, ["class"])) :
|
|
2406
|
+
class: N(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !l(x) }])
|
|
2407
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
2421
2408
|
a(me, {
|
|
2422
|
-
label: l(
|
|
2409
|
+
label: l(u).$t({
|
|
2423
2410
|
id: "invoice.taxes_table_heading",
|
|
2424
2411
|
defaultMessage: "Taxes",
|
|
2425
2412
|
description: "Table heading for the taxes column in the invoice table"
|
|
@@ -2433,22 +2420,22 @@ const dn = {
|
|
|
2433
2420
|
default: i(() => [
|
|
2434
2421
|
a($, {
|
|
2435
2422
|
value: e.invoice.tax_summary.tax_amount,
|
|
2436
|
-
"data-testid": l(
|
|
2423
|
+
"data-testid": l(Je)
|
|
2437
2424
|
}, null, 8, ["value", "data-testid"])
|
|
2438
2425
|
]),
|
|
2439
2426
|
_: 1
|
|
2440
2427
|
})
|
|
2441
|
-
], 42,
|
|
2442
|
-
], 64)) :
|
|
2443
|
-
(e.forceExpanded || l(x)) && e.invoice.tax_categories ? (t(), o("tr",
|
|
2444
|
-
_("td",
|
|
2445
|
-
_("div",
|
|
2446
|
-
a(
|
|
2428
|
+
], 42, kn)) : y("", !0)
|
|
2429
|
+
], 64)) : y("", !0),
|
|
2430
|
+
(e.forceExpanded || l(x)) && e.invoice.tax_categories ? (t(), o("tr", Tn, [
|
|
2431
|
+
_("td", On, [
|
|
2432
|
+
_("div", In, [
|
|
2433
|
+
a(gn, {
|
|
2447
2434
|
"tax-categories": e.invoice.tax_categories
|
|
2448
2435
|
}, null, 8, ["tax-categories"])
|
|
2449
2436
|
])
|
|
2450
2437
|
])
|
|
2451
|
-
])) :
|
|
2438
|
+
])) : y("", !0),
|
|
2452
2439
|
e.showTotals ? (t(), o(p, { key: 2 }, [
|
|
2453
2440
|
e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(), h(Te, {
|
|
2454
2441
|
key: 0,
|
|
@@ -2457,11 +2444,11 @@ const dn = {
|
|
|
2457
2444
|
key: 1,
|
|
2458
2445
|
"total-amount": e.invoice.tax_summary.total_amount
|
|
2459
2446
|
}, null, 8, ["total-amount"]))
|
|
2460
|
-
], 64)) :
|
|
2447
|
+
], 64)) : y("", !0)
|
|
2461
2448
|
]),
|
|
2462
2449
|
_: 1
|
|
2463
|
-
})) :
|
|
2464
|
-
l(
|
|
2450
|
+
})) : y("", !0),
|
|
2451
|
+
l(Ue)(e.invoice.closed_periods) ? y("", !0) : (t(), h(J, {
|
|
2465
2452
|
key: 2,
|
|
2466
2453
|
class: "mt-6 text-sm"
|
|
2467
2454
|
}, {
|
|
@@ -2472,7 +2459,7 @@ const dn = {
|
|
|
2472
2459
|
class: "text-secondary"
|
|
2473
2460
|
}, {
|
|
2474
2461
|
default: i(() => [
|
|
2475
|
-
|
|
2462
|
+
d(r(l(u).$t({
|
|
2476
2463
|
id: "invoice.already_deducted_table_heading",
|
|
2477
2464
|
defaultMessage: "Already deducted",
|
|
2478
2465
|
description: "Table heading for the already deducted rows in the invoice table"
|
|
@@ -2481,34 +2468,34 @@ const dn = {
|
|
|
2481
2468
|
_: 1
|
|
2482
2469
|
})
|
|
2483
2470
|
]),
|
|
2484
|
-
(t(!0), o(p, null,
|
|
2485
|
-
(t(!0), o(p, null, F
|
|
2471
|
+
(t(!0), o(p, null, V(e.invoice.closed_periods, (F, Y) => (t(), o(p, { key: Y }, [
|
|
2472
|
+
(t(!0), o(p, null, V(F.groups, (A, ee) => (t(), o(p, { key: ee }, [
|
|
2486
2473
|
_("tr", {
|
|
2487
|
-
class:
|
|
2474
|
+
class: N(["break-inside-avoid border-t", { "pt-6": Y === 0, "cursor-pointer": e.isExpandable }]),
|
|
2488
2475
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
2489
|
-
onClick: (
|
|
2476
|
+
onClick: (K) => P(L(Y, ee)),
|
|
2490
2477
|
onKeyup: [
|
|
2491
|
-
j((
|
|
2492
|
-
j((
|
|
2478
|
+
j((K) => P(L(Y, ee)), ["enter"]),
|
|
2479
|
+
j((K) => P(L(Y, ee)), ["space"])
|
|
2493
2480
|
]
|
|
2494
2481
|
}, [
|
|
2495
2482
|
a(k, { class: "p-0" }, {
|
|
2496
2483
|
default: i(() => {
|
|
2497
|
-
var
|
|
2484
|
+
var K;
|
|
2498
2485
|
return [
|
|
2499
2486
|
e.isExpandable ? (t(), h(G, {
|
|
2500
2487
|
key: 0,
|
|
2501
2488
|
icon: "keyboard_arrow_down",
|
|
2502
2489
|
size: "md",
|
|
2503
|
-
class:
|
|
2504
|
-
"-rotate-90": !l(
|
|
2505
|
-
|
|
2490
|
+
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
2491
|
+
"-rotate-90": !l(b).includes(
|
|
2492
|
+
L(Y, ee)
|
|
2506
2493
|
)
|
|
2507
2494
|
}])
|
|
2508
|
-
}, null, 8, ["class"])) :
|
|
2495
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
2509
2496
|
a(me, {
|
|
2510
|
-
label: C(
|
|
2511
|
-
count: e.isExpandable ? ((
|
|
2497
|
+
label: C(A),
|
|
2498
|
+
count: e.isExpandable ? ((K = A.lines) == null ? void 0 : K.length) ?? 0 : void 0
|
|
2512
2499
|
}, null, 8, ["label", "count"])
|
|
2513
2500
|
];
|
|
2514
2501
|
}),
|
|
@@ -2520,52 +2507,52 @@ const dn = {
|
|
|
2520
2507
|
}, {
|
|
2521
2508
|
default: i(() => [
|
|
2522
2509
|
a($, {
|
|
2523
|
-
value:
|
|
2524
|
-
"data-testid": l(
|
|
2525
|
-
"data-type": l(
|
|
2510
|
+
value: A.amount_excluding_tax,
|
|
2511
|
+
"data-testid": l(tt),
|
|
2512
|
+
"data-type": l(it)
|
|
2526
2513
|
}, null, 8, ["value", "data-testid", "data-type"])
|
|
2527
2514
|
]),
|
|
2528
2515
|
_: 2
|
|
2529
2516
|
}, 1024)
|
|
2530
|
-
], 42,
|
|
2531
|
-
e.forceExpanded || l(
|
|
2532
|
-
_("td",
|
|
2533
|
-
_("div",
|
|
2534
|
-
a(
|
|
2535
|
-
"start-date":
|
|
2536
|
-
"end-date":
|
|
2537
|
-
total:
|
|
2538
|
-
group:
|
|
2517
|
+
], 42, $n),
|
|
2518
|
+
e.forceExpanded || l(b).includes(L(Y, ee)) ? (t(), o("tr", Mn, [
|
|
2519
|
+
_("td", wn, [
|
|
2520
|
+
_("div", En, [
|
|
2521
|
+
a(Ne, {
|
|
2522
|
+
"start-date": A.start_at,
|
|
2523
|
+
"end-date": A.end_at,
|
|
2524
|
+
total: A.amount_excluding_tax,
|
|
2525
|
+
group: A,
|
|
2539
2526
|
"amount-type": e.invoice.pricing_amount_type,
|
|
2540
2527
|
"show-tax-per-line-item": Z.value,
|
|
2541
2528
|
"processing-only-customers": e.invoice.processing_only_customers,
|
|
2542
2529
|
"display-invoice-sub-lines-per-processing-only-customer": e.invoice.display_invoice_sub_lines_per_processing_only_customer
|
|
2543
2530
|
}, {
|
|
2544
|
-
"one-off-line-context-menu": i((
|
|
2545
|
-
M(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 },
|
|
2546
|
-
groupOrder:
|
|
2547
|
-
periodOrder:
|
|
2531
|
+
"one-off-line-context-menu": i((K) => [
|
|
2532
|
+
M(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, K, {
|
|
2533
|
+
groupOrder: A.group_order,
|
|
2534
|
+
periodOrder: F.period_order
|
|
2548
2535
|
}))
|
|
2549
2536
|
]),
|
|
2550
2537
|
_: 2
|
|
2551
2538
|
}, 1032, ["start-date", "end-date", "total", "group", "amount-type", "show-tax-per-line-item", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
2552
2539
|
])
|
|
2553
2540
|
])
|
|
2554
|
-
])) :
|
|
2555
|
-
|
|
2556
|
-
_("td",
|
|
2541
|
+
])) : y("", !0),
|
|
2542
|
+
z(A) ? (t(), o("tr", Cn, [
|
|
2543
|
+
_("td", Nn, [
|
|
2557
2544
|
a(_e, {
|
|
2558
|
-
lines:
|
|
2545
|
+
lines: A.lines,
|
|
2559
2546
|
"credit-types": e.invoice.credit_types
|
|
2560
2547
|
}, null, 8, ["lines", "credit-types"])
|
|
2561
2548
|
])
|
|
2562
|
-
])) :
|
|
2549
|
+
])) : y("", !0)
|
|
2563
2550
|
], 64))), 128))
|
|
2564
2551
|
], 64))), 128)),
|
|
2565
|
-
e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), o("tr",
|
|
2552
|
+
e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), o("tr", Bn, [
|
|
2566
2553
|
a(k, { class: "font-bold" }, {
|
|
2567
2554
|
default: i(() => [
|
|
2568
|
-
|
|
2555
|
+
d(r(l(u).$t({
|
|
2569
2556
|
id: "invoice.amount_due_table_heading",
|
|
2570
2557
|
defaultMessage: "Amount due",
|
|
2571
2558
|
description: "Table heading for the amount due row in the invoice table"
|
|
@@ -2577,12 +2564,12 @@ const dn = {
|
|
|
2577
2564
|
default: i(() => [
|
|
2578
2565
|
a($, {
|
|
2579
2566
|
value: e.invoice.open_invoice_amount,
|
|
2580
|
-
"data-testid": l(
|
|
2567
|
+
"data-testid": l(nt)
|
|
2581
2568
|
}, null, 8, ["value", "data-testid"])
|
|
2582
2569
|
]),
|
|
2583
2570
|
_: 1
|
|
2584
2571
|
})
|
|
2585
|
-
])) :
|
|
2572
|
+
])) : y("", !0)
|
|
2586
2573
|
]),
|
|
2587
2574
|
_: 3
|
|
2588
2575
|
}))
|
|
@@ -2592,7 +2579,7 @@ const dn = {
|
|
|
2592
2579
|
});
|
|
2593
2580
|
export {
|
|
2594
2581
|
J as I,
|
|
2595
|
-
|
|
2582
|
+
Kn as _,
|
|
2596
2583
|
w as a,
|
|
2597
2584
|
k as b
|
|
2598
2585
|
};
|