@wisemen/wise-invoicing-web 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalReminderSettingsViewDataProvider-r9DcFi76.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-CsqBeAiA.js → BillingDocumentDetailViewDataProvider-V5c_cJwt.js} +1544 -1459
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-thrvzGfh.js → BillingDocumentPdf-BYn3lUyl.js} +8 -7
- package/dist/{CreditNoteDetailViewDataProvider-D6IMBwLn.js → CreditNoteDetailViewDataProvider-BqLYeBUQ.js} +230 -223
- package/dist/CreditNotePdfViewDataProvider-Co4R7QJx.js +22 -0
- package/dist/{CustomFieldValueText-BRpCwCqJ.js → CustomFieldValueText-BP4bKQh7.js} +53 -38
- package/dist/{DunningCaseDetailViewDataProvider-DTotyRX8.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
- package/dist/{DunningCaseOverviewView-kDq7UY5e.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
- package/dist/{DunningCaseReminderPdfViewDataProvider-DgKA-7lX.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
- package/dist/{DunningCaseSendDialog-DVfBVtgr.js → DunningCaseSendDialog-DwB_jFum.js} +8 -8
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DPlrqqOs.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-B6naRElx.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-CDc_Pwsm.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
- package/dist/{InvoiceApproveDialogDataProvider-CK6ij8X1.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
- package/dist/{InvoiceDetailViewDataProvider-BKurQPAV.js → InvoiceDetailViewDataProvider-DSG6VnDh.js} +592 -586
- package/dist/{InvoiceOverviewViewDataProvider-ChoyCi5L.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +440 -440
- package/dist/{InvoicePdfView-DLEKQ29O.js → InvoicePdfView-BIDvRCr4.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-C-b7iXiH.js → InvoicePdfViewDataProvider-Ct1HBqqa.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-DZ4WQsvi.js → InvoicePublicPdfViewDataProvider-DS0Q-BEX.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CsF8fPlp.js → InvoicePublicProFormaPdfViewDataProvider-DqWKGeAm.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-t64Qiyn6.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-Cc8R6ekd.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +3 -3
- package/dist/{PeppolSettingsViewDataProvider-DpVIfFVG.js → PeppolSettingsViewDataProvider-Cptga29B.js} +2 -2
- package/dist/{ReminderSettingsViewDataProvider-QOh3LpMX.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +4 -4
- package/dist/{api.util-Do9BEwG4.js → api.util-CR2xLnNj.js} +536 -515
- package/dist/{billingDocumentDetail.transformer-BAOQ3Zrg.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +8 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.gen.d.ts +23 -17
- package/dist/client/zod.gen.d.ts +360 -0
- package/dist/composables/invoicingConfig.composable.d.ts +16 -3
- package/dist/{creditNoteDetail.query-C1rr54m1.js → creditNoteDetail.query-DGeG9_sO.js} +3 -3
- package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
- package/dist/{dist-CZAOPudv.js → dist-DALBiuub.js} +133 -133
- package/dist/{documentTitle.composable-C3k1m0Nz.js → documentTitle.composable-RvqrZTBa.js} +1 -1
- package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
- package/dist/{i18n.lib-Bkz_R954.js → i18n.lib-MOiHLIGc.js} +4 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +219 -204
- package/dist/{invoice.service-DrI2ULIR.js → invoice.service-Fv4F4aZq.js} +3 -3
- package/dist/{invoiceApproval.service-Dpxiru7l.js → invoiceApproval.service-DJvXagC7.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-CdOAcPzv.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
- package/dist/{invoiceCustomer.service-RRFosiYR.js → invoiceCustomer.service-CDyrtcwH.js} +2 -2
- package/dist/{invoiceDetail.query-BmtHdfj0.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
- package/dist/{invoiceIndexCache.util-DKtJorc_.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
- package/dist/{invoicingConfig.composable-CMTYHHS9.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
- package/dist/{issuerSettings.query-CKDhoStt.js → issuerSettings.query-CoiXblSm.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +4 -0
- package/dist/locales/en-US.json.d.ts +2 -0
- package/dist/locales/nl-BE.json.d.ts +2 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
- package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
- package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
- package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/{reminderConfig.query-yImUS5qt.js → reminderConfig.query-aRFzY6uZ.js} +2 -2
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
- package/package.json +1 -1
- package/dist/CreditNotePdfViewDataProvider-C4z1NE3Q.js +0 -21
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { n as e, r as t } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import { A as n, D as r, b as i,
|
|
4
|
-
import { n as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { a as
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { n as
|
|
15
|
-
import { n as
|
|
16
|
-
import { r as
|
|
17
|
-
import {
|
|
18
|
-
import { s as
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import { a as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { r as
|
|
25
|
-
import { z as
|
|
26
|
-
import { useI18n as
|
|
27
|
-
import { Fragment as
|
|
28
|
-
import { useQueryClient as
|
|
29
|
-
import { QueryClient as
|
|
30
|
-
import { RouterLink as
|
|
31
|
-
import { UIBadge as
|
|
32
|
-
import { createAction as
|
|
1
|
+
import { n as e, r as t } from "./i18n.lib-MOiHLIGc.js";
|
|
2
|
+
import "./api.util-CR2xLnNj.js";
|
|
3
|
+
import { A as n, D as r, b as i, l as a, t as o, u as s, x as c } from "./documentTitle.composable-RvqrZTBa.js";
|
|
4
|
+
import { n as l, r as u, t as d } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
+
import { n as f, t as p } from "./invoicingConfig.composable-UC7tGtBj.js";
|
|
6
|
+
import { t as m } from "./search.composable-CU9OpyUB.js";
|
|
7
|
+
import { t as h } from "./src-DUSgQTKr.js";
|
|
8
|
+
import { i as ee, r as g, t as _ } from "./InvoiceOverviewViewDataProvider-CLgV-Jcv.js";
|
|
9
|
+
import { n as v } from "./address.transformer-jGddczLV.js";
|
|
10
|
+
import { t as y } from "./addressForm.model-C853zEtX.js";
|
|
11
|
+
import { a as b, i as te, n as x, r as S } from "./CustomFieldValueText-BP4bKQh7.js";
|
|
12
|
+
import { n as C, t as w } from "./download.util-LyRpGWKA.js";
|
|
13
|
+
import { n as T } from "./reminderConfig.query-aRFzY6uZ.js";
|
|
14
|
+
import { n as E } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
15
|
+
import { n as D, t as O } from "./percentage.util-Bl78kSSk.js";
|
|
16
|
+
import { r as k, t as ne } from "./DunningCaseOverviewView-Dvwaw597.js";
|
|
17
|
+
import { F as re, lt as ie, rt as ae } from "./dist-BMzyJZTx.js";
|
|
18
|
+
import { s as oe } from "./DunningCaseSendDialog-DwB_jFum.js";
|
|
19
|
+
import { n as se } from "./dist-Cdbpkd3Y.js";
|
|
20
|
+
import { t as ce } from "./DunningCaseDetailViewDataProvider-BNByfQTc.js";
|
|
21
|
+
import { a as le, i as ue, l as A, n as de, o as fe, r as pe, s as me, t as j } from "./dist-DALBiuub.js";
|
|
22
|
+
import { t as he } from "./DunningCaseReminderPdfViewDataProvider-D1avIVyK.js";
|
|
23
|
+
import { t as ge } from "./ReminderSettingsViewDataProvider-BZgzQIxM.js";
|
|
24
|
+
import { r as _e, t as ve } from "./InvoicePublicPdfViewDataProvider-DS0Q-BEX.js";
|
|
25
|
+
import { z as M } from "zod";
|
|
26
|
+
import { useI18n as N } from "vue-i18n";
|
|
27
|
+
import { Fragment as ye, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as be, createVNode as z, defineComponent as B, openBlock as V, toDisplayString as H, unref as U, withCtx as W } from "vue";
|
|
28
|
+
import { useQueryClient as xe } from "@tanstack/vue-query";
|
|
29
|
+
import { QueryClient as Se, SortUtil as Ce, useQuery as we } from "@wisemen/vue-core-api-utils";
|
|
30
|
+
import { RouterLink as Te, useRouter as Ee } from "vue-router";
|
|
31
|
+
import { UIBadge as De, UIDetailListGroup as Oe, UIDetailListGroupSeparator as ke, UIEmptyState as Ae, UIFeaturedIcon as je, UIRowLayout as G, UITable as Me, UITableCell as K, UITableCellText as Ne, UIText as q, UITextField as Pe, createComponent as J, defineTableColumns as Fe, useSort as Ie } from "@wisemen/vue-core-design-system";
|
|
32
|
+
import { createAction as Le } from "@wisemen/vue-core-actions";
|
|
33
33
|
//#region src/locales/ui-en-US.json
|
|
34
|
-
var
|
|
34
|
+
var Re = {
|
|
35
35
|
"component.api_error.default_message": "An unexpected error occurred.",
|
|
36
36
|
"component.api_error.default_title": "Error",
|
|
37
37
|
"component.autocomplete.more_results_available": "More results may be available. Narrow your search criteria.",
|
|
@@ -93,7 +93,7 @@ var Fe = {
|
|
|
93
93
|
"shared.clear": "Clear",
|
|
94
94
|
"shared.close": "Close",
|
|
95
95
|
"shared.options": "Options"
|
|
96
|
-
},
|
|
96
|
+
}, ze = {
|
|
97
97
|
"component.api_error.default_message": "Er is een onverwachte fout opgetreden.",
|
|
98
98
|
"component.api_error.default_title": "Fout",
|
|
99
99
|
"component.autocomplete.more_results_available": "Er zijn mogelijk meer resultaten beschikbaar. Verfijn uw zoekcriteria.",
|
|
@@ -158,13 +158,13 @@ var Fe = {
|
|
|
158
158
|
};
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region src/composables/created.composable.ts
|
|
161
|
-
function
|
|
161
|
+
function Be(e) {
|
|
162
162
|
e();
|
|
163
163
|
}
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/composables/invoicingQueryInvalidation.composable.ts
|
|
166
|
-
function
|
|
167
|
-
let e = new
|
|
166
|
+
function Ve() {
|
|
167
|
+
let e = new Se(xe());
|
|
168
168
|
async function t() {
|
|
169
169
|
await e.invalidate("invoiceIndex");
|
|
170
170
|
}
|
|
@@ -172,62 +172,62 @@ function Re() {
|
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region src/modules/credit-note/models/creditNoteUuid.model.ts
|
|
175
|
-
var
|
|
175
|
+
var He = M.uuid().brand("CreditNoteUuid");
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.ts
|
|
178
|
-
function
|
|
179
|
-
return
|
|
180
|
-
isEnabled:
|
|
178
|
+
function Ue(e) {
|
|
179
|
+
return we("dunningCaseCustomerByExternalId", {
|
|
180
|
+
isEnabled: P(() => e.value !== null),
|
|
181
181
|
params: { externalId: e },
|
|
182
|
-
queryFn: () =>
|
|
182
|
+
queryFn: () => oe.getUuidByExternalId(e.value ?? "")
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue?vue&type=script&setup=true&lang.ts
|
|
187
|
-
var
|
|
187
|
+
var We = { class: "min-w-0 flex-1" }, Ge = { class: "flex min-w-0 flex-wrap items-center gap-sm" }, Ke = { class: "truncate text-xs font-semibold text-primary" }, qe = {
|
|
188
188
|
key: 0,
|
|
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
|
-
},
|
|
190
|
+
}, Je = { class: "mt-xxs block truncate text-xs text-secondary tabular-nums" }, Ye = /* @__PURE__ */ B({
|
|
191
191
|
__name: "CustomerDunningCasesSection",
|
|
192
192
|
props: {
|
|
193
193
|
customerUuid: {},
|
|
194
194
|
externalId: {}
|
|
195
195
|
},
|
|
196
196
|
setup(e) {
|
|
197
|
-
let t = e, n =
|
|
198
|
-
isEnabled:
|
|
197
|
+
let t = e, n = N(), r = u(), i = Ue(P(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = P(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = k({
|
|
198
|
+
isEnabled: P(() => a.value !== void 0),
|
|
199
199
|
params: {
|
|
200
200
|
customerUuid: a,
|
|
201
|
-
isOpen:
|
|
201
|
+
isOpen: P(() => !0)
|
|
202
202
|
}
|
|
203
|
-
}), s =
|
|
203
|
+
}), s = P(() => o.result.value.isOk() ? o.result.value.getValue().data[0] ?? null : null);
|
|
204
204
|
function c(e) {
|
|
205
205
|
return e === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: e });
|
|
206
206
|
}
|
|
207
|
-
return (e, t) => s.value === null ?
|
|
207
|
+
return (e, t) => s.value === null ? I("", !0) : (V(), L(ye, { key: 0 }, [z(U(ke)), z(U(Oe), {
|
|
208
208
|
"collapse-options": {
|
|
209
209
|
isCollapsible: !0,
|
|
210
210
|
isOpenByDefault: !0,
|
|
211
|
-
badge: { label:
|
|
211
|
+
badge: { label: U(r).formatMonetary(s.value.outstandingBalance) }
|
|
212
212
|
},
|
|
213
|
-
label:
|
|
213
|
+
label: U(n).t("module.dunning_case.customer.title")
|
|
214
214
|
}, {
|
|
215
|
-
default:
|
|
215
|
+
default: W(() => [z(U(Te), {
|
|
216
216
|
to: {
|
|
217
217
|
name: "dunning-case-detail",
|
|
218
218
|
params: { dunningCaseUuid: s.value.uuid }
|
|
219
219
|
},
|
|
220
220
|
class: "flex w-full items-center gap-md rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
|
|
221
221
|
}, {
|
|
222
|
-
default:
|
|
223
|
-
icon:
|
|
222
|
+
default: W(() => [z(U(je), {
|
|
223
|
+
icon: U(re),
|
|
224
224
|
color: "brand",
|
|
225
225
|
size: "md",
|
|
226
226
|
variant: "translucent"
|
|
227
|
-
}, null, 8, ["icon"]),
|
|
227
|
+
}, null, 8, ["icon"]), R("span", We, [R("span", Ge, [R("span", Ke, H(U(n).t("module.dunning_case.customer.open_case")), 1), s.value.level === null ? I("", !0) : (V(), L("span", qe, [z(T, {
|
|
228
228
|
level: s.value.level,
|
|
229
229
|
size: "sm"
|
|
230
|
-
}, null, 8, ["level"]),
|
|
230
|
+
}, null, 8, ["level"]), be(" " + H(c(s.value.level)), 1)]))]), R("span", Je, H(U(n).t("module.dunning_case.customer.outstanding", { amount: U(r).formatMonetary(s.value.outstandingBalance) })), 1)])]),
|
|
231
231
|
_: 1
|
|
232
232
|
}, 8, ["to"])]),
|
|
233
233
|
_: 1
|
|
@@ -236,9 +236,9 @@ var Ve = { class: "min-w-0 flex-1" }, He = { class: "flex min-w-0 flex-wrap item
|
|
|
236
236
|
});
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region src/modules/invoice/actions/invoiceNavigateToDetail.action.ts
|
|
239
|
-
function
|
|
240
|
-
let e =
|
|
241
|
-
return
|
|
239
|
+
function Xe() {
|
|
240
|
+
let e = Ee();
|
|
241
|
+
return Le({
|
|
242
242
|
id: "invoice-navigate-to-detail",
|
|
243
243
|
isApplicable: (e) => e.hasTargetedModelsOfType("Invoice"),
|
|
244
244
|
name: (e) => {
|
|
@@ -247,7 +247,7 @@ function qe() {
|
|
|
247
247
|
},
|
|
248
248
|
execute: (t) => {
|
|
249
249
|
let n = t.targetedModelOfTypeOrThrow("Invoice");
|
|
250
|
-
n.type ===
|
|
250
|
+
n.type === c.STANDARD ? e.push({
|
|
251
251
|
name: "invoicing-invoice-detail",
|
|
252
252
|
params: { invoiceUuid: n.uuid }
|
|
253
253
|
}) : e.push({
|
|
@@ -259,55 +259,55 @@ function qe() {
|
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region src/modules/invoice/models/invoiceUuid.model.ts
|
|
262
|
-
var
|
|
262
|
+
var Ze = M.uuid().brand("InvoiceUuid");
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region ../router/src/createRoutes.ts
|
|
265
|
-
function
|
|
265
|
+
function Y(e) {
|
|
266
266
|
return e;
|
|
267
267
|
}
|
|
268
268
|
//#endregion
|
|
269
269
|
//#region src/modules/dunning-case/routes/dunningCase.routes.ts
|
|
270
|
-
var
|
|
270
|
+
var Qe = Y([{
|
|
271
271
|
name: "dunning-case-module",
|
|
272
272
|
path: "/dunning-cases",
|
|
273
273
|
redirect: { name: "dunning-case-overview" },
|
|
274
274
|
children: [{
|
|
275
275
|
name: "dunning-case-overview",
|
|
276
276
|
path: "",
|
|
277
|
-
component: () => import("./DunningCaseOverviewView-
|
|
277
|
+
component: () => import("./DunningCaseOverviewView-Dvwaw597.js").then((e) => e.n),
|
|
278
278
|
meta: { permission: "dunning-case.read" }
|
|
279
279
|
}, {
|
|
280
280
|
name: "dunning-case-detail",
|
|
281
281
|
props: !0,
|
|
282
282
|
path: ":dunningCaseUuid",
|
|
283
|
-
component: () => import("./DunningCaseDetailViewDataProvider-
|
|
283
|
+
component: () => import("./DunningCaseDetailViewDataProvider-BNByfQTc.js").then((e) => e.n),
|
|
284
284
|
meta: { permission: "dunning-case.read" }
|
|
285
285
|
}]
|
|
286
|
-
}]),
|
|
286
|
+
}]), $e = Y([{
|
|
287
287
|
name: "dunning-case-settings-module",
|
|
288
288
|
path: "payment-reminders",
|
|
289
|
-
component: () => import("./ReminderSettingsViewDataProvider-
|
|
289
|
+
component: () => import("./ReminderSettingsViewDataProvider-BZgzQIxM.js").then((e) => e.n),
|
|
290
290
|
meta: { permission: "reminder-config.read" }
|
|
291
|
-
}]),
|
|
291
|
+
}]), et = Y([{
|
|
292
292
|
name: "dunning-case-reminder-pdf",
|
|
293
293
|
path: "/dunning-case-reminder-pdf",
|
|
294
|
-
component: () => import("./DunningCaseReminderPdfViewDataProvider-
|
|
295
|
-
}]),
|
|
294
|
+
component: () => import("./DunningCaseReminderPdfViewDataProvider-D1avIVyK.js").then((e) => e.n)
|
|
295
|
+
}]), tt = Y([{
|
|
296
296
|
name: "invoice-approval-module",
|
|
297
297
|
path: "/invoicing/approvals",
|
|
298
298
|
redirect: { name: "invoice-approval-overview" },
|
|
299
299
|
children: [{
|
|
300
300
|
name: "invoice-approval-overview",
|
|
301
301
|
path: "",
|
|
302
|
-
component: () => import("./InvoiceApprovalOverviewView-
|
|
302
|
+
component: () => import("./InvoiceApprovalOverviewView-jawT-M1t.js"),
|
|
303
303
|
meta: { permission: "invoice-approval.read" }
|
|
304
304
|
}]
|
|
305
|
-
}]),
|
|
305
|
+
}]), nt = Y([{
|
|
306
306
|
name: "invoice-approval-settings-module",
|
|
307
307
|
path: "approval-reminders",
|
|
308
|
-
component: () => import("./ApprovalReminderSettingsViewDataProvider-
|
|
308
|
+
component: () => import("./ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js"),
|
|
309
309
|
meta: { permission: "reminder-config.read" }
|
|
310
|
-
}]),
|
|
310
|
+
}]), rt = [
|
|
311
311
|
{
|
|
312
312
|
name: "invoicing-settings-module",
|
|
313
313
|
path: "invoicing",
|
|
@@ -315,62 +315,62 @@ var Ye = J([{
|
|
|
315
315
|
children: [{
|
|
316
316
|
name: "invoicing-peppol-settings",
|
|
317
317
|
path: "peppol",
|
|
318
|
-
component: () => import("./PeppolSettingsViewDataProvider-
|
|
318
|
+
component: () => import("./PeppolSettingsViewDataProvider-Cptga29B.js"),
|
|
319
319
|
meta: { permission: "peppol-connection.update" }
|
|
320
320
|
}, {
|
|
321
321
|
name: "invoicing-settings-overview",
|
|
322
322
|
path: "",
|
|
323
|
-
component: () => import("./IssuerSettingsViewDataProvider-
|
|
323
|
+
component: () => import("./IssuerSettingsViewDataProvider-CXyyCvoZ.js"),
|
|
324
324
|
meta: { permission: "issuer.read" }
|
|
325
325
|
}]
|
|
326
326
|
},
|
|
327
|
-
|
|
328
|
-
|
|
327
|
+
...$e,
|
|
328
|
+
...nt
|
|
329
329
|
];
|
|
330
330
|
//#endregion
|
|
331
331
|
//#region src/modules/invoice/routes/invoice.routes.ts
|
|
332
|
-
function
|
|
333
|
-
return
|
|
332
|
+
function it(e) {
|
|
333
|
+
return Y([{
|
|
334
334
|
name: "invoicing-module",
|
|
335
335
|
path: "/invoicing/invoices",
|
|
336
336
|
redirect: { name: "invoicing-invoice-overview" },
|
|
337
337
|
children: [{
|
|
338
338
|
name: "invoicing-invoice-overview",
|
|
339
339
|
path: "",
|
|
340
|
-
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-
|
|
340
|
+
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-CLgV-Jcv.js").then((e) => e.n)),
|
|
341
341
|
meta: { permission: "invoice.read" }
|
|
342
342
|
}, {
|
|
343
343
|
name: "invoicing-invoice-detail",
|
|
344
344
|
props: !0,
|
|
345
345
|
path: ":invoiceUuid",
|
|
346
|
-
component: () => import("./InvoiceDetailViewDataProvider-
|
|
346
|
+
component: () => import("./InvoiceDetailViewDataProvider-DSG6VnDh.js"),
|
|
347
347
|
meta: { permission: "invoice.read" }
|
|
348
348
|
}]
|
|
349
349
|
}]);
|
|
350
350
|
}
|
|
351
|
-
var
|
|
351
|
+
var at = Y([{
|
|
352
352
|
name: "invoicing-invoice-pdf-preview",
|
|
353
353
|
props: !0,
|
|
354
354
|
path: "/invoicing/invoices/:invoiceUuid/pdf",
|
|
355
|
-
component: () => import("./InvoicePdfViewDataProvider-
|
|
355
|
+
component: () => import("./InvoicePdfViewDataProvider-Ct1HBqqa.js"),
|
|
356
356
|
meta: { permission: "invoice.read" }
|
|
357
|
-
}]),
|
|
357
|
+
}]), ot = Y([{
|
|
358
358
|
name: "invoicing-invoice-public-pdf-preview",
|
|
359
359
|
path: "/pdf",
|
|
360
|
-
component: () => import("./InvoicePublicPdfViewDataProvider-
|
|
360
|
+
component: () => import("./InvoicePublicPdfViewDataProvider-DS0Q-BEX.js").then((e) => e.n)
|
|
361
361
|
}, {
|
|
362
362
|
name: "invoicing-invoice-public-pro-forma-pdf-preview",
|
|
363
363
|
path: "/pro-forma-pdf",
|
|
364
|
-
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-
|
|
364
|
+
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-DqWKGeAm.js")
|
|
365
365
|
}]);
|
|
366
366
|
//#endregion
|
|
367
367
|
//#region src/routes/invoicingPublicRoutes.composable.ts
|
|
368
|
-
function
|
|
369
|
-
return [...
|
|
368
|
+
function st() {
|
|
369
|
+
return [...ot, ...et];
|
|
370
370
|
}
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region src/modules/credit-note/routes/creditNote.routes.ts
|
|
373
|
-
var
|
|
373
|
+
var ct = [{
|
|
374
374
|
name: "invoicing-credit-note-module",
|
|
375
375
|
path: "/invoicing/credit-notes",
|
|
376
376
|
redirect: { name: "invoicing-invoice-overview" },
|
|
@@ -378,33 +378,33 @@ var at = [{
|
|
|
378
378
|
name: "invoicing-credit-note-detail",
|
|
379
379
|
props: !0,
|
|
380
380
|
path: ":creditNoteUuid",
|
|
381
|
-
component: () => import("./CreditNoteDetailViewDataProvider-
|
|
381
|
+
component: () => import("./CreditNoteDetailViewDataProvider-BqLYeBUQ.js"),
|
|
382
382
|
meta: { permission: "invoice.read" }
|
|
383
383
|
}]
|
|
384
|
-
}],
|
|
384
|
+
}], lt = [{
|
|
385
385
|
name: "invoicing-credit-note-pdf-preview",
|
|
386
386
|
props: !0,
|
|
387
387
|
path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
|
|
388
|
-
component: () => import("./CreditNotePdfViewDataProvider-
|
|
388
|
+
component: () => import("./CreditNotePdfViewDataProvider-Co4R7QJx.js"),
|
|
389
389
|
meta: { permission: "invoice.read" }
|
|
390
390
|
}];
|
|
391
391
|
//#endregion
|
|
392
392
|
//#region src/routes/invoicingRoutes.composable.ts
|
|
393
|
-
function
|
|
394
|
-
return
|
|
393
|
+
function ut(e) {
|
|
394
|
+
return Y([{
|
|
395
395
|
path: "",
|
|
396
396
|
children: [
|
|
397
|
-
...
|
|
398
|
-
...
|
|
399
|
-
...
|
|
400
|
-
...
|
|
397
|
+
...it(e?.invoiceOverviewComponent),
|
|
398
|
+
...ct,
|
|
399
|
+
...Qe,
|
|
400
|
+
...tt
|
|
401
401
|
]
|
|
402
402
|
}]);
|
|
403
403
|
}
|
|
404
404
|
//#endregion
|
|
405
405
|
//#region src/routes/invoicingStandaloneRoutes.composable.ts
|
|
406
|
-
function
|
|
407
|
-
return [...
|
|
406
|
+
function dt() {
|
|
407
|
+
return [...lt, ...at];
|
|
408
408
|
}
|
|
409
409
|
//#endregion
|
|
410
410
|
//#region src/types/apiError.type.ts
|
|
@@ -413,13 +413,13 @@ var X = {
|
|
|
413
413
|
invoice_line_group_max_depth_exceeded: "wise_invoicing.api_error.invoice_line_group_max_depth_exceeded",
|
|
414
414
|
invoice_not_editable: "wise_invoicing.api_error.invoice_not_editable"
|
|
415
415
|
};
|
|
416
|
-
function
|
|
417
|
-
let e =
|
|
418
|
-
return { messages:
|
|
416
|
+
function ft() {
|
|
417
|
+
let e = N();
|
|
418
|
+
return { messages: P(() => Object.fromEntries(Object.entries(X).map(([t, n]) => [t, e.t(n)]))) };
|
|
419
419
|
}
|
|
420
420
|
//#endregion
|
|
421
421
|
//#region src/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue
|
|
422
|
-
var Z = /* @__PURE__ */
|
|
422
|
+
var Z = /* @__PURE__ */ B({
|
|
423
423
|
__name: "CustomerInvoiceTableBadgeCell",
|
|
424
424
|
props: {
|
|
425
425
|
color: {},
|
|
@@ -427,8 +427,8 @@ var Z = /* @__PURE__ */ z({
|
|
|
427
427
|
},
|
|
428
428
|
setup(e) {
|
|
429
429
|
let t = e;
|
|
430
|
-
return (e, n) => (
|
|
431
|
-
default:
|
|
430
|
+
return (e, n) => (V(), F(U(K), null, {
|
|
431
|
+
default: W(() => [z(U(De), {
|
|
432
432
|
label: t.label,
|
|
433
433
|
color: t.color,
|
|
434
434
|
size: "sm"
|
|
@@ -436,26 +436,26 @@ var Z = /* @__PURE__ */ z({
|
|
|
436
436
|
_: 1
|
|
437
437
|
}));
|
|
438
438
|
}
|
|
439
|
-
}),
|
|
439
|
+
}), pt = /* @__PURE__ */ B({
|
|
440
440
|
__name: "CustomerInvoiceTableInvoiceNumberCell",
|
|
441
441
|
props: { sequence: {} },
|
|
442
442
|
setup(e) {
|
|
443
443
|
let t = e;
|
|
444
|
-
return (e, n) => (
|
|
445
|
-
default:
|
|
444
|
+
return (e, n) => (V(), F(U(K), null, {
|
|
445
|
+
default: W(() => [z(U(q), {
|
|
446
446
|
text: t.sequence ?? "-",
|
|
447
447
|
class: "text-xs font-medium text-primary"
|
|
448
448
|
}, null, 8, ["text"])]),
|
|
449
449
|
_: 1
|
|
450
450
|
}));
|
|
451
451
|
}
|
|
452
|
-
}), Q = /* @__PURE__ */
|
|
452
|
+
}), Q = /* @__PURE__ */ B({
|
|
453
453
|
__name: "CustomerInvoiceTableTextCell",
|
|
454
454
|
props: { text: {} },
|
|
455
455
|
setup(e) {
|
|
456
456
|
let t = e;
|
|
457
|
-
return (e, n) => (
|
|
458
|
-
default:
|
|
457
|
+
return (e, n) => (V(), F(U(K), null, {
|
|
458
|
+
default: W(() => [z(U(Ne), { text: t.text ?? "-" }, null, 8, ["text"])]),
|
|
459
459
|
_: 1
|
|
460
460
|
}));
|
|
461
461
|
}
|
|
@@ -472,121 +472,133 @@ var Z = /* @__PURE__ */ z({
|
|
|
472
472
|
};
|
|
473
473
|
//#endregion
|
|
474
474
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
|
|
475
|
-
function
|
|
476
|
-
let
|
|
477
|
-
function
|
|
478
|
-
return e === null ? null :
|
|
475
|
+
function mt(e) {
|
|
476
|
+
let t = N(), r = se(), i = u();
|
|
477
|
+
function a(e) {
|
|
478
|
+
return e === null ? null : r.formatPlainDate(e);
|
|
479
479
|
}
|
|
480
|
-
return
|
|
480
|
+
return P(() => Fe()([
|
|
481
481
|
{
|
|
482
|
-
headerLabel:
|
|
482
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
|
|
483
483
|
key: n.SEQUENCE,
|
|
484
484
|
size: {
|
|
485
485
|
max: "9.625rem",
|
|
486
486
|
min: "9.625rem"
|
|
487
487
|
},
|
|
488
|
-
component: (e) =>
|
|
488
|
+
component: (e) => J(pt, { sequence: e.sequence })
|
|
489
489
|
},
|
|
490
490
|
{
|
|
491
|
-
headerLabel:
|
|
491
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.status"),
|
|
492
492
|
key: "status",
|
|
493
493
|
size: {
|
|
494
494
|
max: "6.4375rem",
|
|
495
495
|
min: "6.4375rem"
|
|
496
496
|
},
|
|
497
|
-
component: (
|
|
498
|
-
color: $.getStatusBadgeColor(
|
|
499
|
-
label:
|
|
497
|
+
component: (e) => J(Z, {
|
|
498
|
+
color: $.getStatusBadgeColor(e.status),
|
|
499
|
+
label: t.t(x.getMetadata(e.status).translationKey)
|
|
500
500
|
})
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
|
-
headerLabel:
|
|
503
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
|
|
504
504
|
key: n.ISSUED_ON,
|
|
505
505
|
size: {
|
|
506
506
|
max: "8.125rem",
|
|
507
507
|
min: "8.125rem"
|
|
508
508
|
},
|
|
509
|
-
component: (e) =>
|
|
509
|
+
component: (e) => J(Q, { text: a(e.issuedOn) })
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
|
-
headerLabel:
|
|
512
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.due_date"),
|
|
513
513
|
key: "dueOn",
|
|
514
514
|
size: {
|
|
515
515
|
max: "7.125rem",
|
|
516
516
|
min: "7.125rem"
|
|
517
517
|
},
|
|
518
|
-
component: (e) =>
|
|
518
|
+
component: (e) => J(Q, { text: a(e.dueOn) })
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
|
-
headerLabel:
|
|
521
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.type"),
|
|
522
522
|
key: "type",
|
|
523
523
|
size: {
|
|
524
524
|
max: "7.875rem",
|
|
525
525
|
min: "7.875rem"
|
|
526
526
|
},
|
|
527
|
-
component: (
|
|
527
|
+
component: (e) => J(Z, {
|
|
528
528
|
color: "gray",
|
|
529
|
-
label:
|
|
529
|
+
label: t.t(e.type === c.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
|
|
530
530
|
})
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
|
-
headerLabel:
|
|
533
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
|
|
534
534
|
key: n.NET_AMOUNT,
|
|
535
535
|
size: {
|
|
536
536
|
max: "8.25rem",
|
|
537
537
|
min: "8.25rem"
|
|
538
538
|
},
|
|
539
|
-
component: (e) =>
|
|
539
|
+
component: (e) => J(Q, { text: i.formatMonetary(e.total) })
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
|
-
headerLabel:
|
|
542
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.vat"),
|
|
543
543
|
key: "vat",
|
|
544
544
|
size: {
|
|
545
545
|
max: "8.25rem",
|
|
546
546
|
min: "8.25rem"
|
|
547
547
|
},
|
|
548
|
-
component: (e) =>
|
|
548
|
+
component: (e) => J(Q, { text: i.formatMonetary($.getVatAmount(e)) })
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
|
-
headerLabel:
|
|
551
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_incl_vat"),
|
|
552
552
|
key: "grossAmount",
|
|
553
553
|
size: {
|
|
554
554
|
max: "8.25rem",
|
|
555
555
|
min: "8.25rem"
|
|
556
556
|
},
|
|
557
|
-
component: (e) =>
|
|
557
|
+
component: (e) => J(Q, { text: i.formatMonetary(e.grossAmount) })
|
|
558
558
|
},
|
|
559
559
|
{
|
|
560
|
-
headerLabel:
|
|
560
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
|
|
561
561
|
key: "balanceDueAmount",
|
|
562
562
|
size: {
|
|
563
563
|
max: "1fr",
|
|
564
564
|
min: "8.3125rem"
|
|
565
565
|
},
|
|
566
|
-
component: (e) =>
|
|
567
|
-
}
|
|
566
|
+
component: (e) => J(Q, { text: e.balanceDueAmount === null ? null : i.formatMonetary(e.balanceDueAmount) })
|
|
567
|
+
},
|
|
568
|
+
...e.customFieldDefinitions().map((e) => ({
|
|
569
|
+
headerLabel: S.getLabel(e, t.locale.value),
|
|
570
|
+
key: `custom-field-${e.uuid}`,
|
|
571
|
+
size: {
|
|
572
|
+
max: "1fr",
|
|
573
|
+
min: "10rem"
|
|
574
|
+
},
|
|
575
|
+
component: (t) => J(g, {
|
|
576
|
+
definition: e,
|
|
577
|
+
value: t.customFields.find((t) => t.definitionUuid === e.uuid)
|
|
578
|
+
})
|
|
579
|
+
}))
|
|
568
580
|
]));
|
|
569
581
|
}
|
|
570
582
|
//#endregion
|
|
571
583
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
|
|
572
|
-
function
|
|
573
|
-
let e =
|
|
584
|
+
function ht() {
|
|
585
|
+
let e = N(), t = ue({
|
|
574
586
|
actionGroup: { name: "customer-invoices" },
|
|
575
587
|
filters: [
|
|
576
|
-
|
|
588
|
+
le({
|
|
577
589
|
defaultValue: {
|
|
578
|
-
operator:
|
|
590
|
+
operator: pe.INCLUDES,
|
|
579
591
|
value: []
|
|
580
592
|
},
|
|
581
593
|
disableOperators: !0,
|
|
582
|
-
displayFn: (t) => e.t(
|
|
594
|
+
displayFn: (t) => e.t(x.getMetadata(t).translationKey),
|
|
583
595
|
key: "statuses",
|
|
584
596
|
label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
|
|
585
597
|
options: () => Object.values(i)
|
|
586
598
|
}),
|
|
587
|
-
|
|
599
|
+
A({
|
|
588
600
|
defaultValue: {
|
|
589
|
-
operator:
|
|
601
|
+
operator: j.IS_BETWEEN,
|
|
590
602
|
value: {
|
|
591
603
|
from: null,
|
|
592
604
|
until: null
|
|
@@ -596,9 +608,9 @@ function dt() {
|
|
|
596
608
|
key: "issuedOnRange",
|
|
597
609
|
label: e.t("wise_invoicing.invoice.overview.filters.issued_on")
|
|
598
610
|
}),
|
|
599
|
-
|
|
611
|
+
A({
|
|
600
612
|
defaultValue: {
|
|
601
|
-
operator:
|
|
613
|
+
operator: j.IS_BETWEEN,
|
|
602
614
|
value: {
|
|
603
615
|
from: null,
|
|
604
616
|
until: null
|
|
@@ -609,16 +621,16 @@ function dt() {
|
|
|
609
621
|
label: e.t("wise_invoicing.invoice.overview.filters.due_on")
|
|
610
622
|
})
|
|
611
623
|
]
|
|
612
|
-
}), n =
|
|
624
|
+
}), n = P(() => {
|
|
613
625
|
let e = t.values.value.statuses.value;
|
|
614
626
|
return e?.length ? e : null;
|
|
615
627
|
});
|
|
616
628
|
return {
|
|
617
|
-
issuedOnRange:
|
|
629
|
+
issuedOnRange: P(() => {
|
|
618
630
|
let e = t.values.value.issuedOnRange.value;
|
|
619
631
|
return e.from === null || e.until === null ? null : e;
|
|
620
632
|
}),
|
|
621
|
-
dueOnRange:
|
|
633
|
+
dueOnRange: P(() => {
|
|
622
634
|
let e = t.values.value.dueOnRange.value;
|
|
623
635
|
return e.from === null || e.until === null ? null : e;
|
|
624
636
|
}),
|
|
@@ -628,16 +640,19 @@ function dt() {
|
|
|
628
640
|
}
|
|
629
641
|
//#endregion
|
|
630
642
|
//#region src/ui/customer-invoice-list/CustomerInvoiceTable.vue?vue&type=script&setup=true&lang.ts
|
|
631
|
-
var
|
|
643
|
+
var gt = { class: "flex min-h-0 flex-1 flex-col" }, _t = {
|
|
632
644
|
key: 1,
|
|
633
645
|
class: "flex min-h-0 flex-1 flex-col"
|
|
634
|
-
},
|
|
646
|
+
}, vt = /* @__PURE__ */ B({
|
|
635
647
|
__name: "CustomerInvoiceTable",
|
|
636
648
|
props: { externalId: {} },
|
|
637
649
|
setup(e) {
|
|
638
|
-
let t = e, r =
|
|
639
|
-
|
|
640
|
-
|
|
650
|
+
let t = e, r = N(), i = te(P(() => ({ entityTypes: [a.INVOICE] }))), o = P(() => {
|
|
651
|
+
let e = i.result.value;
|
|
652
|
+
return e.isOk() ? S.filterByView(e.getValue(), b.INVOICE_OVERVIEW) : [];
|
|
653
|
+
}), s = mt({ customFieldDefinitions: () => o.value }), l = m({ debounceMs: 300 }), { issuedOnRange: u, dueOnRange: d, filters: f, statuses: p } = ht();
|
|
654
|
+
de(f);
|
|
655
|
+
let h = Ie({
|
|
641
656
|
initialValues: [{
|
|
642
657
|
direction: "desc",
|
|
643
658
|
key: n.ISSUED_ON
|
|
@@ -647,18 +662,18 @@ var ft = { class: "flex min-h-0 flex-1 flex-col" }, pt = {
|
|
|
647
662
|
n.ISSUED_ON,
|
|
648
663
|
n.NET_AMOUNT
|
|
649
664
|
]
|
|
650
|
-
}), { isFetching:
|
|
651
|
-
filters:
|
|
652
|
-
issuedOnRange:
|
|
665
|
+
}), { isFetching: g, isFetchingNextPage: _, isLoading: v, fetchNextPage: y, result: x } = ee({ params: {
|
|
666
|
+
filters: P(() => ({
|
|
667
|
+
issuedOnRange: u.value,
|
|
653
668
|
customerExternalIds: [t.externalId],
|
|
654
|
-
dueOnRange:
|
|
655
|
-
statuses:
|
|
669
|
+
dueOnRange: d.value,
|
|
670
|
+
statuses: p.value
|
|
656
671
|
})),
|
|
657
|
-
search:
|
|
658
|
-
sort:
|
|
659
|
-
} }),
|
|
660
|
-
function
|
|
661
|
-
return e.type ===
|
|
672
|
+
search: l.debouncedSearch,
|
|
673
|
+
sort: h.values
|
|
674
|
+
} }), C = P(() => x.value.isOk() ? x.value.getValue().data : []), w = P(() => x.value.isErr() ? x.value.getError() : null), T = P(() => f.activeFilters.value.length), E = P(() => (l.debouncedSearch.value?.trim().length ?? 0) > 0), D = P(() => !v.value && !g.value && w.value === null && C.value.length === 0 && l.search.value === "" && T.value === 0);
|
|
675
|
+
function O(e) {
|
|
676
|
+
return e.type === c.CREDIT_NOTE ? {
|
|
662
677
|
name: "invoicing-credit-note-detail",
|
|
663
678
|
params: { creditNoteUuid: e.uuid }
|
|
664
679
|
} : {
|
|
@@ -666,65 +681,65 @@ var ft = { class: "flex min-h-0 flex-1 flex-col" }, pt = {
|
|
|
666
681
|
params: { invoiceUuid: e.uuid }
|
|
667
682
|
};
|
|
668
683
|
}
|
|
669
|
-
return (e, t) => (
|
|
684
|
+
return (e, t) => (V(), L("div", gt, [z(U(G), {
|
|
670
685
|
align: "center",
|
|
671
686
|
justify: "between",
|
|
672
687
|
class: "border-b border-secondary bg-secondary px-lg py-md"
|
|
673
688
|
}, {
|
|
674
|
-
default:
|
|
689
|
+
default: W(() => [z(U(G), {
|
|
675
690
|
align: "center",
|
|
676
691
|
gap: "md",
|
|
677
692
|
class: "min-w-0"
|
|
678
693
|
}, {
|
|
679
|
-
default:
|
|
680
|
-
text:
|
|
694
|
+
default: W(() => [z(U(q), {
|
|
695
|
+
text: U(r).t("wise_invoicing.customer_invoice_list.title"),
|
|
681
696
|
class: "shrink-0 text-sm font-semibold text-primary"
|
|
682
|
-
}, null, 8, ["text"]),
|
|
697
|
+
}, null, 8, ["text"]), z(U(fe))]),
|
|
683
698
|
_: 1
|
|
684
|
-
}),
|
|
699
|
+
}), D.value ? I("", !0) : (V(), F(U(G), {
|
|
685
700
|
key: 0,
|
|
686
701
|
justify: "end"
|
|
687
702
|
}, {
|
|
688
|
-
default:
|
|
689
|
-
modelValue:
|
|
690
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
703
|
+
default: W(() => [z(U(Pe), {
|
|
704
|
+
modelValue: U(l).search.value,
|
|
705
|
+
"onUpdate:modelValue": t[0] ||= (e) => U(l).search.value = e,
|
|
691
706
|
label: null,
|
|
692
|
-
"icon-left":
|
|
693
|
-
placeholder:
|
|
707
|
+
"icon-left": U(ae),
|
|
708
|
+
placeholder: U(r).t("wise_invoicing.common.search"),
|
|
694
709
|
size: "sm",
|
|
695
710
|
type: "search"
|
|
696
711
|
}, null, 8, [
|
|
697
712
|
"modelValue",
|
|
698
713
|
"icon-left",
|
|
699
714
|
"placeholder"
|
|
700
|
-
]),
|
|
715
|
+
]), z(U(me))]),
|
|
701
716
|
_: 1
|
|
702
717
|
}))]),
|
|
703
718
|
_: 1
|
|
704
|
-
}),
|
|
719
|
+
}), D.value ? (V(), F(U(Ae), {
|
|
705
720
|
key: 0,
|
|
706
|
-
icon:
|
|
707
|
-
title:
|
|
708
|
-
description:
|
|
721
|
+
icon: U(ie),
|
|
722
|
+
title: U(r).t("wise_invoicing.customer_invoice_list.empty_state.title"),
|
|
723
|
+
description: U(r).t("wise_invoicing.customer_invoice_list.empty_state.description"),
|
|
709
724
|
class: "py-7xl"
|
|
710
725
|
}, null, 8, [
|
|
711
726
|
"icon",
|
|
712
727
|
"title",
|
|
713
728
|
"description"
|
|
714
|
-
])) : (
|
|
715
|
-
columns:
|
|
716
|
-
data:
|
|
717
|
-
sort:
|
|
718
|
-
"is-loading":
|
|
719
|
-
"is-fetching-next-page":
|
|
720
|
-
error:
|
|
721
|
-
"has-active-search":
|
|
722
|
-
"active-filter-count":
|
|
729
|
+
])) : (V(), L("div", _t, [z(U(Me), {
|
|
730
|
+
columns: U(s),
|
|
731
|
+
data: C.value,
|
|
732
|
+
sort: U(h),
|
|
733
|
+
"is-loading": U(v),
|
|
734
|
+
"is-fetching-next-page": U(_),
|
|
735
|
+
error: w.value,
|
|
736
|
+
"has-active-search": E.value,
|
|
737
|
+
"active-filter-count": T.value,
|
|
723
738
|
"get-key": (e) => e.uuid,
|
|
724
|
-
"get-link":
|
|
725
|
-
onNextPage:
|
|
726
|
-
onClearSearch: t[1] ||= (e) =>
|
|
727
|
-
onClearFilters: t[2] ||= (e) =>
|
|
739
|
+
"get-link": O,
|
|
740
|
+
onNextPage: U(y),
|
|
741
|
+
onClearSearch: t[1] ||= (e) => U(l).clear(),
|
|
742
|
+
onClearFilters: t[2] ||= (e) => U(f).clearAll()
|
|
728
743
|
}, null, 8, [
|
|
729
744
|
"columns",
|
|
730
745
|
"data",
|
|
@@ -738,32 +753,32 @@ var ft = { class: "flex min-h-0 flex-1 flex-col" }, pt = {
|
|
|
738
753
|
"onNextPage"
|
|
739
754
|
])]))]));
|
|
740
755
|
}
|
|
741
|
-
}),
|
|
756
|
+
}), yt = /* @__PURE__ */ B({
|
|
742
757
|
__name: "CustomerInvoiceList",
|
|
743
758
|
props: { externalId: {} },
|
|
744
759
|
setup(e) {
|
|
745
|
-
let t = e, n =
|
|
746
|
-
return (e, t) => n.value === null ?
|
|
760
|
+
let t = e, n = P(() => typeof t.externalId == "string" && t.externalId !== "" ? t.externalId : null);
|
|
761
|
+
return (e, t) => n.value === null ? I("", !0) : (V(), F(vt, {
|
|
747
762
|
key: n.value,
|
|
748
763
|
"external-id": n.value
|
|
749
764
|
}, null, 8, ["external-id"]));
|
|
750
765
|
}
|
|
751
|
-
}),
|
|
766
|
+
}), bt = class {
|
|
752
767
|
static format(e, t = 0) {
|
|
753
768
|
return new Intl.NumberFormat(void 0, { maximumFractionDigits: t }).format(e);
|
|
754
769
|
}
|
|
755
770
|
static randomBetween(e, t) {
|
|
756
771
|
return Math.floor(Math.random() * (t - e + 1)) + e;
|
|
757
772
|
}
|
|
758
|
-
},
|
|
773
|
+
}, xt = {
|
|
759
774
|
"en-US": {
|
|
760
775
|
...t,
|
|
761
|
-
...
|
|
776
|
+
...Re
|
|
762
777
|
},
|
|
763
778
|
"nl-BE": {
|
|
764
779
|
...e,
|
|
765
|
-
...
|
|
780
|
+
...ze
|
|
766
781
|
}
|
|
767
782
|
};
|
|
768
783
|
//#endregion
|
|
769
|
-
export {
|
|
784
|
+
export { v as AddressUtil, w as DownloadUtil, E as MonetaryTransformer, bt as NumberUtil, O as Percentage, D as PercentageTransformer, r as SortDirection, Ce as SortUtil, a as WiseInvoicingCustomFieldEntityType, s as WiseInvoicingCustomFieldType, C as WiseInvoicingCustomFieldValueUtil, b as WiseInvoicingCustomFieldViewKey, Ye as WiseInvoicingCustomerDunningCasesSection, yt as WiseInvoicingCustomerInvoiceList, ce as WiseInvoicingDunningCaseDetailView, ne as WiseInvoicingDunningCaseOverviewView, he as WiseInvoicingDunningCaseReminderPdfView, _ as WiseInvoicingInvoiceOverviewView, ve as WiseInvoicingInvoicePublicPdfViewDataProvider, ge as WiseInvoicingReminderSettingsView, y as addressFormSchema, He as creditNoteUuidSchema, p as initWiseInvoicingConfig, Ze as invoiceUuidSchema, Be as onCreated, d as toMajorUnits, l as toMinorUnits, u as useCurrencyFormat, o as useDocumentTitle, Xe as useInvoiceNavigateToDetailAction, m as useSearch, h as useSort, ft as useWiseInvoicingApiError, f as useWiseInvoicingConfig, k as useWiseInvoicingDunningCaseIndexQuery, _e as useWiseInvoicingInvoicePublicDetailQuery, st as useWiseInvoicingPublicRoutes, Ve as useWiseInvoicingQueryInvalidation, ut as useWiseInvoicingRoutes, dt as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, xt as wiseInvoicingLocales, rt as wiseInvoicingSettingsRoutes };
|