@wisemen/wise-invoicing-web 0.2.0 → 0.3.1
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/{ApprovalReminderSettingsViewDataProvider-D-qXZrPT.js → ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-DDdtlW-2.js → BillingDocumentDetailViewDataProvider-Dub07ybW.js} +1373 -1217
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-ehdFB6mr.js → BillingDocumentPdf-DgtUB45R.js} +20 -13
- package/dist/{CreditNoteDetailViewDataProvider-11a-JO3H.js → CreditNoteDetailViewDataProvider-BxNfC6yO.js} +90 -90
- package/dist/{CreditNotePdfViewDataProvider-bfeaya3P.js → CreditNotePdfViewDataProvider-D0j8qqK-.js} +2 -2
- package/dist/{CustomFieldValueText-CZQXGE5F.js → CustomFieldValueText-Cuhs9sRn.js} +26 -26
- package/dist/DunningCaseDetailViewDataProvider-ou1FfNWQ.js +439 -0
- package/dist/{DunningCaseOverviewView-y_bCmi5j.js → DunningCaseOverviewView--zaPD0-c.js} +255 -203
- package/dist/{DunningCaseReminderPdfViewDataProvider-DNODfED_.js → DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js} +5 -4
- package/dist/{DunningCaseSendDialog-BPXcqit5.js → DunningCaseSendDialog-Co4oLFtZ.js} +83 -72
- package/dist/InvoiceApprovalOutOfSyncIndicator-H6H7kjAE.js +45 -0
- package/dist/InvoiceApprovalOverviewView-Bw-6rkon.js +814 -0
- package/dist/InvoiceApprovalStatusBadge-IyzJ--TJ.js +127 -0
- package/dist/InvoiceApproveDialogDataProvider-8G-11W1e.js +377 -0
- package/dist/{InvoiceDetailViewDataProvider-BYeaaQzL.js → InvoiceDetailViewDataProvider-B9gul2ei.js} +750 -692
- package/dist/InvoiceOverviewViewDataProvider-5KgIdhfL.js +1892 -0
- package/dist/{InvoicePdfView-BJRTg_TH.js → InvoicePdfView-5sJ-u_gT.js} +10 -4
- package/dist/{InvoicePdfViewDataProvider-CwI_uGm3.js → InvoicePdfViewDataProvider-BLVXDPv6.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-uZUfsr5K.js → InvoicePublicPdfViewDataProvider-CnhYazmB.js} +3 -3
- package/dist/InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js +47 -0
- package/dist/{InvoicingFileUploadProvider-D9Xk4rQM.js → InvoicingFileUploadProvider-Kcq7kSSt.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-CGRa8F-2.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +3 -3
- package/dist/{ReminderSettingsViewDataProvider-1ucp3z2T.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +100 -102
- package/dist/{api.util-C_kMGlJN.js → api.util-CkIRZS3h.js} +985 -930
- package/dist/{billingDocumentDetail.transformer-Da6_-Hv9.js → billingDocumentDetail.transformer-Bfd8geNo.js} +5 -7
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +2 -1
- package/dist/client/types.gen.d.ts +114 -31
- package/dist/client/zod.gen.d.ts +343 -78
- package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
- package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
- package/dist/{creditNoteDetail.query-DLR7L0Ep.js → creditNoteDetail.query-tLnfqsEB.js} +27 -27
- package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
- package/dist/{dist-Cxdm09Lp.js → dist-BQbaoN5W.js} +144 -96
- package/dist/{dist-CoztMdYH.js → dist-CGZBUnWK.js} +62 -62
- package/dist/{dist-boJIIxnT.js → dist-Cdbpkd3Y.js} +1 -1
- package/dist/{documentTitle.composable-DsBbzhXN.js → documentTitle.composable-CRJjS6p-.js} +19 -17
- package/dist/{i18n.lib-Cvr8pcDw.js → i18n.lib--mzprLMR.js} +88 -54
- package/dist/index.d.ts +56 -22
- package/dist/index.js +193 -201
- package/dist/{invoice.service-DEEA9mal.js → invoice.service-B1w16_Md.js} +184 -172
- package/dist/{invoiceApproval.service-DvL3LliM.js → invoiceApproval.service-BHAJmFkU.js} +8 -8
- package/dist/{invoiceApprovalStatus.util-3Zh10Pj8.js → invoiceApprovalStatus.util-DohOKR4q.js} +42 -38
- package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
- package/dist/{invoiceDetail.query-CRoH_SgM.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
- package/dist/{invoiceDeliveryStatus.util-nCsqDypY.js → invoiceIndexCache.util-BDLs7W9m.js} +128 -51
- package/dist/{invoicingConfig.composable-rxjGK882.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
- package/dist/{issuerSettings.query-Dc5gsaEm.js → issuerSettings.query-CDFk2GiP.js} +3 -2
- package/dist/libs/i18n.lib.d.ts +56 -22
- package/dist/locales/en-US.json.d.ts +44 -27
- package/dist/locales/nl-BE.json.d.ts +44 -27
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
- package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
- package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
- package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
- package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
- package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +8 -0
- package/dist/modules/invoice/api/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
- package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +4 -2
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +8 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +2 -3
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +2 -9
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +4 -2
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
- package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentDeleteDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +2 -3
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +2 -2
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +3 -1
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +7 -4
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +2 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +5 -6
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +0 -5
- package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +1 -0
- package/dist/{reminderConfig.query-snaHQmrY.js → reminderConfig.query-DSO0ekC_.js} +112 -105
- package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
- package/package.json +3 -3
- package/dist/DunningCaseDetailViewDataProvider-DC-ziMoO.js +0 -409
- package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +0 -870
- package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +0 -161
- package/dist/InvoiceApproveDialog-2LXneG2r.js +0 -308
- package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +0 -318
- package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +0 -1620
- package/dist/customerUuid.model-GUFYq3O2.js +0 -5
- package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { n as e, r as t } from "./i18n.lib
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, r as t } from "./i18n.lib--mzprLMR.js";
|
|
2
|
+
import "./api.util-CkIRZS3h.js";
|
|
3
|
+
import { E as n, b as r, k as i, t as a, u as o, x as s } from "./documentTitle.composable-CRJjS6p-.js";
|
|
4
4
|
import { n as c, r as l, t as u } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
-
import { n as d, t as f } from "./invoicingConfig.composable-
|
|
5
|
+
import { n as d, t as f } from "./invoicingConfig.composable-COn1rKRf.js";
|
|
6
6
|
import { t as p } from "./search.composable-CU9OpyUB.js";
|
|
7
7
|
import { t as m } from "./src-DUSgQTKr.js";
|
|
8
|
-
import { r as ee, t as h } from "./InvoiceOverviewViewDataProvider-
|
|
8
|
+
import { r as ee, t as h } from "./InvoiceOverviewViewDataProvider-5KgIdhfL.js";
|
|
9
9
|
import { n as g } from "./address.transformer-jGddczLV.js";
|
|
10
10
|
import { t as _ } from "./addressForm.model-C853zEtX.js";
|
|
11
11
|
import { n as v, t as y } from "./download.util-B5Q7KUC9.js";
|
|
12
|
-
import { n as b } from "./
|
|
13
|
-
import { n as x
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
12
|
+
import { n as b } from "./reminderConfig.query-DSO0ekC_.js";
|
|
13
|
+
import { n as x } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
14
|
+
import { n as S, t as C } from "./percentage.util-Bl78kSSk.js";
|
|
15
|
+
import { r as w, t as te } from "./DunningCaseOverviewView--zaPD0-c.js";
|
|
16
|
+
import { E as ne, G as re, Z as ie } from "./dist-BQbaoN5W.js";
|
|
17
|
+
import { s as ae } from "./DunningCaseSendDialog-Co4oLFtZ.js";
|
|
18
|
+
import { n as oe } from "./dist-Cdbpkd3Y.js";
|
|
19
|
+
import { t as se } from "./DunningCaseDetailViewDataProvider-ou1FfNWQ.js";
|
|
20
|
+
import { a as T, i as E, l as D, n as ce, o as le, r as ue, s as de, t as O } from "./dist-CGZBUnWK.js";
|
|
21
|
+
import { t as fe } from "./DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js";
|
|
22
|
+
import { t as pe } from "./ReminderSettingsViewDataProvider-CH7gSXnj.js";
|
|
23
|
+
import { r as me, t as he } from "./InvoicePublicPdfViewDataProvider-CnhYazmB.js";
|
|
24
|
+
import { n as k } from "./CustomFieldValueText-Cuhs9sRn.js";
|
|
25
|
+
import { z as A } from "zod";
|
|
26
|
+
import { useI18n as j } from "vue-i18n";
|
|
27
|
+
import { Fragment as ge, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, openBlock as B, toDisplayString as V, unref as H, withCtx as U } from "vue";
|
|
27
28
|
import { useQueryClient as _e } from "@tanstack/vue-query";
|
|
28
29
|
import { QueryClient as ve, SortUtil as ye, useQuery as be } from "@wisemen/vue-core-api-utils";
|
|
29
|
-
import { RouterLink as
|
|
30
|
-
import { UIBadge as
|
|
31
|
-
import { createAction as
|
|
30
|
+
import { RouterLink as xe, useRouter as Se } from "vue-router";
|
|
31
|
+
import { UIBadge as Ce, UIDetailListGroup as we, UIDetailListGroupSeparator as Te, UIEmptyState as Ee, UIFeaturedIcon as De, UIRowLayout as W, UITable as Oe, UITableCell as G, UITableCellText as ke, UIText as K, UITextField as Ae, createComponent as q, defineTableColumns as je, useSort as Me } from "@wisemen/vue-core-design-system";
|
|
32
|
+
import { createAction as Ne } from "@wisemen/vue-core-actions";
|
|
32
33
|
//#region src/locales/ui-en-US.json
|
|
33
|
-
var
|
|
34
|
+
var Pe = {
|
|
34
35
|
"component.api_error.default_message": "An unexpected error occurred.",
|
|
35
36
|
"component.api_error.default_title": "Error",
|
|
36
37
|
"component.autocomplete.more_results_available": "More results may be available. Narrow your search criteria.",
|
|
@@ -92,7 +93,7 @@ var ke = {
|
|
|
92
93
|
"shared.clear": "Clear",
|
|
93
94
|
"shared.close": "Close",
|
|
94
95
|
"shared.options": "Options"
|
|
95
|
-
},
|
|
96
|
+
}, Fe = {
|
|
96
97
|
"component.api_error.default_message": "Er is een onverwachte fout opgetreden.",
|
|
97
98
|
"component.api_error.default_title": "Fout",
|
|
98
99
|
"component.autocomplete.more_results_available": "Er zijn mogelijk meer resultaten beschikbaar. Verfijn uw zoekcriteria.",
|
|
@@ -157,12 +158,12 @@ var ke = {
|
|
|
157
158
|
};
|
|
158
159
|
//#endregion
|
|
159
160
|
//#region src/composables/created.composable.ts
|
|
160
|
-
function
|
|
161
|
+
function Ie(e) {
|
|
161
162
|
e();
|
|
162
163
|
}
|
|
163
164
|
//#endregion
|
|
164
165
|
//#region src/composables/invoicingQueryInvalidation.composable.ts
|
|
165
|
-
function
|
|
166
|
+
function Le() {
|
|
166
167
|
let e = new ve(_e());
|
|
167
168
|
async function t() {
|
|
168
169
|
await e.invalidate("invoiceIndex");
|
|
@@ -171,86 +172,73 @@ function Me() {
|
|
|
171
172
|
}
|
|
172
173
|
//#endregion
|
|
173
174
|
//#region src/modules/credit-note/models/creditNoteUuid.model.ts
|
|
174
|
-
var
|
|
175
|
+
var Re = A.uuid().brand("CreditNoteUuid");
|
|
175
176
|
//#endregion
|
|
176
177
|
//#region src/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.ts
|
|
177
|
-
function
|
|
178
|
+
function ze(e) {
|
|
178
179
|
return be("dunningCaseCustomerByExternalId", {
|
|
179
180
|
isEnabled: M(() => e.value !== null),
|
|
180
181
|
params: { externalId: e },
|
|
181
|
-
queryFn: () =>
|
|
182
|
+
queryFn: () => ae.getUuidByExternalId(e.value ?? "")
|
|
182
183
|
});
|
|
183
184
|
}
|
|
184
185
|
//#endregion
|
|
185
186
|
//#region src/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue?vue&type=script&setup=true&lang.ts
|
|
186
|
-
var
|
|
187
|
+
var Be = { class: "min-w-0 flex-1" }, Ve = { class: "flex min-w-0 flex-wrap items-center gap-sm" }, He = { class: "truncate text-xs font-semibold text-primary" }, Ue = {
|
|
187
188
|
key: 0,
|
|
188
|
-
class: "rounded-
|
|
189
|
-
},
|
|
189
|
+
class: "inline-flex shrink-0 items-center gap-xs rounded-sm border border-secondary px-sm py-px text-xs text-primary"
|
|
190
|
+
}, We = { class: "mt-xxs block truncate text-xs text-secondary tabular-nums" }, Ge = /* @__PURE__ */ z({
|
|
190
191
|
__name: "CustomerDunningCasesSection",
|
|
191
192
|
props: {
|
|
192
193
|
customerUuid: {},
|
|
193
194
|
externalId: {}
|
|
194
195
|
},
|
|
195
196
|
setup(e) {
|
|
196
|
-
let t = e, n =
|
|
197
|
+
let t = e, n = j(), r = l(), i = ze(M(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = M(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = w({
|
|
197
198
|
isEnabled: M(() => a.value !== void 0),
|
|
198
199
|
params: {
|
|
199
200
|
customerUuid: a,
|
|
200
201
|
isOpen: M(() => !0)
|
|
201
202
|
}
|
|
202
|
-
}), s =
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
params: { dunningCaseUuid: e.uuid }
|
|
216
|
-
},
|
|
217
|
-
class: "mb-md flex w-fit max-w-full items-center gap-lg rounded-lg border border-secondary bg-primary p-lg shadow-sm hover:bg-secondary sm:max-w-2xl"
|
|
218
|
-
}, {
|
|
219
|
-
default: U(() => [
|
|
220
|
-
I("span", Le, [L(H(T), { class: "size-(--spacing-xl)" })]),
|
|
221
|
-
I("span", Re, [I("span", ze, [I("span", Be, V(H(n).t("module.dunning_case.customer.open_case")), 1), L(H(G), {
|
|
222
|
-
label: e.level === 0 ? H(n).t("module.dunning_case.level.none") : H(n).t("module.dunning_case.level.reminder", { level: e.level }),
|
|
223
|
-
color: "brand",
|
|
224
|
-
size: "sm",
|
|
225
|
-
variant: "translucent"
|
|
226
|
-
}, null, 8, ["label"])]), I("span", Ve, V(H(n).t("module.dunning_case.customer.outstanding", { amount: H(r).formatMonetary(e.outstandingBalance) })), 1)]),
|
|
227
|
-
L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
|
|
228
|
-
]),
|
|
229
|
-
_: 2
|
|
230
|
-
}, 1032, ["to"]))), 128)),
|
|
231
|
-
u.value.length > 0 ? (z(), F("details", He, [I("summary", Ue, V(H(n).t("module.dunning_case.customer.closed_cases", { count: u.value.length })), 1), I("div", We, [(z(!0), F(j, null, B(u.value, (e) => (z(), N(H(W), {
|
|
232
|
-
key: e.uuid,
|
|
203
|
+
}), s = M(() => o.result.value.isOk() ? o.result.value.getValue().data[0] ?? null : null);
|
|
204
|
+
function c(e) {
|
|
205
|
+
return e === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: e });
|
|
206
|
+
}
|
|
207
|
+
return (e, t) => s.value === null ? P("", !0) : (B(), F(ge, { key: 0 }, [R(H(Te)), R(H(we), {
|
|
208
|
+
"collapse-options": {
|
|
209
|
+
isCollapsible: !0,
|
|
210
|
+
isOpenByDefault: !0,
|
|
211
|
+
badge: { label: H(r).formatMonetary(s.value.outstandingBalance) }
|
|
212
|
+
},
|
|
213
|
+
label: H(n).t("module.dunning_case.customer.title")
|
|
214
|
+
}, {
|
|
215
|
+
default: U(() => [R(H(xe), {
|
|
233
216
|
to: {
|
|
234
217
|
name: "dunning-case-detail",
|
|
235
|
-
params: { dunningCaseUuid:
|
|
218
|
+
params: { dunningCaseUuid: s.value.uuid }
|
|
236
219
|
},
|
|
237
|
-
class: "flex items-center
|
|
220
|
+
class: "flex w-full items-center gap-md rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
|
|
238
221
|
}, {
|
|
239
|
-
default: U(() => [
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
222
|
+
default: U(() => [R(H(De), {
|
|
223
|
+
icon: H(ne),
|
|
224
|
+
color: "brand",
|
|
225
|
+
size: "md",
|
|
226
|
+
variant: "translucent"
|
|
227
|
+
}, null, 8, ["icon"]), I("span", Be, [I("span", Ve, [I("span", He, V(H(n).t("module.dunning_case.customer.open_case")), 1), s.value.level === null ? P("", !0) : (B(), F("span", Ue, [R(b, {
|
|
228
|
+
level: s.value.level,
|
|
229
|
+
size: "sm"
|
|
230
|
+
}, null, 8, ["level"]), L(" " + V(c(s.value.level)), 1)]))]), I("span", We, V(H(n).t("module.dunning_case.customer.outstanding", { amount: H(r).formatMonetary(s.value.outstandingBalance) })), 1)])]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["to"])]),
|
|
233
|
+
_: 1
|
|
234
|
+
}, 8, ["collapse-options", "label"])], 64));
|
|
247
235
|
}
|
|
248
236
|
});
|
|
249
237
|
//#endregion
|
|
250
238
|
//#region src/modules/invoice/actions/invoiceNavigateToDetail.action.ts
|
|
251
|
-
function
|
|
252
|
-
let e =
|
|
253
|
-
return
|
|
239
|
+
function Ke() {
|
|
240
|
+
let e = Se();
|
|
241
|
+
return Ne({
|
|
254
242
|
id: "invoice-navigate-to-detail",
|
|
255
243
|
isApplicable: (e) => e.hasTargetedModelsOfType("Invoice"),
|
|
256
244
|
name: (e) => {
|
|
@@ -259,7 +247,7 @@ function Xe() {
|
|
|
259
247
|
},
|
|
260
248
|
execute: (t) => {
|
|
261
249
|
let n = t.targetedModelOfTypeOrThrow("Invoice");
|
|
262
|
-
n.type ===
|
|
250
|
+
n.type === s.STANDARD ? e.push({
|
|
263
251
|
name: "invoicing-invoice-detail",
|
|
264
252
|
params: { invoiceUuid: n.uuid }
|
|
265
253
|
}) : e.push({
|
|
@@ -271,55 +259,55 @@ function Xe() {
|
|
|
271
259
|
}
|
|
272
260
|
//#endregion
|
|
273
261
|
//#region src/modules/invoice/models/invoiceUuid.model.ts
|
|
274
|
-
var
|
|
262
|
+
var qe = A.uuid().brand("InvoiceUuid");
|
|
275
263
|
//#endregion
|
|
276
264
|
//#region ../router/src/createRoutes.ts
|
|
277
|
-
function
|
|
265
|
+
function J(e) {
|
|
278
266
|
return e;
|
|
279
267
|
}
|
|
280
268
|
//#endregion
|
|
281
269
|
//#region src/modules/dunning-case/routes/dunningCase.routes.ts
|
|
282
|
-
var
|
|
270
|
+
var Je = J([{
|
|
283
271
|
name: "dunning-case-module",
|
|
284
272
|
path: "/dunning-cases",
|
|
285
273
|
redirect: { name: "dunning-case-overview" },
|
|
286
274
|
children: [{
|
|
287
275
|
name: "dunning-case-overview",
|
|
288
276
|
path: "",
|
|
289
|
-
component: () => import("./DunningCaseOverviewView-
|
|
277
|
+
component: () => import("./DunningCaseOverviewView--zaPD0-c.js").then((e) => e.n),
|
|
290
278
|
meta: { permission: "dunning-case.read" }
|
|
291
279
|
}, {
|
|
292
280
|
name: "dunning-case-detail",
|
|
293
281
|
props: !0,
|
|
294
282
|
path: ":dunningCaseUuid",
|
|
295
|
-
component: () => import("./DunningCaseDetailViewDataProvider-
|
|
283
|
+
component: () => import("./DunningCaseDetailViewDataProvider-ou1FfNWQ.js").then((e) => e.n),
|
|
296
284
|
meta: { permission: "dunning-case.read" }
|
|
297
285
|
}]
|
|
298
|
-
}]),
|
|
286
|
+
}]), Ye = J([{
|
|
299
287
|
name: "dunning-case-settings-module",
|
|
300
288
|
path: "payment-reminders",
|
|
301
|
-
component: () => import("./ReminderSettingsViewDataProvider-
|
|
289
|
+
component: () => import("./ReminderSettingsViewDataProvider-CH7gSXnj.js").then((e) => e.n),
|
|
302
290
|
meta: { permission: "reminder-config.read" }
|
|
303
|
-
}]),
|
|
291
|
+
}]), Xe = J([{
|
|
304
292
|
name: "dunning-case-reminder-pdf",
|
|
305
293
|
path: "/dunning-case-reminder-pdf",
|
|
306
|
-
component: () => import("./DunningCaseReminderPdfViewDataProvider-
|
|
307
|
-
}]),
|
|
294
|
+
component: () => import("./DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js").then((e) => e.n)
|
|
295
|
+
}]), Ze = J([{
|
|
308
296
|
name: "invoice-approval-module",
|
|
309
297
|
path: "/invoicing/approvals",
|
|
310
298
|
redirect: { name: "invoice-approval-overview" },
|
|
311
299
|
children: [{
|
|
312
300
|
name: "invoice-approval-overview",
|
|
313
301
|
path: "",
|
|
314
|
-
component: () => import("./InvoiceApprovalOverviewView-
|
|
302
|
+
component: () => import("./InvoiceApprovalOverviewView-Bw-6rkon.js"),
|
|
315
303
|
meta: { permission: "invoice-approval.read" }
|
|
316
304
|
}]
|
|
317
|
-
}]),
|
|
305
|
+
}]), Qe = J([{
|
|
318
306
|
name: "invoice-approval-settings-module",
|
|
319
307
|
path: "approval-reminders",
|
|
320
|
-
component: () => import("./ApprovalReminderSettingsViewDataProvider-
|
|
308
|
+
component: () => import("./ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js"),
|
|
321
309
|
meta: { permission: "reminder-config.read" }
|
|
322
|
-
}]),
|
|
310
|
+
}]), $e = [
|
|
323
311
|
{
|
|
324
312
|
name: "invoicing-settings-module",
|
|
325
313
|
path: "invoicing",
|
|
@@ -327,53 +315,57 @@ var Qe = X([{
|
|
|
327
315
|
children: [{
|
|
328
316
|
name: "invoicing-settings-overview",
|
|
329
317
|
path: "",
|
|
330
|
-
component: () => import("./IssuerSettingsViewDataProvider-
|
|
318
|
+
component: () => import("./IssuerSettingsViewDataProvider-BuSIVnIl.js"),
|
|
331
319
|
meta: { permission: "issuer.read" }
|
|
332
320
|
}]
|
|
333
321
|
},
|
|
334
|
-
|
|
335
|
-
...
|
|
322
|
+
...Ye,
|
|
323
|
+
...Qe
|
|
336
324
|
];
|
|
337
325
|
//#endregion
|
|
338
326
|
//#region src/modules/invoice/routes/invoice.routes.ts
|
|
339
|
-
function
|
|
340
|
-
return
|
|
327
|
+
function et(e) {
|
|
328
|
+
return J([{
|
|
341
329
|
name: "invoicing-module",
|
|
342
330
|
path: "/invoicing/invoices",
|
|
343
331
|
redirect: { name: "invoicing-invoice-overview" },
|
|
344
332
|
children: [{
|
|
345
333
|
name: "invoicing-invoice-overview",
|
|
346
334
|
path: "",
|
|
347
|
-
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-
|
|
335
|
+
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-5KgIdhfL.js").then((e) => e.n)),
|
|
348
336
|
meta: { permission: "invoice.read" }
|
|
349
337
|
}, {
|
|
350
338
|
name: "invoicing-invoice-detail",
|
|
351
339
|
props: !0,
|
|
352
340
|
path: ":invoiceUuid",
|
|
353
|
-
component: () => import("./InvoiceDetailViewDataProvider-
|
|
341
|
+
component: () => import("./InvoiceDetailViewDataProvider-B9gul2ei.js"),
|
|
354
342
|
meta: { permission: "invoice.read" }
|
|
355
343
|
}]
|
|
356
344
|
}]);
|
|
357
345
|
}
|
|
358
|
-
var
|
|
346
|
+
var tt = J([{
|
|
359
347
|
name: "invoicing-invoice-pdf-preview",
|
|
360
348
|
props: !0,
|
|
361
349
|
path: "/invoicing/invoices/:invoiceUuid/pdf",
|
|
362
|
-
component: () => import("./InvoicePdfViewDataProvider-
|
|
350
|
+
component: () => import("./InvoicePdfViewDataProvider-BLVXDPv6.js"),
|
|
363
351
|
meta: { permission: "invoice.read" }
|
|
364
|
-
}]),
|
|
352
|
+
}]), nt = J([{
|
|
365
353
|
name: "invoicing-invoice-public-pdf-preview",
|
|
366
354
|
path: "/pdf",
|
|
367
|
-
component: () => import("./InvoicePublicPdfViewDataProvider-
|
|
355
|
+
component: () => import("./InvoicePublicPdfViewDataProvider-CnhYazmB.js").then((e) => e.n)
|
|
356
|
+
}, {
|
|
357
|
+
name: "invoicing-invoice-public-pro-forma-pdf-preview",
|
|
358
|
+
path: "/pro-forma-pdf",
|
|
359
|
+
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js")
|
|
368
360
|
}]);
|
|
369
361
|
//#endregion
|
|
370
362
|
//#region src/routes/invoicingPublicRoutes.composable.ts
|
|
371
|
-
function
|
|
372
|
-
return [...
|
|
363
|
+
function rt() {
|
|
364
|
+
return [...nt, ...Xe];
|
|
373
365
|
}
|
|
374
366
|
//#endregion
|
|
375
367
|
//#region src/modules/credit-note/routes/creditNote.routes.ts
|
|
376
|
-
var
|
|
368
|
+
var it = [{
|
|
377
369
|
name: "invoicing-credit-note-module",
|
|
378
370
|
path: "/invoicing/credit-notes",
|
|
379
371
|
redirect: { name: "invoicing-invoice-overview" },
|
|
@@ -381,47 +373,47 @@ var ct = [{
|
|
|
381
373
|
name: "invoicing-credit-note-detail",
|
|
382
374
|
props: !0,
|
|
383
375
|
path: ":creditNoteUuid",
|
|
384
|
-
component: () => import("./CreditNoteDetailViewDataProvider-
|
|
376
|
+
component: () => import("./CreditNoteDetailViewDataProvider-BxNfC6yO.js"),
|
|
385
377
|
meta: { permission: "invoice.read" }
|
|
386
378
|
}]
|
|
387
|
-
}],
|
|
379
|
+
}], at = [{
|
|
388
380
|
name: "invoicing-credit-note-pdf-preview",
|
|
389
381
|
props: !0,
|
|
390
382
|
path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
|
|
391
|
-
component: () => import("./CreditNotePdfViewDataProvider-
|
|
383
|
+
component: () => import("./CreditNotePdfViewDataProvider-D0j8qqK-.js"),
|
|
392
384
|
meta: { permission: "invoice.read" }
|
|
393
385
|
}];
|
|
394
386
|
//#endregion
|
|
395
387
|
//#region src/routes/invoicingRoutes.composable.ts
|
|
396
|
-
function
|
|
397
|
-
return
|
|
388
|
+
function Y(e) {
|
|
389
|
+
return J([{
|
|
398
390
|
path: "",
|
|
399
391
|
children: [
|
|
400
|
-
...
|
|
401
|
-
...
|
|
402
|
-
...
|
|
403
|
-
...
|
|
392
|
+
...et(e?.invoiceOverviewComponent),
|
|
393
|
+
...it,
|
|
394
|
+
...Je,
|
|
395
|
+
...Ze
|
|
404
396
|
]
|
|
405
397
|
}]);
|
|
406
398
|
}
|
|
407
399
|
//#endregion
|
|
408
400
|
//#region src/routes/invoicingStandaloneRoutes.composable.ts
|
|
409
|
-
function
|
|
410
|
-
return [...
|
|
401
|
+
function ot() {
|
|
402
|
+
return [...at, ...tt];
|
|
411
403
|
}
|
|
412
404
|
//#endregion
|
|
413
405
|
//#region src/types/apiError.type.ts
|
|
414
|
-
var
|
|
406
|
+
var X = {
|
|
415
407
|
invoice_has_no_lines: "wise_invoicing.api_error.invoice_has_no_lines",
|
|
416
408
|
invoice_not_editable: "wise_invoicing.api_error.invoice_not_editable"
|
|
417
409
|
};
|
|
418
|
-
function
|
|
419
|
-
let e =
|
|
420
|
-
return { messages: M(() => Object.fromEntries(Object.entries(
|
|
410
|
+
function st() {
|
|
411
|
+
let e = j();
|
|
412
|
+
return { messages: M(() => Object.fromEntries(Object.entries(X).map(([t, n]) => [t, e.t(n)]))) };
|
|
421
413
|
}
|
|
422
414
|
//#endregion
|
|
423
415
|
//#region src/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue
|
|
424
|
-
var
|
|
416
|
+
var Z = /* @__PURE__ */ z({
|
|
425
417
|
__name: "CustomerInvoiceTableBadgeCell",
|
|
426
418
|
props: {
|
|
427
419
|
color: {},
|
|
@@ -429,8 +421,8 @@ var Q = /* @__PURE__ */ R({
|
|
|
429
421
|
},
|
|
430
422
|
setup(e) {
|
|
431
423
|
let t = e;
|
|
432
|
-
return (e, n) => (
|
|
433
|
-
default: U(() => [
|
|
424
|
+
return (e, n) => (B(), N(H(G), null, {
|
|
425
|
+
default: U(() => [R(H(Ce), {
|
|
434
426
|
label: t.label,
|
|
435
427
|
color: t.color,
|
|
436
428
|
size: "sm"
|
|
@@ -438,32 +430,32 @@ var Q = /* @__PURE__ */ R({
|
|
|
438
430
|
_: 1
|
|
439
431
|
}));
|
|
440
432
|
}
|
|
441
|
-
}),
|
|
433
|
+
}), ct = /* @__PURE__ */ z({
|
|
442
434
|
__name: "CustomerInvoiceTableInvoiceNumberCell",
|
|
443
435
|
props: { sequence: {} },
|
|
444
436
|
setup(e) {
|
|
445
437
|
let t = e;
|
|
446
|
-
return (e, n) => (
|
|
447
|
-
default: U(() => [
|
|
438
|
+
return (e, n) => (B(), N(H(G), null, {
|
|
439
|
+
default: U(() => [R(H(K), {
|
|
448
440
|
text: t.sequence ?? "-",
|
|
449
441
|
class: "text-xs font-medium text-primary"
|
|
450
442
|
}, null, 8, ["text"])]),
|
|
451
443
|
_: 1
|
|
452
444
|
}));
|
|
453
445
|
}
|
|
454
|
-
}),
|
|
446
|
+
}), Q = /* @__PURE__ */ z({
|
|
455
447
|
__name: "CustomerInvoiceTableTextCell",
|
|
456
448
|
props: { text: {} },
|
|
457
449
|
setup(e) {
|
|
458
450
|
let t = e;
|
|
459
|
-
return (e, n) => (
|
|
460
|
-
default: U(() => [
|
|
451
|
+
return (e, n) => (B(), N(H(G), null, {
|
|
452
|
+
default: U(() => [R(H(ke), { text: t.text ?? "-" }, null, 8, ["text"])]),
|
|
461
453
|
_: 1
|
|
462
454
|
}));
|
|
463
455
|
}
|
|
464
|
-
}),
|
|
456
|
+
}), $ = class {
|
|
465
457
|
static getStatusBadgeColor(e) {
|
|
466
|
-
return e ===
|
|
458
|
+
return e === r.OVERDUE || e === r.PROTESTED ? "error" : "gray";
|
|
467
459
|
}
|
|
468
460
|
static getVatAmount(e) {
|
|
469
461
|
return {
|
|
@@ -474,20 +466,20 @@ var Q = /* @__PURE__ */ R({
|
|
|
474
466
|
};
|
|
475
467
|
//#endregion
|
|
476
468
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
|
|
477
|
-
function
|
|
478
|
-
let e =
|
|
479
|
-
function
|
|
469
|
+
function lt() {
|
|
470
|
+
let e = j(), t = oe(), n = l();
|
|
471
|
+
function r(e) {
|
|
480
472
|
return e === null ? null : t.formatPlainDate(e);
|
|
481
473
|
}
|
|
482
|
-
return M(() =>
|
|
474
|
+
return M(() => je()([
|
|
483
475
|
{
|
|
484
476
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
|
|
485
|
-
key:
|
|
477
|
+
key: i.SEQUENCE,
|
|
486
478
|
size: {
|
|
487
479
|
max: "9.625rem",
|
|
488
480
|
min: "9.625rem"
|
|
489
481
|
},
|
|
490
|
-
component: (e) =>
|
|
482
|
+
component: (e) => q(ct, { sequence: e.sequence })
|
|
491
483
|
},
|
|
492
484
|
{
|
|
493
485
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.status"),
|
|
@@ -496,19 +488,19 @@ function ht() {
|
|
|
496
488
|
max: "6.4375rem",
|
|
497
489
|
min: "6.4375rem"
|
|
498
490
|
},
|
|
499
|
-
component: (t) =>
|
|
500
|
-
color:
|
|
501
|
-
label: e.t(
|
|
491
|
+
component: (t) => q(Z, {
|
|
492
|
+
color: $.getStatusBadgeColor(t.status),
|
|
493
|
+
label: e.t(k.getMetadata(t.status).translationKey)
|
|
502
494
|
})
|
|
503
495
|
},
|
|
504
496
|
{
|
|
505
497
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
|
|
506
|
-
key:
|
|
498
|
+
key: i.ISSUED_ON,
|
|
507
499
|
size: {
|
|
508
500
|
max: "8.125rem",
|
|
509
501
|
min: "8.125rem"
|
|
510
502
|
},
|
|
511
|
-
component: (e) =>
|
|
503
|
+
component: (e) => q(Q, { text: r(e.issuedOn) })
|
|
512
504
|
},
|
|
513
505
|
{
|
|
514
506
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.due_date"),
|
|
@@ -517,7 +509,7 @@ function ht() {
|
|
|
517
509
|
max: "7.125rem",
|
|
518
510
|
min: "7.125rem"
|
|
519
511
|
},
|
|
520
|
-
component: (e) =>
|
|
512
|
+
component: (e) => q(Q, { text: r(e.dueOn) })
|
|
521
513
|
},
|
|
522
514
|
{
|
|
523
515
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.type"),
|
|
@@ -526,19 +518,19 @@ function ht() {
|
|
|
526
518
|
max: "7.875rem",
|
|
527
519
|
min: "7.875rem"
|
|
528
520
|
},
|
|
529
|
-
component: (t) =>
|
|
521
|
+
component: (t) => q(Z, {
|
|
530
522
|
color: "gray",
|
|
531
|
-
label: e.t(t.type ===
|
|
523
|
+
label: e.t(t.type === s.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
|
|
532
524
|
})
|
|
533
525
|
},
|
|
534
526
|
{
|
|
535
527
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
|
|
536
|
-
key:
|
|
528
|
+
key: i.NET_AMOUNT,
|
|
537
529
|
size: {
|
|
538
530
|
max: "8.25rem",
|
|
539
531
|
min: "8.25rem"
|
|
540
532
|
},
|
|
541
|
-
component: (e) =>
|
|
533
|
+
component: (e) => q(Q, { text: n.formatMonetary(e.total) })
|
|
542
534
|
},
|
|
543
535
|
{
|
|
544
536
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.vat"),
|
|
@@ -547,7 +539,7 @@ function ht() {
|
|
|
547
539
|
max: "8.25rem",
|
|
548
540
|
min: "8.25rem"
|
|
549
541
|
},
|
|
550
|
-
component: (e) =>
|
|
542
|
+
component: (e) => q(Q, { text: n.formatMonetary($.getVatAmount(e)) })
|
|
551
543
|
},
|
|
552
544
|
{
|
|
553
545
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_incl_vat"),
|
|
@@ -556,7 +548,7 @@ function ht() {
|
|
|
556
548
|
max: "8.25rem",
|
|
557
549
|
min: "8.25rem"
|
|
558
550
|
},
|
|
559
|
-
component: (e) =>
|
|
551
|
+
component: (e) => q(Q, { text: n.formatMonetary(e.grossAmount) })
|
|
560
552
|
},
|
|
561
553
|
{
|
|
562
554
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
|
|
@@ -565,30 +557,30 @@ function ht() {
|
|
|
565
557
|
max: "1fr",
|
|
566
558
|
min: "8.3125rem"
|
|
567
559
|
},
|
|
568
|
-
component: (e) =>
|
|
560
|
+
component: (e) => q(Q, { text: e.balanceDueAmount === null ? null : n.formatMonetary(e.balanceDueAmount) })
|
|
569
561
|
}
|
|
570
562
|
]));
|
|
571
563
|
}
|
|
572
564
|
//#endregion
|
|
573
565
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
|
|
574
|
-
function
|
|
575
|
-
let e =
|
|
566
|
+
function ut() {
|
|
567
|
+
let e = j(), t = E({
|
|
576
568
|
actionGroup: { name: "customer-invoices" },
|
|
577
569
|
filters: [
|
|
578
|
-
|
|
570
|
+
T({
|
|
579
571
|
defaultValue: {
|
|
580
|
-
operator:
|
|
572
|
+
operator: ue.INCLUDES,
|
|
581
573
|
value: []
|
|
582
574
|
},
|
|
583
575
|
disableOperators: !0,
|
|
584
|
-
displayFn: (t) => e.t(
|
|
576
|
+
displayFn: (t) => e.t(k.getMetadata(t).translationKey),
|
|
585
577
|
key: "statuses",
|
|
586
578
|
label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
|
|
587
|
-
options: () => Object.values(
|
|
579
|
+
options: () => Object.values(r)
|
|
588
580
|
}),
|
|
589
|
-
|
|
581
|
+
D({
|
|
590
582
|
defaultValue: {
|
|
591
|
-
operator:
|
|
583
|
+
operator: O.IS_BETWEEN,
|
|
592
584
|
value: {
|
|
593
585
|
from: null,
|
|
594
586
|
until: null
|
|
@@ -598,9 +590,9 @@ function gt() {
|
|
|
598
590
|
key: "issuedOnRange",
|
|
599
591
|
label: e.t("wise_invoicing.invoice.overview.filters.issued_on")
|
|
600
592
|
}),
|
|
601
|
-
|
|
593
|
+
D({
|
|
602
594
|
defaultValue: {
|
|
603
|
-
operator:
|
|
595
|
+
operator: O.IS_BETWEEN,
|
|
604
596
|
value: {
|
|
605
597
|
from: null,
|
|
606
598
|
until: null
|
|
@@ -630,37 +622,37 @@ function gt() {
|
|
|
630
622
|
}
|
|
631
623
|
//#endregion
|
|
632
624
|
//#region src/ui/customer-invoice-list/CustomerInvoiceTable.vue?vue&type=script&setup=true&lang.ts
|
|
633
|
-
var
|
|
625
|
+
var dt = { class: "flex min-h-0 flex-1 flex-col" }, ft = {
|
|
634
626
|
key: 1,
|
|
635
627
|
class: "flex min-h-0 flex-1 flex-col"
|
|
636
|
-
},
|
|
628
|
+
}, pt = /* @__PURE__ */ z({
|
|
637
629
|
__name: "CustomerInvoiceTable",
|
|
638
630
|
props: { externalId: {} },
|
|
639
631
|
setup(e) {
|
|
640
|
-
let t = e,
|
|
641
|
-
|
|
642
|
-
let d =
|
|
632
|
+
let t = e, n = j(), r = lt(), a = p({ debounceMs: 300 }), { issuedOnRange: o, dueOnRange: c, filters: l, statuses: u } = ut();
|
|
633
|
+
ce(l);
|
|
634
|
+
let d = Me({
|
|
643
635
|
initialValues: [{
|
|
644
636
|
direction: "desc",
|
|
645
|
-
key:
|
|
637
|
+
key: i.ISSUED_ON
|
|
646
638
|
}],
|
|
647
639
|
keys: [
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
640
|
+
i.SEQUENCE,
|
|
641
|
+
i.ISSUED_ON,
|
|
642
|
+
i.NET_AMOUNT
|
|
651
643
|
]
|
|
652
644
|
}), { isFetching: f, isFetchingNextPage: m, isLoading: h, fetchNextPage: g, result: _ } = ee({ params: {
|
|
653
645
|
filters: M(() => ({
|
|
654
|
-
issuedOnRange:
|
|
646
|
+
issuedOnRange: o.value,
|
|
655
647
|
customerExternalIds: [t.externalId],
|
|
656
648
|
dueOnRange: c.value,
|
|
657
649
|
statuses: u.value
|
|
658
650
|
})),
|
|
659
|
-
search:
|
|
651
|
+
search: a.debouncedSearch,
|
|
660
652
|
sort: d.values
|
|
661
|
-
} }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (
|
|
653
|
+
} }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (a.debouncedSearch.value?.trim().length ?? 0) > 0), S = M(() => !h.value && !f.value && y.value === null && v.value.length === 0 && a.search.value === "" && b.value === 0);
|
|
662
654
|
function C(e) {
|
|
663
|
-
return e.type ===
|
|
655
|
+
return e.type === s.CREDIT_NOTE ? {
|
|
664
656
|
name: "invoicing-credit-note-detail",
|
|
665
657
|
params: { creditNoteUuid: e.uuid }
|
|
666
658
|
} : {
|
|
@@ -668,53 +660,53 @@ var _t = { class: "flex min-h-0 flex-1 flex-col" }, vt = {
|
|
|
668
660
|
params: { invoiceUuid: e.uuid }
|
|
669
661
|
};
|
|
670
662
|
}
|
|
671
|
-
return (e, t) => (
|
|
663
|
+
return (e, t) => (B(), F("div", dt, [R(H(W), {
|
|
672
664
|
align: "center",
|
|
673
665
|
justify: "between",
|
|
674
666
|
class: "border-b border-secondary bg-secondary px-lg py-md"
|
|
675
667
|
}, {
|
|
676
|
-
default: U(() => [
|
|
668
|
+
default: U(() => [R(H(W), {
|
|
677
669
|
align: "center",
|
|
678
670
|
gap: "md",
|
|
679
671
|
class: "min-w-0"
|
|
680
672
|
}, {
|
|
681
|
-
default: U(() => [
|
|
682
|
-
text: H(
|
|
673
|
+
default: U(() => [R(H(K), {
|
|
674
|
+
text: H(n).t("wise_invoicing.customer_invoice_list.title"),
|
|
683
675
|
class: "shrink-0 text-sm font-semibold text-primary"
|
|
684
|
-
}, null, 8, ["text"]),
|
|
676
|
+
}, null, 8, ["text"]), R(H(le))]),
|
|
685
677
|
_: 1
|
|
686
|
-
}), S.value ? P("", !0) : (
|
|
678
|
+
}), S.value ? P("", !0) : (B(), N(H(W), {
|
|
687
679
|
key: 0,
|
|
688
680
|
justify: "end"
|
|
689
681
|
}, {
|
|
690
|
-
default: U(() => [
|
|
691
|
-
modelValue: H(
|
|
692
|
-
"onUpdate:modelValue": t[0] ||= (e) => H(
|
|
682
|
+
default: U(() => [R(H(Ae), {
|
|
683
|
+
modelValue: H(a).search.value,
|
|
684
|
+
"onUpdate:modelValue": t[0] ||= (e) => H(a).search.value = e,
|
|
693
685
|
label: null,
|
|
694
|
-
"icon-left": H(
|
|
695
|
-
placeholder: H(
|
|
686
|
+
"icon-left": H(re),
|
|
687
|
+
placeholder: H(n).t("wise_invoicing.common.search"),
|
|
696
688
|
size: "sm",
|
|
697
689
|
type: "search"
|
|
698
690
|
}, null, 8, [
|
|
699
691
|
"modelValue",
|
|
700
692
|
"icon-left",
|
|
701
693
|
"placeholder"
|
|
702
|
-
]),
|
|
694
|
+
]), R(H(de))]),
|
|
703
695
|
_: 1
|
|
704
696
|
}))]),
|
|
705
697
|
_: 1
|
|
706
|
-
}), S.value ? (
|
|
698
|
+
}), S.value ? (B(), N(H(Ee), {
|
|
707
699
|
key: 0,
|
|
708
|
-
icon: H(
|
|
709
|
-
title: H(
|
|
710
|
-
description: H(
|
|
700
|
+
icon: H(ie),
|
|
701
|
+
title: H(n).t("wise_invoicing.customer_invoice_list.empty_state.title"),
|
|
702
|
+
description: H(n).t("wise_invoicing.customer_invoice_list.empty_state.description"),
|
|
711
703
|
class: "py-7xl"
|
|
712
704
|
}, null, 8, [
|
|
713
705
|
"icon",
|
|
714
706
|
"title",
|
|
715
707
|
"description"
|
|
716
|
-
])) : (
|
|
717
|
-
columns: H(
|
|
708
|
+
])) : (B(), F("div", ft, [R(H(Oe), {
|
|
709
|
+
columns: H(r),
|
|
718
710
|
data: v.value,
|
|
719
711
|
sort: H(d),
|
|
720
712
|
"is-loading": H(h),
|
|
@@ -725,7 +717,7 @@ var _t = { class: "flex min-h-0 flex-1 flex-col" }, vt = {
|
|
|
725
717
|
"get-key": (e) => e.uuid,
|
|
726
718
|
"get-link": C,
|
|
727
719
|
onNextPage: H(g),
|
|
728
|
-
onClearSearch: t[1] ||= (e) => H(
|
|
720
|
+
onClearSearch: t[1] ||= (e) => H(a).clear(),
|
|
729
721
|
onClearFilters: t[2] ||= (e) => H(l).clearAll()
|
|
730
722
|
}, null, 8, [
|
|
731
723
|
"columns",
|
|
@@ -740,32 +732,32 @@ var _t = { class: "flex min-h-0 flex-1 flex-col" }, vt = {
|
|
|
740
732
|
"onNextPage"
|
|
741
733
|
])]))]));
|
|
742
734
|
}
|
|
743
|
-
}),
|
|
735
|
+
}), mt = /* @__PURE__ */ z({
|
|
744
736
|
__name: "CustomerInvoiceList",
|
|
745
737
|
props: { externalId: {} },
|
|
746
738
|
setup(e) {
|
|
747
739
|
let t = e, n = M(() => typeof t.externalId == "string" && t.externalId !== "" ? t.externalId : null);
|
|
748
|
-
return (e, t) => n.value === null ? P("", !0) : (
|
|
740
|
+
return (e, t) => n.value === null ? P("", !0) : (B(), N(pt, {
|
|
749
741
|
key: n.value,
|
|
750
742
|
"external-id": n.value
|
|
751
743
|
}, null, 8, ["external-id"]));
|
|
752
744
|
}
|
|
753
|
-
}),
|
|
745
|
+
}), ht = class {
|
|
754
746
|
static format(e, t = 0) {
|
|
755
747
|
return new Intl.NumberFormat(void 0, { maximumFractionDigits: t }).format(e);
|
|
756
748
|
}
|
|
757
749
|
static randomBetween(e, t) {
|
|
758
750
|
return Math.floor(Math.random() * (t - e + 1)) + e;
|
|
759
751
|
}
|
|
760
|
-
},
|
|
752
|
+
}, gt = {
|
|
761
753
|
"en-US": {
|
|
762
754
|
...t,
|
|
763
|
-
...
|
|
755
|
+
...Pe
|
|
764
756
|
},
|
|
765
757
|
"nl-BE": {
|
|
766
758
|
...e,
|
|
767
|
-
...
|
|
759
|
+
...Fe
|
|
768
760
|
}
|
|
769
761
|
};
|
|
770
762
|
//#endregion
|
|
771
|
-
export { g as AddressUtil, y as DownloadUtil,
|
|
763
|
+
export { g as AddressUtil, y as DownloadUtil, x as MonetaryTransformer, ht as NumberUtil, C as Percentage, S as PercentageTransformer, n as SortDirection, ye as SortUtil, o as WiseInvoicingCustomFieldType, v as WiseInvoicingCustomFieldValueUtil, Ge as WiseInvoicingCustomerDunningCasesSection, mt as WiseInvoicingCustomerInvoiceList, se as WiseInvoicingDunningCaseDetailView, te as WiseInvoicingDunningCaseOverviewView, fe as WiseInvoicingDunningCaseReminderPdfView, h as WiseInvoicingInvoiceOverviewView, he as WiseInvoicingInvoicePublicPdfViewDataProvider, pe as WiseInvoicingReminderSettingsView, _ as addressFormSchema, Re as creditNoteUuidSchema, f as initWiseInvoicingConfig, qe as invoiceUuidSchema, Ie as onCreated, u as toMajorUnits, c as toMinorUnits, l as useCurrencyFormat, a as useDocumentTitle, Ke as useInvoiceNavigateToDetailAction, p as useSearch, m as useSort, st as useWiseInvoicingApiError, d as useWiseInvoicingConfig, w as useWiseInvoicingDunningCaseIndexQuery, me as useWiseInvoicingInvoicePublicDetailQuery, rt as useWiseInvoicingPublicRoutes, Le as useWiseInvoicingQueryInvalidation, Y as useWiseInvoicingRoutes, ot as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, gt as wiseInvoicingLocales, $e as wiseInvoicingSettingsRoutes };
|