@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
package/dist/{InvoiceApprovalStatusBadge-mbYHYU3x.js → InvoiceApprovalStatusBadge-BZuyVHKk.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import {
|
|
3
|
-
import { C as n,
|
|
1
|
+
import "./api.util-BkwbrwEm.js";
|
|
2
|
+
import { c as e, u as t } from "./documentTitle.composable-Bxu0YL71.js";
|
|
3
|
+
import { C as n, ot as r } from "./dist-DaJ08k0k.js";
|
|
4
4
|
import { r as i } from "./dist-CyUNvdkD.js";
|
|
5
|
-
import { t as a } from "./invoiceApprovalStatus.util-
|
|
5
|
+
import { t as a } from "./invoiceApprovalStatus.util-NpxAuQ0t.js";
|
|
6
6
|
import { useI18n as o } from "vue-i18n";
|
|
7
7
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, openBlock as g, renderList as _, unref as v, withCtx as y } from "vue";
|
|
8
8
|
import { UIBadge as b, UIText as x, UITooltip as S, UITooltipContent as C } from "@wisemen/vue-core-design-system";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./documentTitle.composable-
|
|
2
|
-
import { t } from "./BillingDocumentPdf-
|
|
1
|
+
import { t as e } from "./documentTitle.composable-Bxu0YL71.js";
|
|
2
|
+
import { t } from "./BillingDocumentPdf-CgnrE4eq.js";
|
|
3
3
|
import { useI18n as n } from "vue-i18n";
|
|
4
4
|
import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s } from "vue";
|
|
5
5
|
//#region src/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./invoicingConfig.composable-
|
|
2
|
-
import { t } from "./invoice.service-
|
|
3
|
-
import { t as n } from "./DataProvider-
|
|
4
|
-
import { t as r } from "./InvoicePdfView-
|
|
1
|
+
import { n as e } from "./invoicingConfig.composable-CW47czLa.js";
|
|
2
|
+
import { t } from "./invoice.service-BtgRZKrv.js";
|
|
3
|
+
import { t as n } from "./DataProvider-Dj5ckiN2.js";
|
|
4
|
+
import { t as r } from "./InvoicePdfView-BBTa7EaO.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, openBlock as d, resolveDynamicComponent as f, unref as p, watch as m, withCtx as h } from "vue";
|
|
7
7
|
import { useQuery as g } from "@wisemen/vue-core-api-utils";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
4
|
-
import { l as n, t as r, u as i } from "./invoice.service-
|
|
5
|
-
import {
|
|
6
|
-
import { n as c, r as l, t as u } from "./InvoicingFileUploadProvider-
|
|
1
|
+
import { t as e } from "./i18n.lib-C8TA6PCf.js";
|
|
2
|
+
import "./api.util-BkwbrwEm.js";
|
|
3
|
+
import { C as t } from "./documentTitle.composable-Bxu0YL71.js";
|
|
4
|
+
import { l as n, t as r, u as i } from "./invoice.service-BtgRZKrv.js";
|
|
5
|
+
import { Mt as a, St as o, Y as s } from "./dist-DaJ08k0k.js";
|
|
6
|
+
import { n as c, r as l, t as u } from "./InvoicingFileUploadProvider-B-eq6i9v.js";
|
|
7
7
|
import { t as d } from "./formango.util-D5c2ql--.js";
|
|
8
|
-
import { t as f } from "./invoiceApprovalStatus.util-
|
|
9
|
-
import { t as p } from "./DataProvider-
|
|
10
|
-
import { t as m } from "./invoiceDetail.query-
|
|
11
|
-
import { t as h } from "./issuerSettings.query-
|
|
8
|
+
import { t as f } from "./invoiceApprovalStatus.util-NpxAuQ0t.js";
|
|
9
|
+
import { t as p } from "./DataProvider-Dj5ckiN2.js";
|
|
10
|
+
import { t as m } from "./invoiceDetail.query-nEhWRrdL.js";
|
|
11
|
+
import { t as h } from "./issuerSettings.query-CIWw1Zku.js";
|
|
12
12
|
import { z as g } from "zod";
|
|
13
13
|
import { useI18n as _ } from "vue-i18n";
|
|
14
14
|
import { computed as v, createBlock as y, createVNode as b, defineComponent as x, mergeProps as S, openBlock as C, unref as w, withCtx as T } from "vue";
|
|
@@ -50,18 +50,18 @@ var U = /* @__PURE__ */ x({
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["close"],
|
|
52
52
|
setup(e, { emit: t }) {
|
|
53
|
-
let n = e, r = t, i = _(),
|
|
53
|
+
let n = e, r = t, i = _(), a = z(), o = H(), c = B({
|
|
54
54
|
initialState: {},
|
|
55
55
|
schema: g.object({}),
|
|
56
56
|
onSubmit: async () => {
|
|
57
|
-
let e = await
|
|
57
|
+
let e = await o.execute({ params: {
|
|
58
58
|
approvalUuid: n.approvalUuid,
|
|
59
59
|
invoiceUuid: n.invoiceUuid
|
|
60
60
|
} });
|
|
61
|
-
e.isErr() ?
|
|
61
|
+
e.isErr() ? a.apiError(e.error) : (a.show({ message: i.t("wise_invoicing.invoice.approval_archive.success") }), r("close"));
|
|
62
62
|
},
|
|
63
63
|
onSubmitError: () => {
|
|
64
|
-
|
|
64
|
+
a.unableToSave();
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
return (e, t) => (C(), y(w(M), {
|
|
@@ -72,7 +72,7 @@ var U = /* @__PURE__ */ x({
|
|
|
72
72
|
default: T(() => [b(w(j), {
|
|
73
73
|
title: w(i).t("wise_invoicing.invoice.approval_archive.title"),
|
|
74
74
|
description: w(i).t("wise_invoicing.invoice.approval_archive.description"),
|
|
75
|
-
icon: w(
|
|
75
|
+
icon: w(s),
|
|
76
76
|
"icon-variant": "error"
|
|
77
77
|
}, null, 8, [
|
|
78
78
|
"title",
|
|
@@ -127,7 +127,7 @@ var J = 26214400, Y = /* @__PURE__ */ x({
|
|
|
127
127
|
},
|
|
128
128
|
emits: ["close"],
|
|
129
129
|
setup(e, { emit: t }) {
|
|
130
|
-
let n = e, r = t,
|
|
130
|
+
let n = e, r = t, o = /* @__PURE__ */ new Set([
|
|
131
131
|
"application/pdf",
|
|
132
132
|
"image/png",
|
|
133
133
|
"image/jpeg"
|
|
@@ -154,7 +154,7 @@ var J = 26214400, Y = /* @__PURE__ */ x({
|
|
|
154
154
|
}
|
|
155
155
|
let g = p.register("internalNote");
|
|
156
156
|
function v(e) {
|
|
157
|
-
return
|
|
157
|
+
return o.has(e.type) ? e.size > J ? s.t("wise_invoicing.invoice.approve.proof_too_large") : !0 : s.t("wise_invoicing.invoice.approve.proof_invalid_type");
|
|
158
158
|
}
|
|
159
159
|
return (e, t) => (C(), y(w(M), {
|
|
160
160
|
form: w(p),
|
|
@@ -165,7 +165,7 @@ var J = 26214400, Y = /* @__PURE__ */ x({
|
|
|
165
165
|
b(w(j), {
|
|
166
166
|
title: w(s).t("wise_invoicing.invoice.approve.title"),
|
|
167
167
|
description: w(s).t("wise_invoicing.invoice.approve.description"),
|
|
168
|
-
icon: w(
|
|
168
|
+
icon: w(a),
|
|
169
169
|
"icon-variant": "success"
|
|
170
170
|
}, null, 8, [
|
|
171
171
|
"title",
|
|
@@ -177,7 +177,7 @@ var J = 26214400, Y = /* @__PURE__ */ x({
|
|
|
177
177
|
default: T(() => [b(u, null, {
|
|
178
178
|
default: T(() => [b(w(P), S(w(d)(w(m)), {
|
|
179
179
|
label: w(s).t("wise_invoicing.invoice.approval.files_label"),
|
|
180
|
-
accept: Array.from(w(
|
|
180
|
+
accept: Array.from(w(o)),
|
|
181
181
|
description: w(s).t("wise_invoicing.invoice.approve.fields.proof_description"),
|
|
182
182
|
hint: w(s).t("wise_invoicing.invoice.approve.fields.proof_hint"),
|
|
183
183
|
"is-required": n.isProofOfApprovalRequired,
|
|
@@ -281,7 +281,7 @@ var Q = g.object({
|
|
|
281
281
|
},
|
|
282
282
|
emits: ["close"],
|
|
283
283
|
setup(e, { emit: r }) {
|
|
284
|
-
let i = e, a = r,
|
|
284
|
+
let i = e, a = r, s = _(), c = z(), p = Z(), m = B({
|
|
285
285
|
initialState: n.toForm(i.internalNote, i.files),
|
|
286
286
|
schema: Q,
|
|
287
287
|
onSubmit: async (e) => {
|
|
@@ -292,7 +292,7 @@ var Q = g.object({
|
|
|
292
292
|
invoiceUuid: i.invoiceUuid
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
|
-
t.isErr() ? c.apiError(t.error) : (c.show({ message:
|
|
295
|
+
t.isErr() ? c.apiError(t.error) : (c.show({ message: s.t("wise_invoicing.invoice.reject.success") }), a("close"));
|
|
296
296
|
},
|
|
297
297
|
onSubmitError: () => {
|
|
298
298
|
c.unableToSave();
|
|
@@ -304,11 +304,11 @@ var Q = g.object({
|
|
|
304
304
|
}
|
|
305
305
|
let x = m.register("reason"), E = m.register("internalNote"), A = v(() => R([...Object.values(t).filter((e) => e !== t.OTHER), t.OTHER]));
|
|
306
306
|
function V(e) {
|
|
307
|
-
return
|
|
307
|
+
return s.t(f.getRejectionReasonTranslationKey(e));
|
|
308
308
|
}
|
|
309
309
|
let H = v(() => x.modelValue.value === t.OTHER);
|
|
310
310
|
function U(e) {
|
|
311
|
-
return e.size > $ ?
|
|
311
|
+
return e.size > $ ? s.t("wise_invoicing.invoice.reject.attachment_too_large") : !0;
|
|
312
312
|
}
|
|
313
313
|
return (e, t) => (C(), y(w(M), {
|
|
314
314
|
form: w(m),
|
|
@@ -317,9 +317,9 @@ var Q = g.object({
|
|
|
317
317
|
}, {
|
|
318
318
|
default: T(() => [
|
|
319
319
|
b(w(j), {
|
|
320
|
-
title: w(
|
|
321
|
-
description: w(
|
|
322
|
-
icon: w(
|
|
320
|
+
title: w(s).t("wise_invoicing.invoice.reject.title"),
|
|
321
|
+
description: w(s).t("wise_invoicing.invoice.reject.description"),
|
|
322
|
+
icon: w(o),
|
|
323
323
|
"icon-variant": "warning"
|
|
324
324
|
}, null, 8, [
|
|
325
325
|
"title",
|
|
@@ -333,12 +333,12 @@ var Q = g.object({
|
|
|
333
333
|
"display-fn": V,
|
|
334
334
|
"is-required": !0,
|
|
335
335
|
items: A.value,
|
|
336
|
-
label: w(
|
|
336
|
+
label: w(s).t("wise_invoicing.invoice.reject.fields.reason")
|
|
337
337
|
}), null, 16, ["items", "label"]),
|
|
338
338
|
b(w(L), S(w(d)(w(E)), {
|
|
339
339
|
"is-required": H.value,
|
|
340
|
-
label: w(
|
|
341
|
-
placeholder: w(
|
|
340
|
+
label: w(s).t("wise_invoicing.invoice.reject.fields.remark"),
|
|
341
|
+
placeholder: w(s).t("wise_invoicing.invoice.reject.fields.remark_placeholder")
|
|
342
342
|
}), null, 16, [
|
|
343
343
|
"is-required",
|
|
344
344
|
"label",
|
|
@@ -346,14 +346,14 @@ var Q = g.object({
|
|
|
346
346
|
]),
|
|
347
347
|
b(u, null, {
|
|
348
348
|
default: T(() => [b(w(P), S(w(d)(w(h)), {
|
|
349
|
-
label: w(
|
|
349
|
+
label: w(s).t("wise_invoicing.invoice.approval.files_label"),
|
|
350
350
|
accept: [
|
|
351
351
|
"application/pdf",
|
|
352
352
|
"image/png",
|
|
353
353
|
"image/jpeg"
|
|
354
354
|
],
|
|
355
|
-
description: w(
|
|
356
|
-
hint: w(
|
|
355
|
+
description: w(s).t("wise_invoicing.invoice.reject.fields.attachment_description"),
|
|
356
|
+
hint: w(s).t("wise_invoicing.invoice.reject.fields.attachment_hint"),
|
|
357
357
|
"is-valid-file": U,
|
|
358
358
|
preprocess: w(l).preprocess,
|
|
359
359
|
class: "w-full",
|
|
@@ -372,7 +372,7 @@ var Q = g.object({
|
|
|
372
372
|
_: 1
|
|
373
373
|
}),
|
|
374
374
|
b(w(O), null, {
|
|
375
|
-
default: T(() => [b(w(k)), b(w(F), { label: w(
|
|
375
|
+
default: T(() => [b(w(k)), b(w(F), { label: w(s).t("wise_invoicing.invoice.reject.submit") }, null, 8, ["label"])]),
|
|
376
376
|
_: 1
|
|
377
377
|
})
|
|
378
378
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import {
|
|
1
|
+
import "./api.util-BkwbrwEm.js";
|
|
2
|
+
import { I as e, T as t } from "./documentTitle.composable-Bxu0YL71.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { c as r } from "./customFieldDefinitionIndex.query-
|
|
4
|
+
import { c as r } from "./customFieldDefinitionIndex.query-DtMibcTn.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createVNode as c, defineComponent as l, openBlock as u, unref as d, withCtx as f } from "vue";
|
|
7
7
|
import { UIBadge as p, UIColumnLayout as m, UIText as h, UITooltip as g, UITooltipContent as _ } from "@wisemen/vue-core-design-system";
|
package/dist/{InvoicingFileUploadProvider-DVh22OUB.js → InvoicingFileUploadProvider-B-eq6i9v.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as e, d as t, g as n, t as r } from "./api.util-BkwbrwEm.js";
|
|
2
|
+
import { k as i } from "./documentTitle.composable-Bxu0YL71.js";
|
|
3
3
|
import { z as a } from "zod";
|
|
4
4
|
import { createBlock as o, defineComponent as s, openBlock as c, renderSlot as l, unref as u, withCtx as d } from "vue";
|
|
5
5
|
import { UIConfigProvider as f, useInjectConfigContext as p } from "@wisemen/vue-core-design-system";
|
|
6
6
|
//#region src/modules/invoice/api/services/fileUpload.service.ts
|
|
7
7
|
var m = new Set(Object.values(i)), h = class a {
|
|
8
|
-
static async confirmUpload(
|
|
9
|
-
let i = await
|
|
10
|
-
body: { blurHash:
|
|
11
|
-
path: { file:
|
|
8
|
+
static async confirmUpload(e, n) {
|
|
9
|
+
let i = await r.fromPromise(t({
|
|
10
|
+
body: { blurHash: n },
|
|
11
|
+
path: { file: e }
|
|
12
12
|
}));
|
|
13
|
-
return
|
|
13
|
+
return r.void(i);
|
|
14
14
|
}
|
|
15
|
-
static async getDownloadUrl(
|
|
16
|
-
let
|
|
15
|
+
static async getDownloadUrl(t) {
|
|
16
|
+
let n = await e({
|
|
17
17
|
parseAs: "blob",
|
|
18
18
|
responseStyle: "fields",
|
|
19
|
-
path: { file:
|
|
19
|
+
path: { file: t }
|
|
20
20
|
});
|
|
21
|
-
return
|
|
21
|
+
return n.data === void 0 ? null : n.response.url;
|
|
22
22
|
}
|
|
23
|
-
static async getFileInfo(e,
|
|
24
|
-
return (await
|
|
23
|
+
static async getFileInfo(e, t) {
|
|
24
|
+
return (await r.fromPromise(n({ body: {
|
|
25
25
|
name: e,
|
|
26
|
-
mimeType: a.normalizeMimeType(
|
|
26
|
+
mimeType: a.normalizeMimeType(t)
|
|
27
27
|
} }))).map((e) => ({
|
|
28
28
|
uuid: e.data.uuid,
|
|
29
29
|
uploadUrl: e.data.uploadUrl
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "./i18n.lib-C8TA6PCf.js";
|
|
2
|
+
import "./api.util-BkwbrwEm.js";
|
|
3
|
+
import { F as t, N as n, P as r, f as i, t as a } from "./documentTitle.composable-Bxu0YL71.js";
|
|
4
4
|
import { r as o } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
5
|
import { t as s } from "./addressForm.model-C853zEtX.js";
|
|
6
6
|
import { t as c } from "./dist-CwkVU5yS.js";
|
|
7
7
|
import { t as l } from "./formango.util-D5c2ql--.js";
|
|
8
|
-
import { t as u } from "./DataProvider-
|
|
8
|
+
import { t as u } from "./DataProvider-Dj5ckiN2.js";
|
|
9
9
|
import { t as d } from "./dashboard-BaWGNEek.js";
|
|
10
|
-
import { i as f, n as p, r as ee, t as m } from "./issuerSettings.query-
|
|
10
|
+
import { i as f, n as p, r as ee, t as m } from "./issuerSettings.query-CIWw1Zku.js";
|
|
11
11
|
import { z as h } from "zod";
|
|
12
12
|
import { useI18n as g } from "vue-i18n";
|
|
13
13
|
import { Fragment as _, Teleport as te, Transition as ne, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createVNode as C, defineComponent as w, mergeProps as T, normalizeClass as E, openBlock as D, renderList as O, toDisplayString as re, unref as k, withCtx as A } from "vue";
|
|
@@ -26,13 +26,13 @@ function de() {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/modules/settings/models/issuer-settings/issuerSettingsForm.model.ts
|
|
28
28
|
var Y = h.object({
|
|
29
|
-
dateFormat: h.enum(
|
|
29
|
+
dateFormat: h.enum(n),
|
|
30
30
|
minDigits: h.number().int().min(0).max(10),
|
|
31
31
|
prefix: h.string().max(10).regex(/^[a-z]*$/i, { message: e.global.t("wise_invoicing.settings.fields.sequence_prefix.only_letters") }),
|
|
32
32
|
separator: h.object({
|
|
33
33
|
afterDate: h.boolean(),
|
|
34
34
|
afterPrefix: h.boolean(),
|
|
35
|
-
value: h.enum(
|
|
35
|
+
value: h.enum(t)
|
|
36
36
|
})
|
|
37
37
|
}), fe = h.object({
|
|
38
38
|
name: h.string().min(1),
|
|
@@ -58,26 +58,26 @@ var Y = h.object({
|
|
|
58
58
|
prefixPlaceholder: {}
|
|
59
59
|
},
|
|
60
60
|
setup(e) {
|
|
61
|
-
let
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
61
|
+
let r = e, i = g(), a = v(() => J(Object.values(n))), o = v(() => J(Object.values(t))), s = {
|
|
62
|
+
[n.NONE]: "wise_invoicing.settings.fields.sequence_date_format.options.none",
|
|
63
|
+
[n.YY]: "wise_invoicing.settings.fields.sequence_date_format.options.yy",
|
|
64
|
+
[n.YYMM]: "wise_invoicing.settings.fields.sequence_date_format.options.yymm",
|
|
65
|
+
[n.YYYY]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyy",
|
|
66
|
+
[n.YYYYMM]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyymm",
|
|
67
|
+
[n.YYYYMMDD]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyymmdd"
|
|
68
68
|
}, c = {
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
}, u = v(() => f.hasSeparatorPlacementChoice(
|
|
75
|
-
return (e,
|
|
76
|
-
C(k(q), T(k(l)(
|
|
77
|
-
label:
|
|
78
|
-
placeholder:
|
|
69
|
+
[t.HYPHEN]: "wise_invoicing.settings.fields.sequence_separator.options.hyphen",
|
|
70
|
+
[t.NONE]: "wise_invoicing.settings.fields.sequence_separator.options.none",
|
|
71
|
+
[t.PERIOD]: "wise_invoicing.settings.fields.sequence_separator.options.period",
|
|
72
|
+
[t.SLASH]: "wise_invoicing.settings.fields.sequence_separator.options.slash",
|
|
73
|
+
[t.UNDERSCORE]: "wise_invoicing.settings.fields.sequence_separator.options.underscore"
|
|
74
|
+
}, u = v(() => f.hasSeparatorPlacementChoice(r.editedFormat));
|
|
75
|
+
return (e, t) => (D(), x(_, null, [
|
|
76
|
+
C(k(q), T(k(l)(r.fields.prefix), {
|
|
77
|
+
label: r.prefixLabel,
|
|
78
|
+
placeholder: r.prefixPlaceholder
|
|
79
79
|
}), null, 16, ["label", "placeholder"]),
|
|
80
|
-
C(k(W), T(k(l)(
|
|
80
|
+
C(k(W), T(k(l)(r.fields.dateFormat), {
|
|
81
81
|
"display-fn": (e) => k(i).t(s[e]),
|
|
82
82
|
items: a.value,
|
|
83
83
|
label: k(i).t("wise_invoicing.settings.fields.sequence_date_format.label")
|
|
@@ -91,7 +91,7 @@ var Y = h.object({
|
|
|
91
91
|
gap: "md",
|
|
92
92
|
align: "stretch"
|
|
93
93
|
}, {
|
|
94
|
-
default: A(() => [C(k(W), T(k(l)(
|
|
94
|
+
default: A(() => [C(k(W), T(k(l)(r.fields.separator), {
|
|
95
95
|
"display-fn": (e) => k(i).t(c[e]),
|
|
96
96
|
items: o.value,
|
|
97
97
|
label: k(i).t("wise_invoicing.settings.fields.sequence_separator.label")
|
|
@@ -109,7 +109,7 @@ var Y = h.object({
|
|
|
109
109
|
key: 0,
|
|
110
110
|
gap: "md"
|
|
111
111
|
}, {
|
|
112
|
-
default: A(() => [C(k(I), T(k(l)(
|
|
112
|
+
default: A(() => [C(k(I), T(k(l)(r.fields.separatorAfterPrefix), { label: k(i).t("wise_invoicing.settings.fields.sequence_separator_after_prefix.label") }), null, 16, ["label"]), C(k(I), T(k(l)(r.fields.separatorAfterDate), { label: k(i).t("wise_invoicing.settings.fields.sequence_separator_after_date.label") }), null, 16, ["label"])]),
|
|
113
113
|
_: 1
|
|
114
114
|
})) : b("", !0)]),
|
|
115
115
|
_: 1
|
|
@@ -118,7 +118,7 @@ var Y = h.object({
|
|
|
118
118
|
})]),
|
|
119
119
|
_: 1
|
|
120
120
|
}),
|
|
121
|
-
C(k(U), T(k(l)(
|
|
121
|
+
C(k(U), T(k(l)(r.fields.minDigits), {
|
|
122
122
|
min: 0,
|
|
123
123
|
max: 10,
|
|
124
124
|
label: k(i).t("wise_invoicing.settings.fields.sequence_min_digits.label"),
|
|
@@ -319,21 +319,21 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
319
319
|
__name: "IssuerSettingsForm",
|
|
320
320
|
props: { issuerSettings: {} },
|
|
321
321
|
setup(e) {
|
|
322
|
-
let
|
|
323
|
-
initialState: v(() => ee.toForm(
|
|
322
|
+
let t = e, n = g(), a = le(), s = o(), c = de(), u = v(() => J(Object.values(i))), d = ue({
|
|
323
|
+
initialState: v(() => ee.toForm(t.issuerSettings)),
|
|
324
324
|
schema: fe,
|
|
325
325
|
onSubmit: async (e) => {
|
|
326
326
|
let t = await c.execute({ body: e });
|
|
327
|
-
t.isErr() ? a.apiError(t.error) : a.show({ message:
|
|
327
|
+
t.isErr() ? a.apiError(t.error) : a.show({ message: n.t("wise_invoicing.settings.saved") });
|
|
328
328
|
},
|
|
329
329
|
onSubmitError: () => {
|
|
330
330
|
a.unableToSave();
|
|
331
331
|
}
|
|
332
|
-
}), p = d.register("name"), m = d.register("email"), h = d.register("phoneNumber"), w = d.register("website"), E = d.register("address"), O = d.register("vatNumber"), j = d.register("bankAccountNumber"), M = d.register("bic"), N = d.register("currency"), P = d.register("defaultPaymentTermDays"), F = d.register("restartsNumberingYearly", !1), L = d.register("shareCreditNoteSequence", !1), R = ge(d, "invoiceSequenceFormat", () =>
|
|
332
|
+
}), p = d.register("name"), m = d.register("email"), h = d.register("phoneNumber"), w = d.register("website"), E = d.register("address"), O = d.register("vatNumber"), j = d.register("bankAccountNumber"), M = d.register("bic"), N = d.register("currency"), P = d.register("defaultPaymentTermDays"), F = d.register("restartsNumberingYearly", !1), L = d.register("shareCreditNoteSequence", !1), R = ge(d, "invoiceSequenceFormat", () => t.issuerSettings.invoiceSequenceFormat), z = ge(d, "creditNoteSequenceFormat", () => t.issuerSettings.creditNoteSequenceFormat), K = v(() => L.modelValue.value), Y = v(() => K.value !== t.issuerSettings.shareCreditNoteSequence), pe = v(() => t.issuerSettings.shareCreditNoteSequence ? t.issuerSettings.invoiceSequenceFormat : t.issuerSettings.creditNoteSequenceFormat), Z = v(() => f.canRestartYearly(R.editedFormat.value, z.editedFormat.value, K.value)), Q = v(() => Z.value && F.modelValue.value), $ = v(() => Q.value !== (t.issuerSettings.sequenceReset === r.YEARLY));
|
|
333
333
|
function Ce(e) {
|
|
334
334
|
return `${e} (${s.getSymbol(e).symbol})`;
|
|
335
335
|
}
|
|
336
|
-
return (e,
|
|
336
|
+
return (e, r) => (D(), y(k(ae), {
|
|
337
337
|
form: k(d),
|
|
338
338
|
"prompt-on-unsaved-changes": !0
|
|
339
339
|
}, {
|
|
@@ -342,12 +342,12 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
342
342
|
defer: ""
|
|
343
343
|
}, [C(k(se), {
|
|
344
344
|
"is-disabled": !k(d).isDirty.value,
|
|
345
|
-
label: k(
|
|
345
|
+
label: k(n).t("wise_invoicing.common.save")
|
|
346
346
|
}, null, 8, ["is-disabled", "label"])])), C(k(oe), null, {
|
|
347
347
|
default: A(() => [
|
|
348
348
|
C(k(H), {
|
|
349
|
-
title: k(
|
|
350
|
-
description: k(
|
|
349
|
+
title: k(n).t("wise_invoicing.settings.sections.issuer.title"),
|
|
350
|
+
description: k(n).t("wise_invoicing.settings.sections.issuer.description")
|
|
351
351
|
}, {
|
|
352
352
|
default: A(() => [C(k(V), null, {
|
|
353
353
|
default: A(() => [C(k(B), {
|
|
@@ -355,20 +355,20 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
355
355
|
sm: 1
|
|
356
356
|
}, {
|
|
357
357
|
default: A(() => [
|
|
358
|
-
C(k(q), T({ "is-required": !0 }, k(l)(k(p)), { label: k(
|
|
358
|
+
C(k(q), T({ "is-required": !0 }, k(l)(k(p)), { label: k(n).t("wise_invoicing.settings.fields.name.label") }), null, 16, ["label"]),
|
|
359
359
|
C(k(q), T({ "is-required": !0 }, k(l)(k(m)), {
|
|
360
|
-
label: k(
|
|
360
|
+
label: k(n).t("wise_invoicing.settings.fields.email.label"),
|
|
361
361
|
type: "email"
|
|
362
362
|
}), null, 16, ["label"]),
|
|
363
|
-
C(k(ce), T(k(l)(k(h)), { label: k(
|
|
364
|
-
C(k(q), T(k(l)(k(w)), { label: k(
|
|
365
|
-
C(k(ie), T({ "is-required": !0 }, k(l)(k(E)), { label: k(
|
|
363
|
+
C(k(ce), T(k(l)(k(h)), { label: k(n).t("wise_invoicing.settings.fields.phone_number.label") }), null, 16, ["label"]),
|
|
364
|
+
C(k(q), T(k(l)(k(w)), { label: k(n).t("wise_invoicing.settings.fields.website.label") }), null, 16, ["label"]),
|
|
365
|
+
C(k(ie), T({ "is-required": !0 }, k(l)(k(E)), { label: k(n).t("wise_invoicing.settings.fields.address.label") }), null, 16, ["label"]),
|
|
366
366
|
C(k(q), T(k(l)(k(O)), {
|
|
367
367
|
"is-disabled": !0,
|
|
368
|
-
label: k(
|
|
368
|
+
label: k(n).t("wise_invoicing.settings.fields.vat_number.label")
|
|
369
369
|
}), null, 16, ["label"]),
|
|
370
|
-
C(k(q), T({ "is-required": !0 }, k(l)(k(j)), { label: k(
|
|
371
|
-
C(k(q), T(k(l)(k(M)), { label: k(
|
|
370
|
+
C(k(q), T({ "is-required": !0 }, k(l)(k(j)), { label: k(n).t("wise_invoicing.settings.fields.bank_account_number.label") }), null, 16, ["label"]),
|
|
371
|
+
C(k(q), T(k(l)(k(M)), { label: k(n).t("wise_invoicing.settings.fields.bic.label") }), null, 16, ["label"])
|
|
372
372
|
]),
|
|
373
373
|
_: 1
|
|
374
374
|
})]),
|
|
@@ -378,8 +378,8 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
378
378
|
}, 8, ["title", "description"]),
|
|
379
379
|
S("div", _e, [C(k(G))]),
|
|
380
380
|
C(k(H), {
|
|
381
|
-
title: k(
|
|
382
|
-
description: k(
|
|
381
|
+
title: k(n).t("wise_invoicing.settings.sections.payment.title"),
|
|
382
|
+
description: k(n).t("wise_invoicing.settings.sections.payment.description")
|
|
383
383
|
}, {
|
|
384
384
|
default: A(() => [C(k(V), null, {
|
|
385
385
|
default: A(() => [C(k(B), {
|
|
@@ -389,12 +389,12 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
389
389
|
default: A(() => [C(k(W), T(k(l)(k(N)), {
|
|
390
390
|
"display-fn": Ce,
|
|
391
391
|
items: u.value,
|
|
392
|
-
label: k(
|
|
392
|
+
label: k(n).t("wise_invoicing.settings.fields.currency.label")
|
|
393
393
|
}), null, 16, ["items", "label"]), C(k(U), T(k(l)(k(P)), {
|
|
394
|
-
label: k(
|
|
395
|
-
placeholder: k(
|
|
394
|
+
label: k(n).t("wise_invoicing.settings.fields.default_payment_term.label"),
|
|
395
|
+
placeholder: k(n).t("wise_invoicing.settings.fields.default_payment_term.placeholder")
|
|
396
396
|
}), {
|
|
397
|
-
right: A(() => [S("span", ve, re(k(
|
|
397
|
+
right: A(() => [S("span", ve, re(k(n).t("wise_invoicing.settings.fields.default_payment_term.suffix")), 1)]),
|
|
398
398
|
_: 1
|
|
399
399
|
}, 16, ["label", "placeholder"])]),
|
|
400
400
|
_: 1
|
|
@@ -405,8 +405,8 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
405
405
|
}, 8, ["title", "description"]),
|
|
406
406
|
S("div", ye, [C(k(G))]),
|
|
407
407
|
C(k(H), {
|
|
408
|
-
title: k(
|
|
409
|
-
description: k(
|
|
408
|
+
title: k(n).t("wise_invoicing.settings.sections.numbering.title"),
|
|
409
|
+
description: k(n).t("wise_invoicing.settings.sections.numbering.description")
|
|
410
410
|
}, {
|
|
411
411
|
default: A(() => [C(k(V), null, {
|
|
412
412
|
default: A(() => [C(k(B), {
|
|
@@ -417,8 +417,8 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
417
417
|
C(X, {
|
|
418
418
|
"edited-format": k(R).editedFormat.value,
|
|
419
419
|
fields: k(R).fields,
|
|
420
|
-
"prefix-label": k(
|
|
421
|
-
"prefix-placeholder": k(
|
|
420
|
+
"prefix-label": k(n).t("wise_invoicing.settings.fields.sequence_prefix.label"),
|
|
421
|
+
"prefix-placeholder": k(n).t("wise_invoicing.settings.fields.sequence_prefix.placeholder")
|
|
422
422
|
}, null, 8, [
|
|
423
423
|
"edited-format",
|
|
424
424
|
"fields",
|
|
@@ -432,17 +432,17 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
432
432
|
"leave-to-class": "opacity-0"
|
|
433
433
|
}, {
|
|
434
434
|
default: A(() => [Z.value ? (D(), x("div", be, [C(k(I), T(k(l)(k(F)), {
|
|
435
|
-
label: k(
|
|
436
|
-
hint: k(
|
|
435
|
+
label: k(n).t("wise_invoicing.settings.fields.restarts_numbering_yearly.label"),
|
|
436
|
+
hint: k(n).t("wise_invoicing.settings.fields.restarts_numbering_yearly.hint")
|
|
437
437
|
}), null, 16, ["label", "hint"])])) : b("", !0)]),
|
|
438
438
|
_: 1
|
|
439
439
|
}),
|
|
440
440
|
C(me, {
|
|
441
441
|
"edited-format": k(R).editedFormat.value,
|
|
442
442
|
"has-other-numbering-changes": $.value,
|
|
443
|
-
"is-change-immediate":
|
|
443
|
+
"is-change-immediate": t.issuerSettings.isSequenceFormatChangeImmediate,
|
|
444
444
|
"is-restarting-yearly": Q.value,
|
|
445
|
-
"saved-format":
|
|
445
|
+
"saved-format": t.issuerSettings.invoiceSequenceFormat,
|
|
446
446
|
"document-type": "invoice"
|
|
447
447
|
}, null, 8, [
|
|
448
448
|
"edited-format",
|
|
@@ -460,8 +460,8 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
460
460
|
}, 8, ["title", "description"]),
|
|
461
461
|
S("div", xe, [C(k(G))]),
|
|
462
462
|
C(k(H), {
|
|
463
|
-
title: k(
|
|
464
|
-
description: k(
|
|
463
|
+
title: k(n).t("wise_invoicing.settings.sections.credit_note_numbering.title"),
|
|
464
|
+
description: k(n).t("wise_invoicing.settings.sections.credit_note_numbering.description")
|
|
465
465
|
}, {
|
|
466
466
|
default: A(() => [C(k(V), null, {
|
|
467
467
|
default: A(() => [C(k(B), {
|
|
@@ -469,17 +469,17 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
469
469
|
sm: 1
|
|
470
470
|
}, {
|
|
471
471
|
default: A(() => [S("div", Se, [C(k(I), T(k(l)(k(L)), {
|
|
472
|
-
label: k(
|
|
473
|
-
hint: k(
|
|
472
|
+
label: k(n).t("wise_invoicing.settings.fields.share_credit_note_sequence.label"),
|
|
473
|
+
hint: k(n).t("wise_invoicing.settings.fields.share_credit_note_sequence.hint")
|
|
474
474
|
}), null, 16, ["label", "hint"])]), K.value ? (D(), y(he, {
|
|
475
475
|
key: 0,
|
|
476
476
|
"invoice-format": k(R).editedFormat.value,
|
|
477
|
-
"is-sharing-deferred": Y.value && !
|
|
477
|
+
"is-sharing-deferred": Y.value && !t.issuerSettings.isCreditNoteSequenceChangeImmediate
|
|
478
478
|
}, null, 8, ["invoice-format", "is-sharing-deferred"])) : (D(), x(_, { key: 1 }, [C(X, {
|
|
479
479
|
"edited-format": k(z).editedFormat.value,
|
|
480
480
|
fields: k(z).fields,
|
|
481
|
-
"prefix-label": k(
|
|
482
|
-
"prefix-placeholder": k(
|
|
481
|
+
"prefix-label": k(n).t("wise_invoicing.settings.fields.credit_note_sequence_prefix.label"),
|
|
482
|
+
"prefix-placeholder": k(n).t("wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder")
|
|
483
483
|
}, null, 8, [
|
|
484
484
|
"edited-format",
|
|
485
485
|
"fields",
|
|
@@ -488,7 +488,7 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
|
|
|
488
488
|
]), C(me, {
|
|
489
489
|
"edited-format": k(z).editedFormat.value,
|
|
490
490
|
"has-other-numbering-changes": $.value || Y.value,
|
|
491
|
-
"is-change-immediate":
|
|
491
|
+
"is-change-immediate": t.issuerSettings.isCreditNoteSequenceChangeImmediate,
|
|
492
492
|
"is-restarting-yearly": Q.value,
|
|
493
493
|
"saved-format": pe.value,
|
|
494
494
|
"document-type": "credit_note"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import {
|
|
3
|
-
import { i as n, n as r, r as i, t as a } from "./deliveryReason.util-
|
|
1
|
+
import "./api.util-BkwbrwEm.js";
|
|
2
|
+
import { j as e, t } from "./documentTitle.composable-Bxu0YL71.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "./deliveryReason.util-BuCD1Fuz.js";
|
|
4
4
|
import { t as o } from "./formango.util-D5c2ql--.js";
|
|
5
|
-
import { t as s } from "./DataProvider-
|
|
5
|
+
import { t as s } from "./DataProvider-Dj5ckiN2.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";
|