@wisemen/wise-invoicing-web 0.3.1 → 0.4.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-DwtfyQpx.js → ApprovalReminderSettingsViewDataProvider-IuReavOR.js} +3 -3
- package/dist/{BillingDocumentDetailViewDataProvider-Dub07ybW.js → BillingDocumentDetailViewDataProvider-B3I6UIKY.js} +2201 -1728
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-DgtUB45R.js → BillingDocumentPdf-rFqmLUPy.js} +226 -219
- package/dist/{CreditNoteDetailViewDataProvider-BxNfC6yO.js → CreditNoteDetailViewDataProvider-CQRnG2Fz.js} +41 -41
- package/dist/{CreditNotePdfViewDataProvider-D0j8qqK-.js → CreditNotePdfViewDataProvider-RytwPWH5.js} +2 -2
- package/dist/{CustomFieldValueText-Cuhs9sRn.js → CustomFieldValueText-DA0aPKwC.js} +1 -1
- package/dist/{DunningCaseDetailViewDataProvider-ou1FfNWQ.js → DunningCaseDetailViewDataProvider-BRYbYgTw.js} +64 -64
- package/dist/{DunningCaseOverviewView--zaPD0-c.js → DunningCaseOverviewView-D0vScVF1.js} +125 -125
- package/dist/{DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js → DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js} +1 -1
- package/dist/{DunningCaseSendDialog-Co4oLFtZ.js → DunningCaseSendDialog-CV66_tMv.js} +8 -8
- package/dist/{InvoiceApprovalOutOfSyncIndicator-H6H7kjAE.js → InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-Bw-6rkon.js → InvoiceApprovalOverviewView-CcMqr2jH.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-IyzJ--TJ.js → InvoiceApprovalStatusBadge-BJ3Q18bf.js} +3 -3
- package/dist/{InvoiceApproveDialogDataProvider-8G-11W1e.js → InvoiceApproveDialogDataProvider-DaCEHgs0.js} +7 -7
- package/dist/{InvoiceDetailViewDataProvider-B9gul2ei.js → InvoiceDetailViewDataProvider-B5uZY8Qy.js} +46 -46
- package/dist/{InvoiceOverviewViewDataProvider-5KgIdhfL.js → InvoiceOverviewViewDataProvider-BrgmweRE.js} +57 -57
- package/dist/{InvoicePdfView-5sJ-u_gT.js → InvoicePdfView-CPEX7E9W.js} +1 -1
- package/dist/{InvoicePdfViewDataProvider-BLVXDPv6.js → InvoicePdfViewDataProvider-T4-8A2OD.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-CnhYazmB.js → InvoicePublicPdfViewDataProvider-BkHZoPSZ.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js → InvoicePublicProFormaPdfViewDataProvider-CfkArXbC.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-Kcq7kSSt.js → InvoicingFileUploadProvider-BLBjPKqx.js} +1 -1
- package/dist/{IssuerSettingsViewDataProvider-BuSIVnIl.js → IssuerSettingsViewDataProvider-BStn0jFI.js} +2 -2
- package/dist/{ReminderSettingsViewDataProvider-CH7gSXnj.js → ReminderSettingsViewDataProvider-CjX7afDs.js} +3 -3
- package/dist/{api.util-CkIRZS3h.js → api.util-D6m6OY3_.js} +15 -6
- package/dist/{billingDocumentDetail.transformer-Bfd8geNo.js → billingDocumentDetail.transformer-Da-Nt4bI.js} +37 -29
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.gen.d.ts +16 -2
- package/dist/client/zod.gen.d.ts +28 -0
- package/dist/{creditNoteDetail.query-tLnfqsEB.js → creditNoteDetail.query-Yb8TdZNm.js} +22 -18
- package/dist/{dist-CGZBUnWK.js → dist-BpDuRYDT.js} +130 -130
- package/dist/{dist-BQbaoN5W.js → dist-DCbLgB6Y.js} +181 -101
- package/dist/{i18n.lib--mzprLMR.js → i18n.lib-CKs3ExEl.js} +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +32 -31
- package/dist/{invoice.service-B1w16_Md.js → invoice.service-DWDl9XRh.js} +214 -209
- package/dist/{invoiceApproval.service-BHAJmFkU.js → invoiceApproval.service-Fwlxgd9o.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-DohOKR4q.js → invoiceApprovalStatus.util-q-zHLdFV.js} +1 -1
- package/dist/{invoiceCustomer.service-DpVfpQUD.js → invoiceCustomer.service-DOexR54S.js} +2 -2
- package/dist/{invoiceDetail.query-CfyNSXLS.js → invoiceDetail.query-B5w0Vlsy.js} +1 -1
- package/dist/{invoiceIndexCache.util-BDLs7W9m.js → invoiceIndexCache.util-CUlp4R7R.js} +2 -2
- package/dist/{invoicingConfig.composable-COn1rKRf.js → invoicingConfig.composable-DjFexycc.js} +2 -2
- package/dist/{issuerSettings.query-CDFk2GiP.js → issuerSettings.query-BHuLjV9P.js} +1 -1
- package/dist/libs/i18n.lib.d.ts +28 -0
- package/dist/locales/en-US.json.d.ts +14 -0
- package/dist/locales/nl-BE.json.d.ts +14 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentLineGroup.util.d.ts +15 -0
- package/dist/models/billing-document/billingDocumentLineGroup.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +4 -1
- package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +5 -0
- package/dist/{reminderConfig.query-DSO0ekC_.js → reminderConfig.query-C4J6m4ER.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/apiError.type.d.ts +2 -2
- package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +1 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +5 -2
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTreeIndent.vue.d.ts +17 -0
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +78 -18
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +14 -4
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +6 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +8 -4
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +16 -3
- package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +163 -26
- package/package.json +1 -1
package/dist/{InvoiceApprovalStatusBadge-IyzJ--TJ.js → InvoiceApprovalStatusBadge-BJ3Q18bf.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api.util-
|
|
1
|
+
import "./api.util-D6m6OY3_.js";
|
|
2
2
|
import { a as e, o as t } from "./documentTitle.composable-CRJjS6p-.js";
|
|
3
|
-
import {
|
|
3
|
+
import { W as n, y as r } from "./dist-DCbLgB6Y.js";
|
|
4
4
|
import { n as i } from "./dist-Cdbpkd3Y.js";
|
|
5
|
-
import { t as a } from "./invoiceApprovalStatus.util-
|
|
5
|
+
import { t as a } from "./invoiceApprovalStatus.util-q-zHLdFV.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-
|
|
1
|
+
import { t as e } from "./i18n.lib-CKs3ExEl.js";
|
|
2
|
+
import "./api.util-D6m6OY3_.js";
|
|
3
3
|
import { g as t } from "./documentTitle.composable-CRJjS6p-.js";
|
|
4
|
-
import { t as n } from "./invoice.service-
|
|
5
|
-
import {
|
|
4
|
+
import { t as n } from "./invoice.service-DWDl9XRh.js";
|
|
5
|
+
import { R as r, ft as i, rt as a } from "./dist-DCbLgB6Y.js";
|
|
6
6
|
import { t as o } from "./DataProvider-C3uEds9v.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-q-zHLdFV.js";
|
|
9
|
+
import { t as l } from "./issuerSettings.query-BHuLjV9P.js";
|
|
10
|
+
import { n as u, r as d, t as f } from "./InvoicingFileUploadProvider-BLBjPKqx.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";
|
package/dist/{InvoiceDetailViewDataProvider-B9gul2ei.js → InvoiceDetailViewDataProvider-B5uZY8Qy.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib
|
|
2
|
-
import { t, ut as n } from "./api.util-
|
|
1
|
+
import { t as e } from "./i18n.lib-CKs3ExEl.js";
|
|
2
|
+
import { t, ut as n } from "./api.util-D6m6OY3_.js";
|
|
3
3
|
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 } from "./documentTitle.composable-CRJjS6p-.js";
|
|
4
4
|
import { r as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
-
import { n as h } from "./invoicingConfig.composable-
|
|
5
|
+
import { n as h } from "./invoicingConfig.composable-DjFexycc.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-DWDl9XRh.js";
|
|
8
8
|
import { n as ne } from "./address.transformer-jGddczLV.js";
|
|
9
9
|
import { n as re, t as ie } from "./download.util-B5Q7KUC9.js";
|
|
10
|
-
import {
|
|
10
|
+
import { A as ae, B as oe, H as se, I as ce, P as le, R as ue, V as de, W as fe, Z as pe, _ as me, ft as he, gt as b, i as ge, it as _e, j as ve, l as ye, m as be, q as xe, t as Se, tt as Ce, ut as x, w as S, x as we, y as Te } from "./dist-DCbLgB6Y.js";
|
|
11
11
|
import { n as C, t as Ee } from "./dist-Cdbpkd3Y.js";
|
|
12
12
|
import { t as w } from "./formango.util-D5c2ql--.js";
|
|
13
|
-
import { i as T, n as E, r as De } from "./CustomFieldValueText-
|
|
14
|
-
import { t as Oe } from "./invoiceApprovalStatus.util-
|
|
15
|
-
import { t as ke } from "./invoiceCustomer.service-
|
|
16
|
-
import { a as Ae, i as je, n as Me, r as Ne, t as Pe } from "./invoiceIndexCache.util-
|
|
17
|
-
import { n as Fe, t as Ie } from "./InvoiceApprovalStatusBadge-
|
|
18
|
-
import { t as Le } from "./issuerSettings.query-
|
|
19
|
-
import { C as Re, S as ze, _ as Be, a as Ve, b as He, c as Ue, d as We, f as Ge, g as Ke, h as qe, i as Je, l as Ye, m as Xe, n as Ze, o as Qe, p as $e, r as et, s as tt, t as nt, u as rt, v as it, x as at, y as ot } from "./BillingDocumentDetailViewDataProvider-
|
|
20
|
-
import { r as st } from "./InvoicingFileUploadProvider-
|
|
21
|
-
import { i as ct, n as lt, r as ut, t as dt } from "./InvoiceApproveDialogDataProvider-
|
|
22
|
-
import { t as ft } from "./invoiceDetail.query-
|
|
13
|
+
import { i as T, n as E, r as De } from "./CustomFieldValueText-DA0aPKwC.js";
|
|
14
|
+
import { t as Oe } from "./invoiceApprovalStatus.util-q-zHLdFV.js";
|
|
15
|
+
import { t as ke } from "./invoiceCustomer.service-DOexR54S.js";
|
|
16
|
+
import { a as Ae, i as je, n as Me, r as Ne, t as Pe } from "./invoiceIndexCache.util-CUlp4R7R.js";
|
|
17
|
+
import { n as Fe, t as Ie } from "./InvoiceApprovalStatusBadge-BJ3Q18bf.js";
|
|
18
|
+
import { t as Le } from "./issuerSettings.query-BHuLjV9P.js";
|
|
19
|
+
import { C as Re, S as ze, _ as Be, a as Ve, b as He, c as Ue, d as We, f as Ge, g as Ke, h as qe, i as Je, l as Ye, m as Xe, n as Ze, o as Qe, p as $e, r as et, s as tt, t as nt, u as rt, v as it, x as at, y as ot } from "./BillingDocumentDetailViewDataProvider-B3I6UIKY.js";
|
|
20
|
+
import { r as st } from "./InvoicingFileUploadProvider-BLBjPKqx.js";
|
|
21
|
+
import { i as ct, n as lt, r as ut, t as dt } from "./InvoiceApproveDialogDataProvider-DaCEHgs0.js";
|
|
22
|
+
import { t as ft } from "./invoiceDetail.query-B5w0Vlsy.js";
|
|
23
23
|
import pt, { z as D } from "zod";
|
|
24
24
|
import { useI18n as O } from "vue-i18n";
|
|
25
25
|
import { Fragment as k, computed as A, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createSlots as mt, createTextVNode as ht, createVNode as F, defineComponent as I, mergeModels as gt, mergeProps as L, normalizeClass as _t, openBlock as R, ref as vt, renderList as yt, resolveDynamicComponent as bt, toDisplayString as z, unref as B, useModel as xt, watch as St, withCtx as V } from "vue";
|
|
@@ -75,7 +75,7 @@ var un = { class: "flex min-w-0 flex-1 flex-col gap-lg" }, dn = { class: "flex f
|
|
|
75
75
|
error: "text-error-primary",
|
|
76
76
|
info: "text-tertiary",
|
|
77
77
|
warning: "text-warning-primary"
|
|
78
|
-
})[d.value]), te = A(() => d.value === "info" ? b :
|
|
78
|
+
})[d.value]), te = A(() => d.value === "info" ? b : xe), y = A(() => ({
|
|
79
79
|
error: "text-error-primary",
|
|
80
80
|
info: "text-brand-secondary",
|
|
81
81
|
warning: "text-tertiary"
|
|
@@ -117,7 +117,7 @@ var un = { class: "flex min-w-0 flex-1 flex-col gap-lg" }, dn = { class: "flex f
|
|
|
117
117
|
}, z(B(a).t("wise_invoicing.invoice.approval_banner.view_pro_forma")), 3)]),
|
|
118
118
|
_: 1
|
|
119
119
|
}))], 64))])) : M("", !0)]),
|
|
120
|
-
l.value ? (R(), N("span", mn, [F(B(
|
|
120
|
+
l.value ? (R(), N("span", mn, [F(B(fe), { class: "size-(--spacing-lg) shrink-0 text-white" }), F(B(X), {
|
|
121
121
|
text: B(a).t("wise_invoicing.invoice.approval_status.rejected"),
|
|
122
122
|
class: "text-xs text-white"
|
|
123
123
|
}, null, 8, ["text"])])) : m.value !== null && g.value !== null ? (R(), j(B(rn), {
|
|
@@ -221,7 +221,7 @@ var _n = /* @__PURE__ */ I({
|
|
|
221
221
|
sequence: n.invoice.sequence,
|
|
222
222
|
"status-color": c.value,
|
|
223
223
|
"status-label": l.value,
|
|
224
|
-
icon: B(
|
|
224
|
+
icon: B(xe),
|
|
225
225
|
"subject-field": B(h),
|
|
226
226
|
"subject-placeholder": B(i).t("wise_invoicing.invoice.detail.header.subject_placeholder")
|
|
227
227
|
}, {
|
|
@@ -628,7 +628,7 @@ var Nn = /* @__PURE__ */ I({
|
|
|
628
628
|
}, {
|
|
629
629
|
default: V(() => [
|
|
630
630
|
F(B(J), {
|
|
631
|
-
icon: B(
|
|
631
|
+
icon: B(x),
|
|
632
632
|
"is-description-hidden": !0,
|
|
633
633
|
title: B(i).t("wise_invoicing.invoice.detail.header.edit_info"),
|
|
634
634
|
description: ""
|
|
@@ -723,14 +723,14 @@ var Nn = /* @__PURE__ */ I({
|
|
|
723
723
|
default: V(() => [
|
|
724
724
|
F(B(U), null, {
|
|
725
725
|
default: V(() => [F(B(W), {
|
|
726
|
-
icon: B(
|
|
726
|
+
icon: B(me),
|
|
727
727
|
label: B(n).t("wise_invoicing.invoice.detail.header.invoice_id")
|
|
728
728
|
}, null, 8, ["icon", "label"]), F(B(G), { text: t.invoice.sequence ?? "-" }, null, 8, ["text"])]),
|
|
729
729
|
_: 1
|
|
730
730
|
}),
|
|
731
731
|
F(B(U), null, {
|
|
732
732
|
default: V(() => [F(B(W), {
|
|
733
|
-
icon: B(
|
|
733
|
+
icon: B(oe),
|
|
734
734
|
label: B(n).t("wise_invoicing.invoice.detail.header.po_number")
|
|
735
735
|
}, null, 8, ["icon", "label"]), F(B(G), { text: t.invoice.poNumber ?? "-" }, null, 8, ["text"])]),
|
|
736
736
|
_: 1
|
|
@@ -744,14 +744,14 @@ var Nn = /* @__PURE__ */ I({
|
|
|
744
744
|
}),
|
|
745
745
|
F(B(U), null, {
|
|
746
746
|
default: V(() => [F(B(W), {
|
|
747
|
-
icon: B(
|
|
747
|
+
icon: B(xe),
|
|
748
748
|
label: B(n).t("wise_invoicing.invoice.detail.header.invoice_date")
|
|
749
749
|
}, null, 8, ["icon", "label"]), F(B(G), { text: d(t.invoice.issueOn) }, null, 8, ["text"])]),
|
|
750
750
|
_: 1
|
|
751
751
|
}),
|
|
752
752
|
F(B(U), null, {
|
|
753
753
|
default: V(() => [F(B(W), {
|
|
754
|
-
icon: B(
|
|
754
|
+
icon: B(Ce),
|
|
755
755
|
label: B(n).t("wise_invoicing.invoice.detail.header.due_date"),
|
|
756
756
|
variant: t.invoice.isOverdue ? "error" : "default"
|
|
757
757
|
}, null, 8, [
|
|
@@ -888,7 +888,7 @@ var Rn = /* @__PURE__ */ I({
|
|
|
888
888
|
default: V(() => [t.payment.source === B(r).MANUAL ? (R(), j(B(Yt), {
|
|
889
889
|
key: 0,
|
|
890
890
|
label: B(n).t("wise_invoicing.invoice.detail.payments.delete.title"),
|
|
891
|
-
icon: B(
|
|
891
|
+
icon: B(le),
|
|
892
892
|
size: "sm",
|
|
893
893
|
variant: "tertiary",
|
|
894
894
|
onClick: i[0] ||= (e) => t.onDelete(t.payment)
|
|
@@ -904,7 +904,7 @@ var Rn = /* @__PURE__ */ I({
|
|
|
904
904
|
setup(e) {
|
|
905
905
|
let t = e;
|
|
906
906
|
return (e, n) => (R(), j(B(en), null, {
|
|
907
|
-
default: V(() => [t.payment.source === B(r).MANUAL ? (R(), j(B(
|
|
907
|
+
default: V(() => [t.payment.source === B(r).MANUAL ? (R(), j(B(ge), {
|
|
908
908
|
key: 0,
|
|
909
909
|
class: "size-4 text-brand-600"
|
|
910
910
|
})) : M("", !0)]),
|
|
@@ -1203,7 +1203,7 @@ var qn = /* @__PURE__ */ I({
|
|
|
1203
1203
|
}), m.value ? (R(), j(B(Pt), {
|
|
1204
1204
|
key: 0,
|
|
1205
1205
|
label: B(n).t("wise_invoicing.invoice.detail.payments.add"),
|
|
1206
|
-
"icon-left": B(
|
|
1206
|
+
"icon-left": B(pe),
|
|
1207
1207
|
size: "sm",
|
|
1208
1208
|
onClick: h
|
|
1209
1209
|
}, null, 8, ["label", "icon-left"])) : M("", !0)]),
|
|
@@ -1548,7 +1548,7 @@ var pr = /* @__PURE__ */ I({
|
|
|
1548
1548
|
default: V(() => [F(B(J), {
|
|
1549
1549
|
title: B(i).t("wise_invoicing.invoice.approval_revert.title"),
|
|
1550
1550
|
description: B(i).t("wise_invoicing.invoice.approval_revert.description", { date: c.value }),
|
|
1551
|
-
icon: B(
|
|
1551
|
+
icon: B(ce),
|
|
1552
1552
|
"icon-variant": "warning"
|
|
1553
1553
|
}, null, 8, [
|
|
1554
1554
|
"title",
|
|
@@ -1638,7 +1638,7 @@ var hr = /* @__PURE__ */ I({
|
|
|
1638
1638
|
F(B(J), {
|
|
1639
1639
|
title: B(i).t("wise_invoicing.invoice.finalize_out_of_sync.title"),
|
|
1640
1640
|
description: B(i).t("wise_invoicing.invoice.finalize_out_of_sync.description", { date: s.value }),
|
|
1641
|
-
icon: B(
|
|
1641
|
+
icon: B(_e),
|
|
1642
1642
|
"icon-variant": "warning"
|
|
1643
1643
|
}, null, 8, [
|
|
1644
1644
|
"title",
|
|
@@ -1701,7 +1701,7 @@ async function br(e) {
|
|
|
1701
1701
|
t !== null && window.open(t, "_blank", "noopener");
|
|
1702
1702
|
}
|
|
1703
1703
|
function xr(e) {
|
|
1704
|
-
let t = O(), n = Q(), r = Ot(), s = h(), c = ln(), l = c.create(hr), u = c.create(dt), p = c.create(ut), m = c.create(pr), g = c.create(ct), _ = c.create(_r), ee = c.create(He), v = lr(), te = tr(), ne = nr(), re = rr(), ae = ir(),
|
|
1704
|
+
let t = O(), n = Q(), r = Ot(), s = h(), c = ln(), l = c.create(hr), u = c.create(dt), p = c.create(ut), m = c.create(pr), g = c.create(ct), _ = c.create(_r), ee = c.create(He), v = lr(), te = tr(), ne = nr(), re = rr(), ae = ir(), oe = ar(), fe = or(), pe = sr(), me = cr(), _e = lt(), ye = ur(), xe = dr(), { shouldSkipConfirmation: Se } = at(), x = vt(null), S = A(() => E.getMetadata(e.value.status)), C = A(() => x.value ?? e.value.isDisputed), Ee = A(() => e.value.status !== o.DRAFT && e.value.status !== o.READY), w = A(() => e.value.lifecycleStatus === f.FINALIZED);
|
|
1705
1705
|
function T(e) {
|
|
1706
1706
|
return S.value.actions.includes(e);
|
|
1707
1707
|
}
|
|
@@ -1743,7 +1743,7 @@ function xr(e) {
|
|
|
1743
1743
|
});
|
|
1744
1744
|
}
|
|
1745
1745
|
async function Ke() {
|
|
1746
|
-
let r = await
|
|
1746
|
+
let r = await _e.execute({ params: {
|
|
1747
1747
|
invoiceUuid: e.value.uuid,
|
|
1748
1748
|
hasActiveApproval: e.value.approval !== null
|
|
1749
1749
|
} });
|
|
@@ -1769,7 +1769,7 @@ function xr(e) {
|
|
|
1769
1769
|
}) });
|
|
1770
1770
|
}
|
|
1771
1771
|
async function qe() {
|
|
1772
|
-
let r = await
|
|
1772
|
+
let r = await fe.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1773
1773
|
if (r.isErr()) {
|
|
1774
1774
|
n.apiError(r.error);
|
|
1775
1775
|
return;
|
|
@@ -1839,7 +1839,7 @@ function xr(e) {
|
|
|
1839
1839
|
n.show({ message: t.t("wise_invoicing.invoice.mark_as_draft.success") });
|
|
1840
1840
|
}
|
|
1841
1841
|
async function $e() {
|
|
1842
|
-
let r = await
|
|
1842
|
+
let r = await oe.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1843
1843
|
if (r.isErr()) {
|
|
1844
1844
|
n.apiError(r.error);
|
|
1845
1845
|
return;
|
|
@@ -1857,7 +1857,7 @@ function xr(e) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
async function tt() {
|
|
1859
1859
|
x.value = !1;
|
|
1860
|
-
let r = await
|
|
1860
|
+
let r = await xe.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
1861
1861
|
if (r.isErr()) {
|
|
1862
1862
|
x.value = null, n.apiError(r.error);
|
|
1863
1863
|
return;
|
|
@@ -1939,7 +1939,7 @@ function xr(e) {
|
|
|
1939
1939
|
},
|
|
1940
1940
|
{
|
|
1941
1941
|
isLoading: me.isLoading.value,
|
|
1942
|
-
iconRight:
|
|
1942
|
+
iconRight: ge,
|
|
1943
1943
|
key: "markAsReady",
|
|
1944
1944
|
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
|
|
1945
1945
|
visible: T("markAsReady"),
|
|
@@ -1954,7 +1954,7 @@ function xr(e) {
|
|
|
1954
1954
|
onClick: We
|
|
1955
1955
|
},
|
|
1956
1956
|
{
|
|
1957
|
-
isLoading:
|
|
1957
|
+
isLoading: _e.isLoading.value,
|
|
1958
1958
|
iconLeft: b,
|
|
1959
1959
|
key: "sendApprovalRequest",
|
|
1960
1960
|
label: t.t("wise_invoicing.invoice.detail.actions.send_approval_request"),
|
|
@@ -1966,7 +1966,7 @@ function xr(e) {
|
|
|
1966
1966
|
isDisabled: ke.value !== null,
|
|
1967
1967
|
isLoading: re.isLoading.value,
|
|
1968
1968
|
disabledReason: Ae.value,
|
|
1969
|
-
iconLeft:
|
|
1969
|
+
iconLeft: ve,
|
|
1970
1970
|
key: "finalize",
|
|
1971
1971
|
label: t.t("wise_invoicing.invoice.detail.actions.finalize"),
|
|
1972
1972
|
variant: ke.value === null ? "primary" : "secondary",
|
|
@@ -1976,7 +1976,7 @@ function xr(e) {
|
|
|
1976
1976
|
].filter((e) => e.visible)), D = A(() => {
|
|
1977
1977
|
let n = [
|
|
1978
1978
|
{
|
|
1979
|
-
icon:
|
|
1979
|
+
icon: Ce,
|
|
1980
1980
|
key: "markAsProtested",
|
|
1981
1981
|
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_disputed"),
|
|
1982
1982
|
visible: w.value && !C.value,
|
|
@@ -1990,7 +1990,7 @@ function xr(e) {
|
|
|
1990
1990
|
onSelect: $e
|
|
1991
1991
|
},
|
|
1992
1992
|
{
|
|
1993
|
-
icon:
|
|
1993
|
+
icon: ge,
|
|
1994
1994
|
key: "withdrawProtest",
|
|
1995
1995
|
label: t.t("wise_invoicing.invoice.detail.actions.withdraw_dispute"),
|
|
1996
1996
|
visible: w.value && C.value,
|
|
@@ -2011,21 +2011,21 @@ function xr(e) {
|
|
|
2011
2011
|
onSelect: it
|
|
2012
2012
|
},
|
|
2013
2013
|
{
|
|
2014
|
-
icon:
|
|
2014
|
+
icon: ce,
|
|
2015
2015
|
key: "backToDraft",
|
|
2016
2016
|
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
|
|
2017
2017
|
visible: T("markAsDraft"),
|
|
2018
2018
|
onSelect: Qe
|
|
2019
2019
|
},
|
|
2020
2020
|
{
|
|
2021
|
-
icon:
|
|
2021
|
+
icon: be,
|
|
2022
2022
|
key: "duplicate",
|
|
2023
2023
|
label: t.t("wise_invoicing.invoice.detail.actions.duplicate"),
|
|
2024
2024
|
visible: !0,
|
|
2025
2025
|
onSelect: ot
|
|
2026
2026
|
},
|
|
2027
2027
|
{
|
|
2028
|
-
icon:
|
|
2028
|
+
icon: de,
|
|
2029
2029
|
key: "rejectApproval",
|
|
2030
2030
|
label: t.t("wise_invoicing.invoice.detail.actions.reject_approval"),
|
|
2031
2031
|
visible: ze.value,
|
|
@@ -2039,14 +2039,14 @@ function xr(e) {
|
|
|
2039
2039
|
onSelect: Ke
|
|
2040
2040
|
},
|
|
2041
2041
|
{
|
|
2042
|
-
icon:
|
|
2042
|
+
icon: Te,
|
|
2043
2043
|
key: "markAsNeedsApproval",
|
|
2044
2044
|
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_needs_approval"),
|
|
2045
2045
|
visible: je.value,
|
|
2046
2046
|
onSelect: qe
|
|
2047
2047
|
},
|
|
2048
2048
|
{
|
|
2049
|
-
icon:
|
|
2049
|
+
icon: ce,
|
|
2050
2050
|
key: "unmarkAsNeedsApproval",
|
|
2051
2051
|
label: t.t("wise_invoicing.invoice.detail.actions.unmark_as_needs_approval"),
|
|
2052
2052
|
visible: Me.value,
|
|
@@ -2054,21 +2054,21 @@ function xr(e) {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
], a = [
|
|
2056
2056
|
{
|
|
2057
|
-
icon:
|
|
2057
|
+
icon: ue,
|
|
2058
2058
|
key: "archiveApproval",
|
|
2059
2059
|
label: t.t("wise_invoicing.invoice.detail.actions.archive_approval"),
|
|
2060
2060
|
visible: Le.value,
|
|
2061
2061
|
onSelect: Be
|
|
2062
2062
|
},
|
|
2063
2063
|
{
|
|
2064
|
-
icon:
|
|
2064
|
+
icon: se,
|
|
2065
2065
|
key: "createCreditNote",
|
|
2066
2066
|
label: t.t("wise_invoicing.invoice.detail.header.cancel_with_credit_note"),
|
|
2067
2067
|
visible: r,
|
|
2068
2068
|
onSelect: ft
|
|
2069
2069
|
},
|
|
2070
2070
|
{
|
|
2071
|
-
icon:
|
|
2071
|
+
icon: le,
|
|
2072
2072
|
key: "delete",
|
|
2073
2073
|
label: t.t("wise_invoicing.invoice.detail.actions.delete"),
|
|
2074
2074
|
visible: S.value.isEditable,
|