@wisemen/wise-invoicing-web 0.19.0 → 0.20.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-C1cI6KQq.js → ApprovalReminderSettingsViewDataProvider-DMWLX53_.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-jpp-QwPi.js} +1655 -1655
- package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Zw3GXZVE.js} +9 -9
- package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-CA-nzjzV.js} +3 -3
- package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-Dnw03isr.js} +1 -1
- package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-CoJXggOy.js} +141 -141
- package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-BWx3Fhuy.js} +3 -3
- package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-Bv5aMLh6.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-Ca7-AmAH.js} +3 -3
- package/dist/{InvoiceRejectDialog-_5i8eFuk.js → InvoiceRejectDialog-Ca-4nz4U.js} +7 -7
- package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-uXAh9ypU.js} +23 -23
- package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-C3cyIUhL.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-C-CRF9sK.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-COQEInsh.js} +3 -3
- package/dist/{api.util-sW4gNny-.js → api.util-DSerLsgA.js} +666 -648
- package/dist/billingDocumentDetail.transformer-ClWwi8h4.js +310 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +5 -5
- package/dist/client/types.gen.d.ts +81 -46
- package/dist/client/zod.gen.d.ts +1304 -96
- package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-q1b6nzu0.js} +5 -5
- package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-DQxer9Je.js} +31 -31
- package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-BlxvUaz0.js} +2 -2
- package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-D5uPh3uG.js} +37 -35
- package/dist/{i18n.lib-DckceEsg.js → i18n.lib-DB15VQsH.js} +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1686 -1684
- package/dist/{invoice.service-v9uIoFgR.js → invoice.service-BKgP2p8z.js} +165 -164
- package/dist/{invoiceApproval.service-DXIKgCI_.js → invoiceApproval.service-oT1fvhsW.js} +5 -4
- package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-D17DWEh1.js} +29 -29
- package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-CLYUR6vc.js} +2 -2
- package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-CzyZqT82.js} +1 -1
- package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-CzgTMtog.js} +2 -2
- package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-D8T34N7f.js} +27 -27
- package/dist/libs/i18n.lib.d.ts +2 -0
- package/dist/locales/en-US.json.d.ts +1 -0
- package/dist/locales/nl-BE.json.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/services/invoice.service.d.ts +3 -3
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +2 -1
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
- package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-CFmCWWlO.js} +7 -7
- package/package.json +1 -1
- package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-BWx3Fhuy.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import { a as e,
|
|
1
|
+
import "./api.util-DSerLsgA.js";
|
|
2
|
+
import { a as e, s as t } from "./documentTitle.composable-D5uPh3uG.js";
|
|
3
3
|
import { $ as n, S as r } from "./dist-B33lNwLw.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-D17DWEh1.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-D5uPh3uG.js";
|
|
2
|
+
import { t } from "./BillingDocumentPdf-Zw3GXZVE.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-
|
|
1
|
+
import { n as e } from "./invoicingConfig.composable-CzgTMtog.js";
|
|
2
|
+
import { t } from "./invoice.service-BKgP2p8z.js";
|
|
3
3
|
import { t as n } from "./DataProvider-BtnD-BzI.js";
|
|
4
|
-
import { t as r } from "./InvoicePdfView-
|
|
4
|
+
import { t as r } from "./InvoicePdfView-Bv5aMLh6.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,13 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
4
|
-
import { t as n } from "./invoice.service-
|
|
1
|
+
import { t as e } from "./i18n.lib-DB15VQsH.js";
|
|
2
|
+
import "./api.util-DSerLsgA.js";
|
|
3
|
+
import { y as t } from "./documentTitle.composable-D5uPh3uG.js";
|
|
4
|
+
import { t as n } from "./invoice.service-BKgP2p8z.js";
|
|
5
5
|
import { G as r, ft as i, xt as a } from "./dist-B33lNwLw.js";
|
|
6
|
-
import { n as o, r as s, t as c } from "./InvoicingFileUploadProvider-
|
|
6
|
+
import { n as o, r as s, t as c } from "./InvoicingFileUploadProvider-C3cyIUhL.js";
|
|
7
7
|
import { t as l } from "./formango.util-D5c2ql--.js";
|
|
8
|
-
import { t as u } from "./invoiceApprovalStatus.util-
|
|
8
|
+
import { t as u } from "./invoiceApprovalStatus.util-D17DWEh1.js";
|
|
9
9
|
import { t as d } from "./DataProvider-BtnD-BzI.js";
|
|
10
|
-
import { t as f } from "./issuerSettings.query-
|
|
10
|
+
import { t as f } from "./issuerSettings.query-D8T34N7f.js";
|
|
11
11
|
import { z as p } from "zod";
|
|
12
12
|
import { useI18n as m } from "vue-i18n";
|
|
13
13
|
import { computed as h, createBlock as g, createVNode as _, defineComponent as v, mergeProps as y, openBlock as b, unref as x, withCtx as S } from "vue";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import {
|
|
1
|
+
import "./api.util-DSerLsgA.js";
|
|
2
|
+
import { M as e, x as t } from "./documentTitle.composable-D5uPh3uG.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-DQxer9Je.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";
|
|
8
8
|
//#region src/modules/invoice/models/invoice/invoiceDeliveryStatus.util.ts
|
|
9
9
|
var v = {
|
|
10
|
-
[
|
|
10
|
+
[t.FAILED]: {
|
|
11
11
|
tone: "error",
|
|
12
12
|
translationKey: "wise_invoicing.invoice.delivery_status.failed"
|
|
13
13
|
},
|
|
14
|
-
[
|
|
14
|
+
[t.PROCESSING]: {
|
|
15
15
|
tone: "blue",
|
|
16
16
|
translationKey: "wise_invoicing.invoice.delivery_status.processing"
|
|
17
17
|
},
|
|
18
|
-
[
|
|
18
|
+
[t.SENT]: {
|
|
19
19
|
tone: "brand",
|
|
20
20
|
translationKey: "wise_invoicing.invoice.delivery_status.sent"
|
|
21
21
|
},
|
|
22
|
-
[
|
|
22
|
+
[t.UNSENT]: {
|
|
23
23
|
tone: "gray",
|
|
24
24
|
translationKey: "wise_invoicing.invoice.delivery_status.unsent"
|
|
25
25
|
},
|
|
26
|
-
[
|
|
26
|
+
[t.VIEWED]: {
|
|
27
27
|
tone: "success",
|
|
28
28
|
translationKey: "wise_invoicing.invoice.delivery_status.viewed"
|
|
29
29
|
}
|
|
@@ -31,8 +31,8 @@ var v = {
|
|
|
31
31
|
static getMetadata(e) {
|
|
32
32
|
return v[e];
|
|
33
33
|
}
|
|
34
|
-
static isSent(
|
|
35
|
-
return [
|
|
34
|
+
static isSent(e) {
|
|
35
|
+
return [t.SENT, t.VIEWED].includes(e);
|
|
36
36
|
}
|
|
37
37
|
}, b = /* @__PURE__ */ l({
|
|
38
38
|
__name: "InvoiceDisputedBadge",
|
|
@@ -47,34 +47,34 @@ var v = {
|
|
|
47
47
|
}, null, 8, ["label", "size"]));
|
|
48
48
|
}
|
|
49
49
|
}), x = {
|
|
50
|
-
[
|
|
50
|
+
[e.CREDITED]: {
|
|
51
51
|
tone: "success",
|
|
52
52
|
translationKey: "wise_invoicing.invoice.settlement_status.credited"
|
|
53
53
|
},
|
|
54
|
-
[
|
|
54
|
+
[e.OVERPAID]: {
|
|
55
55
|
tone: "warning",
|
|
56
56
|
translationKey: "wise_invoicing.invoice.settlement_status.paid"
|
|
57
57
|
},
|
|
58
|
-
[
|
|
58
|
+
[e.PAID]: {
|
|
59
59
|
tone: "success",
|
|
60
60
|
translationKey: "wise_invoicing.invoice.settlement_status.paid"
|
|
61
61
|
},
|
|
62
|
-
[
|
|
62
|
+
[e.PARTIALLY_PAID]: {
|
|
63
63
|
tone: "blue",
|
|
64
64
|
translationKey: "wise_invoicing.invoice.settlement_status.partially_paid"
|
|
65
65
|
},
|
|
66
|
-
[
|
|
66
|
+
[e.SETTLED]: {
|
|
67
67
|
tone: "brand",
|
|
68
68
|
translationKey: "wise_invoicing.invoice.settlement_status.settled"
|
|
69
69
|
},
|
|
70
|
-
[
|
|
70
|
+
[e.UNPAID]: {
|
|
71
71
|
tone: "gray",
|
|
72
72
|
translationKey: "wise_invoicing.invoice.settlement_status.unpaid"
|
|
73
73
|
}
|
|
74
74
|
}, S = {
|
|
75
75
|
tone: "warning",
|
|
76
76
|
translationKey: "wise_invoicing.invoice.settlement_status.awaiting_payment"
|
|
77
|
-
}, C = /* @__PURE__ */ new Set([
|
|
77
|
+
}, C = /* @__PURE__ */ new Set([e.PARTIALLY_PAID, e.UNPAID]), w = class t {
|
|
78
78
|
static getCreditedAmount(e) {
|
|
79
79
|
if (e.totalCreditedAmount !== null) return e.totalCreditedAmount.amount > 0 ? e.totalCreditedAmount : null;
|
|
80
80
|
if (e.balanceDueAmount == null) return null;
|
|
@@ -88,9 +88,9 @@ var v = {
|
|
|
88
88
|
return t && C.has(e) ? S : x[e];
|
|
89
89
|
}
|
|
90
90
|
static getSubtextParts(n) {
|
|
91
|
-
let r = n.paidAmount, i =
|
|
91
|
+
let r = n.paidAmount, i = t.getCreditedAmount(n);
|
|
92
92
|
switch (n.settlementStatus) {
|
|
93
|
-
case
|
|
93
|
+
case e.OVERPAID: {
|
|
94
94
|
if (r === null) return null;
|
|
95
95
|
let e = Math.max(r.amount - n.grossAmount.amount, 0), t = Math.min(r.amount, n.grossAmount.amount);
|
|
96
96
|
return e > 0 ? {
|
|
@@ -105,8 +105,8 @@ var v = {
|
|
|
105
105
|
}
|
|
106
106
|
} : null;
|
|
107
107
|
}
|
|
108
|
-
case
|
|
109
|
-
case
|
|
108
|
+
case e.PARTIALLY_PAID:
|
|
109
|
+
case e.SETTLED: return r === null && i === null ? null : {
|
|
110
110
|
creditedAmount: i,
|
|
111
111
|
overpaidAmount: null,
|
|
112
112
|
paidAmount: r ?? null
|
|
@@ -129,8 +129,8 @@ var v = {
|
|
|
129
129
|
size: { default: "sm" },
|
|
130
130
|
totalCreditedAmount: {}
|
|
131
131
|
},
|
|
132
|
-
setup(
|
|
133
|
-
let r =
|
|
132
|
+
setup(t) {
|
|
133
|
+
let r = t, l = i(), v = n(), y = a(() => r.isSent || r.settlementStatus !== e.UNPAID), b = a(() => w.getMetadata(r.settlementStatus, r.isSent)), x = a(() => l.t(b.value.translationKey)), S = a(() => {
|
|
134
134
|
let e = w.getSubtextParts({
|
|
135
135
|
balanceDueAmount: r.balanceDueAmount,
|
|
136
136
|
grossAmount: r.grossAmount,
|
package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-C3cyIUhL.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, m as t, t as n, y as r } from "./api.util-
|
|
2
|
-
import {
|
|
1
|
+
import { d as e, m as t, t as n, y as r } from "./api.util-DSerLsgA.js";
|
|
2
|
+
import { T as i } from "./documentTitle.composable-D5uPh3uG.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";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import { A as t,
|
|
1
|
+
import { t as e } from "./i18n.lib-DB15VQsH.js";
|
|
2
|
+
import "./api.util-DSerLsgA.js";
|
|
3
|
+
import { A as t, j as n, k as r, l as i, t as a } from "./documentTitle.composable-D5uPh3uG.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
8
|
import { t as u } from "./DataProvider-BtnD-BzI.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-D8T34N7f.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(r),
|
|
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(n)
|
|
36
36
|
})
|
|
37
37
|
}), fe = h.object({
|
|
38
38
|
name: h.string().min(1),
|
|
@@ -40,7 +40,7 @@ var Y = h.object({
|
|
|
40
40
|
bankAccountNumber: h.string().min(1),
|
|
41
41
|
bic: h.string(),
|
|
42
42
|
creditNoteSequenceFormat: Y,
|
|
43
|
-
currency: h.enum(
|
|
43
|
+
currency: h.enum(i),
|
|
44
44
|
defaultPaymentTermDays: h.number().min(1),
|
|
45
45
|
email: h.email().min(1),
|
|
46
46
|
invoiceSequenceFormat: Y,
|
|
@@ -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 t = e, i = g(), a = v(() => J(Object.values(r))), o = v(() => J(Object.values(n))), s = {
|
|
62
|
+
[r.NONE]: "wise_invoicing.settings.fields.sequence_date_format.options.none",
|
|
63
|
+
[r.YY]: "wise_invoicing.settings.fields.sequence_date_format.options.yy",
|
|
64
|
+
[r.YYMM]: "wise_invoicing.settings.fields.sequence_date_format.options.yymm",
|
|
65
|
+
[r.YYYY]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyy",
|
|
66
|
+
[r.YYYYMM]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyymm",
|
|
67
|
+
[r.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
|
+
[n.HYPHEN]: "wise_invoicing.settings.fields.sequence_separator.options.hyphen",
|
|
70
|
+
[n.NONE]: "wise_invoicing.settings.fields.sequence_separator.options.none",
|
|
71
|
+
[n.PERIOD]: "wise_invoicing.settings.fields.sequence_separator.options.period",
|
|
72
|
+
[n.SLASH]: "wise_invoicing.settings.fields.sequence_separator.options.slash",
|
|
73
|
+
[n.UNDERSCORE]: "wise_invoicing.settings.fields.sequence_separator.options.underscore"
|
|
74
|
+
}, u = v(() => f.hasSeparatorPlacementChoice(t.editedFormat));
|
|
75
|
+
return (e, n) => (D(), x(_, null, [
|
|
76
|
+
C(k(q), T(k(l)(t.fields.prefix), {
|
|
77
|
+
label: t.prefixLabel,
|
|
78
|
+
placeholder: t.prefixPlaceholder
|
|
79
79
|
}), null, 16, ["label", "placeholder"]),
|
|
80
|
-
C(k(W), T(k(l)(
|
|
80
|
+
C(k(W), T(k(l)(t.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)(t.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)(t.fields.separatorAfterPrefix), { label: k(i).t("wise_invoicing.settings.fields.sequence_separator_after_prefix.label") }), null, 16, ["label"]), C(k(I), T(k(l)(t.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)(t.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 n = e, r = g(), a = le(), s = o(), c = de(), u = v(() => J(Object.values(i))), d = ue({
|
|
323
|
+
initialState: v(() => ee.toForm(n.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: r.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", () => n.issuerSettings.invoiceSequenceFormat), z = ge(d, "creditNoteSequenceFormat", () => n.issuerSettings.creditNoteSequenceFormat), K = v(() => L.modelValue.value), Y = v(() => K.value !== n.issuerSettings.shareCreditNoteSequence), pe = v(() => n.issuerSettings.shareCreditNoteSequence ? n.issuerSettings.invoiceSequenceFormat : n.issuerSettings.creditNoteSequenceFormat), Z = v(() => f.canRestartYearly(R.editedFormat.value, z.editedFormat.value, K.value)), Q = v(() => Z.value && F.modelValue.value), $ = v(() => Q.value !== (n.issuerSettings.sequenceReset === t.YEARLY));
|
|
333
333
|
function Ce(e) {
|
|
334
334
|
return `${e} (${s.getSymbol(e).symbol})`;
|
|
335
335
|
}
|
|
336
|
-
return (e,
|
|
336
|
+
return (e, t) => (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(r).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(r).t("wise_invoicing.settings.sections.issuer.title"),
|
|
350
|
+
description: k(r).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(r).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(r).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(r).t("wise_invoicing.settings.fields.phone_number.label") }), null, 16, ["label"]),
|
|
364
|
+
C(k(q), T(k(l)(k(w)), { label: k(r).t("wise_invoicing.settings.fields.website.label") }), null, 16, ["label"]),
|
|
365
|
+
C(k(ie), T({ "is-required": !0 }, k(l)(k(E)), { label: k(r).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(r).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(r).t("wise_invoicing.settings.fields.bank_account_number.label") }), null, 16, ["label"]),
|
|
371
|
+
C(k(q), T(k(l)(k(M)), { label: k(r).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(r).t("wise_invoicing.settings.sections.payment.title"),
|
|
382
|
+
description: k(r).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(r).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(r).t("wise_invoicing.settings.fields.default_payment_term.label"),
|
|
395
|
+
placeholder: k(r).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(r).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(r).t("wise_invoicing.settings.sections.numbering.title"),
|
|
409
|
+
description: k(r).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(r).t("wise_invoicing.settings.fields.sequence_prefix.label"),
|
|
421
|
+
"prefix-placeholder": k(r).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(r).t("wise_invoicing.settings.fields.restarts_numbering_yearly.label"),
|
|
436
|
+
hint: k(r).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": n.issuerSettings.isSequenceFormatChangeImmediate,
|
|
444
444
|
"is-restarting-yearly": Q.value,
|
|
445
|
-
"saved-format":
|
|
445
|
+
"saved-format": n.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(r).t("wise_invoicing.settings.sections.credit_note_numbering.title"),
|
|
464
|
+
description: k(r).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(r).t("wise_invoicing.settings.fields.share_credit_note_sequence.label"),
|
|
473
|
+
hint: k(r).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 && !n.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(r).t("wise_invoicing.settings.fields.credit_note_sequence_prefix.label"),
|
|
482
|
+
"prefix-placeholder": k(r).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": n.issuerSettings.isCreditNoteSequenceChangeImmediate,
|
|
492
492
|
"is-restarting-yearly": Q.value,
|
|
493
493
|
"saved-format": pe.value,
|
|
494
494
|
"document-type": "credit_note"
|
|
@@ -1,6 +1,6 @@
|
|
|
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-DSerLsgA.js";
|
|
2
|
+
import { D as e, t } from "./documentTitle.composable-D5uPh3uG.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "./deliveryReason.util-BlxvUaz0.js";
|
|
4
4
|
import { t as o } from "./formango.util-D5c2ql--.js";
|
|
5
5
|
import { t as s } from "./DataProvider-BtnD-BzI.js";
|
|
6
6
|
import c from "zod";
|