@wisemen/wise-invoicing-web 0.11.0 → 0.11.1
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/{BillingDocumentDetailViewDataProvider-DfhklAk7.js → BillingDocumentDetailViewDataProvider-lEoqq0aO.js} +2 -2
- package/dist/{BillingDocumentPdf-BB2SMDCB.js → BillingDocumentPdf-BChmqDnv.js} +1 -1
- package/dist/{CreditNoteDetailViewDataProvider-BGzQpcnR.js → CreditNoteDetailViewDataProvider-IgfhVHNB.js} +25 -14
- package/dist/{CreditNotePdfViewDataProvider-XOM7NYnq.js → CreditNotePdfViewDataProvider-CBQMNlLo.js} +2 -2
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DjdyQOVZ.js → InvoiceApprovalOutOfSyncIndicator-C4ZLDRiv.js} +1 -1
- package/dist/{InvoiceApprovalOverviewView-C3aLyrXp.js → InvoiceApprovalOverviewView-CmTPWWsc.js} +2 -2
- package/dist/{InvoiceApproveDialogDataProvider-0onYBqpZ.js → InvoiceApproveDialogDataProvider-CIeIkvgC.js} +1 -1
- package/dist/{InvoiceDetailViewDataProvider-CKfx3epN.js → InvoiceDetailViewDataProvider--DdALsMm.js} +24 -16
- package/dist/{InvoiceOverviewViewDataProvider-BZiIvHeu.js → InvoiceOverviewViewDataProvider-Tkfl5mtR.js} +2 -2
- package/dist/{InvoicePdfView-DCpZ068V.js → InvoicePdfView-DXxtuawk.js} +1 -1
- package/dist/{InvoicePdfViewDataProvider-BvhShZGZ.js → InvoicePdfViewDataProvider-DX5QXGge.js} +2 -2
- package/dist/{InvoicePublicPdfViewDataProvider-kNEg6nrZ.js → InvoicePublicPdfViewDataProvider-DZYSpqtF.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-DwuqQWQ-.js → InvoicePublicProFormaPdfViewDataProvider-Dp5qqrtf.js} +2 -2
- package/dist/{billingDocumentDetail.transformer-SThiU53H.js → billingDocumentDetail.transformer-CcnSe7Fz.js} +12 -10
- package/dist/{creditNoteDetail.query-CJFCcuup.js → creditNoteDetail.query-BVbXoNt-.js} +1 -1
- package/dist/index.js +10 -10
- package/dist/{invoice.service-CqfnsDYm.js → invoice.service-jakQLnDu.js} +1 -2
- package/dist/{invoiceCustomer.service-D55paEPq.js → invoiceCustomer.service-Bp59E0ZJ.js} +1 -1
- package/dist/{invoiceDetail.query-CbfNqxKy.js → invoiceDetail.query-BBhA0ZAn.js} +1 -1
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +0 -1
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarPartySection.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import "./api.util-B3JqQVJA.js";
|
|
|
2
2
|
import { O as e, _ as t, b as n, f as r, g as i, i as a, k as o, l as s, n as c, o as l, r as u, t as d, u as f, x as p } from "./documentTitle.composable-RvqrZTBa.js";
|
|
3
3
|
import { n as m, r as h, t as g } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { n as _ } from "./invoicingConfig.composable-BdQY3E3Q.js";
|
|
5
|
-
import { r as v, t as y } from "./invoice.service-
|
|
5
|
+
import { r as v, t as y } from "./invoice.service-jakQLnDu.js";
|
|
6
6
|
import { r as b, t as x } from "./CustomFieldValueText-TbpAeFXi.js";
|
|
7
7
|
import { n as S } from "./download.util-LyRpGWKA.js";
|
|
8
8
|
import { t as ee } from "./percentage.util-Bl78kSSk.js";
|
|
@@ -14,7 +14,7 @@ import { t as Qe } from "./dist-BFx8U4Su.js";
|
|
|
14
14
|
import { t as $e } from "./invoiceApprovalStatus.util-Nd4E3qlZ.js";
|
|
15
15
|
import { t as et } from "./InvoiceApprovalStatusBadge-C2Wj9b_Z.js";
|
|
16
16
|
import { t as tt } from "./dashboard-BaWGNEek.js";
|
|
17
|
-
import { n as nt, r as rt, t as it } from "./BillingDocumentPdf-
|
|
17
|
+
import { n as nt, r as rt, t as it } from "./BillingDocumentPdf-BChmqDnv.js";
|
|
18
18
|
import { n as at, r as ot, t as st } from "./InvoicingFileUploadProvider-BsK5eRGE.js";
|
|
19
19
|
import ct, { z as T } from "zod";
|
|
20
20
|
import { useI18n as E } from "vue-i18n";
|
|
@@ -4,7 +4,7 @@ import { n, t as r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
|
4
4
|
import { n as i } from "./invoicingConfig.composable-BdQY3E3Q.js";
|
|
5
5
|
import { n as a } from "./address.transformer-jGddczLV.js";
|
|
6
6
|
import { bt as o } from "./dist-BMzyJZTx.js";
|
|
7
|
-
import { i as s } from "./billingDocumentDetail.transformer-
|
|
7
|
+
import { i as s } from "./billingDocumentDetail.transformer-CcnSe7Fz.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";
|
|
@@ -7,8 +7,8 @@ import { n as l, t as u } from "./download.util-LyRpGWKA.js";
|
|
|
7
7
|
import { L as d, T as f, Tt as p, U as m, V as h, b as g, dt as _, i as ee, it as v, nt as y, q as b, u as x } from "./dist-BMzyJZTx.js";
|
|
8
8
|
import { n as S, t as C } from "./dist-Cdbpkd3Y.js";
|
|
9
9
|
import { t as w } from "./formango.util-D5c2ql--.js";
|
|
10
|
-
import { n as T, r as E, t as D } from "./creditNoteDetail.query-
|
|
11
|
-
import { C as O, S as te, _ as k, a as ne, b as re, c as ie, d as ae, f as oe, g as se, h as ce, i as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, x as ye, y as be } from "./BillingDocumentDetailViewDataProvider-
|
|
10
|
+
import { n as T, r as E, t as D } from "./creditNoteDetail.query-BVbXoNt-.js";
|
|
11
|
+
import { C as O, S as te, _ as k, a as ne, b as re, c as ie, d as ae, f as oe, g as se, h as ce, i as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, x as ye, y as be } from "./BillingDocumentDetailViewDataProvider-lEoqq0aO.js";
|
|
12
12
|
import { r as xe } from "./InvoicingFileUploadProvider-BsK5eRGE.js";
|
|
13
13
|
import Se, { z as A } from "zod";
|
|
14
14
|
import { useI18n as j } from "vue-i18n";
|
|
@@ -439,7 +439,8 @@ var et = /* @__PURE__ */ R({
|
|
|
439
439
|
default: !1
|
|
440
440
|
},
|
|
441
441
|
name: {},
|
|
442
|
-
address: {}
|
|
442
|
+
address: {},
|
|
443
|
+
email: { default: null }
|
|
443
444
|
},
|
|
444
445
|
setup(e) {
|
|
445
446
|
let t = e, n = we(t.isDefaultOpen);
|
|
@@ -473,15 +474,23 @@ var et = /* @__PURE__ */ R({
|
|
|
473
474
|
key: 0,
|
|
474
475
|
gap: "xs"
|
|
475
476
|
}, {
|
|
476
|
-
default: U(() => [
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
477
|
+
default: U(() => [
|
|
478
|
+
L(H(J), {
|
|
479
|
+
text: t.name,
|
|
480
|
+
class: "text-xs font-medium text-primary"
|
|
481
|
+
}, null, 8, ["text"]),
|
|
482
|
+
t.address ? (V(), P(H(J), {
|
|
483
|
+
key: 0,
|
|
484
|
+
truncate: !1,
|
|
485
|
+
text: H(r).format(t.address),
|
|
486
|
+
class: "text-xs text-primary"
|
|
487
|
+
}, null, 8, ["text"])) : F("", !0),
|
|
488
|
+
t.email ? (V(), P(H(J), {
|
|
489
|
+
key: 1,
|
|
490
|
+
text: t.email,
|
|
491
|
+
class: "text-xs text-primary"
|
|
492
|
+
}, null, 8, ["text"])) : F("", !0)
|
|
493
|
+
]),
|
|
485
494
|
_: 1
|
|
486
495
|
})) : F("", !0)]),
|
|
487
496
|
_: 1
|
|
@@ -592,11 +601,13 @@ var et = /* @__PURE__ */ R({
|
|
|
592
601
|
"is-default-open": !0,
|
|
593
602
|
name: n.creditNote.customer.name ?? "-",
|
|
594
603
|
title: H(r).t("wise_invoicing.invoice.detail.header.bill_to"),
|
|
595
|
-
address: n.creditNote.customer.address
|
|
604
|
+
address: n.creditNote.customer.address,
|
|
605
|
+
email: n.creditNote.recipient?.email ?? null
|
|
596
606
|
}, null, 8, [
|
|
597
607
|
"name",
|
|
598
608
|
"title",
|
|
599
|
-
"address"
|
|
609
|
+
"address",
|
|
610
|
+
"email"
|
|
600
611
|
]),
|
|
601
612
|
L(H(ze)),
|
|
602
613
|
L($, {
|
package/dist/{CreditNotePdfViewDataProvider-XOM7NYnq.js → CreditNotePdfViewDataProvider-CBQMNlLo.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./invoicingConfig.composable-BdQY3E3Q.js";
|
|
2
2
|
import { t } from "./DataProvider-C3uEds9v.js";
|
|
3
|
-
import { t as n } from "./InvoicePdfView-
|
|
4
|
-
import { t as r } from "./creditNoteDetail.query-
|
|
3
|
+
import { t as n } from "./InvoicePdfView-DXxtuawk.js";
|
|
4
|
+
import { t as r } from "./creditNoteDetail.query-BVbXoNt-.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,5 +1,5 @@
|
|
|
1
1
|
import { ft as e } from "./dist-BMzyJZTx.js";
|
|
2
|
-
import { t } from "./invoiceCustomer.service-
|
|
2
|
+
import { t } from "./invoiceCustomer.service-Bp59E0ZJ.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-C3aLyrXp.js → InvoiceApprovalOverviewView-CmTPWWsc.js}
RENAMED
|
@@ -6,9 +6,9 @@ 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
|
|
|
6
6
|
import { n as v } from "./dist-Cdbpkd3Y.js";
|
|
7
7
|
import { f as y, i as b, n as te, o as ne, r as x, s as re } from "./dist-DALBiuub.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-C4ZLDRiv.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-CIeIkvgC.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./i18n.lib-Dn7eBA9l.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-jakQLnDu.js";
|
|
5
5
|
import { G as r, ft as i, xt as a } from "./dist-BMzyJZTx.js";
|
|
6
6
|
import { t as o } from "./DataProvider-C3uEds9v.js";
|
|
7
7
|
import { t as s } from "./formango.util-D5c2ql--.js";
|
package/dist/{InvoiceDetailViewDataProvider-CKfx3epN.js → InvoiceDetailViewDataProvider--DdALsMm.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-BdQY3E3Q.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-jakQLnDu.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-TbpAeFXi.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-
|
|
15
|
+
import { t as Ae } from "./invoiceCustomer.service-Bp59E0ZJ.js";
|
|
16
16
|
import { a as je, i as Me, n as Ne, r as Pe, t as Fe } from "./invoiceIndexCache.util-Drx5EcfM.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-lEoqq0aO.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-CIeIkvgC.js";
|
|
22
|
+
import { t as pt } from "./invoiceDetail.query-BBhA0ZAn.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";
|
|
@@ -813,17 +813,25 @@ var Fn = /* @__PURE__ */ L({
|
|
|
813
813
|
}
|
|
814
814
|
}, {
|
|
815
815
|
default: H(() => [I(V(W), { orientation: "vertical" }, {
|
|
816
|
-
default: H(() => [
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
text
|
|
825
|
-
|
|
826
|
-
|
|
816
|
+
default: H(() => [
|
|
817
|
+
I(V(Z), {
|
|
818
|
+
text: t.invoice.customer.name ?? "-",
|
|
819
|
+
class: "text-xs font-medium text-primary"
|
|
820
|
+
}, null, 8, ["text"]),
|
|
821
|
+
t.invoice.customer.address ? (z(), P(A, { key: 0 }, [I(V(Z), {
|
|
822
|
+
text: V(ne).formatLines(t.invoice.customer.address)[0] ?? "",
|
|
823
|
+
class: "text-xs text-primary"
|
|
824
|
+
}, null, 8, ["text"]), t.invoice.customer.address ? (z(), M(V(Z), {
|
|
825
|
+
key: 0,
|
|
826
|
+
text: V(ne).formatLines(t.invoice.customer.address)[1] ?? "",
|
|
827
|
+
class: "text-xs text-primary"
|
|
828
|
+
}, null, 8, ["text"])) : N("", !0)], 64)) : N("", !0),
|
|
829
|
+
t.invoice.recipient === null ? N("", !0) : (z(), M(V(Z), {
|
|
830
|
+
key: 1,
|
|
831
|
+
text: t.invoice.recipient.email ?? "",
|
|
832
|
+
class: "text-xs text-primary"
|
|
833
|
+
}, null, 8, ["text"]))
|
|
834
|
+
]),
|
|
827
835
|
_: 1
|
|
828
836
|
})]),
|
|
829
837
|
_: 1
|
|
@@ -4,7 +4,7 @@ import { A as t, E as n, _ as r, a as i, b as a, c as o, d as s, l as c, o as l,
|
|
|
4
4
|
import { n as h, r as g, t as _ } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
5
|
import { t as v } from "./search.composable-CU9OpyUB.js";
|
|
6
6
|
import { t as y } from "./src-DUSgQTKr.js";
|
|
7
|
-
import { t as b } from "./invoice.service-
|
|
7
|
+
import { t as b } from "./invoice.service-jakQLnDu.js";
|
|
8
8
|
import { a as x, i as S, n as ee, r as te, t as ne } from "./CustomFieldValueText-TbpAeFXi.js";
|
|
9
9
|
import { r as re, t as ie } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
10
10
|
import { L as ae, Tt as oe, ct as se, d as ce, dt as le, i as ue, nt as de, rt as fe } from "./dist-BMzyJZTx.js";
|
|
@@ -14,7 +14,7 @@ import { t as ge } from "./DataProvider-C3uEds9v.js";
|
|
|
14
14
|
import { a as _e, c as C, d as ve, f as w, i as ye, l as T, n as be, o as xe, r as E, s as Se, t as Ce, u as we } from "./dist-DALBiuub.js";
|
|
15
15
|
import { t as Te } from "./formango.util-D5c2ql--.js";
|
|
16
16
|
import { t as D } from "./invoiceApprovalStatus.util-Nd4E3qlZ.js";
|
|
17
|
-
import { n as Ee, t as De } from "./InvoiceApprovalOutOfSyncIndicator-
|
|
17
|
+
import { n as Ee, t as De } from "./InvoiceApprovalOutOfSyncIndicator-C4ZLDRiv.js";
|
|
18
18
|
import { a as Oe, i as ke, n as Ae, o as je, r as Me, t as O } from "./invoiceIndexCache.util-Drx5EcfM.js";
|
|
19
19
|
import { t as Ne } from "./InvoiceApprovalStatusBadge-C2Wj9b_Z.js";
|
|
20
20
|
import { t as Pe } from "./issuerSettings.query-BOgWdNmP.js";
|
|
@@ -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-BChmqDnv.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-BvhShZGZ.js → InvoicePdfViewDataProvider-DX5QXGge.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./invoicingConfig.composable-BdQY3E3Q.js";
|
|
2
2
|
import { t } from "./DataProvider-C3uEds9v.js";
|
|
3
|
-
import { t as n } from "./InvoicePdfView-
|
|
4
|
-
import { t as r } from "./invoiceDetail.query-
|
|
3
|
+
import { t as n } from "./InvoicePdfView-DXxtuawk.js";
|
|
4
|
+
import { t as r } from "./invoiceDetail.query-BBhA0ZAn.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
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { n as t } from "./invoicingConfig.composable-BdQY3E3Q.js";
|
|
3
|
-
import { t as n } from "./invoice.service-
|
|
3
|
+
import { t as n } from "./invoice.service-jakQLnDu.js";
|
|
4
4
|
import { t as r } from "./DataProvider-C3uEds9v.js";
|
|
5
|
-
import { t as i } from "./InvoicePdfView-
|
|
5
|
+
import { t as i } from "./InvoicePdfView-DXxtuawk.js";
|
|
6
6
|
import { useI18n as a } from "vue-i18n";
|
|
7
7
|
import { computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, openBlock as f, resolveDynamicComponent as p, unref as m, watch as h, withCtx as g } from "vue";
|
|
8
8
|
import { useQuery as _ } from "@wisemen/vue-core-api-utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./invoicingConfig.composable-BdQY3E3Q.js";
|
|
2
|
-
import { t } from "./invoice.service-
|
|
2
|
+
import { t } from "./invoice.service-jakQLnDu.js";
|
|
3
3
|
import { t as n } from "./DataProvider-C3uEds9v.js";
|
|
4
|
-
import { t as r } from "./InvoicePdfView-
|
|
4
|
+
import { t as r } from "./InvoicePdfView-DXxtuawk.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";
|
|
@@ -213,6 +213,12 @@ function _(e) {
|
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
function v(e) {
|
|
216
|
+
return e === null ? null : {
|
|
217
|
+
name: e.name,
|
|
218
|
+
email: e.email
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
function y(e) {
|
|
216
222
|
if (e.balanceDueAmount === null) return null;
|
|
217
223
|
let t = e.paidAmount?.amount ?? 0, n = Math.max(e.grossAmount.amount - e.balanceDueAmount.amount - t, 0);
|
|
218
224
|
return n > 0 ? r.fromDto({
|
|
@@ -220,9 +226,9 @@ function v(e) {
|
|
|
220
226
|
amount: n
|
|
221
227
|
}) : null;
|
|
222
228
|
}
|
|
223
|
-
var
|
|
229
|
+
var b = class {
|
|
224
230
|
static fromViewInvoiceDetailDto(e, t, o) {
|
|
225
|
-
let l = e.ungroupedLines.map(h), p = e.groups.toSorted((e, t) => e.position - t.position).map(g),
|
|
231
|
+
let l = e.ungroupedLines.map(h), p = e.groups.toSorted((e, t) => e.position - t.position).map(g), b = [...l, ...d.flattenLines(p)].toSorted((e, t) => e.position - t.position);
|
|
226
232
|
return {
|
|
227
233
|
uuid: t,
|
|
228
234
|
createdAt: i.fromDto(e.createdAt),
|
|
@@ -268,7 +274,7 @@ var y = class {
|
|
|
268
274
|
grossAmount: r.fromDto(e.grossAmount),
|
|
269
275
|
groups: p,
|
|
270
276
|
lifecycleStatus: e.lifecycleStatus,
|
|
271
|
-
lines:
|
|
277
|
+
lines: b,
|
|
272
278
|
netAmount: r.fromDto(e.netAmount),
|
|
273
279
|
originalInvoice: e.originalInvoice === null ? null : _(e.originalInvoice),
|
|
274
280
|
paidAmount: r.fromNullableDto(e.paidAmount),
|
|
@@ -278,17 +284,13 @@ var y = class {
|
|
|
278
284
|
uuid: e.preparedBy.uuid,
|
|
279
285
|
name: `${e.preparedBy.firstName ?? "-"} ${e.preparedBy.lastName ?? "-"}`
|
|
280
286
|
},
|
|
281
|
-
recipient: e.
|
|
282
|
-
uuid: e.recipient.uuid,
|
|
283
|
-
name: e.recipient.name,
|
|
284
|
-
email: e.recipient.email
|
|
285
|
-
},
|
|
287
|
+
recipient: v(e.requiresPriorApproval ? e.approvalRecipient : e.billingDocumentRecipient),
|
|
286
288
|
rejectionFiles: e.rejectionFiles.map(f.fromDto),
|
|
287
289
|
sequence: e.sequence,
|
|
288
290
|
settlementStatus: e.settlementStatus,
|
|
289
291
|
status: e.status,
|
|
290
292
|
subject: s.trimOrNull(e.subject),
|
|
291
|
-
totalCreditedAmount:
|
|
293
|
+
totalCreditedAmount: y(e),
|
|
292
294
|
totalDiscountAmount: r.fromNullableDto(e.totalDiscountAmount),
|
|
293
295
|
type: o,
|
|
294
296
|
ungroupedLines: l,
|
|
@@ -302,4 +304,4 @@ var y = class {
|
|
|
302
304
|
}
|
|
303
305
|
};
|
|
304
306
|
//#endregion
|
|
305
|
-
export { u as a, d as i, m as n, l as o, f as r,
|
|
307
|
+
export { u as a, d as i, m as n, l as o, f as r, b as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { H as e, L as t, S as n, T as r, V as i, Y as a, h as o, it as s, t as c, y as l } from "./api.util-B3JqQVJA.js";
|
|
2
2
|
import { r as u, x as d } from "./documentTitle.composable-RvqrZTBa.js";
|
|
3
3
|
import { n as f, t as p } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
4
|
-
import { a as m, n as h, o as g, t as _ } from "./billingDocumentDetail.transformer-
|
|
4
|
+
import { a as m, n as h, o as g, t as _ } from "./billingDocumentDetail.transformer-CcnSe7Fz.js";
|
|
5
5
|
import { t as v } from "./dist-BFx8U4Su.js";
|
|
6
6
|
import { useQuery as y } from "@wisemen/vue-core-api-utils";
|
|
7
7
|
//#region src/modules/credit-note/models/detail/creditNoteDetail.transformer.ts
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { n as u, r as d, t as f } from "./useCurrencyFormat.composable-MtZaqKnO.
|
|
|
5
5
|
import { n as p, t as m } from "./invoicingConfig.composable-BdQY3E3Q.js";
|
|
6
6
|
import { t as h } from "./search.composable-CU9OpyUB.js";
|
|
7
7
|
import { t as g } from "./src-DUSgQTKr.js";
|
|
8
|
-
import { a as ee, i as _, r as v, t as y } from "./InvoiceOverviewViewDataProvider-
|
|
8
|
+
import { a as ee, i as _, r as v, t as y } from "./InvoiceOverviewViewDataProvider-Tkfl5mtR.js";
|
|
9
9
|
import { n as b } from "./address.transformer-jGddczLV.js";
|
|
10
10
|
import { t as x } from "./addressForm.model-C853zEtX.js";
|
|
11
11
|
import { a as S, i as te, n as C, r as w } from "./CustomFieldValueText-TbpAeFXi.js";
|
|
@@ -21,7 +21,7 @@ import { t as ue } from "./DunningCaseDetailViewDataProvider-BGrHh894.js";
|
|
|
21
21
|
import { a as de, i as fe, l as A, n as pe, o as me, r as he, s as ge, t as j } from "./dist-DALBiuub.js";
|
|
22
22
|
import { t as _e } from "./DunningCaseReminderPdfViewDataProvider-D-CfDeC8.js";
|
|
23
23
|
import { t as ve } from "./ReminderSettingsViewDataProvider-onbGyWXX.js";
|
|
24
|
-
import { r as ye, t as be } from "./InvoicePublicPdfViewDataProvider-
|
|
24
|
+
import { r as ye, t as be } from "./InvoicePublicPdfViewDataProvider-DZYSpqtF.js";
|
|
25
25
|
import { z as M } from "zod";
|
|
26
26
|
import { useI18n as N } from "vue-i18n";
|
|
27
27
|
import { Fragment as xe, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as Se, createVNode as z, defineComponent as B, openBlock as V, toDisplayString as H, unref as U, withCtx as W } from "vue";
|
|
@@ -299,7 +299,7 @@ var et = Y([{
|
|
|
299
299
|
children: [{
|
|
300
300
|
name: "invoice-approval-overview",
|
|
301
301
|
path: "",
|
|
302
|
-
component: () => import("./InvoiceApprovalOverviewView-
|
|
302
|
+
component: () => import("./InvoiceApprovalOverviewView-CmTPWWsc.js"),
|
|
303
303
|
meta: { permission: "invoice-approval.read" }
|
|
304
304
|
}]
|
|
305
305
|
}]), it = Y([{
|
|
@@ -337,13 +337,13 @@ function ot(e) {
|
|
|
337
337
|
children: [{
|
|
338
338
|
name: "invoicing-invoice-overview",
|
|
339
339
|
path: "",
|
|
340
|
-
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-
|
|
340
|
+
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-Tkfl5mtR.js").then((e) => e.n)),
|
|
341
341
|
meta: { permission: "invoice.read" }
|
|
342
342
|
}, {
|
|
343
343
|
name: "invoicing-invoice-detail",
|
|
344
344
|
props: !0,
|
|
345
345
|
path: ":invoiceUuid",
|
|
346
|
-
component: () => import("./InvoiceDetailViewDataProvider
|
|
346
|
+
component: () => import("./InvoiceDetailViewDataProvider--DdALsMm.js"),
|
|
347
347
|
meta: { permission: "invoice.read" }
|
|
348
348
|
}]
|
|
349
349
|
}]);
|
|
@@ -352,16 +352,16 @@ var st = Y([{
|
|
|
352
352
|
name: "invoicing-invoice-pdf-preview",
|
|
353
353
|
props: !0,
|
|
354
354
|
path: "/invoicing/invoices/:invoiceUuid/pdf",
|
|
355
|
-
component: () => import("./InvoicePdfViewDataProvider-
|
|
355
|
+
component: () => import("./InvoicePdfViewDataProvider-DX5QXGge.js"),
|
|
356
356
|
meta: { permission: "invoice.read" }
|
|
357
357
|
}]), ct = Y([{
|
|
358
358
|
name: "invoicing-invoice-public-pdf-preview",
|
|
359
359
|
path: "/pdf",
|
|
360
|
-
component: () => import("./InvoicePublicPdfViewDataProvider-
|
|
360
|
+
component: () => import("./InvoicePublicPdfViewDataProvider-DZYSpqtF.js").then((e) => e.n)
|
|
361
361
|
}, {
|
|
362
362
|
name: "invoicing-invoice-public-pro-forma-pdf-preview",
|
|
363
363
|
path: "/pro-forma-pdf",
|
|
364
|
-
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-
|
|
364
|
+
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-Dp5qqrtf.js")
|
|
365
365
|
}]);
|
|
366
366
|
//#endregion
|
|
367
367
|
//#region src/routes/invoicingPublicRoutes.composable.ts
|
|
@@ -378,14 +378,14 @@ var ut = [{
|
|
|
378
378
|
name: "invoicing-credit-note-detail",
|
|
379
379
|
props: !0,
|
|
380
380
|
path: ":creditNoteUuid",
|
|
381
|
-
component: () => import("./CreditNoteDetailViewDataProvider-
|
|
381
|
+
component: () => import("./CreditNoteDetailViewDataProvider-IgfhVHNB.js"),
|
|
382
382
|
meta: { permission: "invoice.read" }
|
|
383
383
|
}]
|
|
384
384
|
}], dt = [{
|
|
385
385
|
name: "invoicing-credit-note-pdf-preview",
|
|
386
386
|
props: !0,
|
|
387
387
|
path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
|
|
388
|
-
component: () => import("./CreditNotePdfViewDataProvider-
|
|
388
|
+
component: () => import("./CreditNotePdfViewDataProvider-CBQMNlLo.js"),
|
|
389
389
|
meta: { permission: "invoice.read" }
|
|
390
390
|
}];
|
|
391
391
|
//#endregion
|
|
@@ -5,7 +5,7 @@ import { r as b } from "./src-DUSgQTKr.js";
|
|
|
5
5
|
import { t as x } from "./address.transformer-jGddczLV.js";
|
|
6
6
|
import { n as S, r as C, t as w } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
7
7
|
import { n as T, t as E } from "./percentage.util-Bl78kSSk.js";
|
|
8
|
-
import { a as D, i as De, n as O, o as Oe, r as ke, t as Ae } from "./billingDocumentDetail.transformer-
|
|
8
|
+
import { a as D, i as De, n as O, o as Oe, r as ke, t as Ae } from "./billingDocumentDetail.transformer-CcnSe7Fz.js";
|
|
9
9
|
import { t as k } from "./dist-BFx8U4Su.js";
|
|
10
10
|
import A from "zod";
|
|
11
11
|
import { ref as je } from "vue";
|
|
@@ -416,7 +416,6 @@ var Y = class e {
|
|
|
416
416
|
dueOn: w.fromNullableDto(t.dueOn),
|
|
417
417
|
originalInvoice: t.originalInvoice === null ? null : He(t.originalInvoice),
|
|
418
418
|
recipient: t.recipient === null ? null : {
|
|
419
|
-
uuid: t.recipient.uuid,
|
|
420
419
|
name: t.recipient.name,
|
|
421
420
|
email: t.recipient.email
|
|
422
421
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as e, Q as t, t as n } from "./api.util-B3JqQVJA.js";
|
|
2
|
-
import { o as r } from "./invoice.service-
|
|
2
|
+
import { o as r } from "./invoice.service-jakQLnDu.js";
|
|
3
3
|
//#region src/models/customer/customerDetail.transformer.ts
|
|
4
4
|
var i = class {
|
|
5
5
|
static fromDto(e) {
|
|
@@ -4,8 +4,10 @@ type __VLS_Props = {
|
|
|
4
4
|
isDefaultOpen?: boolean;
|
|
5
5
|
name: string;
|
|
6
6
|
address: Address | null;
|
|
7
|
+
email?: string | null;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
email: string | null;
|
|
9
11
|
isDefaultOpen: boolean;
|
|
10
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
13
|
declare const _default: typeof __VLS_export;
|
package/package.json
CHANGED