@wisemen/wise-invoicing-web 0.14.0 → 0.16.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-DlsyA-ZR.js → ApprovalReminderSettingsViewDataProvider-CpGYtZKw.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-D3-X20WR.js → BillingDocumentDetailViewDataProvider-CA71dgRN.js} +1693 -1611
- package/dist/{BillingDocumentPdf-CcmP3N34.js → BillingDocumentPdf-CvUxfHDH.js} +10 -10
- package/dist/{CreditNoteDetailViewDataProvider-X-m10Sqr.js → CreditNoteDetailViewDataProvider-DK7hkA8d.js} +236 -224
- package/dist/{CreditNotePdfViewDataProvider-jWh6REbj.js → CreditNotePdfViewDataProvider-DcQxB1p4.js} +3 -3
- package/dist/{DunningCaseSendDialog-DUyOH14Q.js → DunningCaseSendDialog-BWbEi9Vr.js} +13 -13
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DzY8gqnD.js → InvoiceApprovalOutOfSyncIndicator-CptL1bbz.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-CoIGxCMN.js → InvoiceApprovalOverviewView-dsTZWXyZ.js} +68 -68
- package/dist/{InvoiceApprovalStatusBadge-C9O_mb1l.js → InvoiceApprovalStatusBadge-6cSp2XOq.js} +5 -5
- package/dist/{InvoiceApproveDialogDataProvider-hVuyszuo.js → InvoiceApproveDialogDataProvider-DsxA74kh.js} +8 -8
- package/dist/InvoiceDeliverySendDialog-byobpQe1.js +445 -0
- package/dist/{InvoiceDetailViewDataProvider-DBlmJs3o.js → InvoiceDetailViewDataProvider-DgNkoQNH.js} +484 -471
- package/dist/{InvoicePdfView-DBVwRo3q.js → InvoicePdfView-CA-nt_Qs.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-CHLE3XdC.js → InvoicePdfViewDataProvider-CVgcgc9t.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-DECBZhaP.js → InvoicePublicProFormaPdfViewDataProvider-BIhn-msJ.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-BZRLmEsv.js → InvoicingFileUploadProvider-DFjM7Xcj.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-DrXmGKtc.js → IssuerSettingsViewDataProvider-2Gk7FgL2.js} +60 -60
- package/dist/PeppolSettingsViewDataProvider-CLgFRfm_.js +196 -0
- package/dist/{api.util-BxDrxtn6.js → api.util-DMgdn9-w.js} +979 -951
- package/dist/{billingDocumentDetail.transformer-I1L4zrOM.js → billingDocumentDetail.transformer-DFlbGUZp.js} +3 -3
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +6 -4
- package/dist/client/types.gen.d.ts +274 -177
- package/dist/client/zod.gen.d.ts +3944 -4241
- package/dist/creditNoteDetail.query-D7J1umi4.js +127 -0
- package/dist/deliveryReason.util-iMVhwjiW.js +95 -0
- package/dist/{dist-BMzyJZTx.js → dist-B33lNwLw.js} +1 -1
- package/dist/{dist-Cdbpkd3Y.js → dist-ByzJNujV.js} +69 -50
- package/dist/{dist-BZgvL8_m.js → dist-Ck8ZEByl.js} +3 -3
- package/dist/{dist-BFx8U4Su.js → dist-CwkVU5yS.js} +1 -1
- package/dist/{documentTitle.composable-BqZWKGw1.js → documentTitle.composable-QdSLs6eT.js} +11 -7
- package/dist/{i18n.lib-7EI865En.js → i18n.lib-CEXUpXfo.js} +98 -2
- package/dist/index.d.ts +96 -0
- package/dist/index.js +1484 -1480
- package/dist/{invoice.service-DfMS-JGk.js → invoice.service-NBqJSMkg.js} +226 -236
- package/dist/{invoiceApproval.service-CvvAZxJH.js → invoiceApproval.service-Bk--tRnu.js} +5 -5
- package/dist/{invoiceApprovalStatus.util-QhwQpmWI.js → invoiceApprovalStatus.util-CYWPHuJD.js} +30 -30
- package/dist/{invoiceCustomer.service-DSAI1dGB.js → invoiceCustomer.service-D13Cwb13.js} +6 -6
- package/dist/{invoiceIndexCache.util-DduYusET.js → invoiceDeliveryStatus.util-BExQWz3m.js} +51 -124
- package/dist/{invoiceDetail.query-qPz6hTNU.js → invoiceDetail.query-CLvnFeZh.js} +1 -1
- package/dist/{invoicingConfig.composable-DT17tqnm.js → invoicingConfig.composable-BebjIIAC.js} +2 -2
- package/dist/{issuerSettings.query-DYmr_dfw.js → issuerSettings.query-P_gGS0ER.js} +17 -17
- package/dist/libs/i18n.lib.d.ts +96 -0
- package/dist/locales/en-US.json.d.ts +49 -1
- package/dist/locales/nl-BE.json.d.ts +49 -1
- package/dist/modules/credit-note/api/services/creditNote.service.d.ts +0 -1
- package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -4
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +2 -12
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +0 -10
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +4 -2
- package/dist/modules/invoice-delivery/api/mutations/invoiceDeliverySend.mutation.d.ts +4 -0
- package/dist/modules/invoice-delivery/api/mutations/invoiceReminderSend.mutation.d.ts +3 -0
- package/dist/modules/invoice-delivery/api/queries/invoiceDeliveries.query.d.ts +2 -0
- package/dist/modules/invoice-delivery/api/query-keys/invoiceDelivery.queryKeys.d.ts +7 -0
- package/dist/modules/invoice-delivery/api/services/invoiceDelivery.service.d.ts +9 -0
- package/dist/modules/invoice-delivery/components/form/InvoiceDeliveryFormEmailField.vue.d.ts +7 -0
- package/dist/modules/invoice-delivery/components/form/InvoiceDeliveryFormPeppolField.vue.d.ts +9 -0
- package/dist/modules/invoice-delivery/models/deliveryInvoiceIndex.builder.d.ts +9 -0
- package/dist/modules/invoice-delivery/models/invoiceDelivery.model.d.ts +43 -0
- package/dist/modules/invoice-delivery/models/invoiceDelivery.transformer.d.ts +7 -0
- package/dist/modules/invoice-delivery/models/invoiceDeliverySendForm.model.d.ts +6 -0
- package/dist/modules/invoice-delivery/use-cases/send/dialogs/InvoiceDeliverySendDialog.vue.d.ts +16 -0
- package/dist/modules/invoice-delivery/use-cases/status/components/InvoiceDeliveryStatus.vue.d.ts +6 -0
- package/dist/{reminderConfig.query-BoNWAhZP.js → reminderConfig.query-s-gBYoPo.js} +12 -12
- package/dist/style.css +1 -1
- package/package.json +10 -10
- package/dist/CustomFieldValueText-C9yV_CrJ.js +0 -219
- package/dist/PeppolSettingsViewDataProvider-BesduXML.js +0 -262
- package/dist/creditNoteDetail.query-BurujY-Y.js +0 -131
- package/dist/modules/credit-note/api/mutations/creditNoteSend.mutation.d.ts +0 -4
- package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +0 -5
- package/dist/modules/invoice/api/mutations/invoiceSend.mutation.d.ts +0 -4
package/dist/{CreditNotePdfViewDataProvider-jWh6REbj.js → CreditNotePdfViewDataProvider-DcQxB1p4.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./invoicingConfig.composable-
|
|
1
|
+
import { n as e } from "./invoicingConfig.composable-BebjIIAC.js";
|
|
2
2
|
import { t } from "./DataProvider-BtnD-BzI.js";
|
|
3
|
-
import { t as n } from "./InvoicePdfView-
|
|
4
|
-
import { t as r } from "./creditNoteDetail.query-
|
|
3
|
+
import { t as n } from "./InvoicePdfView-CA-nt_Qs.js";
|
|
4
|
+
import { t as r } from "./creditNoteDetail.query-D7J1umi4.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,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { it as e, rt as t, t as n } from "./api.util-DMgdn9-w.js";
|
|
2
2
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
3
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
4
|
-
import { n as a, r as o, t as s } from "./reminderConfig.query-
|
|
5
|
-
import { Tt as c, ft as l, m as u } from "./dist-
|
|
3
|
+
import { n as i } from "./invoicingConfig.composable-BebjIIAC.js";
|
|
4
|
+
import { n as a, r as o, t as s } from "./reminderConfig.query-s-gBYoPo.js";
|
|
5
|
+
import { Tt as c, ft as l, m as u } from "./dist-B33lNwLw.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";
|
|
@@ -15,10 +15,10 @@ import { UIBadge as P, UIColumnLayout as F, UIDialogBody as I, UIDialogFooter as
|
|
|
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(e, r) {
|
|
19
|
+
return (await n.fromPromise(t({ query: {
|
|
20
20
|
pagination: r,
|
|
21
|
-
search:
|
|
21
|
+
search: e
|
|
22
22
|
} }))).map((e) => ({
|
|
23
23
|
data: e.data.items.map((e) => ({
|
|
24
24
|
uuid: e.uuid,
|
|
@@ -27,15 +27,15 @@ var W = class {
|
|
|
27
27
|
meta: e.data.meta
|
|
28
28
|
}));
|
|
29
29
|
}
|
|
30
|
-
static async getRecipients(
|
|
30
|
+
static async getRecipients(t) {
|
|
31
31
|
let r = [], i = 0, a = 0;
|
|
32
32
|
do {
|
|
33
|
-
let o = await n.fromPromise(
|
|
33
|
+
let o = await n.fromPromise(e({
|
|
34
34
|
query: { pagination: {
|
|
35
35
|
limit: 100,
|
|
36
36
|
offset: i
|
|
37
37
|
} },
|
|
38
|
-
path: { uuid:
|
|
38
|
+
path: { uuid: t }
|
|
39
39
|
}));
|
|
40
40
|
if (o.isErr()) return te(o.error);
|
|
41
41
|
if (r.push(...o.value.data.items.map((e) => ({
|
|
@@ -45,9 +45,9 @@ var W = class {
|
|
|
45
45
|
} while (i < a);
|
|
46
46
|
return ne(r);
|
|
47
47
|
}
|
|
48
|
-
static async getUuidByExternalId(
|
|
49
|
-
return (await n.fromPromise(
|
|
50
|
-
filter: { externalId:
|
|
48
|
+
static async getUuidByExternalId(e) {
|
|
49
|
+
return (await n.fromPromise(t({ query: {
|
|
50
|
+
filter: { externalId: e },
|
|
51
51
|
pagination: {
|
|
52
52
|
limit: 1,
|
|
53
53
|
offset: 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ft as e } from "./dist-
|
|
2
|
-
import { t } from "./invoiceCustomer.service-
|
|
1
|
+
import { ft as e } from "./dist-B33lNwLw.js";
|
|
2
|
+
import { t } from "./invoiceCustomer.service-D13Cwb13.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";
|
package/dist/{InvoiceApprovalOverviewView-CoIGxCMN.js → InvoiceApprovalOverviewView-dsTZWXyZ.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import {
|
|
1
|
+
import "./api.util-DMgdn9-w.js";
|
|
2
|
+
import { a as e, o as t, t as n, y as r } from "./documentTitle.composable-QdSLs6eT.js";
|
|
3
3
|
import { r as i } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { t as a } from "./search.composable-CU9OpyUB.js";
|
|
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
|
|
6
|
-
import {
|
|
7
|
-
import { f as
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as C } from "./InvoiceApprovalStatusBadge-
|
|
11
|
-
import { i as w, n as T, r as E, t as D } from "./InvoiceApproveDialogDataProvider-
|
|
12
|
-
import { t as O } from "./invoiceApproval.service-
|
|
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 ee, i as g, l as te } from "./dist-B33lNwLw.js";
|
|
6
|
+
import { r as _ } from "./dist-ByzJNujV.js";
|
|
7
|
+
import { f as v, i as y, n as ne, o as re, r as b, s as ie } from "./dist-Ck8ZEByl.js";
|
|
8
|
+
import { t as x } from "./invoiceApprovalStatus.util-CYWPHuJD.js";
|
|
9
|
+
import { n as ae, t as S } from "./InvoiceApprovalOutOfSyncIndicator-CptL1bbz.js";
|
|
10
|
+
import { t as C } from "./InvoiceApprovalStatusBadge-6cSp2XOq.js";
|
|
11
|
+
import { i as w, n as T, r as E, t as D } from "./InvoiceApproveDialogDataProvider-DsxA74kh.js";
|
|
12
|
+
import { t as O } from "./invoiceApproval.service-Bk--tRnu.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";
|
|
15
15
|
import { useOffsetInfiniteQuery as ue } from "@wisemen/vue-core-api-utils";
|
|
@@ -19,20 +19,20 @@ import { createAction as Q } from "@wisemen/vue-core-actions";
|
|
|
19
19
|
import { useRouteQuery as we } from "@vueuse/router";
|
|
20
20
|
//#region src/modules/invoice-approval/actions/invoiceApprovalArchive.action.ts
|
|
21
21
|
function Te() {
|
|
22
|
-
let
|
|
22
|
+
let e = k(), t = Z().create(w);
|
|
23
23
|
return Q({
|
|
24
24
|
id: "invoice-approval-archive",
|
|
25
|
-
isApplicable: (
|
|
26
|
-
if (!
|
|
27
|
-
let
|
|
28
|
-
return
|
|
25
|
+
isApplicable: (e) => {
|
|
26
|
+
if (!e.hasTargetedModelsOfType("InvoiceApproval")) return !1;
|
|
27
|
+
let t = e.targetedModelOfTypeOrThrow("InvoiceApproval");
|
|
28
|
+
return t.approval.status === r.REQUESTED || t.approval.status === r.EXPIRED;
|
|
29
29
|
},
|
|
30
|
-
name: () =>
|
|
30
|
+
name: () => e.t("wise_invoicing.invoice.detail.actions.archive_approval"),
|
|
31
31
|
execute: async (e) => {
|
|
32
|
-
let
|
|
33
|
-
await
|
|
34
|
-
approvalUuid:
|
|
35
|
-
invoiceUuid:
|
|
32
|
+
let n = e.targetedModelOfTypeOrThrow("InvoiceApproval");
|
|
33
|
+
await t.open({
|
|
34
|
+
approvalUuid: n.uuid,
|
|
35
|
+
invoiceUuid: n.invoiceUuid
|
|
36
36
|
});
|
|
37
37
|
},
|
|
38
38
|
icon: () => s
|
|
@@ -41,16 +41,16 @@ function Te() {
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/modules/invoice-approval/actions/invoiceApprovalReject.action.ts
|
|
43
43
|
function Ee() {
|
|
44
|
-
let
|
|
44
|
+
let e = k(), t = Z().create(E);
|
|
45
45
|
return Q({
|
|
46
46
|
id: "invoice-approval-reject",
|
|
47
|
-
isApplicable: (
|
|
48
|
-
name: () =>
|
|
47
|
+
isApplicable: (e) => e.hasTargetedModelsOfType("InvoiceApproval") ? e.targetedModelOfTypeOrThrow("InvoiceApproval").approval.status === r.REQUESTED : !1,
|
|
48
|
+
name: () => e.t("wise_invoicing.invoice.detail.actions.reject_approval"),
|
|
49
49
|
execute: async (e) => {
|
|
50
|
-
let
|
|
51
|
-
await
|
|
52
|
-
approvalUuid:
|
|
53
|
-
invoiceUuid:
|
|
50
|
+
let n = e.targetedModelOfTypeOrThrow("InvoiceApproval");
|
|
51
|
+
await t.open({
|
|
52
|
+
approvalUuid: n.uuid,
|
|
53
|
+
invoiceUuid: n.invoiceUuid
|
|
54
54
|
});
|
|
55
55
|
},
|
|
56
56
|
icon: () => m
|
|
@@ -58,8 +58,8 @@ function Ee() {
|
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.ts
|
|
61
|
-
function De(
|
|
62
|
-
return
|
|
61
|
+
function De(e) {
|
|
62
|
+
return e.approval.status === r.REJECTED || e.approval.status === r.EXPIRED || e.hasChangesSinceApprovalSent;
|
|
63
63
|
}
|
|
64
64
|
function Oe() {
|
|
65
65
|
let e = k(), t = Ce(), n = T();
|
|
@@ -112,7 +112,7 @@ var ke = { class: "grid min-w-0 grid-cols-1 gap-xl lg:grid-cols-2" }, Ae = { cla
|
|
|
112
112
|
count: n.outOfSyncCount,
|
|
113
113
|
countClass: "text-warning-primary",
|
|
114
114
|
description: i.t("wise_invoicing.invoice_approval.overview.metrics.out_of_sync_description"),
|
|
115
|
-
icon:
|
|
115
|
+
icon: ee,
|
|
116
116
|
iconClass: "bg-brand-secondary text-brand-secondary",
|
|
117
117
|
key: "out-of-sync",
|
|
118
118
|
label: i.t("wise_invoicing.invoice_approval.overview.tabs.out_of_sync")
|
|
@@ -256,11 +256,11 @@ function Pe(e) {
|
|
|
256
256
|
//#region src/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.ts
|
|
257
257
|
var $ = {
|
|
258
258
|
all: {},
|
|
259
|
-
awaiting: { approvalStatus:
|
|
259
|
+
awaiting: { approvalStatus: e.AWAITING_APPROVAL },
|
|
260
260
|
"out-of-sync": { hasChangesSinceApprovalSent: !0 },
|
|
261
|
-
rejected: { approvalStatus:
|
|
262
|
-
"reminder-1": { approvalStatus:
|
|
263
|
-
"reminder-2": { approvalStatus:
|
|
261
|
+
rejected: { approvalStatus: e.REJECTED },
|
|
262
|
+
"reminder-1": { approvalStatus: e.REMINDER_1 },
|
|
263
|
+
"reminder-2": { approvalStatus: e.REMINDER_2 }
|
|
264
264
|
};
|
|
265
265
|
function Fe(e) {
|
|
266
266
|
function t(t) {
|
|
@@ -321,11 +321,11 @@ function Fe(e) {
|
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region src/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.ts
|
|
323
323
|
function Ie() {
|
|
324
|
-
let e = k(), t = a({ debounceMs: 250 }), n =
|
|
324
|
+
let e = k(), t = a({ debounceMs: 250 }), n = ae({ params: { search: t.debouncedSearch } }), r = j(() => n.result.value.isOk() ? n.result.value.getValue().data : []), i = y({
|
|
325
325
|
actionGroup: { name: "invoice-approvals" },
|
|
326
|
-
filters: [
|
|
326
|
+
filters: [v({
|
|
327
327
|
defaultValue: {
|
|
328
|
-
operator:
|
|
328
|
+
operator: b.INCLUDES,
|
|
329
329
|
value: []
|
|
330
330
|
},
|
|
331
331
|
disableOperators: !0,
|
|
@@ -349,7 +349,7 @@ function Le() {
|
|
|
349
349
|
isApplicable: (e) => {
|
|
350
350
|
if (!e.hasTargetedModelsOfType("InvoiceApproval")) return !1;
|
|
351
351
|
let t = e.targetedModelOfTypeOrThrow("InvoiceApproval");
|
|
352
|
-
return
|
|
352
|
+
return x.canMarkAsApproved(t.approval.status);
|
|
353
353
|
},
|
|
354
354
|
name: () => e.t("wise_invoicing.invoice.detail.actions.mark_as_approved"),
|
|
355
355
|
execute: async (e) => {
|
|
@@ -359,7 +359,7 @@ function Le() {
|
|
|
359
359
|
invoiceUuid: n.invoiceUuid
|
|
360
360
|
});
|
|
361
361
|
},
|
|
362
|
-
icon: () =>
|
|
362
|
+
icon: () => g
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
//#endregion
|
|
@@ -450,7 +450,7 @@ var Re = /* @__PURE__ */ L({
|
|
|
450
450
|
__name: "InvoiceApprovalOverviewNextReminderCell",
|
|
451
451
|
props: { item: {} },
|
|
452
452
|
setup(e) {
|
|
453
|
-
let t = e, n = k(), r =
|
|
453
|
+
let t = e, n = k(), r = _(), i = j(() => t.item.hasChangesSinceApprovalSent), a = j(() => {
|
|
454
454
|
let e = t.item.nextReminderOn;
|
|
455
455
|
return e === null ? null : de.Now.plainDateISO().until(e, { largestUnit: "days" }).days;
|
|
456
456
|
}), o = j(() => {
|
|
@@ -459,7 +459,7 @@ var Re = /* @__PURE__ */ L({
|
|
|
459
459
|
}), s = j(() => {
|
|
460
460
|
let e = t.item.approval, i = e.reminderSentAt;
|
|
461
461
|
return i !== null && e.level !== null ? n.t("wise_invoicing.invoice_approval.overview.last_reminder", {
|
|
462
|
-
level: n.t(
|
|
462
|
+
level: n.t(x.getReminderLevelTranslationKey(e.level)),
|
|
463
463
|
time: r.toRelativeTime(i)
|
|
464
464
|
}) : e.sentAt === null ? n.t("wise_invoicing.invoice_approval.overview.not_sent_yet") : n.t("wise_invoicing.invoice_approval.overview.request_sent", { time: r.toRelativeTime(e.sentAt) });
|
|
465
465
|
}), c = {
|
|
@@ -494,7 +494,7 @@ var Re = /* @__PURE__ */ L({
|
|
|
494
494
|
__name: "InvoiceApprovalReminderLevelIndicator",
|
|
495
495
|
props: { level: {} },
|
|
496
496
|
setup(e) {
|
|
497
|
-
let
|
|
497
|
+
let n = e, r = j(() => Math.min(We, n.level)), i = j(() => n.level === t._2);
|
|
498
498
|
return (e, t) => (B(), P("span", Ue, [(B(), P(A, null, V(We, (e) => F("span", {
|
|
499
499
|
key: e,
|
|
500
500
|
class: z([e <= r.value ? i.value ? "border-error bg-error-solid" : "\n border-warning-500 bg-warning-solid\n " : "border-secondary bg-primary", "h-(--spacing-sm) w-(--spacing-md) rounded-full border"])
|
|
@@ -503,18 +503,18 @@ var Re = /* @__PURE__ */ L({
|
|
|
503
503
|
}), Ke = /* @__PURE__ */ L({
|
|
504
504
|
__name: "InvoiceApprovalOverviewStatusCell",
|
|
505
505
|
props: { item: {} },
|
|
506
|
-
setup(
|
|
507
|
-
let
|
|
508
|
-
return (e,
|
|
506
|
+
setup(e) {
|
|
507
|
+
let t = e, n = k(), i = j(() => t.item.approval.status === r.REQUESTED ? t.item.approval.level : null), a = j(() => i.value === 2 ? n.t("wise_invoicing.invoice.approval_status.r2") : n.t("wise_invoicing.invoice.approval_status.r1"));
|
|
508
|
+
return (e, n) => (B(), M(H(J), null, {
|
|
509
509
|
default: U(() => [I(H(q), {
|
|
510
510
|
align: "center",
|
|
511
511
|
gap: "xs"
|
|
512
512
|
}, {
|
|
513
513
|
default: U(() => [i.value === null ? (B(), M(C, {
|
|
514
514
|
key: 1,
|
|
515
|
-
approval:
|
|
516
|
-
rejection:
|
|
517
|
-
reason:
|
|
515
|
+
approval: t.item.approval,
|
|
516
|
+
rejection: t.item.rejectionReason === null ? null : {
|
|
517
|
+
reason: t.item.rejectionReason,
|
|
518
518
|
remark: null
|
|
519
519
|
},
|
|
520
520
|
"requires-prior-approval": !0
|
|
@@ -529,7 +529,7 @@ var Re = /* @__PURE__ */ L({
|
|
|
529
529
|
class: "text-xs text-primary"
|
|
530
530
|
}, null, 8, ["text"])]),
|
|
531
531
|
_: 1
|
|
532
|
-
})),
|
|
532
|
+
})), t.item.hasChangesSinceApprovalSent ? (B(), M(S, { key: 2 })) : N("", !0)]),
|
|
533
533
|
_: 1
|
|
534
534
|
})]),
|
|
535
535
|
_: 1
|
|
@@ -593,9 +593,9 @@ function qe() {
|
|
|
593
593
|
var Je = /* @__PURE__ */ L({
|
|
594
594
|
__name: "InvoiceApprovalOverviewView",
|
|
595
595
|
setup(e) {
|
|
596
|
-
let t = k(),
|
|
597
|
-
|
|
598
|
-
let { hasCountError: f, isFetchingNextPage: h, isLoading:
|
|
596
|
+
let t = k(), r = n(), i = we("tab", "awaiting"), a = ce(!0), { customerUuid: s, filters: u } = Ie();
|
|
597
|
+
ne(u);
|
|
598
|
+
let { hasCountError: f, isFetchingNextPage: h, isLoading: g, counts: _, data: v, error: y, fetchNextPage: b, needsAttentionTotal: x, reminderCountTotal: ae, tabCounts: S } = Fe({
|
|
599
599
|
customerUuid: s,
|
|
600
600
|
activeTab: j(() => i.value)
|
|
601
601
|
}), C = j(() => u.activeFilters.value.length), w = j(() => [
|
|
@@ -610,7 +610,7 @@ var Je = /* @__PURE__ */ L({
|
|
|
610
610
|
label: t.t("wise_invoicing.invoice.approval_status.awaiting_approval")
|
|
611
611
|
},
|
|
612
612
|
{
|
|
613
|
-
icon:
|
|
613
|
+
icon: te,
|
|
614
614
|
key: "reminder-1",
|
|
615
615
|
label: t.t("wise_invoicing.invoice.approval_status.r1")
|
|
616
616
|
},
|
|
@@ -625,19 +625,19 @@ var Je = /* @__PURE__ */ L({
|
|
|
625
625
|
label: t.t("wise_invoicing.invoice.approval_status.rejected")
|
|
626
626
|
},
|
|
627
627
|
{
|
|
628
|
-
icon:
|
|
628
|
+
icon: ee,
|
|
629
629
|
key: "out-of-sync",
|
|
630
630
|
label: t.t("wise_invoicing.invoice_approval.overview.tabs.out_of_sync")
|
|
631
631
|
}
|
|
632
632
|
]);
|
|
633
|
-
|
|
633
|
+
r.set(() => t.t("wise_invoicing.invoice_approval.title"));
|
|
634
634
|
let T = Oe(), E = Ee(), D = Te(), O = j(() => [
|
|
635
635
|
T,
|
|
636
636
|
E,
|
|
637
637
|
D
|
|
638
|
-
]), F = j(() => !
|
|
638
|
+
]), F = j(() => !g.value && y.value === null && v.value.length === 0 && C.value === 0), L = qe();
|
|
639
639
|
function R(e) {
|
|
640
|
-
let t =
|
|
640
|
+
let t = S.value[e];
|
|
641
641
|
return t === null ? null : {
|
|
642
642
|
type: "count",
|
|
643
643
|
value: t
|
|
@@ -686,12 +686,12 @@ var Je = /* @__PURE__ */ L({
|
|
|
686
686
|
a.value ? (B(), M(Ne, {
|
|
687
687
|
key: 0,
|
|
688
688
|
"has-count-error": H(f),
|
|
689
|
-
"needs-attention-total": H(
|
|
690
|
-
"out-of-sync-count": H(
|
|
691
|
-
"rejected-count": H(
|
|
692
|
-
"reminder-count-total": H(
|
|
693
|
-
"reminder-one-count": H(
|
|
694
|
-
"reminder-two-count": H(
|
|
689
|
+
"needs-attention-total": H(x),
|
|
690
|
+
"out-of-sync-count": H(_).outOfSync,
|
|
691
|
+
"rejected-count": H(_).rejected,
|
|
692
|
+
"reminder-count-total": H(ae),
|
|
693
|
+
"reminder-one-count": H(_).reminderOne,
|
|
694
|
+
"reminder-two-count": H(_).reminderTwo,
|
|
695
695
|
onShowOutOfSync: n[1] ||= (e) => i.value = "out-of-sync",
|
|
696
696
|
onShowRejected: n[2] ||= (e) => i.value = "rejected"
|
|
697
697
|
}, null, 8, [
|
|
@@ -753,7 +753,7 @@ var Je = /* @__PURE__ */ L({
|
|
|
753
753
|
key: 0,
|
|
754
754
|
text: H(t).t("wise_invoicing.common.no_active_filters"),
|
|
755
755
|
class: "px-sm text-xs text-secondary"
|
|
756
|
-
}, null, 8, ["text"])) : (B(), M(H(
|
|
756
|
+
}, null, 8, ["text"])) : (B(), M(H(re), { key: 1 })), I(H(ie))]),
|
|
757
757
|
_: 1
|
|
758
758
|
}),
|
|
759
759
|
F.value ? (B(), M(H(he), {
|
|
@@ -767,8 +767,8 @@ var Je = /* @__PURE__ */ L({
|
|
|
767
767
|
"active-filter-count": C.value,
|
|
768
768
|
actions: O.value,
|
|
769
769
|
columns: H(L),
|
|
770
|
-
data: H(
|
|
771
|
-
error: H(
|
|
770
|
+
data: H(v),
|
|
771
|
+
error: H(y),
|
|
772
772
|
"get-action-model": (e) => ({
|
|
773
773
|
...e,
|
|
774
774
|
key: e.uuid,
|
|
@@ -777,9 +777,9 @@ var Je = /* @__PURE__ */ L({
|
|
|
777
777
|
"get-key": (e) => e.uuid,
|
|
778
778
|
"get-link": z,
|
|
779
779
|
"is-fetching-next-page": H(h),
|
|
780
|
-
"is-loading": H(
|
|
780
|
+
"is-loading": H(g),
|
|
781
781
|
onClearFilters: n[4] ||= (e) => H(u).clearAll(),
|
|
782
|
-
onNextPage: H(
|
|
782
|
+
onNextPage: H(b)
|
|
783
783
|
}, null, 8, [
|
|
784
784
|
"active-filter-count",
|
|
785
785
|
"actions",
|
package/dist/{InvoiceApprovalStatusBadge-C9O_mb1l.js → InvoiceApprovalStatusBadge-6cSp2XOq.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import { a as e, o as t } from "./documentTitle.composable-
|
|
3
|
-
import { $ as n, S as r } from "./dist-
|
|
4
|
-
import {
|
|
5
|
-
import { t as a } from "./invoiceApprovalStatus.util-
|
|
1
|
+
import "./api.util-DMgdn9-w.js";
|
|
2
|
+
import { a as e, o as t } from "./documentTitle.composable-QdSLs6eT.js";
|
|
3
|
+
import { $ as n, S as r } from "./dist-B33lNwLw.js";
|
|
4
|
+
import { r as i } from "./dist-ByzJNujV.js";
|
|
5
|
+
import { t as a } from "./invoiceApprovalStatus.util-CYWPHuJD.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,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-
|
|
5
|
-
import { G as r, ft as i, xt as a } from "./dist-
|
|
1
|
+
import { t as e } from "./i18n.lib-CEXUpXfo.js";
|
|
2
|
+
import "./api.util-DMgdn9-w.js";
|
|
3
|
+
import { v as t } from "./documentTitle.composable-QdSLs6eT.js";
|
|
4
|
+
import { t as n } from "./invoice.service-NBqJSMkg.js";
|
|
5
|
+
import { G as r, ft as i, xt as a } from "./dist-B33lNwLw.js";
|
|
6
6
|
import { t as o } from "./DataProvider-BtnD-BzI.js";
|
|
7
7
|
import { t as s } from "./formango.util-D5c2ql--.js";
|
|
8
|
-
import { t as c } from "./invoiceApprovalStatus.util-
|
|
9
|
-
import { t as l } from "./issuerSettings.query-
|
|
10
|
-
import { n as u, r as d, t as f } from "./InvoicingFileUploadProvider-
|
|
8
|
+
import { t as c } from "./invoiceApprovalStatus.util-CYWPHuJD.js";
|
|
9
|
+
import { t as l } from "./issuerSettings.query-P_gGS0ER.js";
|
|
10
|
+
import { n as u, r as d, t as f } from "./InvoicingFileUploadProvider-DFjM7Xcj.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";
|