@wisemen/wise-invoicing-web 0.19.0 → 1.0.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-DyrHExKn.js +962 -0
- package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1632 -1619
- package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Dp6HSypy.js} +10 -10
- package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
- package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-DM_LiO19.js} +237 -237
- package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
- package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-YbDJpTIA.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
- package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
- package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-Bo5PDjEy.js} +23 -23
- package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
- package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
- package/dist/{api.util-sW4gNny-.js → api.util-lGbimoKL.js} +814 -667
- package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +319 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +12 -7
- package/dist/client/types.gen.d.ts +396 -94
- package/dist/client/zod.gen.d.ts +3003 -401
- package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-CqJeWeRV.js} +25 -25
- package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-Co7hoMow.js} +75 -66
- package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-ny1rA7Sm.js} +6 -6
- package/dist/{dist-47-1LAzT.js → dist-CrNFh-CR.js} +59 -59
- package/dist/{dist-B33lNwLw.js → dist-DmVrfBOT.js} +149 -79
- package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-aTEYXgaZ.js} +37 -35
- package/dist/html.util-vG4ow95N.js +52 -0
- package/dist/{i18n.lib-DckceEsg.js → i18n.lib-B1H9r0km.js} +198 -26
- package/dist/index.d.ts +184 -12
- package/dist/index.js +1990 -1829
- package/dist/{invoice.service-v9uIoFgR.js → invoice.service-D9ubyWPb.js} +224 -181
- package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
- package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-Bqq_bILG.js} +29 -29
- package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
- package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
- package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
- package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-Cu-I6OAg.js} +30 -30
- package/dist/libs/i18n.lib.d.ts +184 -12
- package/dist/locales/en-US.json.d.ts +99 -13
- package/dist/locales/nl-BE.json.d.ts +99 -13
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -2
- package/dist/models/file-reference/fileReference.transformer.d.ts +3 -0
- package/dist/modules/invoice/api/mutations/invoiceApprovalUpdate.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceSetApprovalMode.mutation.d.ts +7 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +7 -5
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.transformer.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalModeForm.model.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalNote.model.d.ts +2 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdateForm.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +7 -1
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +2 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalModeDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalUpdateDialog.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialogDataProvider.vue.d.ts +13 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.d.ts +7 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.d.ts +4 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.d.ts +10 -0
- package/dist/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.d.ts +14 -0
- package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +14 -1
- package/dist/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.d.ts +2 -0
- package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -1
- package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +9 -2
- package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -2
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.transformer.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPauseForm.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplateForm.model.d.ts +18 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +15 -2
- package/dist/modules/invoice-approval/models/approvalSettingsForm.model.d.ts +39 -0
- package/dist/modules/invoice-approval/models/approvalSettingsForm.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseList.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseRow.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPausesPanel.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/settings/composables/approvalFollowUpPauseDialogs.composable.d.ts +8 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue.d.ts +11 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseFormDialog.vue.d.ts +14 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +2 -1
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.d.ts +41 -0
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.spec.d.ts +1 -0
- package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-DHMHVOeX.js} +67 -114
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js +0 -147
- package/dist/InvoiceRejectDialog-_5i8eFuk.js +0 -361
- package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
- package/dist/invoiceApproval.service-DXIKgCI_.js +0 -72
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import { C as e,
|
|
1
|
+
import "./api.util-lGbimoKL.js";
|
|
2
|
+
import { C as e, w as t } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
3
|
import { n, t as r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
4
|
+
import { n as i } from "./invoicingConfig.composable-DEF0lzNP.js";
|
|
5
5
|
import { n as a } from "./address.transformer-jGddczLV.js";
|
|
6
|
-
import { i as o } from "./billingDocumentDetail.transformer-
|
|
7
|
-
import {
|
|
6
|
+
import { i as o } from "./billingDocumentDetail.transformer-C5-zjIhL.js";
|
|
7
|
+
import { wt as s } from "./dist-DmVrfBOT.js";
|
|
8
8
|
import { useI18n as c } from "vue-i18n";
|
|
9
9
|
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, normalizeClass as v, normalizeStyle as y, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, withCtx as T } from "vue";
|
|
10
10
|
import { UIColumnLayout as E, UIRowLayout as D, UISeparator as O, UIText as k } from "@wisemen/vue-core-design-system";
|
|
@@ -275,8 +275,8 @@ var A = class {
|
|
|
275
275
|
invoice: {},
|
|
276
276
|
pageType: {}
|
|
277
277
|
},
|
|
278
|
-
setup(
|
|
279
|
-
let n =
|
|
278
|
+
setup(e) {
|
|
279
|
+
let n = e, r = c(), a = i(), o = u(() => r.locale.value || "en-US"), m = u(() => n.invoice.type === t.CREDIT_NOTE), h = u(() => m.value ? n.invoice.sequence === null ? r.t("wise_invoicing.credit_note.detail.fallback_title") : `${r.t("wise_invoicing.invoice.type.credit_note")} ${n.invoice.sequence}` : n.invoice.sequence ?? r.t("wise_invoicing.invoice.detail.fallback_title")), _ = u(() => {
|
|
280
280
|
let e = n.invoice.originalInvoice?.sequence;
|
|
281
281
|
return !m.value || n.pageType !== "first" || e === null ? null : `${r.t("wise_invoicing.invoice.type.standard")} ${e}`;
|
|
282
282
|
}), v = u(() => (n.invoice.issuer.name ?? r.t("wise_invoicing.common.not_available")).split(" ").filter((e) => e !== "").slice(0, 2).map((e) => e.toUpperCase())), y = u(() => H.getAddressLines(n.invoice.customer.address)), S = u(() => {
|
|
@@ -576,8 +576,8 @@ var A = class {
|
|
|
576
576
|
hasLines: { type: Boolean },
|
|
577
577
|
invoice: {}
|
|
578
578
|
},
|
|
579
|
-
setup(
|
|
580
|
-
let n =
|
|
579
|
+
setup(e) {
|
|
580
|
+
let n = e, r = c(), i = u(() => r.locale.value || "en-US"), a = u(() => n.invoice.type === t.CREDIT_NOTE);
|
|
581
581
|
function o(e) {
|
|
582
582
|
return {
|
|
583
583
|
...e,
|
|
@@ -762,7 +762,7 @@ var A = class {
|
|
|
762
762
|
watermark: {}
|
|
763
763
|
},
|
|
764
764
|
setup(n) {
|
|
765
|
-
let r = n, i = u(() => r.billingDocument.status ===
|
|
765
|
+
let r = n, i = u(() => r.billingDocument.status === e.DRAFT || r.billingDocument.status === e.READY), a = u(() => r.billingDocument.type === t.CREDIT_NOTE), o = u(() => H.buildRows(r.billingDocument, { isCreditNote: a.value })), s = u(() => {
|
|
766
766
|
let e = H.paginateRows(o.value, { hasRemarks: r.billingDocument.externalRemarks !== null && r.billingDocument.externalRemarks.trim() !== "" });
|
|
767
767
|
return e.map((t, n) => ({
|
|
768
768
|
isLastPage: n === e.length - 1,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ct as e, lt as t, t as n } from "./api.util-lGbimoKL.js";
|
|
2
2
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
3
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
4
|
-
import {
|
|
5
|
-
import { n as c, r as l, t as u } from "./reminderConfig.query-
|
|
3
|
+
import { n as i } from "./invoicingConfig.composable-DEF0lzNP.js";
|
|
4
|
+
import { gt as a, h as o, kt as s } from "./dist-DmVrfBOT.js";
|
|
5
|
+
import { n as c, r as l, t as u } from "./reminderConfig.query-DHMHVOeX.js";
|
|
6
6
|
import { t as d } from "./customerUuid.model-ClN4Vi9n.js";
|
|
7
7
|
import { z as f } from "zod";
|
|
8
8
|
import { useI18n as p } from "vue-i18n";
|
|
9
9
|
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, normalizeClass as C, openBlock as w, ref as T, renderList as E, toDisplayString as D, unref as O, watch as k, withCtx as A } from "vue";
|
|
10
|
-
import { useMutation as j, useQuery as
|
|
11
|
-
import { useRouter as
|
|
10
|
+
import { useMutation as j, useQuery as M } from "@wisemen/vue-core-api-utils";
|
|
11
|
+
import { useRouter as ee } from "vue-router";
|
|
12
12
|
import { Temporal as N } from "temporal-polyfill";
|
|
13
|
-
import { err as
|
|
14
|
-
import { UIBadge as
|
|
13
|
+
import { err as P, ok as te } from "neverthrow";
|
|
14
|
+
import { UIBadge as F, UIColumnLayout as ne, UIDialogBody as I, UIDialogFooter as L, UIDialogFooterCancel as R, UIDialogFooterPrimary as z, UIDialogHeader as B, UIFormDialog as V, useToast as H } from "@wisemen/vue-core-design-system";
|
|
15
15
|
import { useForm as U } from "formango";
|
|
16
16
|
//#region src/modules/dunning-case/api/services/dunningCaseCustomer.service.ts
|
|
17
17
|
var W = class {
|
|
18
|
-
static async getAll(
|
|
19
|
-
return (await n.fromPromise(
|
|
18
|
+
static async getAll(t, r) {
|
|
19
|
+
return (await n.fromPromise(e({ query: {
|
|
20
20
|
pagination: r,
|
|
21
|
-
search:
|
|
21
|
+
search: t
|
|
22
22
|
} }))).map((e) => ({
|
|
23
23
|
data: e.data.items.map((e) => ({
|
|
24
24
|
uuid: e.uuid,
|
|
@@ -27,27 +27,27 @@ var W = class {
|
|
|
27
27
|
meta: e.data.meta
|
|
28
28
|
}));
|
|
29
29
|
}
|
|
30
|
-
static async getRecipients(
|
|
30
|
+
static async getRecipients(e) {
|
|
31
31
|
let r = [], i = 0, a = 0;
|
|
32
32
|
do {
|
|
33
|
-
let o = await n.fromPromise(
|
|
33
|
+
let o = await n.fromPromise(t({
|
|
34
34
|
query: { pagination: {
|
|
35
35
|
limit: 100,
|
|
36
36
|
offset: i
|
|
37
37
|
} },
|
|
38
|
-
path: { uuid:
|
|
38
|
+
path: { uuid: e }
|
|
39
39
|
}));
|
|
40
|
-
if (o.isErr()) return
|
|
40
|
+
if (o.isErr()) return P(o.error);
|
|
41
41
|
if (r.push(...o.value.data.items.map((e) => ({
|
|
42
42
|
isDefault: e.isDefault,
|
|
43
43
|
email: e.email
|
|
44
44
|
}))), a = o.value.data.meta.total, i += o.value.data.items.length, o.value.data.items.length === 0) break;
|
|
45
45
|
} while (i < a);
|
|
46
|
-
return
|
|
46
|
+
return te(r);
|
|
47
47
|
}
|
|
48
|
-
static async getUuidByExternalId(
|
|
49
|
-
return (await n.fromPromise(
|
|
50
|
-
filter: { externalId:
|
|
48
|
+
static async getUuidByExternalId(t) {
|
|
49
|
+
return (await n.fromPromise(e({ query: {
|
|
50
|
+
filter: { externalId: t },
|
|
51
51
|
pagination: {
|
|
52
52
|
limit: 1,
|
|
53
53
|
offset: 0
|
|
@@ -56,7 +56,7 @@ var W = class {
|
|
|
56
56
|
}
|
|
57
57
|
}, G = 3e4;
|
|
58
58
|
function K(e) {
|
|
59
|
-
return
|
|
59
|
+
return M("dunningCaseDetail", {
|
|
60
60
|
staleTime: G,
|
|
61
61
|
params: { dunningCaseUuid: e },
|
|
62
62
|
queryFn: () => l.getByUuid(e.value)
|
|
@@ -101,17 +101,17 @@ var X = /* @__PURE__ */ S({
|
|
|
101
101
|
},
|
|
102
102
|
setup(e) {
|
|
103
103
|
let t = e, n = p(), r = {
|
|
104
|
-
icon:
|
|
104
|
+
icon: a,
|
|
105
105
|
type: "icon"
|
|
106
106
|
};
|
|
107
|
-
return (e, i) => t.blockedReason === null ? t.status === "failed" ? (w(), g(O(
|
|
107
|
+
return (e, i) => t.blockedReason === null ? t.status === "failed" ? (w(), g(O(F), {
|
|
108
108
|
key: 1,
|
|
109
109
|
label: O(n).t("module.dunning_case.reminder_status.failed"),
|
|
110
110
|
left: r,
|
|
111
111
|
color: "warning",
|
|
112
112
|
size: "sm",
|
|
113
113
|
variant: "translucent"
|
|
114
|
-
}, null, 8, ["label"])) : _("", !0) : (w(), g(O(
|
|
114
|
+
}, null, 8, ["label"])) : _("", !0) : (w(), g(O(F), {
|
|
115
115
|
key: 0,
|
|
116
116
|
label: O(n).t(`module.dunning_case.blocked_reason.${t.blockedReason}`),
|
|
117
117
|
left: r,
|
|
@@ -198,7 +198,7 @@ var ue = { class: "min-w-0" }, de = { class: "flex min-w-0 items-center gap-sm"
|
|
|
198
198
|
setup(e) {
|
|
199
199
|
let t = e, n = p(), i = r(), a = h(() => le(t.dunningCase.invoices, t.dunningCase.totalFee.amount > 0)), o = h(() => t.dunningCase.level === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: t.dunningCase.level }));
|
|
200
200
|
return (e, r) => (w(), v("section", ve, [
|
|
201
|
-
y("div", ye, [y("div", be, [y("p", xe, D(t.subject ?? O(n).t("module.dunning_case.detail.invoices")), 1)]), y("span", Se, [x(O(
|
|
201
|
+
y("div", ye, [y("div", be, [y("p", xe, D(t.subject ?? O(n).t("module.dunning_case.detail.invoices")), 1)]), y("span", Se, [x(O(F), {
|
|
202
202
|
label: o.value,
|
|
203
203
|
color: "gray",
|
|
204
204
|
size: "sm",
|
|
@@ -220,7 +220,7 @@ var ue = { class: "min-w-0" }, de = { class: "flex min-w-0 items-center gap-sm"
|
|
|
220
220
|
__name: "DunningCaseSendRecipientAlert",
|
|
221
221
|
props: { customerDetailRoute: {} },
|
|
222
222
|
setup(e) {
|
|
223
|
-
let t = e, n = p(), r =
|
|
223
|
+
let t = e, n = p(), r = ee();
|
|
224
224
|
function i() {
|
|
225
225
|
t.customerDetailRoute !== null && r.push(t.customerDetailRoute);
|
|
226
226
|
}
|
|
@@ -271,20 +271,20 @@ var Ne = {
|
|
|
271
271
|
},
|
|
272
272
|
emits: ["close"],
|
|
273
273
|
setup(e, { emit: t }) {
|
|
274
|
-
let n = e, r = t,
|
|
274
|
+
let n = e, r = t, a = p(), c = H(), l = i(), u = Z(), d = K(h(() => n.dunningCaseUuid)), b = h(() => d.result.value.isOk() ? d.result.value.getValue() : null), S = Me(h(() => b.value?.customer.uuid ?? null)), C = je(h(() => b.value?.level ?? null)), T = h(() => {
|
|
275
275
|
let e = b.value?.customer.uuid;
|
|
276
276
|
return e === void 0 ? null : l.getCustomerDetailRoute(e);
|
|
277
|
-
}), E = h(() => b.value === null ? 0 : ce(b.value.invoices).length), k = h(() => typeof S.defaultEmail.value == "string" ?
|
|
277
|
+
}), E = h(() => b.value === null ? 0 : ce(b.value.invoices).length), k = h(() => typeof S.defaultEmail.value == "string" ? a.t("module.dunning_case.send.grouped_to", { email: S.defaultEmail.value }) : S.isMissing.value ? a.t("module.dunning_case.send.no_default_recipient") : a.t("module.dunning_case.send.description")), j = U({
|
|
278
278
|
schema: f.object({}),
|
|
279
279
|
onSubmit: async () => {
|
|
280
280
|
if (S.isMissing.value) {
|
|
281
|
-
c.show({ message:
|
|
281
|
+
c.show({ message: a.t("module.dunning_case.send.no_default_recipient_blocked") });
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
let e = await u.execute({ params: { dunningCaseUuid: n.dunningCaseUuid } });
|
|
285
285
|
e.isErr() ? c.apiError(e.error) : (c.show({
|
|
286
286
|
duration: Infinity,
|
|
287
|
-
message:
|
|
287
|
+
message: a.t("module.dunning_case.send.success", { customer: b.value?.customer.name ?? "" })
|
|
288
288
|
}), n.onSent?.(), r("close"));
|
|
289
289
|
}
|
|
290
290
|
});
|
|
@@ -295,21 +295,21 @@ var Ne = {
|
|
|
295
295
|
}, {
|
|
296
296
|
default: A(() => [
|
|
297
297
|
x(O(B), {
|
|
298
|
-
title: O(
|
|
298
|
+
title: O(a).t("module.dunning_case.send.title", {
|
|
299
299
|
customer: b.value?.customer.name ?? "",
|
|
300
300
|
level: b.value?.level ?? ""
|
|
301
301
|
}),
|
|
302
302
|
description: k.value,
|
|
303
303
|
"has-separator": !1,
|
|
304
|
-
icon: O(
|
|
304
|
+
icon: O(s)
|
|
305
305
|
}, null, 8, [
|
|
306
306
|
"title",
|
|
307
307
|
"description",
|
|
308
308
|
"icon"
|
|
309
309
|
]),
|
|
310
310
|
x(O(I), null, {
|
|
311
|
-
default: A(() => [x(O(
|
|
312
|
-
default: A(() => [O(d).isLoading.value ? (w(), v("p", Ne, D(O(
|
|
311
|
+
default: A(() => [x(O(ne), { gap: "lg" }, {
|
|
312
|
+
default: A(() => [O(d).isLoading.value ? (w(), v("p", Ne, D(O(a).t("module.dunning_case.common.loading")), 1)) : b.value === null ? _("", !0) : (w(), v(m, { key: 1 }, [
|
|
313
313
|
O(S).isMissing.value ? (w(), g(ke, {
|
|
314
314
|
key: 0,
|
|
315
315
|
"customer-detail-route": T.value
|
|
@@ -318,7 +318,7 @@ var Ne = {
|
|
|
318
318
|
"dunning-case": b.value,
|
|
319
319
|
subject: O(C)
|
|
320
320
|
}, null, 8, ["dunning-case", "subject"]),
|
|
321
|
-
y("div", Pe, [x(O(
|
|
321
|
+
y("div", Pe, [x(O(o), { class: "mt-xxs size-(--spacing-xl) shrink-0" }), y("p", Fe, D(O(a).t("module.dunning_case.send.impact", {
|
|
322
322
|
count: E.value,
|
|
323
323
|
level: b.value.level
|
|
324
324
|
})), 1)])
|
|
@@ -329,10 +329,10 @@ var Ne = {
|
|
|
329
329
|
}),
|
|
330
330
|
x(O(L), { "has-separator": !1 }, {
|
|
331
331
|
right: A(() => [x(O(R)), x(O(z), {
|
|
332
|
-
"icon-right": O(
|
|
332
|
+
"icon-right": O(s),
|
|
333
333
|
"is-disabled": b.value === null || O(S).isPending.value || O(S).isMissing.value,
|
|
334
334
|
"is-loading": O(j).isSubmitting.value,
|
|
335
|
-
label: O(
|
|
335
|
+
label: O(a).t("module.dunning_case.send.send_now"),
|
|
336
336
|
onClick: O(j).submit
|
|
337
337
|
}, null, 8, [
|
|
338
338
|
"icon-right",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./invoiceCustomer.service-
|
|
1
|
+
import { gt as e } from "./dist-DmVrfBOT.js";
|
|
2
|
+
import { t } from "./invoiceCustomer.service-D0AtVrLg.js";
|
|
3
3
|
import { useI18n as n } from "vue-i18n";
|
|
4
4
|
import { computed as r, createBlock as i, createVNode as a, defineComponent as o, openBlock as s, unref as c, withCtx as l } from "vue";
|
|
5
5
|
import { useOffsetInfiniteQuery as u } from "@wisemen/vue-core-api-utils";
|
|
6
|
-
import {
|
|
6
|
+
import { UITableCellInteractiveElement as d, UIText as f, UITooltip as p, UITooltipContent as m } from "@wisemen/vue-core-design-system";
|
|
7
7
|
//#region src/modules/invoice/api/queries/invoiceCustomerSearch.query.ts
|
|
8
|
-
function
|
|
8
|
+
function h(e) {
|
|
9
9
|
let n = r(() => ({ search: e.params.search?.value }));
|
|
10
10
|
return u("invoiceCustomerSearch", {
|
|
11
11
|
params: { queryParams: n },
|
|
@@ -17,21 +17,24 @@ function m(e) {
|
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/modules/invoice/components/InvoiceApprovalOutOfSyncIndicator.vue
|
|
20
|
-
var
|
|
20
|
+
var g = /* @__PURE__ */ o({
|
|
21
21
|
__name: "InvoiceApprovalOutOfSyncIndicator",
|
|
22
22
|
setup(t) {
|
|
23
23
|
let r = n();
|
|
24
|
-
return (t, n) => (s(), i(c(
|
|
24
|
+
return (t, n) => (s(), i(c(p), {
|
|
25
25
|
"popover-side-offset": 8,
|
|
26
26
|
"popover-align": "center",
|
|
27
27
|
"popover-side": "bottom"
|
|
28
28
|
}, {
|
|
29
|
-
trigger: l(() => [a(c(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
trigger: l(() => [a(c(d), null, {
|
|
30
|
+
default: l(() => [a(c(e), {
|
|
31
|
+
"aria-label": c(r).t("wise_invoicing.invoice.approval_status.out_of_sync"),
|
|
32
|
+
class: "size-(--spacing-xl) shrink-0 text-warning-primary"
|
|
33
|
+
}, null, 8, ["aria-label"])]),
|
|
34
|
+
_: 1
|
|
35
|
+
})]),
|
|
36
|
+
content: l(() => [a(c(m), null, {
|
|
37
|
+
default: l(() => [a(c(f), {
|
|
35
38
|
text: c(r).t("wise_invoicing.invoice.approval_status.out_of_sync"),
|
|
36
39
|
class: "text-sm text-primary"
|
|
37
40
|
}, null, 8, ["text"])]),
|
|
@@ -42,4 +45,4 @@ var h = /* @__PURE__ */ o({
|
|
|
42
45
|
}
|
|
43
46
|
});
|
|
44
47
|
//#endregion
|
|
45
|
-
export {
|
|
48
|
+
export { h as n, g as t };
|