@wisemen/wise-invoicing-web 0.11.2 → 0.11.3
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-D0kpogSQ.js → ApprovalReminderSettingsViewDataProvider-BOzuwgOd.js} +2 -6
- package/dist/{BillingDocumentDetailViewDataProvider-D_oc3-0D.js → BillingDocumentDetailViewDataProvider-a3kGQ6K1.js} +75 -167
- package/dist/{BillingDocumentPdf-wlv-k8KE.js → BillingDocumentPdf-DrOZdixo.js} +12 -18
- package/dist/{CreditNoteDetailViewDataProvider-DoFm2xgo.js → CreditNoteDetailViewDataProvider-9CTOmMw8.js} +6 -26
- package/dist/{CreditNotePdfViewDataProvider-QpzNsVsK.js → CreditNotePdfViewDataProvider-DX_y_ZIS.js} +2 -2
- package/dist/{DataProvider-C3uEds9v.js → DataProvider-BtnD-BzI.js} +1 -1
- package/dist/{DunningCaseSendDialog-Bol8NF1J.js → DunningCaseSendDialog-BFGLaor0.js} +3 -11
- package/dist/{InvoiceApprovalOutOfSyncIndicator-C4ZLDRiv.js → InvoiceApprovalOutOfSyncIndicator-Pc40MY4q.js} +1 -1
- package/dist/{InvoiceApprovalOverviewView-BAmEOum7.js → InvoiceApprovalOverviewView-wBqCXtEF.js} +5 -13
- package/dist/{InvoiceApproveDialogDataProvider-S81Mc5oS.js → InvoiceApproveDialogDataProvider-DUeMi7qI.js} +10 -26
- package/dist/{InvoiceDetailViewDataProvider-Dqu6qlky.js → InvoiceDetailViewDataProvider-Dy4AN8tQ.js} +40 -114
- package/dist/{InvoicePdfView-D0G-Pik3.js → InvoicePdfView-B-DBwFx-.js} +1 -1
- package/dist/{InvoicePdfViewDataProvider-DXXbPe-Z.js → InvoicePdfViewDataProvider-aRN8o_EF.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CdGFZD-G.js → InvoicePublicProFormaPdfViewDataProvider-CGddJNyW.js} +3 -3
- package/dist/{IssuerSettingsViewDataProvider-Ca7GPCDE.js → IssuerSettingsViewDataProvider-BlKorJfv.js} +2 -6
- package/dist/{PeppolSettingsViewDataProvider-ZdJQGqux.js → PeppolSettingsViewDataProvider-CH0iMxBL.js} +4 -18
- package/dist/{dist-DALBiuub.js → dist-BZgvL8_m.js} +19 -30
- package/dist/index.js +4496 -227
- package/dist/{invoice.service-jakQLnDu.js → invoice.service-CXCNJz0L.js} +1 -1
- package/dist/{invoiceCustomer.service-Bp59E0ZJ.js → invoiceCustomer.service-CknXiBt9.js} +1 -1
- package/dist/{invoiceDetail.query-BBhA0ZAn.js → invoiceDetail.query-Cp9AnTrw.js} +1 -1
- package/dist/{invoiceIndexCache.util-Ba2MGULh.js → invoiceIndexCache.util-By0N8jal.js} +1 -5
- package/dist/{src-DUSgQTKr.js → src-Vz2dm4sM.js} +1 -3
- package/package.json +2 -2
- package/dist/DunningCaseDetailViewDataProvider-uRJFWZtQ.js +0 -439
- package/dist/DunningCaseOverviewView-DpQoXamE.js +0 -799
- package/dist/DunningCaseReminderPdfViewDataProvider-D-CfDeC8.js +0 -490
- package/dist/InvoiceOverviewViewDataProvider-WKzgF7cl.js +0 -1929
- package/dist/InvoicePublicPdfViewDataProvider-ndVoAAY3.js +0 -45
- package/dist/ReminderSettingsViewDataProvider-DTC0Ud5z.js +0 -709
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- /package/dist/{DunningCaseReminderPdfViewDataProvider.css → index.css} +0 -0
package/dist/{InvoiceApprovalOverviewView-BAmEOum7.js → InvoiceApprovalOverviewView-wBqCXtEF.js}
RENAMED
|
@@ -4,11 +4,11 @@ import { r as i } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
|
4
4
|
import { t as a } from "./search.composable-CU9OpyUB.js";
|
|
5
5
|
import { Ct as o, G as s, H as c, Q as l, R as u, S as d, Tt as f, W as p, Y as m, et as h, ft as g, i as _, l as ee } from "./dist-BMzyJZTx.js";
|
|
6
6
|
import { n as v } from "./dist-Cdbpkd3Y.js";
|
|
7
|
-
import { f as y, i as b, n as te, o as ne, r as x, s as re } from "./dist-
|
|
7
|
+
import { f as y, i as b, n as te, o as ne, r as x, s as re } from "./dist-BZgvL8_m.js";
|
|
8
8
|
import { t as S } from "./invoiceApprovalStatus.util-Nd4E3qlZ.js";
|
|
9
|
-
import { n as ie, t as ae } from "./InvoiceApprovalOutOfSyncIndicator-
|
|
9
|
+
import { n as ie, t as ae } from "./InvoiceApprovalOutOfSyncIndicator-Pc40MY4q.js";
|
|
10
10
|
import { t as C } from "./InvoiceApprovalStatusBadge-C2Wj9b_Z.js";
|
|
11
|
-
import { i as w, n as T, r as E, t as D } from "./InvoiceApproveDialogDataProvider-
|
|
11
|
+
import { i as w, n as T, r as E, t as D } from "./InvoiceApproveDialogDataProvider-DUeMi7qI.js";
|
|
12
12
|
import { t as O } from "./invoiceApproval.service-DR9g1Dek.js";
|
|
13
13
|
import { useI18n as k } from "vue-i18n";
|
|
14
14
|
import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createVNode as I, defineComponent as L, isRef as oe, nextTick as R, normalizeClass as z, normalizeStyle as se, openBlock as B, ref as ce, renderList as V, resolveDynamicComponent as le, unref as H, withCtx as U } from "vue";
|
|
@@ -72,11 +72,7 @@ function Oe() {
|
|
|
72
72
|
invoiceUuid: i.invoiceUuid,
|
|
73
73
|
hasActiveApproval: !0
|
|
74
74
|
} });
|
|
75
|
-
|
|
76
|
-
t.apiError(a.error);
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
t.show({ message: e.t("wise_invoicing.invoice_approval.overview.send_request_success", { reference: i.invoiceSubject ?? e.t("wise_invoicing.invoice.detail.fallback_title") }) });
|
|
75
|
+
a.isErr() ? t.apiError(a.error) : t.show({ message: e.t("wise_invoicing.invoice_approval.overview.send_request_success", { reference: i.invoiceSubject ?? e.t("wise_invoicing.invoice.detail.fallback_title") }) });
|
|
80
76
|
},
|
|
81
77
|
icon: () => f
|
|
82
78
|
});
|
|
@@ -122,11 +118,7 @@ var ke = { class: "grid min-w-0 grid-cols-1 gap-xl lg:grid-cols-2" }, Ae = { cla
|
|
|
122
118
|
label: i.t("wise_invoicing.invoice_approval.overview.tabs.out_of_sync")
|
|
123
119
|
}]);
|
|
124
120
|
function c(e) {
|
|
125
|
-
|
|
126
|
-
r("showRejected");
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
r("showOutOfSync");
|
|
121
|
+
r(e === "rejected" ? "showRejected" : "showOutOfSync");
|
|
130
122
|
}
|
|
131
123
|
return (e, t) => (B(), P("div", ke, [I(H(K), {
|
|
132
124
|
"aria-label": H(i).t("wise_invoicing.invoice_approval.overview.metrics.reminders"),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./i18n.lib-BkdaaKCs.js";
|
|
2
2
|
import "./api.util-B3JqQVJA.js";
|
|
3
3
|
import { g as t } from "./documentTitle.composable-RvqrZTBa.js";
|
|
4
|
-
import { t as n } from "./invoice.service-
|
|
4
|
+
import { t as n } from "./invoice.service-CXCNJz0L.js";
|
|
5
5
|
import { G as r, ft as i, xt as a } from "./dist-BMzyJZTx.js";
|
|
6
|
-
import { t as o } from "./DataProvider-
|
|
6
|
+
import { t as o } from "./DataProvider-BtnD-BzI.js";
|
|
7
7
|
import { t as s } from "./formango.util-D5c2ql--.js";
|
|
8
8
|
import { t as c } from "./invoiceApprovalStatus.util-Nd4E3qlZ.js";
|
|
9
9
|
import { t as l } from "./issuerSettings.query-BOgWdNmP.js";
|
|
@@ -44,11 +44,7 @@ var z = /* @__PURE__ */ v({
|
|
|
44
44
|
approvalUuid: n.approvalUuid,
|
|
45
45
|
invoiceUuid: n.invoiceUuid
|
|
46
46
|
} });
|
|
47
|
-
|
|
48
|
-
o.apiError(e.error);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
o.show({ message: a.t("wise_invoicing.invoice.approval_archive.success") }), i("close");
|
|
47
|
+
e.isErr() ? o.apiError(e.error) : (o.show({ message: a.t("wise_invoicing.invoice.approval_archive.success") }), i("close"));
|
|
52
48
|
},
|
|
53
49
|
onSubmitError: () => {
|
|
54
50
|
o.unableToSave();
|
|
@@ -94,15 +90,11 @@ var V = p.object({
|
|
|
94
90
|
reason: p.enum(t).nullable(),
|
|
95
91
|
remarks: p.string().trim().max(500).nullable()
|
|
96
92
|
}).superRefine((n, r) => {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
});
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
n.reason === t.OTHER && (n.remarks ?? "") === "" && r.addIssue({
|
|
93
|
+
n.reason === null ? r.addIssue({
|
|
94
|
+
code: "custom",
|
|
95
|
+
message: e.global.t("wise_invoicing.invoice.approval.validation.required"),
|
|
96
|
+
path: ["reason"]
|
|
97
|
+
}) : n.reason === t.OTHER && (n.remarks ?? "") === "" && r.addIssue({
|
|
106
98
|
code: "custom",
|
|
107
99
|
message: e.global.t("wise_invoicing.invoice.approval.validation.required"),
|
|
108
100
|
path: ["remarks"]
|
|
@@ -130,11 +122,7 @@ var V = p.object({
|
|
|
130
122
|
invoiceUuid: r.invoiceUuid
|
|
131
123
|
}
|
|
132
124
|
});
|
|
133
|
-
|
|
134
|
-
l.apiError(t.error);
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
l.show({ message: o.t("wise_invoicing.invoice.reject.success") }), a("close");
|
|
125
|
+
t.isErr() ? l.apiError(t.error) : (l.show({ message: o.t("wise_invoicing.invoice.reject.success") }), a("close"));
|
|
138
126
|
},
|
|
139
127
|
onSubmitError: () => {
|
|
140
128
|
l.unableToSave();
|
|
@@ -284,11 +272,7 @@ var J = 26214400, Y = /* @__PURE__ */ v({
|
|
|
284
272
|
invoiceUuid: n.invoiceUuid
|
|
285
273
|
}
|
|
286
274
|
});
|
|
287
|
-
|
|
288
|
-
c.apiError(t.error);
|
|
289
|
-
return;
|
|
290
|
-
}
|
|
291
|
-
c.show({ message: o.t("wise_invoicing.invoice.approve.success") }), r("close");
|
|
275
|
+
t.isErr() ? c.apiError(t.error) : (c.show({ message: o.t("wise_invoicing.invoice.approve.success") }), r("close"));
|
|
292
276
|
},
|
|
293
277
|
onSubmitError: () => {
|
|
294
278
|
c.unableToSave();
|
package/dist/{InvoiceDetailViewDataProvider-Dqu6qlky.js → InvoiceDetailViewDataProvider-Dy4AN8tQ.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { C as r, _ as i, a, b as o, c as s, f as c, l, r as u, v as d, y as f }
|
|
|
4
4
|
import { r as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
5
|
import { n as h } from "./invoicingConfig.composable-k8p1Y_eJ.js";
|
|
6
6
|
import { t as g } from "./search.composable-CU9OpyUB.js";
|
|
7
|
-
import { a as _, i as ee, n as v, o as te, t as y } from "./invoice.service-
|
|
7
|
+
import { a as _, i as ee, n as v, o as te, t as y } from "./invoice.service-CXCNJz0L.js";
|
|
8
8
|
import { n as ne } from "./address.transformer-jGddczLV.js";
|
|
9
9
|
import { a as re, i as ie, n as b, r as ae, t as oe } from "./CustomFieldValueText-DZzqLZ0K.js";
|
|
10
10
|
import { n as se, t as ce } from "./download.util-LyRpGWKA.js";
|
|
@@ -12,14 +12,14 @@ import { $ as le, A as ue, G as de, I as fe, L as pe, S as me, T as he, Tt as x,
|
|
|
12
12
|
import { n as T, t as E } from "./dist-Cdbpkd3Y.js";
|
|
13
13
|
import { t as D } from "./formango.util-D5c2ql--.js";
|
|
14
14
|
import { t as ke } from "./invoiceApprovalStatus.util-Nd4E3qlZ.js";
|
|
15
|
-
import { t as Ae } from "./invoiceCustomer.service-
|
|
16
|
-
import { a as je, i as Me, n as Ne, r as Pe, t as Fe } from "./invoiceIndexCache.util-
|
|
15
|
+
import { t as Ae } from "./invoiceCustomer.service-CknXiBt9.js";
|
|
16
|
+
import { a as je, i as Me, n as Ne, r as Pe, t as Fe } from "./invoiceIndexCache.util-By0N8jal.js";
|
|
17
17
|
import { n as Ie, t as Le } from "./InvoiceApprovalStatusBadge-C2Wj9b_Z.js";
|
|
18
18
|
import { t as Re } from "./issuerSettings.query-BOgWdNmP.js";
|
|
19
|
-
import { C as ze, S as Be, _ as Ve, a as He, b as Ue, c as We, d as Ge, f as Ke, g as qe, h as Je, i as Ye, l as Xe, m as Ze, n as Qe, o as $e, p as et, r as tt, s as nt, t as rt, u as it, v as at, x as ot, y as st } from "./BillingDocumentDetailViewDataProvider-
|
|
19
|
+
import { C as ze, S as Be, _ as Ve, a as He, b as Ue, c as We, d as Ge, f as Ke, g as qe, h as Je, i as Ye, l as Xe, m as Ze, n as Qe, o as $e, p as et, r as tt, s as nt, t as rt, u as it, v as at, x as ot, y as st } from "./BillingDocumentDetailViewDataProvider-a3kGQ6K1.js";
|
|
20
20
|
import { r as ct } from "./InvoicingFileUploadProvider-BsK5eRGE.js";
|
|
21
|
-
import { i as lt, n as ut, r as dt, t as ft } from "./InvoiceApproveDialogDataProvider-
|
|
22
|
-
import { t as pt } from "./invoiceDetail.query-
|
|
21
|
+
import { i as lt, n as ut, r as dt, t as ft } from "./InvoiceApproveDialogDataProvider-DUeMi7qI.js";
|
|
22
|
+
import { t as pt } from "./invoiceDetail.query-Cp9AnTrw.js";
|
|
23
23
|
import mt, { z as O } from "zod";
|
|
24
24
|
import { useI18n as k } from "vue-i18n";
|
|
25
25
|
import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createSlots as ht, createTextVNode as gt, createVNode as I, defineComponent as L, mergeModels as _t, mergeProps as R, normalizeClass as vt, openBlock as z, ref as yt, renderList as bt, resolveDynamicComponent as xt, toDisplayString as B, unref as V, useModel as St, watch as Ct, withCtx as H } from "vue";
|
|
@@ -600,11 +600,7 @@ var Fn = /* @__PURE__ */ L({
|
|
|
600
600
|
body: e,
|
|
601
601
|
params: { invoiceUuid: n.invoice.uuid }
|
|
602
602
|
});
|
|
603
|
-
|
|
604
|
-
a.apiError(t.error);
|
|
605
|
-
return;
|
|
606
|
-
}
|
|
607
|
-
r("close");
|
|
603
|
+
t.isErr() ? a.apiError(t.error) : r("close");
|
|
608
604
|
},
|
|
609
605
|
onSubmitError: () => {
|
|
610
606
|
a.unableToSave();
|
|
@@ -1045,11 +1041,7 @@ var Gn = O.object({
|
|
|
1045
1041
|
body: e,
|
|
1046
1042
|
params: { invoiceUuid: n.invoice.uuid }
|
|
1047
1043
|
});
|
|
1048
|
-
|
|
1049
|
-
a.apiError(t.error);
|
|
1050
|
-
return;
|
|
1051
|
-
}
|
|
1052
|
-
a.show({ message: i.t("wise_invoicing.invoice.detail.payments.create.success", { amount: o.format(e.currency, e.amount) }) }), r("close");
|
|
1044
|
+
t.isErr() ? a.apiError(t.error) : (a.show({ message: i.t("wise_invoicing.invoice.detail.payments.create.success", { amount: o.format(e.currency, e.amount) }) }), r("close"));
|
|
1053
1045
|
},
|
|
1054
1046
|
onSubmitError: () => {
|
|
1055
1047
|
a.unableToSave();
|
|
@@ -1142,11 +1134,7 @@ var Yn = /* @__PURE__ */ L({
|
|
|
1142
1134
|
invoiceUuid: n.invoiceUuid,
|
|
1143
1135
|
paymentUuid: n.payment.uuid
|
|
1144
1136
|
} });
|
|
1145
|
-
|
|
1146
|
-
a.apiError(e.error);
|
|
1147
|
-
return;
|
|
1148
|
-
}
|
|
1149
|
-
a.show({ message: i.t("wise_invoicing.invoice.detail.payments.delete.success", { amount: c.value }) }), r("close");
|
|
1137
|
+
e.isErr() ? a.apiError(e.error) : (a.show({ message: i.t("wise_invoicing.invoice.detail.payments.delete.success", { amount: c.value }) }), r("close"));
|
|
1150
1138
|
}
|
|
1151
1139
|
});
|
|
1152
1140
|
return (e, t) => (z(), M(V(X), {
|
|
@@ -1284,11 +1272,7 @@ var $n = O.object({
|
|
|
1284
1272
|
body: e,
|
|
1285
1273
|
params: { invoiceUuid: n.invoice.uuid }
|
|
1286
1274
|
});
|
|
1287
|
-
|
|
1288
|
-
a.apiError(t.error);
|
|
1289
|
-
return;
|
|
1290
|
-
}
|
|
1291
|
-
r("close");
|
|
1275
|
+
t.isErr() ? a.apiError(t.error) : r("close");
|
|
1292
1276
|
},
|
|
1293
1277
|
onSubmitError: () => {
|
|
1294
1278
|
a.unableToSave();
|
|
@@ -1544,11 +1528,7 @@ var hr = /* @__PURE__ */ L({
|
|
|
1544
1528
|
schema: O.object({}),
|
|
1545
1529
|
onSubmit: async () => {
|
|
1546
1530
|
let e = await s.execute({ params: { invoiceUuid: n.invoiceUuid } });
|
|
1547
|
-
|
|
1548
|
-
a.apiError(e.error);
|
|
1549
|
-
return;
|
|
1550
|
-
}
|
|
1551
|
-
a.show({ message: i.t("wise_invoicing.invoice.approval_revert.success") }), r("reverted"), r("close");
|
|
1531
|
+
e.isErr() ? a.apiError(e.error) : (a.show({ message: i.t("wise_invoicing.invoice.approval_revert.success") }), r("reverted"), r("close"));
|
|
1552
1532
|
},
|
|
1553
1533
|
onSubmitError: () => {
|
|
1554
1534
|
a.unableToSave();
|
|
@@ -1595,11 +1575,7 @@ var _r = /* @__PURE__ */ L({
|
|
|
1595
1575
|
schema: mt.object({}),
|
|
1596
1576
|
onSubmit: async () => {
|
|
1597
1577
|
let e = await s.execute({ params: { invoiceUuid: n.invoice.uuid } });
|
|
1598
|
-
|
|
1599
|
-
o.apiError(e.error);
|
|
1600
|
-
return;
|
|
1601
|
-
}
|
|
1602
|
-
o.show({ message: i.t("wise_invoicing.invoice.delete.success_toast") }), r("deleted"), r("close"), await a.push({ name: "invoicing-invoice-overview" });
|
|
1578
|
+
e.isErr() ? o.apiError(e.error) : (o.show({ message: i.t("wise_invoicing.invoice.delete.success_toast") }), r("deleted"), r("close"), await a.push({ name: "invoicing-invoice-overview" }));
|
|
1603
1579
|
}
|
|
1604
1580
|
});
|
|
1605
1581
|
return (e, t) => (z(), M(V(X), {
|
|
@@ -1775,28 +1751,18 @@ function Cr(e) {
|
|
|
1775
1751
|
return;
|
|
1776
1752
|
}
|
|
1777
1753
|
n.apiError(r.error);
|
|
1778
|
-
|
|
1779
|
-
}
|
|
1780
|
-
n.show({ message: t.t("wise_invoicing.invoice.send_approval.success", {
|
|
1754
|
+
} else n.show({ message: t.t("wise_invoicing.invoice.send_approval.success", {
|
|
1781
1755
|
email: e.value.approvalEmail ?? "",
|
|
1782
1756
|
reference: e.value.sequence ?? e.value.subject ?? t.t("wise_invoicing.invoice.detail.fallback_title")
|
|
1783
1757
|
}) });
|
|
1784
1758
|
}
|
|
1785
1759
|
async function Ke() {
|
|
1786
1760
|
let r = await oe.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1787
|
-
|
|
1788
|
-
n.apiError(r.error);
|
|
1789
|
-
return;
|
|
1790
|
-
}
|
|
1791
|
-
n.show({ message: t.t("wise_invoicing.invoice.mark_as_needs_approval.success") });
|
|
1761
|
+
r.isErr() ? n.apiError(r.error) : n.show({ message: t.t("wise_invoicing.invoice.mark_as_needs_approval.success") });
|
|
1792
1762
|
}
|
|
1793
1763
|
async function qe() {
|
|
1794
1764
|
let r = await fe.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1795
|
-
|
|
1796
|
-
n.apiError(r.error);
|
|
1797
|
-
return;
|
|
1798
|
-
}
|
|
1799
|
-
n.show({ message: t.t("wise_invoicing.invoice.unmark_as_needs_approval.success") });
|
|
1765
|
+
r.isErr() ? n.apiError(r.error) : n.show({ message: t.t("wise_invoicing.invoice.unmark_as_needs_approval.success") });
|
|
1800
1766
|
}
|
|
1801
1767
|
Ct(() => e.value.isDisputed, (e) => {
|
|
1802
1768
|
S.value === e && (S.value = null);
|
|
@@ -1806,85 +1772,53 @@ function Cr(e) {
|
|
|
1806
1772
|
return r.isErr() ? (n.apiError(r.error), !1) : (n.show({ message: t.t("wise_invoicing.invoice.finalize.success") }), !0);
|
|
1807
1773
|
}
|
|
1808
1774
|
async function Ye() {
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1775
|
+
Le.value ? await _.open({
|
|
1776
|
+
sentAt: e.value.approval?.sentAt ?? null,
|
|
1777
|
+
proFormaFile: e.value.approvalProFormaFile,
|
|
1778
|
+
onFinalizeAnyway: () => {
|
|
1779
|
+
Je();
|
|
1780
|
+
},
|
|
1781
|
+
onRevertChanges: () => {
|
|
1782
|
+
Be({ onReverted: () => {
|
|
1814
1783
|
Je();
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
onViewProForma: () => {
|
|
1825
|
-
Ve();
|
|
1826
|
-
}
|
|
1827
|
-
});
|
|
1828
|
-
return;
|
|
1829
|
-
}
|
|
1830
|
-
if (Ce.value) {
|
|
1831
|
-
await Je();
|
|
1832
|
-
return;
|
|
1833
|
-
}
|
|
1834
|
-
await ee.open({
|
|
1784
|
+
} });
|
|
1785
|
+
},
|
|
1786
|
+
onSendNewRequest: () => {
|
|
1787
|
+
Ge();
|
|
1788
|
+
},
|
|
1789
|
+
onViewProForma: () => {
|
|
1790
|
+
Ve();
|
|
1791
|
+
}
|
|
1792
|
+
}) : Ce.value ? await Je() : await ee.open({
|
|
1835
1793
|
billingDocumentType: "invoice",
|
|
1836
1794
|
onConfirm: Je
|
|
1837
1795
|
});
|
|
1838
1796
|
}
|
|
1839
1797
|
async function Xe() {
|
|
1840
1798
|
let r = await le.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1841
|
-
|
|
1842
|
-
n.apiError(r.error);
|
|
1843
|
-
return;
|
|
1844
|
-
}
|
|
1845
|
-
n.show({ message: t.t("wise_invoicing.invoice.mark_as_ready.success") });
|
|
1799
|
+
r.isErr() ? n.apiError(r.error) : n.show({ message: t.t("wise_invoicing.invoice.mark_as_ready.success") });
|
|
1846
1800
|
}
|
|
1847
1801
|
async function Ze() {
|
|
1848
1802
|
let r = await ie.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1849
|
-
|
|
1850
|
-
n.apiError(r.error);
|
|
1851
|
-
return;
|
|
1852
|
-
}
|
|
1853
|
-
n.show({ message: t.t("wise_invoicing.invoice.mark_as_draft.success") });
|
|
1803
|
+
r.isErr() ? n.apiError(r.error) : n.show({ message: t.t("wise_invoicing.invoice.mark_as_draft.success") });
|
|
1854
1804
|
}
|
|
1855
1805
|
async function Qe() {
|
|
1856
1806
|
let r = await ae.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1857
|
-
|
|
1858
|
-
n.apiError(r.error);
|
|
1859
|
-
return;
|
|
1860
|
-
}
|
|
1861
|
-
n.show({ message: t.t("wise_invoicing.invoice.mark_as_paid.success") });
|
|
1807
|
+
r.isErr() ? n.apiError(r.error) : n.show({ message: t.t("wise_invoicing.invoice.mark_as_paid.success") });
|
|
1862
1808
|
}
|
|
1863
1809
|
async function $e() {
|
|
1864
1810
|
S.value = !0;
|
|
1865
1811
|
let r = await se.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1866
|
-
|
|
1867
|
-
S.value = null, n.apiError(r.error);
|
|
1868
|
-
return;
|
|
1869
|
-
}
|
|
1870
|
-
n.show({ message: t.t("wise_invoicing.invoice.mark_as_disputed.success") });
|
|
1812
|
+
r.isErr() ? (S.value = null, n.apiError(r.error)) : n.show({ message: t.t("wise_invoicing.invoice.mark_as_disputed.success") });
|
|
1871
1813
|
}
|
|
1872
1814
|
async function et() {
|
|
1873
1815
|
S.value = !1;
|
|
1874
1816
|
let r = await xe.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1875
|
-
|
|
1876
|
-
S.value = null, n.apiError(r.error);
|
|
1877
|
-
return;
|
|
1878
|
-
}
|
|
1879
|
-
n.show({ message: t.t("wise_invoicing.invoice.withdraw_dispute.success") });
|
|
1817
|
+
r.isErr() ? (S.value = null, n.apiError(r.error)) : n.show({ message: t.t("wise_invoicing.invoice.withdraw_dispute.success") });
|
|
1880
1818
|
}
|
|
1881
1819
|
async function tt() {
|
|
1882
1820
|
let r = await v.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1883
|
-
|
|
1884
|
-
n.apiError(r.error);
|
|
1885
|
-
return;
|
|
1886
|
-
}
|
|
1887
|
-
Fe.reflectBulkAction([e.value.uuid], { deliveryStatus: d.SENT }), n.show({ message: t.t("wise_invoicing.invoice.send.success") });
|
|
1821
|
+
r.isErr() ? n.apiError(r.error) : (Fe.reflectBulkAction([e.value.uuid], { deliveryStatus: d.SENT }), n.show({ message: t.t("wise_invoicing.invoice.send.success") }));
|
|
1888
1822
|
}
|
|
1889
1823
|
async function nt() {
|
|
1890
1824
|
await l.open({ invoice: e.value });
|
|
@@ -1905,11 +1839,7 @@ function Cr(e) {
|
|
|
1905
1839
|
}
|
|
1906
1840
|
async function it() {
|
|
1907
1841
|
let i = await ne.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1908
|
-
|
|
1909
|
-
n.apiError(i.error);
|
|
1910
|
-
return;
|
|
1911
|
-
}
|
|
1912
|
-
n.show({
|
|
1842
|
+
i.isErr() ? n.apiError(i.error) : n.show({
|
|
1913
1843
|
button: {
|
|
1914
1844
|
label: t.t("wise_invoicing.invoice.duplicate.view_action"),
|
|
1915
1845
|
onClick: () => {
|
|
@@ -1924,11 +1854,7 @@ function Cr(e) {
|
|
|
1924
1854
|
}
|
|
1925
1855
|
async function at() {
|
|
1926
1856
|
let i = await te.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1927
|
-
|
|
1928
|
-
n.apiError(i.error);
|
|
1929
|
-
return;
|
|
1930
|
-
}
|
|
1931
|
-
n.show({
|
|
1857
|
+
i.isErr() ? n.apiError(i.error) : n.show({
|
|
1932
1858
|
button: {
|
|
1933
1859
|
label: t.t("wise_invoicing.credit_note.create.view_action"),
|
|
1934
1860
|
onClick: () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./documentTitle.composable-RvqrZTBa.js";
|
|
2
|
-
import { t } from "./BillingDocumentPdf-
|
|
2
|
+
import { t } from "./BillingDocumentPdf-DrOZdixo.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
|
package/dist/{InvoicePdfViewDataProvider-DXXbPe-Z.js → InvoicePdfViewDataProvider-aRN8o_EF.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./invoicingConfig.composable-k8p1Y_eJ.js";
|
|
2
|
-
import { t } from "./DataProvider-
|
|
3
|
-
import { t as n } from "./InvoicePdfView-
|
|
4
|
-
import { t as r } from "./invoiceDetail.query-
|
|
2
|
+
import { t } from "./DataProvider-BtnD-BzI.js";
|
|
3
|
+
import { t as n } from "./InvoicePdfView-B-DBwFx-.js";
|
|
4
|
+
import { t as r } from "./invoiceDetail.query-Cp9AnTrw.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, openBlock as u, resolveDynamicComponent as d, unref as f, withCtx as p } from "vue";
|
|
7
7
|
import { UIText as m } from "@wisemen/vue-core-design-system";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./invoicingConfig.composable-k8p1Y_eJ.js";
|
|
2
|
-
import { t } from "./invoice.service-
|
|
3
|
-
import { t as n } from "./DataProvider-
|
|
4
|
-
import { t as r } from "./InvoicePdfView-
|
|
2
|
+
import { t } from "./invoice.service-CXCNJz0L.js";
|
|
3
|
+
import { t as n } from "./DataProvider-BtnD-BzI.js";
|
|
4
|
+
import { t as r } from "./InvoicePdfView-B-DBwFx-.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";
|
|
@@ -2,7 +2,7 @@ import "./api.util-B3JqQVJA.js";
|
|
|
2
2
|
import { c as e, t } from "./documentTitle.composable-RvqrZTBa.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { t as r } from "./addressForm.model-C853zEtX.js";
|
|
5
|
-
import { t as i } from "./DataProvider-
|
|
5
|
+
import { t as i } from "./DataProvider-BtnD-BzI.js";
|
|
6
6
|
import { t as a } from "./formango.util-D5c2ql--.js";
|
|
7
7
|
import { n as o, r as s, t as c } from "./issuerSettings.query-BOgWdNmP.js";
|
|
8
8
|
import { t as l } from "./dashboard-BaWGNEek.js";
|
|
@@ -43,11 +43,7 @@ var W = u.object({
|
|
|
43
43
|
schema: W,
|
|
44
44
|
onSubmit: async (e) => {
|
|
45
45
|
let t = await l.execute({ body: e });
|
|
46
|
-
|
|
47
|
-
o.apiError(t.error);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
o.show({ message: i.t("wise_invoicing.settings.saved") });
|
|
46
|
+
t.isErr() ? o.apiError(t.error) : o.show({ message: i.t("wise_invoicing.settings.saved") });
|
|
51
47
|
},
|
|
52
48
|
onSubmitError: () => {
|
|
53
49
|
o.unableToSave();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { R as e, ct as t, q as n, t as r } from "./api.util-B3JqQVJA.js";
|
|
2
2
|
import { t as i, w as a } from "./documentTitle.composable-RvqrZTBa.js";
|
|
3
|
-
import { t as o } from "./DataProvider-
|
|
3
|
+
import { t as o } from "./DataProvider-BtnD-BzI.js";
|
|
4
4
|
import { t as s } from "./formango.util-D5c2ql--.js";
|
|
5
5
|
import c from "zod";
|
|
6
6
|
import { useI18n as l } from "vue-i18n";
|
|
@@ -170,11 +170,7 @@ var B = /* @__PURE__ */ m({
|
|
|
170
170
|
schema: K,
|
|
171
171
|
onSubmit: async (e) => {
|
|
172
172
|
let t = await s.execute({ body: e });
|
|
173
|
-
|
|
174
|
-
W(t.error);
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
R(), h.value = null, r.show({ message: n.t("wise_invoicing.delivery.settings.saved") });
|
|
173
|
+
t.isErr() ? W(t.error) : (R(), h.value = null, r.show({ message: n.t("wise_invoicing.delivery.settings.saved") }));
|
|
178
174
|
},
|
|
179
175
|
onSubmitError: () => r.unableToSave()
|
|
180
176
|
}), x = b.register("provider", a.SOLUZ), S = b.register("apiKey", ""), w = b.register("partyId", ""), j = b.register("enabled", !1), M = u(() => JSON.stringify([x.modelValue.value, S.modelValue.value])), N = u(() => h.value === M.value);
|
|
@@ -183,11 +179,7 @@ var B = /* @__PURE__ */ m({
|
|
|
183
179
|
}
|
|
184
180
|
function W(e) {
|
|
185
181
|
let t = G.fromApiError(e);
|
|
186
|
-
|
|
187
|
-
r.apiError(e);
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
r.show({
|
|
182
|
+
t === null ? r.apiError(e) : r.show({
|
|
191
183
|
message: n.t(t),
|
|
192
184
|
variant: "error"
|
|
193
185
|
});
|
|
@@ -200,13 +192,7 @@ var B = /* @__PURE__ */ m({
|
|
|
200
192
|
enabled: j.modelValue.value,
|
|
201
193
|
provider: x.modelValue.value
|
|
202
194
|
});
|
|
203
|
-
|
|
204
|
-
if (t.isErr()) {
|
|
205
|
-
W(t.error);
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
c.value = t.value, t.value.some((e) => e.id === w.modelValue.value) || w.setValue(""), h.value = e, r.show({ message: n.t("wise_invoicing.delivery.settings.test_success") });
|
|
209
|
-
}
|
|
195
|
+
m.value = !1, e === M.value && (t.isErr() ? W(t.error) : (c.value = t.value, t.value.some((e) => e.id === w.modelValue.value) || w.setValue(""), h.value = e, r.show({ message: n.t("wise_invoicing.delivery.settings.test_success") })));
|
|
210
196
|
}
|
|
211
197
|
return (e, r) => (g(), d(v(T), {
|
|
212
198
|
title: v(n).t("wise_invoicing.delivery.settings.title"),
|
|
@@ -6,7 +6,7 @@ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p
|
|
|
6
6
|
import { UIActionDropdownMenu as se, UIActionFocus as ce, UIActionTooltip as le, UIActionTrigger as E, UIButton as ue, UIClickableElement as D, UIDatePicker as de, UIDateRangePicker as fe, UIDialog as pe, UIDialogBody as me, UIDialogFooter as he, UIDialogFooterCancel as ge, UIDialogFooterPrimary as _e, UIDialogFooterSecondary as ve, UIDialogFooterSubmit as ye, UIDialogHeader as be, UIDropdownMenu as xe, UIDropdownMenuGroup as Se, UIDropdownMenuRadioGroup as Ce, UIDropdownMenuRadioItem as we, UIFormDialog as Te, UIIconButton as Ee, UINumberField as De, UIRowLayout as Oe, UISeparator as ke, UIText as O, toFormField as Ae, useNumberFormat as je, useOverlay as Me } from "@wisemen/vue-core-design-system";
|
|
7
7
|
import { GroupPriority as Ne, createAction as k, useTemporaryActions as Pe } from "@wisemen/vue-core-actions";
|
|
8
8
|
import { useForm as Fe } from "formango";
|
|
9
|
-
//#region ../../../node_modules/.pnpm/@wisemen+vue-core-filters@10.0.
|
|
9
|
+
//#region ../../../node_modules/.pnpm/@wisemen+vue-core-filters@10.0.2_81b5642db040b68c7f64aa5c2b9d6d66/node_modules/@wisemen/vue-core-filters/dist/index.js
|
|
10
10
|
function Ie(e) {
|
|
11
11
|
let t = Symbol(e);
|
|
12
12
|
function n(e) {
|
|
@@ -489,15 +489,7 @@ var et = class {
|
|
|
489
489
|
}
|
|
490
490
|
if (t !== ".") throw Error("invalid path");
|
|
491
491
|
}
|
|
492
|
-
|
|
493
|
-
r += ".", i++;
|
|
494
|
-
continue;
|
|
495
|
-
}
|
|
496
|
-
if (a === ".") {
|
|
497
|
-
n.push(r), r = "";
|
|
498
|
-
continue;
|
|
499
|
-
}
|
|
500
|
-
r += a;
|
|
492
|
+
a === "\\" && e.charAt(i + 1) === "." ? (r += ".", i++) : a === "." ? (n.push(r), r = "") : r += a;
|
|
501
493
|
}
|
|
502
494
|
let i = r;
|
|
503
495
|
return n.push(i), n;
|
|
@@ -2004,16 +1996,15 @@ function Wn({ update: e, notify: t, unwatched: n }) {
|
|
|
2004
1996
|
continue;
|
|
2005
1997
|
}
|
|
2006
1998
|
}
|
|
2007
|
-
if ((e = n) !== void 0)
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
1999
|
+
if ((e = n) !== void 0) n = e.nextSub;
|
|
2000
|
+
else {
|
|
2001
|
+
for (; r !== void 0;) if (e = r.value, r = r.prev, e !== void 0) {
|
|
2002
|
+
n = e.nextSub;
|
|
2003
|
+
continue top;
|
|
2004
|
+
}
|
|
2005
|
+
break;
|
|
2014
2006
|
}
|
|
2015
|
-
|
|
2016
|
-
} while (!0);
|
|
2007
|
+
} while (1);
|
|
2017
2008
|
}
|
|
2018
2009
|
function o(t, n) {
|
|
2019
2010
|
let r, i = 0, a = !1;
|
|
@@ -2056,7 +2047,7 @@ function Wn({ update: e, notify: t, unwatched: n }) {
|
|
|
2056
2047
|
}
|
|
2057
2048
|
}
|
|
2058
2049
|
return a;
|
|
2059
|
-
} while (
|
|
2050
|
+
} while (1);
|
|
2060
2051
|
}
|
|
2061
2052
|
function s(e) {
|
|
2062
2053
|
do {
|
|
@@ -2313,10 +2304,12 @@ var lr = class e {
|
|
|
2313
2304
|
let r = this.#r.get(t);
|
|
2314
2305
|
if (r) for (let i of r) {
|
|
2315
2306
|
let r = this.registrations.state.get(i);
|
|
2316
|
-
if (r && Hn(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && Vn(e, t, r.target)))
|
|
2317
|
-
if (
|
|
2318
|
-
|
|
2319
|
-
|
|
2307
|
+
if (r && Hn(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && Vn(e, t, r.target))) {
|
|
2308
|
+
if (n === "keydown") {
|
|
2309
|
+
if (r.options.eventType !== "keydown") continue;
|
|
2310
|
+
In(e, r.parsedHotkey, r.options.platform) && (r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation(), (!r.options.requireReset || !r.hasFired) && (this.#c(r, e), r.options.requireReset && (r.hasFired = !0)));
|
|
2311
|
+
} else r.options.eventType === "keyup" && In(e, r.parsedHotkey, r.options.platform) && this.#c(r, e), r.options.requireReset && r.hasFired && this.#f(r, e) && (r.hasFired = !1);
|
|
2312
|
+
}
|
|
2320
2313
|
}
|
|
2321
2314
|
}
|
|
2322
2315
|
#c(e, t) {
|
|
@@ -2399,14 +2392,10 @@ function dr(e, t, n = {}) {
|
|
|
2399
2392
|
...p,
|
|
2400
2393
|
...r === void 0 ? {} : { enabled: r }
|
|
2401
2394
|
};
|
|
2402
|
-
|
|
2403
|
-
a.callback = t, a.setOptions(m);
|
|
2404
|
-
return;
|
|
2405
|
-
}
|
|
2406
|
-
a?.isActive && (a.unregister(), a = null), a = i.register(l, t, {
|
|
2395
|
+
a?.isActive && o === l && s === u ? (a.callback = t, a.setOptions(m)) : (a?.isActive && (a.unregister(), a = null), a = i.register(l, t, {
|
|
2407
2396
|
...m,
|
|
2408
2397
|
target: u
|
|
2409
|
-
}), a.isActive && (a.callback = t, a.setOptions(m)), o = l, s = u;
|
|
2398
|
+
}), a.isActive && (a.callback = t, a.setOptions(m)), o = l, s = u);
|
|
2410
2399
|
}, { immediate: !0 });
|
|
2411
2400
|
te(() => {
|
|
2412
2401
|
c(), a?.isActive && (a.unregister(), a = null);
|