@wisemen/wise-invoicing-web 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccountingSettingsViewDataProvider-BtDPqr_P.js +981 -0
- package/dist/{ApprovalReminderSettingsViewDataProvider-DyrHExKn.js → ApprovalReminderSettingsViewDataProvider-CuFo2JF5.js} +287 -287
- package/dist/{BillingDocumentDetailViewDataProvider-kFzqhrxW.js → BillingDocumentDetailViewDataProvider-qKW6LiRR.js} +1629 -1604
- package/dist/{BillingDocumentPdf-Dp6HSypy.js → BillingDocumentPdf-CgnrE4eq.js} +5 -5
- package/dist/{DataProvider-BtnD-BzI.js → DataProvider-Dj5ckiN2.js} +6 -9
- package/dist/{DunningCaseSendDialog-1S6OD9wd.js → DunningCaseSendDialog-CQ1yvbUt.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js → InvoiceApprovalOutOfSyncIndicator-BeqzoD3H.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-DM_LiO19.js → InvoiceApprovalOverviewView-B0ulYsYy.js} +230 -230
- package/dist/{InvoiceApprovalStatusBadge-mbYHYU3x.js → InvoiceApprovalStatusBadge-BZuyVHKk.js} +4 -4
- package/dist/{InvoicePdfView-YbDJpTIA.js → InvoicePdfView-BBTa7EaO.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js → InvoicePublicProFormaPdfViewDataProvider-_Tbt2pTv.js} +4 -4
- package/dist/{InvoiceRejectDialogDataProvider-yegAlkDB.js → InvoiceRejectDialogDataProvider-ma2UsSzC.js} +33 -33
- package/dist/{InvoiceStatusBadge-Bo5PDjEy.js → InvoiceStatusBadge-JIR1gUDL.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-DVh22OUB.js → InvoicingFileUploadProvider-B-eq6i9v.js} +14 -14
- package/dist/{IssuerSettingsViewDataProvider-BgSFemZr.js → IssuerSettingsViewDataProvider-CHyCCy9K.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-_Bx0xx9e.js → PeppolSettingsViewDataProvider-j1btvXOf.js} +4 -4
- package/dist/{api.util-lGbimoKL.js → api.util-BkwbrwEm.js} +1026 -800
- package/dist/billingDocumentDetail.transformer-B-GSRQc0.js +324 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +10 -1
- package/dist/client/types.gen.d.ts +452 -1
- package/dist/client/zod.gen.d.ts +524 -0
- package/dist/composables/invoicingConfig.composable.d.ts +3 -0
- package/dist/{creditNoteDetail.query-CqJeWeRV.js → creditNoteDetail.query-Tg4s5B8Q.js} +34 -34
- package/dist/{customFieldDefinitionIndex.query-Co7hoMow.js → customFieldDefinitionIndex.query-DtMibcTn.js} +28 -28
- package/dist/{deliveryReason.util-ny1rA7Sm.js → deliveryReason.util-BuCD1Fuz.js} +6 -6
- package/dist/{dist-CrNFh-CR.js → dist-AbMUaDf-.js} +93 -93
- package/dist/{dist-DmVrfBOT.js → dist-DaJ08k0k.js} +231 -119
- package/dist/{documentTitle.composable-aTEYXgaZ.js → documentTitle.composable-Bxu0YL71.js} +27 -19
- package/dist/{i18n.lib-B1H9r0km.js → i18n.lib-C8TA6PCf.js} +162 -2
- package/dist/index.d.ts +160 -0
- package/dist/index.js +1576 -1554
- package/dist/instant.transformer-KmBsH3E9.js +18 -0
- package/dist/{invoice.service-D9ubyWPb.js → invoice.service-BtgRZKrv.js} +152 -151
- package/dist/{invoiceApproval.service-BtDIOHIo.js → invoiceApproval.service-DEvaL-MH.js} +22 -21
- package/dist/invoiceApprovalStatus.util-NpxAuQ0t.js +83 -0
- package/dist/{invoiceCustomer.service-D0AtVrLg.js → invoiceCustomer.service-Cowdna7o.js} +6 -6
- package/dist/{invoiceDetail.query-BNL6MkvC.js → invoiceDetail.query-nEhWRrdL.js} +1 -1
- package/dist/{invoicingConfig.composable-DEF0lzNP.js → invoicingConfig.composable-CW47czLa.js} +20 -19
- package/dist/{issuerSettings.query-Cu-I6OAg.js → issuerSettings.query-CIWw1Zku.js} +27 -27
- package/dist/libs/i18n.lib.d.ts +160 -0
- package/dist/locales/en-US.json.d.ts +81 -1
- package/dist/locales/nl-BE.json.d.ts +81 -1
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +7 -1
- package/dist/modules/accounting/api/mutations/accountingConnectionDisconnect.mutation.d.ts +4 -0
- package/dist/modules/accounting/api/mutations/accountingPostingProfileUpdate.mutation.d.ts +15 -0
- package/dist/modules/accounting/api/mutations/exactAccountingConnect.mutation.d.ts +6 -0
- package/dist/modules/accounting/api/queries/accountingConnection.query.d.ts +1 -0
- package/dist/modules/accounting/api/queries/exactAuthorizationConfig.query.d.ts +1 -0
- package/dist/modules/accounting/api/queries/exactGlAccounts.query.d.ts +3 -0
- package/dist/modules/accounting/api/queries/exactJournals.query.d.ts +3 -0
- package/dist/modules/accounting/api/query-keys/accounting.queryKeys.d.ts +24 -0
- package/dist/modules/accounting/api/services/accountingConnection.service.d.ts +19 -0
- package/dist/modules/accounting/components/AccountingPostingProfileFields.vue.d.ts +14 -0
- package/dist/modules/accounting/components/AccountingSyncStatusBadge.vue.d.ts +7 -0
- package/dist/modules/accounting/components/ExactGlAccountField.vue.d.ts +12 -0
- package/dist/modules/accounting/components/ExactLogo.vue.d.ts +3 -0
- package/dist/modules/accounting/composables/exactLookupError.composable.d.ts +19 -0
- package/dist/modules/accounting/models/accountingConnection.model.d.ts +34 -0
- package/dist/modules/accounting/models/accountingConnection.transformer.d.ts +23 -0
- package/dist/modules/accounting/models/accountingConnection.transformer.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingConnectionReadiness.util.d.ts +10 -0
- package/dist/modules/accounting/models/accountingConnectionUuid.model.d.ts +3 -0
- package/dist/modules/accounting/models/accountingError.util.d.ts +13 -0
- package/dist/modules/accounting/models/accountingError.util.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingPostingProfileForm.model.d.ts +14 -0
- package/dist/modules/accounting/models/accountingPostingProfileForm.model.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingPostingProfileUpdateForm.model.d.ts +17 -0
- package/dist/modules/accounting/models/exactAccountingConnectForm.model.d.ts +9 -0
- package/dist/modules/accounting/models/exactAccountingConnectForm.model.spec.d.ts +1 -0
- package/dist/modules/accounting/models/exactLookupOption.model.d.ts +5 -0
- package/dist/modules/accounting/models/exactLookupOption.util.d.ts +4 -0
- package/dist/modules/accounting/models/exactRegion.util.d.ts +5 -0
- package/dist/modules/accounting/models/exactRegion.util.spec.d.ts +1 -0
- package/dist/modules/accounting/routes/accounting.routes.d.ts +9 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionDetails.vue.d.ts +7 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionNotice.vue.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingPostingProfileForm.vue.d.ts +8 -0
- package/dist/modules/accounting/use-cases/settings/components/ExactAccountingConnectForm.vue.d.ts +12 -0
- package/dist/modules/accounting/use-cases/settings/composables/accountingAuthorizationResult.composable.d.ts +5 -0
- package/dist/modules/accounting/use-cases/settings/composables/exactConnect.composable.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/dialogs/AccountingConnectionDisconnectDialog.vue.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsView.vue.d.ts +9 -0
- package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{plainDate.transformer-Bhiz9jW7.js → plainDate.transformer-BxvJpJOv.js} +4 -17
- package/dist/{reminderConfig.query-DHMHVOeX.js → reminderConfig.query-nb1P7ufx.js} +38 -37
- package/dist/types/queryKey.type.d.ts +3 -2
- package/dist/ui/data-provider/DataProvider.vue.d.ts +5 -1
- package/package.json +1 -1
- package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +0 -319
- package/dist/invoiceApprovalStatus.util-Bqq_bILG.js +0 -83
|
@@ -17,6 +17,8 @@ export interface CustomFieldReference {
|
|
|
17
17
|
value: string;
|
|
18
18
|
}
|
|
19
19
|
export interface InvoicingConfig {
|
|
20
|
+
/** Hides the action that changes whether and how an invoice needs approval. */
|
|
21
|
+
isApprovalModeEditable?: boolean;
|
|
20
22
|
isDeliveryDateVisible?: boolean;
|
|
21
23
|
isGlobalDiscountEnabled?: boolean;
|
|
22
24
|
isLineDiscountEnabled?: boolean;
|
|
@@ -47,6 +49,7 @@ export interface InvoicingInitProps {
|
|
|
47
49
|
}
|
|
48
50
|
export declare function initInvoicingConfig(props: InvoicingInitProps): Promise<void>;
|
|
49
51
|
export declare function useInvoicingConfig(): {
|
|
52
|
+
isApprovalModeEditable: import('vue').ComputedRef<boolean>;
|
|
50
53
|
isDeliveryDateVisible: import('vue').ComputedRef<boolean>;
|
|
51
54
|
isGlobalDiscountEnabled: import('vue').ComputedRef<boolean>;
|
|
52
55
|
isInitialized: import('vue').ComputedRef<boolean>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as v } from "./
|
|
1
|
+
import { A as e, O as t, Q as n, St as r, T as i, Z as a, b as o, ct as s, p as c, t as l } from "./api.util-BkwbrwEm.js";
|
|
2
|
+
import { O as u, o as d } from "./documentTitle.composable-Bxu0YL71.js";
|
|
3
|
+
import { a as f, n as p, o as m, t as h } from "./billingDocumentDetail.transformer-B-GSRQc0.js";
|
|
4
|
+
import { t as g } from "./dist-CwkVU5yS.js";
|
|
5
|
+
import { n as _, t as v } from "./plainDate.transformer-BxvJpJOv.js";
|
|
6
6
|
import { useQuery as y } from "@wisemen/vue-core-api-utils";
|
|
7
7
|
//#region src/modules/credit-note/models/detail/creditNoteDetail.transformer.ts
|
|
8
8
|
var b = class {
|
|
9
9
|
static fromDto(e) {
|
|
10
|
-
return
|
|
10
|
+
return h.fromViewInvoiceDetailDto(e, e.uuid, u.CREDIT_NOTE);
|
|
11
11
|
}
|
|
12
12
|
}, x = class {
|
|
13
13
|
static toDto(e) {
|
|
14
14
|
return {
|
|
15
|
-
issuedOn:
|
|
16
|
-
externalRemarks:
|
|
17
|
-
poNumber:
|
|
18
|
-
reference:
|
|
19
|
-
subject:
|
|
15
|
+
issuedOn: v.toDto(e.issuedOn),
|
|
16
|
+
externalRemarks: g.trimOrNull(e.externalRemarks),
|
|
17
|
+
poNumber: g.trimOrNull(e.poNumber),
|
|
18
|
+
reference: g.trimOrNull(e.reference),
|
|
19
|
+
subject: g.trimOrNull(e.subject)
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
static toForm(e) {
|
|
@@ -36,13 +36,13 @@ function S(e) {
|
|
|
36
36
|
externalId: e.externalId,
|
|
37
37
|
isDiscount: e.isDiscount,
|
|
38
38
|
name: e.name,
|
|
39
|
-
customFields: e.customFields.map(
|
|
39
|
+
customFields: e.customFields.map(p.toDto),
|
|
40
40
|
description: e.description,
|
|
41
|
-
discount:
|
|
41
|
+
discount: f.toDto(e.discount),
|
|
42
42
|
position: e.position,
|
|
43
43
|
quantity: Math.abs(e.quantity),
|
|
44
44
|
unit: e.unit,
|
|
45
|
-
unitPrice:
|
|
45
|
+
unitPrice: _.toDto(e.unitPrice),
|
|
46
46
|
vatRate: e.vatRate
|
|
47
47
|
};
|
|
48
48
|
}
|
|
@@ -50,7 +50,7 @@ function C(e) {
|
|
|
50
50
|
return {
|
|
51
51
|
externalId: e.externalId,
|
|
52
52
|
name: e.name,
|
|
53
|
-
customFields: e.customFields.map(
|
|
53
|
+
customFields: e.customFields.map(p.toDto),
|
|
54
54
|
description: e.description,
|
|
55
55
|
groups: e.groups.map(C),
|
|
56
56
|
lines: e.lines.map(S),
|
|
@@ -66,55 +66,55 @@ var w = class {
|
|
|
66
66
|
}
|
|
67
67
|
}, T = class {
|
|
68
68
|
static async copyToInvoice(e) {
|
|
69
|
-
return (await
|
|
69
|
+
return (await l.fromPromise(c({ path: { uuid: e } }))).map((e) => e.data.uuid);
|
|
70
70
|
}
|
|
71
71
|
static async delete(e) {
|
|
72
|
-
let t = await
|
|
73
|
-
return
|
|
72
|
+
let t = await l.fromPromise(o({ path: { uuid: e } }));
|
|
73
|
+
return l.void(t);
|
|
74
74
|
}
|
|
75
|
-
static async finalize(
|
|
76
|
-
let
|
|
77
|
-
return
|
|
75
|
+
static async finalize(e) {
|
|
76
|
+
let t = await l.fromPromise(i({ path: { uuid: e } }));
|
|
77
|
+
return l.void(t);
|
|
78
78
|
}
|
|
79
79
|
static async getActivityLogs(e, t) {
|
|
80
|
-
return (await
|
|
80
|
+
return (await l.fromPromise(s({ query: {
|
|
81
81
|
filter: {
|
|
82
82
|
entityUuids: [e],
|
|
83
|
-
roles: [
|
|
83
|
+
roles: [d.CREDIT_NOTE]
|
|
84
84
|
},
|
|
85
85
|
pagination: {
|
|
86
86
|
key: t.pagination.key ?? null,
|
|
87
87
|
limit: t.pagination.limit
|
|
88
88
|
}
|
|
89
89
|
} }))).map((e) => ({
|
|
90
|
-
data: e.data.logs.map(
|
|
90
|
+
data: e.data.logs.map(m.fromDto),
|
|
91
91
|
meta: { next: e.data.nextKey }
|
|
92
92
|
}));
|
|
93
93
|
}
|
|
94
94
|
static async getByUuid(e) {
|
|
95
|
-
return (await
|
|
95
|
+
return (await l.fromPromise(r({ path: { uuid: e } }))).map((e) => b.fromDto(e.data));
|
|
96
96
|
}
|
|
97
97
|
static async markAsDraft(e) {
|
|
98
|
-
let n = await
|
|
99
|
-
return
|
|
98
|
+
let n = await l.fromPromise(t({ path: { uuid: e } }));
|
|
99
|
+
return l.void(n);
|
|
100
100
|
}
|
|
101
|
-
static async markAsReady(
|
|
102
|
-
let
|
|
103
|
-
return
|
|
101
|
+
static async markAsReady(t) {
|
|
102
|
+
let n = await l.fromPromise(e({ path: { uuid: t } }));
|
|
103
|
+
return l.void(n);
|
|
104
104
|
}
|
|
105
105
|
static async update(e, t) {
|
|
106
|
-
let
|
|
106
|
+
let r = await l.fromPromise(n({
|
|
107
107
|
body: x.toDto(t),
|
|
108
108
|
path: { uuid: e }
|
|
109
109
|
}));
|
|
110
|
-
return
|
|
110
|
+
return l.void(r);
|
|
111
111
|
}
|
|
112
112
|
static async updateLines(e, t) {
|
|
113
|
-
let
|
|
113
|
+
let n = await l.fromPromise(a({
|
|
114
114
|
body: w.toDto(t),
|
|
115
115
|
path: { uuid: e }
|
|
116
116
|
}));
|
|
117
|
-
return
|
|
117
|
+
return l.void(n);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { H as e, I as t, U as n, c as r, dt as i, t as a, xt as o } from "./api.util-BkwbrwEm.js";
|
|
2
|
+
import { D as s, E as c, g as l, m as u } from "./documentTitle.composable-Bxu0YL71.js";
|
|
3
3
|
import { r as d } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as f } from "./invoicingConfig.composable-
|
|
4
|
+
import { n as f } from "./invoicingConfig.composable-CW47czLa.js";
|
|
5
5
|
import { r as p } from "./dist-CyUNvdkD.js";
|
|
6
|
-
import { n as ee, t as te } from "./deliveryReason.util-
|
|
6
|
+
import { n as ee, t as te } from "./deliveryReason.util-BuCD1Fuz.js";
|
|
7
7
|
import { t as m } from "./formango.util-D5c2ql--.js";
|
|
8
8
|
import h from "zod";
|
|
9
9
|
import { useI18n as g } from "vue-i18n";
|
|
@@ -140,10 +140,10 @@ var V = {
|
|
|
140
140
|
}
|
|
141
141
|
}, U = class {
|
|
142
142
|
static async get(e) {
|
|
143
|
-
return (await
|
|
143
|
+
return (await a.fromPromise(o({ path: { uuid: e } }))).map((e) => e.data.deliveries.map((e) => H.fromDto(e)));
|
|
144
144
|
}
|
|
145
145
|
static async preview(e) {
|
|
146
|
-
return (await
|
|
146
|
+
return (await a.fromPromise(t({
|
|
147
147
|
body: {
|
|
148
148
|
channels: e.channels,
|
|
149
149
|
invoiceUuids: e.invoiceUuids
|
|
@@ -152,7 +152,7 @@ var V = {
|
|
|
152
152
|
}))).map((e) => H.resultFromDto(e.data));
|
|
153
153
|
}
|
|
154
154
|
static async send(e) {
|
|
155
|
-
return (await
|
|
155
|
+
return (await a.fromPromise(r({
|
|
156
156
|
body: {
|
|
157
157
|
channels: e.channels,
|
|
158
158
|
invoiceUuids: e.invoiceUuids
|
|
@@ -161,13 +161,13 @@ var V = {
|
|
|
161
161
|
}))).map((e) => H.resultFromDto(e.data));
|
|
162
162
|
}
|
|
163
163
|
static async sendInvoice(e, t) {
|
|
164
|
-
return (await
|
|
164
|
+
return (await a.fromPromise(n({
|
|
165
165
|
body: { channels: t },
|
|
166
166
|
path: { uuid: e }
|
|
167
167
|
}))).map((e) => H.resultFromDto(e.data));
|
|
168
168
|
}
|
|
169
169
|
static async sendReminder(t) {
|
|
170
|
-
return (await
|
|
170
|
+
return (await a.fromPromise(e({ path: { uuid: t } }))).map((e) => e.data.uuid);
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
//#endregion
|
|
@@ -227,7 +227,7 @@ var he = /* @__PURE__ */ T({
|
|
|
227
227
|
},
|
|
228
228
|
emits: ["close"],
|
|
229
229
|
setup(e, { emit: t }) {
|
|
230
|
-
let n = e, r = t, i = g(), a = le(), o = me(), s = ee(), c = k(null),
|
|
230
|
+
let n = e, r = t, i = g(), a = le(), o = me(), s = ee(), c = k(null), u = k(!1), d = 0, f = k(!1), p = k(""), m = k(!1), h = ue({
|
|
231
231
|
initialState: {
|
|
232
232
|
email: !0,
|
|
233
233
|
peppol: !1
|
|
@@ -239,8 +239,8 @@ var he = /* @__PURE__ */ T({
|
|
|
239
239
|
let e = s.result.value;
|
|
240
240
|
return e.isOk() ? e.getValue().connection : null;
|
|
241
241
|
}), D = v(() => {
|
|
242
|
-
let e = [...C.modelValue.value ? [
|
|
243
|
-
return
|
|
242
|
+
let e = [...C.modelValue.value ? [l.EMAIL] : [], ...T.modelValue.value ? [l.PEPPOL] : []];
|
|
243
|
+
return u.value && n.query !== void 0 ? {
|
|
244
244
|
channels: e,
|
|
245
245
|
query: n.query
|
|
246
246
|
} : n.selectedQuery === void 0 ? {
|
|
@@ -293,8 +293,8 @@ var he = /* @__PURE__ */ T({
|
|
|
293
293
|
S("div", ve, [
|
|
294
294
|
n.query === void 0 ? b("", !0) : (O(), y(M(z), {
|
|
295
295
|
key: 0,
|
|
296
|
-
modelValue:
|
|
297
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
296
|
+
modelValue: u.value,
|
|
297
|
+
"onUpdate:modelValue": t[0] ||= (e) => u.value = e,
|
|
298
298
|
label: M(i).t("wise_invoicing.delivery.send.all_matching"),
|
|
299
299
|
"is-disabled": M(o).isLoading.value
|
|
300
300
|
}, null, 8, [
|
|
@@ -302,7 +302,7 @@ var he = /* @__PURE__ */ T({
|
|
|
302
302
|
"label",
|
|
303
303
|
"is-disabled"
|
|
304
304
|
])),
|
|
305
|
-
n.query !== void 0 && !
|
|
305
|
+
n.query !== void 0 && !u.value ? (O(), x("p", ye, j(M(i).t("wise_invoicing.delivery.send.selected_count", { count: n.selectedCount ?? n.documents.length })), 1)) : b("", !0),
|
|
306
306
|
w(he, { field: M(C) }, null, 8, ["field"]),
|
|
307
307
|
E.value?.enabled ? (O(), y(ge, {
|
|
308
308
|
key: 2,
|
|
@@ -449,24 +449,24 @@ var Ie = class {
|
|
|
449
449
|
setup(e) {
|
|
450
450
|
let t = e, n = g(), r = d(), i = p(), a = f(), o = v(() => {
|
|
451
451
|
switch (t.value.type) {
|
|
452
|
-
case
|
|
453
|
-
case
|
|
454
|
-
case
|
|
455
|
-
case
|
|
456
|
-
case
|
|
457
|
-
case
|
|
458
|
-
case
|
|
459
|
-
case
|
|
460
|
-
case
|
|
461
|
-
case
|
|
452
|
+
case u.BOOLEAN: return t.value.value ? n.t("wise_invoicing.common.yes") : n.t("wise_invoicing.common.no");
|
|
453
|
+
case u.DATE: return t.value.value === "infinity" ? n.t("wise_invoicing.custom_field.date.infinity") : t.value.value === "-infinity" ? n.t("wise_invoicing.custom_field.date.negative_infinity") : i.formatPlainDate(t.value.value);
|
|
454
|
+
case u.MONETARY: return r.formatMonetary(t.value.value);
|
|
455
|
+
case u.MULTI_SELECT: return t.value.value.map((e) => l(e)).join(", ");
|
|
456
|
+
case u.NUMBER: return new Intl.NumberFormat(n.locale.value, { maximumFractionDigits: 20 }).format(t.value.value);
|
|
457
|
+
case u.REFERENCE: return t.value.value;
|
|
458
|
+
case u.SINGLE_SELECT: return l(t.value.value);
|
|
459
|
+
case u.TEXT: return t.value.value;
|
|
460
|
+
case u.TEXT_ARRAY: return t.value.value.join(", ");
|
|
461
|
+
case u.TIMESTAMP: return i.toDateTime(t.value.value);
|
|
462
462
|
default: throw TypeError("Unsupported custom field value type");
|
|
463
463
|
}
|
|
464
|
-
}), s = v(() => t.value.type !==
|
|
464
|
+
}), s = v(() => t.value.type !== u.REFERENCE || t.definition === void 0 ? null : a.getCustomFieldReferenceRoute({
|
|
465
465
|
entityType: t.definition.entityType,
|
|
466
466
|
key: t.definition.key,
|
|
467
467
|
value: t.value.value
|
|
468
468
|
})), c = v(() => t.size === "md" ? "min-w-0 text-sm/5 text-primary" : "min-w-0 text-xs text-primary");
|
|
469
|
-
function
|
|
469
|
+
function l(e) {
|
|
470
470
|
return t.definition === void 0 ? e : Q.getChoiceLabel(t.definition, e, n.locale.value);
|
|
471
471
|
}
|
|
472
472
|
return (e, r) => s.value !== null && t.definition !== void 0 ? (O(), y(M(R), {
|
|
@@ -508,7 +508,7 @@ var Ie = class {
|
|
|
508
508
|
}
|
|
509
509
|
}, ze = class {
|
|
510
510
|
static async getAll(e) {
|
|
511
|
-
return (await
|
|
511
|
+
return (await a.fromPromise(i({ query: e?.entityTypes === void 0 ? void 0 : { filter: { entityTypes: e.entityTypes } } }))).map((e) => e.data.map(Re.fromDto));
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
514
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Et as e, K as t, it as n, t as r } from "./api.util-BkwbrwEm.js";
|
|
2
|
+
import { j as i } from "./documentTitle.composable-Bxu0YL71.js";
|
|
3
3
|
import a from "zod";
|
|
4
4
|
import { ApiErrorUtil as o, useQuery as s } from "@wisemen/vue-core-api-utils";
|
|
5
5
|
//#region src/modules/invoice-delivery/models/peppolConnection.transformer.ts
|
|
@@ -33,13 +33,13 @@ var c = class {
|
|
|
33
33
|
}
|
|
34
34
|
}, l = class {
|
|
35
35
|
static async get() {
|
|
36
|
-
return (await
|
|
36
|
+
return (await r.fromPromise(e())).map((e) => c.fromDto(e.data));
|
|
37
37
|
}
|
|
38
|
-
static async test(
|
|
39
|
-
return (await
|
|
38
|
+
static async test(e) {
|
|
39
|
+
return (await r.fromPromise(t({ body: c.toTestDto(e) }))).map((e) => e.data.companies.map((e) => ({ ...e })));
|
|
40
40
|
}
|
|
41
41
|
static async update(e) {
|
|
42
|
-
return
|
|
42
|
+
return r.void(await r.fromPromise(n({ body: c.toDto(e) })));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|