@wisemen/wise-invoicing-web 0.18.0 → 0.19.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-BZBuz6EF.js → ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js} +7 -7
- package/dist/{BillingDocumentDetailViewDataProvider-BCADHPFR.js → BillingDocumentDetailViewDataProvider-BZCFhsjA.js} +1526 -1506
- package/dist/{BillingDocumentPdf-ddBlGdIN.js → BillingDocumentPdf-DMTwOlzG.js} +76 -76
- package/dist/{DunningCaseSendDialog-fgL9OsV8.js → DunningCaseSendDialog-DfMYo2LV.js} +21 -21
- package/dist/{InvoiceApprovalOutOfSyncIndicator-BoPBNXx1.js → InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js} +1 -1
- package/dist/{InvoiceApprovalOverviewView-BIiJ6gen.js → InvoiceApprovalOverviewView-BH5rJgk6.js} +18 -18
- package/dist/{InvoicePdfView-BRJaAErd.js → InvoicePdfView-DRqX3P-X.js} +1 -1
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-mZaggXYf.js → InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js} +2 -2
- package/dist/{InvoiceApproveDialogDataProvider-C9NhZX-D.js → InvoiceRejectDialog-_5i8eFuk.js} +175 -175
- package/dist/{invoiceDeliveryStatus.util-Dp9hD1Tj.js → InvoiceStatusBadge-BI41yxpr.js} +70 -70
- package/dist/{IssuerSettingsViewDataProvider-D13f6rvi.js → IssuerSettingsViewDataProvider-nNg0lR7Y.js} +198 -198
- package/dist/{PeppolSettingsViewDataProvider-DymLdaRM.js → PeppolSettingsViewDataProvider-CFelH70Q.js} +30 -30
- package/dist/{billingDocumentDetail.transformer-DcNMzl46.js → billingDocumentDetail.transformer-Ifa6tWtE.js} +11 -11
- package/dist/{creditNoteDetail.query-DiS_-xFz.js → creditNoteDetail.query-C4DvgGFR.js} +1 -1
- package/dist/{InvoiceDeliverySendDialog-BICcd6Cf.js → customFieldDefinitionIndex.query-BBqxMfvT.js} +214 -217
- package/dist/{dist-C99_-gWv.js → dist-47-1LAzT.js} +6 -6
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5978 -3013
- package/dist/{invoice.service-2QiktTs9.js → invoice.service-v9uIoFgR.js} +111 -111
- package/dist/{invoiceCustomer.service-BNQJt1KV.js → invoiceCustomer.service-Bl4vN_U5.js} +1 -1
- package/dist/{invoiceDetail.query-MIrBYgNS.js → invoiceDetail.query-MElhxTMM.js} +1 -1
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +2 -2
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/CreditNoteDetailViewDataProvider-Donn5pVv.js +0 -816
- package/dist/CreditNotePdfViewDataProvider-c-apCeCW.js +0 -22
- package/dist/InvoiceDetailViewDataProvider-BppXFT6D.js +0 -2176
- package/dist/InvoicePdfViewDataProvider-J7NP1Dhh.js +0 -22
- package/dist/download.util-LyRpGWKA.js +0 -25
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./api.util-sW4gNny-.js";
|
|
2
2
|
import { E as e, t } from "./documentTitle.composable-Dl8Cm3v3.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "./deliveryReason.util-KBh3q_-P.js";
|
|
4
|
+
import { t as o } from "./formango.util-D5c2ql--.js";
|
|
5
|
+
import { t as s } from "./DataProvider-BtnD-BzI.js";
|
|
6
6
|
import c from "zod";
|
|
7
7
|
import { useI18n as l } from "vue-i18n";
|
|
8
8
|
import { computed as u, createBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, mergeProps as h, openBlock as g, ref as _, unref as v, withCtx as y } from "vue";
|
|
@@ -12,7 +12,7 @@ import { useForm as N } from "formango";
|
|
|
12
12
|
//#region src/modules/invoice-delivery/api/mutations/peppolConnectionUpdate.mutation.ts
|
|
13
13
|
function P() {
|
|
14
14
|
return b({
|
|
15
|
-
queryFn: (e) =>
|
|
15
|
+
queryFn: (e) => i.update(e.body),
|
|
16
16
|
queryKeysToInvalidate: { peppolConnection: {} }
|
|
17
17
|
});
|
|
18
18
|
}
|
|
@@ -26,7 +26,7 @@ var F = /* @__PURE__ */ m({
|
|
|
26
26
|
},
|
|
27
27
|
setup(e) {
|
|
28
28
|
let t = e, n = l();
|
|
29
|
-
return (e,
|
|
29
|
+
return (e, r) => (g(), d(v(A), h(v(o)(t.field), {
|
|
30
30
|
label: v(n).t("wise_invoicing.delivery.settings.api_key"),
|
|
31
31
|
hint: v(n).t(t.hasSavedKey ? "wise_invoicing.delivery.settings.key_saved" : "wise_invoicing.delivery.settings.key_hint"),
|
|
32
32
|
type: "password",
|
|
@@ -42,17 +42,17 @@ var F = /* @__PURE__ */ m({
|
|
|
42
42
|
field: {}
|
|
43
43
|
},
|
|
44
44
|
setup(e) {
|
|
45
|
-
let t = e, n = l(),
|
|
46
|
-
function
|
|
45
|
+
let t = e, n = l(), r = u(() => t.isTestCurrent ? j(t.companies.map((e) => e.id)) : j(t.savedPartyId === null ? [] : [t.savedPartyId]));
|
|
46
|
+
function i(e) {
|
|
47
47
|
let r = t.companies.find((t) => t.id === e);
|
|
48
48
|
return r === void 0 ? e : n.t("wise_invoicing.delivery.settings.company_option", {
|
|
49
49
|
name: r.name,
|
|
50
50
|
vatNumber: r.vatNumber
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
return (e,
|
|
54
|
-
items:
|
|
55
|
-
"display-fn":
|
|
53
|
+
return (e, a) => (g(), d(v(k), h(v(o)(t.field), {
|
|
54
|
+
items: r.value,
|
|
55
|
+
"display-fn": i,
|
|
56
56
|
label: v(n).t("wise_invoicing.delivery.settings.company"),
|
|
57
57
|
"is-disabled": !t.isTestCurrent,
|
|
58
58
|
"is-required": !0
|
|
@@ -67,7 +67,7 @@ var F = /* @__PURE__ */ m({
|
|
|
67
67
|
props: { field: {} },
|
|
68
68
|
setup(e) {
|
|
69
69
|
let t = e, n = l();
|
|
70
|
-
return (e,
|
|
70
|
+
return (e, r) => (g(), d(v(S), h(v(o)(t.field), { label: v(n).t("wise_invoicing.delivery.settings.enabled") }), null, 16, ["label"]));
|
|
71
71
|
}
|
|
72
72
|
}), R = /* @__PURE__ */ m({
|
|
73
73
|
__name: "PeppolConnectionFormProviderField",
|
|
@@ -77,7 +77,7 @@ var F = /* @__PURE__ */ m({
|
|
|
77
77
|
},
|
|
78
78
|
setup(e) {
|
|
79
79
|
let t = e, n = l();
|
|
80
|
-
return (e,
|
|
80
|
+
return (e, r) => (g(), d(v(k), h(v(o)(t.field), {
|
|
81
81
|
items: v(j)(t.providers),
|
|
82
82
|
"display-fn": (e) => v(n).t(`wise_invoicing.delivery.provider.${e}`),
|
|
83
83
|
label: v(n).t("wise_invoicing.delivery.settings.provider"),
|
|
@@ -96,15 +96,15 @@ var F = /* @__PURE__ */ m({
|
|
|
96
96
|
}), B = { class: "flex max-w-xl flex-col gap-lg" }, V = /* @__PURE__ */ m({
|
|
97
97
|
__name: "PeppolSettingsView",
|
|
98
98
|
props: { settings: {} },
|
|
99
|
-
setup(
|
|
100
|
-
let
|
|
101
|
-
m.set(() =>
|
|
99
|
+
setup(r) {
|
|
100
|
+
let o = r, s = l(), c = M(), m = t(), h = P(), b = _([]), S = _(!1), k = _(null);
|
|
101
|
+
m.set(() => s.t("wise_invoicing.delivery.settings.title"));
|
|
102
102
|
let A = N({
|
|
103
|
-
initialState: u(() =>
|
|
103
|
+
initialState: u(() => n.toForm(o.settings)),
|
|
104
104
|
schema: z,
|
|
105
105
|
onSubmit: async (e) => {
|
|
106
106
|
let t = await h.execute({ body: e });
|
|
107
|
-
t.isErr() ? q(t.error) : (K(), k.value = null, c.show({ message:
|
|
107
|
+
t.isErr() ? q(t.error) : (K(), k.value = null, c.show({ message: s.t("wise_invoicing.delivery.settings.saved") }));
|
|
108
108
|
},
|
|
109
109
|
onSubmitError: () => c.unableToSave()
|
|
110
110
|
}), j = A.register("provider", e.SOLUZ), V = A.register("apiKey", ""), H = A.register("partyId", ""), U = A.register("enabled", !1), W = u(() => JSON.stringify([j.modelValue.value, V.modelValue.value])), G = u(() => k.value === W.value);
|
|
@@ -112,25 +112,25 @@ var F = /* @__PURE__ */ m({
|
|
|
112
112
|
V.setValue("");
|
|
113
113
|
}
|
|
114
114
|
function q(e) {
|
|
115
|
-
let t =
|
|
115
|
+
let t = a.fromApiError(e);
|
|
116
116
|
t === null ? c.apiError(e) : c.show({
|
|
117
|
-
message:
|
|
117
|
+
message: s.t(t),
|
|
118
118
|
variant: "error"
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
async function J() {
|
|
122
122
|
S.value = !0;
|
|
123
|
-
let e = W.value, t = await
|
|
123
|
+
let e = W.value, t = await i.test({
|
|
124
124
|
partyId: H.modelValue.value,
|
|
125
125
|
apiKey: V.modelValue.value,
|
|
126
126
|
enabled: U.modelValue.value,
|
|
127
127
|
provider: j.modelValue.value
|
|
128
128
|
});
|
|
129
|
-
S.value = !1, e === W.value && (t.isErr() ? q(t.error) : (b.value = t.value, t.value.some((e) => e.id === H.modelValue.value) || H.setValue(""), k.value = e, c.show({ message:
|
|
129
|
+
S.value = !1, e === W.value && (t.isErr() ? q(t.error) : (b.value = t.value, t.value.some((e) => e.id === H.modelValue.value) || H.setValue(""), k.value = e, c.show({ message: s.t("wise_invoicing.delivery.settings.test_success") })));
|
|
130
130
|
}
|
|
131
131
|
return (e, t) => (g(), d(v(C), {
|
|
132
|
-
title: v(
|
|
133
|
-
description: v(
|
|
132
|
+
title: v(s).t("wise_invoicing.delivery.settings.title"),
|
|
133
|
+
description: v(s).t("wise_invoicing.delivery.settings.description")
|
|
134
134
|
}, {
|
|
135
135
|
default: y(() => [p(v(w), null, {
|
|
136
136
|
default: y(() => [p(v(T), {
|
|
@@ -145,10 +145,10 @@ var F = /* @__PURE__ */ m({
|
|
|
145
145
|
}, {
|
|
146
146
|
default: y(() => [p(R, {
|
|
147
147
|
field: v(j),
|
|
148
|
-
providers:
|
|
148
|
+
providers: o.settings.providers
|
|
149
149
|
}, null, 8, ["field", "providers"]), p(F, {
|
|
150
150
|
field: v(V),
|
|
151
|
-
"has-saved-key":
|
|
151
|
+
"has-saved-key": o.settings.connection?.hasApiKey ?? !1
|
|
152
152
|
}, null, 8, ["field", "has-saved-key"])]),
|
|
153
153
|
_: 1
|
|
154
154
|
})]),
|
|
@@ -156,7 +156,7 @@ var F = /* @__PURE__ */ m({
|
|
|
156
156
|
}),
|
|
157
157
|
p(v(x), {
|
|
158
158
|
"is-loading": S.value,
|
|
159
|
-
label: v(
|
|
159
|
+
label: v(s).t("wise_invoicing.delivery.settings.test"),
|
|
160
160
|
type: "button",
|
|
161
161
|
variant: "secondary",
|
|
162
162
|
onClick: J
|
|
@@ -165,7 +165,7 @@ var F = /* @__PURE__ */ m({
|
|
|
165
165
|
field: v(H),
|
|
166
166
|
companies: b.value,
|
|
167
167
|
"is-test-current": G.value,
|
|
168
|
-
"saved-party-id":
|
|
168
|
+
"saved-party-id": o.settings.connection?.partyId ?? null
|
|
169
169
|
}, null, 8, [
|
|
170
170
|
"field",
|
|
171
171
|
"companies",
|
|
@@ -173,7 +173,7 @@ var F = /* @__PURE__ */ m({
|
|
|
173
173
|
"saved-party-id"
|
|
174
174
|
]),
|
|
175
175
|
p(L, { field: v(U) }, null, 8, ["field"]),
|
|
176
|
-
p(v(O), { label: v(
|
|
176
|
+
p(v(O), { label: v(s).t("wise_invoicing.common.save") }, null, 8, ["label"])
|
|
177
177
|
])]),
|
|
178
178
|
_: 1
|
|
179
179
|
}, 8, ["form"])]),
|
|
@@ -185,8 +185,8 @@ var F = /* @__PURE__ */ m({
|
|
|
185
185
|
}), H = /* @__PURE__ */ m({
|
|
186
186
|
__name: "PeppolSettingsViewDataProvider",
|
|
187
187
|
setup(e) {
|
|
188
|
-
let t =
|
|
189
|
-
return (e,
|
|
188
|
+
let t = r();
|
|
189
|
+
return (e, n) => (g(), d(s, { queries: { settings: v(t) } }, {
|
|
190
190
|
default: y(({ data: e }) => [p(V, { settings: e.settings }, null, 8, ["settings"])]),
|
|
191
191
|
_: 1
|
|
192
192
|
}, 8, ["queries"]));
|
|
@@ -2,8 +2,8 @@ import "./api.util-sW4gNny-.js";
|
|
|
2
2
|
import { m as e, u as t } from "./documentTitle.composable-Dl8Cm3v3.js";
|
|
3
3
|
import { t as n } from "./address.transformer-jGddczLV.js";
|
|
4
4
|
import { n as r, r as i, t as a } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { t as o } from "./dist-CwkVU5yS.js";
|
|
6
|
+
import { n as s } from "./percentage.util-Bl78kSSk.js";
|
|
7
7
|
import { Temporal as c } from "temporal-polyfill";
|
|
8
8
|
//#region src/models/billing-document/activity-log/billingDocumentActivityLog.transformer.ts
|
|
9
9
|
var l = class {
|
|
@@ -21,7 +21,7 @@ var l = class {
|
|
|
21
21
|
static fromDto(t) {
|
|
22
22
|
if (t === null) return null;
|
|
23
23
|
if (t.type === e.PERCENTAGE) {
|
|
24
|
-
let e =
|
|
24
|
+
let e = s.fromNullableDto(t.percentage);
|
|
25
25
|
return e?.getValue() === 0 ? null : {
|
|
26
26
|
amount: null,
|
|
27
27
|
description: t.description,
|
|
@@ -32,7 +32,7 @@ var l = class {
|
|
|
32
32
|
return {
|
|
33
33
|
amount: t.amount === null ? null : r.fromDto(t.amount),
|
|
34
34
|
description: t.description,
|
|
35
|
-
percentage:
|
|
35
|
+
percentage: s.fromNullableDto(t.percentage),
|
|
36
36
|
type: t.type
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -40,12 +40,12 @@ var l = class {
|
|
|
40
40
|
return t === null ? null : t.type === e.PERCENTAGE ? {
|
|
41
41
|
amount: null,
|
|
42
42
|
description: t.description,
|
|
43
|
-
percentage:
|
|
43
|
+
percentage: s.toNullableDto(t.percentage),
|
|
44
44
|
type: t.type
|
|
45
45
|
} : {
|
|
46
46
|
amount: r.toNullableDto(t.amount),
|
|
47
47
|
description: t.description,
|
|
48
|
-
percentage:
|
|
48
|
+
percentage: s.toNullableDto(t.percentage),
|
|
49
49
|
type: t.type
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -188,7 +188,7 @@ function h(e) {
|
|
|
188
188
|
unit: e.unit,
|
|
189
189
|
unitPrice: r.fromDto(e.unitPrice),
|
|
190
190
|
vatRate: e.vatRate,
|
|
191
|
-
vatRatePercentage:
|
|
191
|
+
vatRatePercentage: s.fromDto(e.vatRatePercentage)
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
function g(e) {
|
|
@@ -229,7 +229,7 @@ function y(e) {
|
|
|
229
229
|
}) : null;
|
|
230
230
|
}
|
|
231
231
|
var b = class {
|
|
232
|
-
static fromViewInvoiceDetailDto(e, t,
|
|
232
|
+
static fromViewInvoiceDetailDto(e, t, s) {
|
|
233
233
|
let l = e.ungroupedLines.map(h), p = e.groups.toSorted((e, t) => e.position - t.position).map(g), b = [...l, ...d.flattenLines(p)].toSorted((e, t) => e.position - t.position);
|
|
234
234
|
return {
|
|
235
235
|
uuid: t,
|
|
@@ -270,7 +270,7 @@ var b = class {
|
|
|
270
270
|
customFields: e.customFields.map(m.fromDto),
|
|
271
271
|
deliveryStatus: e.deliveryStatus,
|
|
272
272
|
effectiveNet: r.fromDto(e.effectiveNet),
|
|
273
|
-
externalRemarks:
|
|
273
|
+
externalRemarks: o.trimOrNull(e.externalRemarks),
|
|
274
274
|
file: f.fromNullableDto(e.file),
|
|
275
275
|
globalDiscount: u.fromDto(e.globalDiscount),
|
|
276
276
|
grossAmount: r.fromDto(e.grossAmount),
|
|
@@ -292,10 +292,10 @@ var b = class {
|
|
|
292
292
|
sequence: e.sequence,
|
|
293
293
|
settlementStatus: e.settlementStatus,
|
|
294
294
|
status: e.status,
|
|
295
|
-
subject:
|
|
295
|
+
subject: o.trimOrNull(e.subject),
|
|
296
296
|
totalCreditedAmount: y(e),
|
|
297
297
|
totalDiscountAmount: r.fromNullableDto(e.totalDiscountAmount),
|
|
298
|
-
type:
|
|
298
|
+
type: s,
|
|
299
299
|
ungroupedLines: l,
|
|
300
300
|
vatAmount: r.fromDto(e.vatAmount),
|
|
301
301
|
vatSummaries: e.vatSummaries.map((e) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as e, D as t, G as n, K as r, _ as i, f as a, lt as o, t as s, w as c, x as l } from "./api.util-sW4gNny-.js";
|
|
2
2
|
import { C as u, r as d } from "./documentTitle.composable-Dl8Cm3v3.js";
|
|
3
3
|
import { n as f, t as p } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
4
|
-
import { a as m, n as h, o as g, t as _ } from "./billingDocumentDetail.transformer-
|
|
4
|
+
import { a as m, n as h, o as g, t as _ } from "./billingDocumentDetail.transformer-Ifa6tWtE.js";
|
|
5
5
|
import { t as v } from "./dist-CwkVU5yS.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
|