@wisemen/wise-invoicing-web 0.0.4 → 0.0.5
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-pePmiXWb.js → BillingDocumentDetailViewDataProvider-DdaNbuI2.js} +953 -863
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-Dg5JlQE1.js → BillingDocumentPdf-D_NOfBhQ.js} +4 -4
- package/dist/{CreditNoteDetailViewDataProvider-C-A0jyVr.js → CreditNoteDetailViewDataProvider-5ljhBOoN.js} +181 -181
- package/dist/{CreditNotePdfViewDataProvider-DNUvFVDj.js → CreditNotePdfViewDataProvider-CiWZN7Zy.js} +3 -3
- package/dist/{CustomFieldValueText-DDQq-975.js → CustomFieldValueText-ne5yy02J.js} +2 -2
- package/dist/DataProvider-Dj34ljUX.js +75 -0
- package/dist/{DunningCaseDetailViewDataProvider-0WV-7-vg.js → DunningCaseDetailViewDataProvider-CetbSmjq.js} +65 -56
- package/dist/DunningCaseOverviewView-Bq0BKVXG.js +747 -0
- package/dist/{DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js → DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js} +1 -1
- package/dist/DunningCaseSendDialog-C47X_JjC.js +349 -0
- package/dist/{InvoiceDetailViewDataProvider-BDL9lAWe.js → InvoiceDetailViewDataProvider-DYH2ODDi.js} +589 -498
- package/dist/{InvoiceOverviewViewDataProvider-B_jrcC_8.js → InvoiceOverviewViewDataProvider-BT9cuQXw.js} +546 -482
- package/dist/{InvoicePdfView-Bygb-9z6.js → InvoicePdfView-ug0BiMqe.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-nBk3XNrE.js → InvoicePdfViewDataProvider-WvjMiEZG.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-DHJP_-7-.js → InvoicePublicPdfViewDataProvider-BI9RQqYp.js} +3 -3
- package/dist/{IssuerSettingsViewDataProvider-Dk_Q6w6f.js → IssuerSettingsViewDataProvider-Bs4rEES2.js} +4 -4
- package/dist/ReminderSettingsViewDataProvider-5n2EfxPG.js +711 -0
- package/dist/{api.util-Dm_TQedZ.js → api.util-BCSgCfpS.js} +528 -509
- package/dist/{billingDocumentDetail.transformer-zMTbka5p.js → billingDocumentDetail.transformer-DIKAl4_L.js} +58 -89
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.gen.d.ts +28 -5
- package/dist/client/zod.gen.d.ts +869 -623
- package/dist/{creditNoteDetail.query-BZqgZRSu.js → creditNoteDetail.query-DHP69UiB.js} +13 -13
- package/dist/{dist-DP8KNFVD.js → dist-D9lp7NDv.js} +20 -36
- package/dist/{dist-DJ8yJcb9.js → dist-PErDVE6-.js} +621 -671
- package/dist/{documentTitle.composable-CeaFddr1.js → documentTitle.composable-4ApFl9TZ.js} +10 -8
- package/dist/{i18n.lib-DUbAMBRb.js → i18n.lib-B74GKndD.js} +50 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +78 -78
- package/dist/{invoice.service-ChHEtXBA.js → invoice.service-DG5eacZC.js} +46 -46
- package/dist/{invoiceDeliveryStatus.util-BsA-MlA3.js → invoiceDeliveryStatus.util-CX-IdqAu.js} +28 -28
- package/dist/{invoiceDetail.query-O_CGvdwg.js → invoiceDetail.query-C_IMGjOX.js} +1 -1
- package/dist/{invoicingConfig.composable-c6w_aMm1.js → invoicingConfig.composable-BYqn1I9n.js} +2 -2
- package/dist/{issuerSettings.query-RqtrZFaB.js → issuerSettings.query-6wnSPphB.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +50 -0
- package/dist/locales/en-US.json.d.ts +25 -0
- package/dist/locales/nl-BE.json.d.ts +25 -0
- package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +9 -3
- package/dist/modules/dunning-case/actions/dunningCase.actions.d.ts +12 -0
- package/dist/modules/dunning-case/actions/dunningCaseNavigateToCustomer.action.d.ts +1 -0
- package/dist/modules/dunning-case/actions/dunningCaseNavigateToDetail.action.d.ts +1 -0
- package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +2 -0
- package/dist/modules/dunning-case/models/dunningCase.model.d.ts +12 -2
- package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +3 -1
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +13 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewCustomerCell.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewDaysOverdueCell.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewLastReminderCell.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewLevelCell.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewMetrics.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewOutstandingCell.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewReminderCell.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewActionsCell.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewLastReminderCell.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewReminderCell.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +24 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/dialogs/dunningCaseBulkSendDialog.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +3 -1
- package/dist/modules/dunning-case/use-cases/settings/components/reminderLadderFeeNotice.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +3 -1
- package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +4 -4
- package/dist/modules/invoice/api/queries/invoiceUserSearch.query.d.ts +3 -0
- package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +8 -0
- package/dist/modules/invoice/api/services/invoiceUser.service.d.ts +6 -0
- package/dist/modules/invoice/components/form/InvoiceFormPreparedByField.vue.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/update/invoicePreparer.model.d.ts +4 -0
- package/dist/modules/invoice/models/invoice/update/invoicePreparer.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUserSearchQueryParams.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUserSearchQueryParams.transformer.d.ts +6 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
- package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Dfe5r84P.js} +32 -1
- package/dist/{reminderConfig.query-DzTN2AvU.js → reminderConfig.query-B9OQY7IT.js} +105 -90
- package/dist/search.composable-BCtYqudV.js +52 -0
- package/dist/style.css +1 -1
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +6 -6
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +1 -1
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +2 -2
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.spec.d.ts +1 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +3 -1
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +2 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +1 -0
- package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +19 -0
- package/dist/ui/data-provider/DataProviderErrorState.vue.d.ts +7 -0
- package/dist/ui/data-provider/dataProviderErrorState.spec.d.ts +1 -0
- package/package.json +6 -1
- package/dist/DataProvider-CfHLB3rH.js +0 -48
- package/dist/DunningCaseOverviewView-CHdzfbhb.js +0 -553
- package/dist/DunningCaseSendDialog-DBtwr2ue.js +0 -350
- package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +0 -668
package/dist/{InvoiceDetailViewDataProvider-BDL9lAWe.js → InvoiceDetailViewDataProvider-DYH2ODDi.js}
RENAMED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
4
|
-
import { r as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as qe } from "./
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
1
|
+
import { t as e } from "./i18n.lib-B74GKndD.js";
|
|
2
|
+
import { Y as t, t as n } from "./api.util-BCSgCfpS.js";
|
|
3
|
+
import { a as r, h as i, l as a, m as o, o as s, p as c, r as l, v as u } from "./documentTitle.composable-4ApFl9TZ.js";
|
|
4
|
+
import { r as d } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
+
import { t as f } from "./search.composable-BCtYqudV.js";
|
|
6
|
+
import { a as p, i as m, n as h, o as g, t as _ } from "./invoice.service-DG5eacZC.js";
|
|
7
|
+
import { t as v } from "./download.util-PjaUQR6r.js";
|
|
8
|
+
import { n as y } from "./invoicingConfig.composable-BYqn1I9n.js";
|
|
9
|
+
import { r as b } from "./address.transformer-B8C0pwT1.js";
|
|
10
|
+
import { D as ee, I as x, M as te, O as ne, Q as re, W as ie, X as ae, f as oe, g as se, h as S, i as ce, j as le, l as ue, t as C, tt as de, v as fe, w as pe } from "./dist-D9lp7NDv.js";
|
|
11
|
+
import { n as me, t as he } from "./dist-YTXTCfo1.js";
|
|
12
|
+
import { i as w, n as ge, r as _e } from "./CustomFieldValueText-ne5yy02J.js";
|
|
13
|
+
import { t as T } from "./formango.util-D5c2ql--.js";
|
|
14
|
+
import { a as ve, c as ye, i as be, n as xe, o as Se, r as Ce, s as we, t as E, u as Te } from "./invoiceDeliveryStatus.util-CX-IdqAu.js";
|
|
15
|
+
import { t as Ee } from "./issuerSettings.query-6wnSPphB.js";
|
|
16
|
+
import { C as De, S as Oe, T as ke, _ as Ae, a as je, b as Me, c as Ne, d as Pe, f as Fe, g as Ie, h as Le, i as Re, l as ze, m as Be, n as Ve, o as He, p as Ue, r as We, s as Ge, t as Ke, u as qe, v as Je, w as Ye, x as Xe, y as Ze } from "./BillingDocumentDetailViewDataProvider-DdaNbuI2.js";
|
|
17
|
+
import { t as Qe } from "./invoiceDetail.query-C_IMGjOX.js";
|
|
18
|
+
import { RouterLink as $e, useRouter as et } from "vue-router";
|
|
19
|
+
import tt, { z as D } from "zod";
|
|
20
|
+
import { useI18n as O } from "vue-i18n";
|
|
21
|
+
import { Fragment as nt, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as rt, createVNode as P, defineComponent as F, mergeModels as it, mergeProps as I, openBlock as L, ref as at, renderList as ot, toDisplayString as st, unref as R, useModel as ct, watch as lt, withCtx as z } from "vue";
|
|
22
|
+
import { useKeysetInfiniteQuery as ut, useMutation as B, useOffsetInfiniteQuery as dt, useQuery as ft } from "@wisemen/vue-core-api-utils";
|
|
23
|
+
import { Temporal as pt } from "temporal-polyfill";
|
|
24
|
+
import { UIAutocomplete as mt, UIBadge as V, UIBadgeLabel as ht, UIBadgeSeparator as gt, UIButton as _t, UIColumnLayout as vt, UIConfirmDialog as yt, UIDateField as H, UIDetailList as bt, UIDetailListGroup as xt, UIDetailListGroupItem as U, UIDetailListGroupItemLabel as W, UIDetailListGroupItemValueText as G, UIDetailListGroupSeparator as St, UIDialogBody as Ct, UIDialogFooter as K, UIDialogFooterCancel as q, UIDialogFooterSubmit as wt, UIDialogHeader as J, UIForm as Tt, UIFormDialog as Et, UIFormFieldGrid as Dt, UIFormFieldGroup as Ot, UIFormSubmitButton as kt, UIIconButton as At, UINumberField as jt, UIRowLayout as Y, UISelect as Mt, UITable as Nt, UITableCell as Pt, UITableCellInteractiveElement as Ft, UIText as X, UITextField as It, createAutocompleteOptions as Lt, createComponent as Z, createSelectOptions as Rt, defineTableColumns as zt, useOverlay as Bt, useToast as Q } from "@wisemen/vue-core-design-system";
|
|
25
|
+
import { useForm as $ } from "formango";
|
|
25
26
|
//#region src/modules/invoice/api/mutations/invoiceUpdate.mutation.ts
|
|
26
|
-
function
|
|
27
|
-
return
|
|
28
|
-
queryFn: (e) =>
|
|
27
|
+
function Vt() {
|
|
28
|
+
return B({
|
|
29
|
+
queryFn: (e) => _.update(e.params.invoiceUuid, e.body),
|
|
29
30
|
queryKeysToInvalidate: {
|
|
30
31
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
31
32
|
invoiceIndex: {}
|
|
@@ -34,15 +35,15 @@ function Ft() {
|
|
|
34
35
|
}
|
|
35
36
|
//#endregion
|
|
36
37
|
//#region src/modules/invoice/components/InvoiceDeliveryStatusBadge.vue
|
|
37
|
-
var
|
|
38
|
+
var Ht = /* @__PURE__ */ F({
|
|
38
39
|
__name: "InvoiceDeliveryStatusBadge",
|
|
39
40
|
props: {
|
|
40
41
|
deliveryStatus: {},
|
|
41
42
|
size: { default: "sm" }
|
|
42
43
|
},
|
|
43
44
|
setup(e) {
|
|
44
|
-
let t = e, n =
|
|
45
|
-
return (e, n) => (
|
|
45
|
+
let t = e, n = O(), r = k(() => E.getMetadata(t.deliveryStatus)), i = k(() => n.t(r.value.translationKey));
|
|
46
|
+
return (e, n) => (L(), A(R(V), {
|
|
46
47
|
label: i.value,
|
|
47
48
|
color: r.value.tone,
|
|
48
49
|
size: t.size,
|
|
@@ -53,12 +54,12 @@ var It = /* @__PURE__ */ L({
|
|
|
53
54
|
"size"
|
|
54
55
|
]));
|
|
55
56
|
}
|
|
56
|
-
}),
|
|
57
|
+
}), Ut = D.string().nullable(), Wt = D.object({ subject: Ut });
|
|
57
58
|
//#endregion
|
|
58
59
|
//#region src/modules/invoice/api/mutations/invoiceCreateCreditNote.mutation.ts
|
|
59
|
-
function
|
|
60
|
-
return
|
|
61
|
-
queryFn: (e) =>
|
|
60
|
+
function Gt() {
|
|
61
|
+
return B({
|
|
62
|
+
queryFn: (e) => _.createCreditNote(e.params.invoiceUuid),
|
|
62
63
|
queryKeysToInvalidate: {
|
|
63
64
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
64
65
|
invoiceIndex: {}
|
|
@@ -67,17 +68,17 @@ function zt() {
|
|
|
67
68
|
}
|
|
68
69
|
//#endregion
|
|
69
70
|
//#region src/modules/invoice/api/mutations/invoiceDuplicate.mutation.ts
|
|
70
|
-
function
|
|
71
|
-
return
|
|
72
|
-
queryFn: (e) =>
|
|
71
|
+
function Kt() {
|
|
72
|
+
return B({
|
|
73
|
+
queryFn: (e) => _.duplicate(e.params.invoiceUuid),
|
|
73
74
|
queryKeysToInvalidate: { invoiceIndex: {} }
|
|
74
75
|
});
|
|
75
76
|
}
|
|
76
77
|
//#endregion
|
|
77
78
|
//#region src/modules/invoice/api/mutations/invoiceFinalize.mutation.ts
|
|
78
|
-
function
|
|
79
|
-
return
|
|
80
|
-
queryFn: (e) =>
|
|
79
|
+
function qt() {
|
|
80
|
+
return B({
|
|
81
|
+
queryFn: (e) => _.finalize(e.params.invoiceUuid),
|
|
81
82
|
queryKeysToInvalidate: {
|
|
82
83
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
83
84
|
invoiceIndex: {}
|
|
@@ -86,9 +87,9 @@ function Vt() {
|
|
|
86
87
|
}
|
|
87
88
|
//#endregion
|
|
88
89
|
//#region src/modules/invoice/api/mutations/invoiceMarkAsDraft.mutation.ts
|
|
89
|
-
function
|
|
90
|
-
return
|
|
91
|
-
queryFn: (e) =>
|
|
90
|
+
function Jt() {
|
|
91
|
+
return B({
|
|
92
|
+
queryFn: (e) => _.markAsDraft(e.params.invoiceUuid),
|
|
92
93
|
queryKeysToInvalidate: {
|
|
93
94
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
94
95
|
invoiceIndex: {}
|
|
@@ -97,9 +98,9 @@ function Ht() {
|
|
|
97
98
|
}
|
|
98
99
|
//#endregion
|
|
99
100
|
//#region src/modules/invoice/api/mutations/invoiceMarkAsPaid.mutation.ts
|
|
100
|
-
function
|
|
101
|
-
return
|
|
102
|
-
queryFn: (e) =>
|
|
101
|
+
function Yt() {
|
|
102
|
+
return B({
|
|
103
|
+
queryFn: (e) => _.markAsPaid(e.params.invoiceUuid),
|
|
103
104
|
queryKeysToInvalidate: {
|
|
104
105
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
105
106
|
invoiceIndex: {}
|
|
@@ -108,9 +109,9 @@ function Ut() {
|
|
|
108
109
|
}
|
|
109
110
|
//#endregion
|
|
110
111
|
//#region src/modules/invoice/api/mutations/invoiceMarkAsProtested.mutation.ts
|
|
111
|
-
function
|
|
112
|
-
return
|
|
113
|
-
queryFn: (e) =>
|
|
112
|
+
function Xt() {
|
|
113
|
+
return B({
|
|
114
|
+
queryFn: (e) => _.markAsProtested(e.params.invoiceUuid),
|
|
114
115
|
queryKeysToInvalidate: {
|
|
115
116
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
116
117
|
invoiceIndex: {}
|
|
@@ -119,9 +120,9 @@ function Wt() {
|
|
|
119
120
|
}
|
|
120
121
|
//#endregion
|
|
121
122
|
//#region src/modules/invoice/api/mutations/invoiceMarkAsReady.mutation.ts
|
|
122
|
-
function
|
|
123
|
-
return
|
|
124
|
-
queryFn: (e) =>
|
|
123
|
+
function Zt() {
|
|
124
|
+
return B({
|
|
125
|
+
queryFn: (e) => _.markAsReady(e.params.invoiceUuid),
|
|
125
126
|
queryKeysToInvalidate: {
|
|
126
127
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
127
128
|
invoiceIndex: {}
|
|
@@ -130,9 +131,9 @@ function Gt() {
|
|
|
130
131
|
}
|
|
131
132
|
//#endregion
|
|
132
133
|
//#region src/modules/invoice/api/mutations/invoiceSend.mutation.ts
|
|
133
|
-
function
|
|
134
|
-
return
|
|
135
|
-
queryFn: (e) =>
|
|
134
|
+
function Qt() {
|
|
135
|
+
return B({
|
|
136
|
+
queryFn: (e) => _.send(e.params.invoiceUuid),
|
|
136
137
|
queryKeysToInvalidate: {
|
|
137
138
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
138
139
|
invoiceIndex: {}
|
|
@@ -141,9 +142,9 @@ function Kt() {
|
|
|
141
142
|
}
|
|
142
143
|
//#endregion
|
|
143
144
|
//#region src/modules/invoice/api/mutations/invoiceWithdrawProtest.mutation.ts
|
|
144
|
-
function
|
|
145
|
-
return
|
|
146
|
-
queryFn: (e) =>
|
|
145
|
+
function $t() {
|
|
146
|
+
return B({
|
|
147
|
+
queryFn: (e) => _.withdrawProtest(e.params.invoiceUuid),
|
|
147
148
|
queryKeysToInvalidate: {
|
|
148
149
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
149
150
|
invoiceIndex: {}
|
|
@@ -152,21 +153,21 @@ function qt() {
|
|
|
152
153
|
}
|
|
153
154
|
//#endregion
|
|
154
155
|
//#region src/modules/invoice/api/mutations/invoiceDelete.mutation.ts
|
|
155
|
-
function
|
|
156
|
-
return
|
|
157
|
-
queryFn: (e) =>
|
|
156
|
+
function en() {
|
|
157
|
+
return B({
|
|
158
|
+
queryFn: (e) => _.delete(e.params.invoiceUuid),
|
|
158
159
|
queryKeysToInvalidate: { invoiceIndex: {} }
|
|
159
160
|
});
|
|
160
161
|
}
|
|
161
162
|
//#endregion
|
|
162
163
|
//#region src/modules/invoice/use-cases/detail/dialogs/InvoiceDeleteDialog.vue
|
|
163
|
-
var
|
|
164
|
+
var tn = /* @__PURE__ */ F({
|
|
164
165
|
__name: "InvoiceDeleteDialog",
|
|
165
166
|
props: { invoice: {} },
|
|
166
167
|
emits: ["close", "deleted"],
|
|
167
168
|
setup(e, { emit: t }) {
|
|
168
|
-
let n = e, r = t, i =
|
|
169
|
-
schema:
|
|
169
|
+
let n = e, r = t, i = O(), a = et(), o = Q(), s = en(), c = $({
|
|
170
|
+
schema: tt.object({}),
|
|
170
171
|
onSubmit: async () => {
|
|
171
172
|
let e = await s.execute({ params: { invoiceUuid: n.invoice.uuid } });
|
|
172
173
|
if (e.isErr()) {
|
|
@@ -176,19 +177,19 @@ var Yt = /* @__PURE__ */ L({
|
|
|
176
177
|
o.show({ message: i.t("wise_invoicing.invoice.delete.success_toast") }), r("deleted"), r("close"), await a.push({ name: "invoicing-invoice-overview" });
|
|
177
178
|
}
|
|
178
179
|
});
|
|
179
|
-
return (e, t) => (
|
|
180
|
-
form:
|
|
180
|
+
return (e, t) => (L(), A(R(Et), {
|
|
181
|
+
form: R(c),
|
|
181
182
|
size: "xs",
|
|
182
183
|
onClose: t[0] ||= (e) => r("close")
|
|
183
184
|
}, {
|
|
184
|
-
default:
|
|
185
|
-
title:
|
|
186
|
-
description:
|
|
185
|
+
default: z(() => [P(R(J), {
|
|
186
|
+
title: R(i).t("wise_invoicing.invoice.delete.title"),
|
|
187
|
+
description: R(i).t("wise_invoicing.invoice.delete.description"),
|
|
187
188
|
"is-description-visible": !0
|
|
188
|
-
}, null, 8, ["title", "description"]),
|
|
189
|
-
right:
|
|
189
|
+
}, null, 8, ["title", "description"]), P(R(K), null, {
|
|
190
|
+
right: z(() => [P(R(q), { label: "cancel" }), P(R(wt), {
|
|
190
191
|
"is-destructive": !0,
|
|
191
|
-
label:
|
|
192
|
+
label: R(i).t("wise_invoicing.invoice.delete.submit_button")
|
|
192
193
|
}, null, 8, ["label"])]),
|
|
193
194
|
_: 1
|
|
194
195
|
})]),
|
|
@@ -198,71 +199,71 @@ var Yt = /* @__PURE__ */ L({
|
|
|
198
199
|
});
|
|
199
200
|
//#endregion
|
|
200
201
|
//#region src/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.ts
|
|
201
|
-
function
|
|
202
|
-
let t =
|
|
203
|
-
function
|
|
204
|
-
return
|
|
202
|
+
function nn(e) {
|
|
203
|
+
let t = O(), n = Q(), r = et(), a = Bt(), s = a.create(tn), c = a.create(Xe), l = Qt(), u = Gt(), d = Kt(), f = qt(), p = Jt(), m = Yt(), h = Xt(), g = Zt(), y = $t(), { shouldSkipConfirmation: b } = Oe(), x = at(null), ae = k(() => w.getMetadata(e.value.status)), S = k(() => x.value ?? e.value.isDisputed), le = k(() => e.value.status !== i.DRAFT && e.value.status !== i.READY), ue = k(() => e.value.lifecycleStatus === o.FINALIZED);
|
|
204
|
+
function C(e) {
|
|
205
|
+
return ae.value.actions.includes(e);
|
|
205
206
|
}
|
|
206
|
-
|
|
207
|
+
lt(() => e.value.isDisputed, (e) => {
|
|
207
208
|
x.value === e && (x.value = null);
|
|
208
209
|
});
|
|
209
|
-
async function
|
|
210
|
+
async function fe() {
|
|
210
211
|
let r = await f.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
211
212
|
return r.isErr() ? (n.apiError(r.error), !1) : (n.show({ message: t.t("wise_invoicing.invoice.finalize.success") }), !0);
|
|
212
213
|
}
|
|
213
|
-
async function
|
|
214
|
-
if (
|
|
215
|
-
await
|
|
214
|
+
async function me() {
|
|
215
|
+
if (b.value) {
|
|
216
|
+
await fe();
|
|
216
217
|
return;
|
|
217
218
|
}
|
|
218
219
|
await c.open({
|
|
219
220
|
billingDocumentType: "invoice",
|
|
220
|
-
onConfirm:
|
|
221
|
+
onConfirm: fe
|
|
221
222
|
});
|
|
222
223
|
}
|
|
223
|
-
async function
|
|
224
|
-
let r = await
|
|
224
|
+
async function he() {
|
|
225
|
+
let r = await g.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
225
226
|
if (r.isErr()) {
|
|
226
227
|
n.apiError(r.error);
|
|
227
228
|
return;
|
|
228
229
|
}
|
|
229
230
|
n.show({ message: t.t("wise_invoicing.invoice.mark_as_ready.success") });
|
|
230
231
|
}
|
|
231
|
-
async function
|
|
232
|
-
let r = await
|
|
232
|
+
async function ge() {
|
|
233
|
+
let r = await p.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
233
234
|
if (r.isErr()) {
|
|
234
235
|
n.apiError(r.error);
|
|
235
236
|
return;
|
|
236
237
|
}
|
|
237
238
|
n.show({ message: t.t("wise_invoicing.invoice.mark_as_draft.success") });
|
|
238
239
|
}
|
|
239
|
-
async function
|
|
240
|
-
let r = await
|
|
240
|
+
async function _e() {
|
|
241
|
+
let r = await m.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
241
242
|
if (r.isErr()) {
|
|
242
243
|
n.apiError(r.error);
|
|
243
244
|
return;
|
|
244
245
|
}
|
|
245
246
|
n.show({ message: t.t("wise_invoicing.invoice.mark_as_paid.success") });
|
|
246
247
|
}
|
|
247
|
-
async function
|
|
248
|
+
async function T() {
|
|
248
249
|
x.value = !0;
|
|
249
|
-
let r = await
|
|
250
|
+
let r = await h.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
250
251
|
if (r.isErr()) {
|
|
251
252
|
x.value = null, n.apiError(r.error);
|
|
252
253
|
return;
|
|
253
254
|
}
|
|
254
255
|
n.show({ message: t.t("wise_invoicing.invoice.mark_as_disputed.success") });
|
|
255
256
|
}
|
|
256
|
-
async function
|
|
257
|
+
async function ve() {
|
|
257
258
|
x.value = !1;
|
|
258
|
-
let r = await
|
|
259
|
+
let r = await y.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
259
260
|
if (r.isErr()) {
|
|
260
261
|
x.value = null, n.apiError(r.error);
|
|
261
262
|
return;
|
|
262
263
|
}
|
|
263
264
|
n.show({ message: t.t("wise_invoicing.invoice.withdraw_dispute.success") });
|
|
264
265
|
}
|
|
265
|
-
async function
|
|
266
|
+
async function ye() {
|
|
266
267
|
let r = await l.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
267
268
|
if (r.isErr()) {
|
|
268
269
|
n.apiError(r.error);
|
|
@@ -270,11 +271,11 @@ function Xt(e) {
|
|
|
270
271
|
}
|
|
271
272
|
n.show({ message: t.t("wise_invoicing.invoice.send.success") });
|
|
272
273
|
}
|
|
273
|
-
async function
|
|
274
|
-
await
|
|
274
|
+
async function be() {
|
|
275
|
+
await s.open({ invoice: e.value });
|
|
275
276
|
}
|
|
276
|
-
async function
|
|
277
|
-
let r = await
|
|
277
|
+
async function xe() {
|
|
278
|
+
let r = await _.getByUuid(e.value.uuid);
|
|
278
279
|
if (r.isErr()) {
|
|
279
280
|
n.apiError(r.error);
|
|
280
281
|
return;
|
|
@@ -284,10 +285,10 @@ function Xt(e) {
|
|
|
284
285
|
n.show({ message: t.t("wise_invoicing.invoice.download_pdf.generation_in_progress") });
|
|
285
286
|
return;
|
|
286
287
|
}
|
|
287
|
-
let a = await
|
|
288
|
-
a !== null &&
|
|
288
|
+
let a = await De.getDownloadUrl(i.uuid);
|
|
289
|
+
a !== null && v.downloadUrl(a, i.name);
|
|
289
290
|
}
|
|
290
|
-
async function
|
|
291
|
+
async function Se() {
|
|
291
292
|
let i = await d.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
292
293
|
if (i.isErr()) {
|
|
293
294
|
n.apiError(i.error);
|
|
@@ -306,7 +307,7 @@ function Xt(e) {
|
|
|
306
307
|
message: t.t("wise_invoicing.invoice.duplicate.success")
|
|
307
308
|
});
|
|
308
309
|
}
|
|
309
|
-
async function
|
|
310
|
+
async function Ce() {
|
|
310
311
|
let i = await u.execute({ params: { invoiceUuid: e.value.uuid } });
|
|
311
312
|
if (i.isErr()) {
|
|
312
313
|
n.apiError(i.error);
|
|
@@ -325,95 +326,95 @@ function Xt(e) {
|
|
|
325
326
|
message: t.t("wise_invoicing.credit_note.create.success")
|
|
326
327
|
});
|
|
327
328
|
}
|
|
328
|
-
let we =
|
|
329
|
+
let we = k(() => [
|
|
329
330
|
{
|
|
330
331
|
isLoading: l.isLoading.value,
|
|
331
|
-
iconLeft:
|
|
332
|
+
iconLeft: de,
|
|
332
333
|
key: "send",
|
|
333
334
|
label: t.t("wise_invoicing.invoice.detail.actions.send"),
|
|
334
335
|
variant: "primary",
|
|
335
|
-
visible: e.value.status ===
|
|
336
|
-
onClick:
|
|
336
|
+
visible: e.value.status === i.FINALIZED,
|
|
337
|
+
onClick: ye
|
|
337
338
|
},
|
|
338
339
|
{
|
|
339
|
-
isLoading:
|
|
340
|
-
iconRight:
|
|
340
|
+
isLoading: g.isLoading.value,
|
|
341
|
+
iconRight: ce,
|
|
341
342
|
key: "markAsReady",
|
|
342
343
|
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
|
|
343
|
-
visible:
|
|
344
|
-
onClick:
|
|
344
|
+
visible: C("markAsReady"),
|
|
345
|
+
onClick: he
|
|
345
346
|
},
|
|
346
347
|
{
|
|
347
348
|
isLoading: f.isLoading.value,
|
|
348
|
-
iconLeft:
|
|
349
|
+
iconLeft: pe,
|
|
349
350
|
key: "finalize",
|
|
350
351
|
label: t.t("wise_invoicing.invoice.detail.actions.finalize"),
|
|
351
|
-
visible:
|
|
352
|
-
onClick:
|
|
352
|
+
visible: C("finalize"),
|
|
353
|
+
onClick: me
|
|
353
354
|
}
|
|
354
|
-
].filter((e) => e.visible)),
|
|
355
|
+
].filter((e) => e.visible)), E = k(() => {
|
|
355
356
|
let n = [
|
|
356
357
|
{
|
|
357
|
-
icon:
|
|
358
|
+
icon: ie,
|
|
358
359
|
key: "markAsProtested",
|
|
359
360
|
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_disputed"),
|
|
360
|
-
visible:
|
|
361
|
-
onSelect:
|
|
361
|
+
visible: ue.value && !S.value,
|
|
362
|
+
onSelect: T
|
|
362
363
|
},
|
|
363
364
|
{
|
|
364
|
-
icon:
|
|
365
|
+
icon: re,
|
|
365
366
|
key: "markAsPaid",
|
|
366
367
|
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_paid"),
|
|
367
|
-
visible:
|
|
368
|
-
onSelect:
|
|
368
|
+
visible: C("markAsPaid"),
|
|
369
|
+
onSelect: _e
|
|
369
370
|
},
|
|
370
371
|
{
|
|
371
|
-
icon:
|
|
372
|
+
icon: ce,
|
|
372
373
|
key: "withdrawProtest",
|
|
373
374
|
label: t.t("wise_invoicing.invoice.detail.actions.withdraw_dispute"),
|
|
374
|
-
visible:
|
|
375
|
-
onSelect:
|
|
375
|
+
visible: ue.value && S.value,
|
|
376
|
+
onSelect: ve
|
|
376
377
|
}
|
|
377
378
|
], r = [
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
].includes(e.value.status),
|
|
379
|
+
i.FINALIZED,
|
|
380
|
+
i.PAID,
|
|
381
|
+
i.SENT,
|
|
382
|
+
i.OVERDUE,
|
|
383
|
+
i.PROTESTED
|
|
384
|
+
].includes(e.value.status), a = [
|
|
384
385
|
{
|
|
385
|
-
icon:
|
|
386
|
+
icon: se,
|
|
386
387
|
key: "downloadPdf",
|
|
387
388
|
label: t.t("wise_invoicing.common.download_pdf"),
|
|
388
|
-
visible:
|
|
389
|
-
onSelect:
|
|
389
|
+
visible: le.value,
|
|
390
|
+
onSelect: xe
|
|
390
391
|
},
|
|
391
392
|
{
|
|
392
393
|
icon: ne,
|
|
393
394
|
key: "backToDraft",
|
|
394
395
|
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
|
|
395
|
-
visible:
|
|
396
|
-
onSelect:
|
|
396
|
+
visible: C("markAsDraft"),
|
|
397
|
+
onSelect: ge
|
|
397
398
|
},
|
|
398
399
|
{
|
|
399
|
-
icon:
|
|
400
|
+
icon: oe,
|
|
400
401
|
key: "duplicate",
|
|
401
402
|
label: t.t("wise_invoicing.invoice.detail.actions.duplicate"),
|
|
402
403
|
visible: !0,
|
|
403
|
-
onSelect:
|
|
404
|
+
onSelect: Se
|
|
404
405
|
}
|
|
405
406
|
], o = [{
|
|
406
407
|
icon: te,
|
|
407
408
|
key: "createCreditNote",
|
|
408
409
|
label: t.t("wise_invoicing.invoice.detail.header.cancel_with_credit_note"),
|
|
409
410
|
visible: r,
|
|
410
|
-
onSelect:
|
|
411
|
+
onSelect: Ce
|
|
411
412
|
}, {
|
|
412
|
-
icon:
|
|
413
|
+
icon: ee,
|
|
413
414
|
key: "delete",
|
|
414
415
|
label: t.t("wise_invoicing.invoice.detail.actions.delete"),
|
|
415
|
-
visible:
|
|
416
|
-
onSelect:
|
|
416
|
+
visible: ae.value.isEditable,
|
|
417
|
+
onSelect: be
|
|
417
418
|
}];
|
|
418
419
|
return [
|
|
419
420
|
{
|
|
@@ -421,7 +422,7 @@ function Xt(e) {
|
|
|
421
422
|
key: "lifecycle"
|
|
422
423
|
},
|
|
423
424
|
{
|
|
424
|
-
items:
|
|
425
|
+
items: a.filter((e) => e.visible),
|
|
425
426
|
key: "secondary"
|
|
426
427
|
},
|
|
427
428
|
{
|
|
@@ -431,15 +432,15 @@ function Xt(e) {
|
|
|
431
432
|
].filter((e) => e.items.length > 0);
|
|
432
433
|
});
|
|
433
434
|
return {
|
|
434
|
-
isActionMenuVisible:
|
|
435
|
+
isActionMenuVisible: k(() => E.value.length > 0),
|
|
435
436
|
isDisputed: S,
|
|
436
|
-
menuGroups:
|
|
437
|
+
menuGroups: E,
|
|
437
438
|
primaryButtons: we
|
|
438
439
|
};
|
|
439
440
|
}
|
|
440
441
|
//#endregion
|
|
441
442
|
//#region src/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue
|
|
442
|
-
var
|
|
443
|
+
var rn = /* @__PURE__ */ F({
|
|
443
444
|
__name: "InvoiceDetailHeaderSection",
|
|
444
445
|
props: {
|
|
445
446
|
isPdfViewActive: { type: Boolean },
|
|
@@ -447,51 +448,51 @@ var Zt = /* @__PURE__ */ L({
|
|
|
447
448
|
},
|
|
448
449
|
emits: ["togglePdfView"],
|
|
449
450
|
setup(e, { emit: t }) {
|
|
450
|
-
let n = e,
|
|
451
|
+
let n = e, r = t, i = O(), a = Q(), { isDisputed: o, menuGroups: s, primaryButtons: l } = nn(k(() => n.invoice)), u = Vt(), d = k(() => new Ye(n.invoice.status)), f = k(() => d.value.color), p = k(() => i.t(d.value.translationKey)), m = k(() => n.invoice.deliveryStatus !== c.UNSENT), g = k(() => E.isSent(n.invoice.deliveryStatus)), _ = k(() => !w.isEditable(n.invoice.status)), v = $({
|
|
451
452
|
initialState: { subject: n.invoice.subject },
|
|
452
|
-
schema:
|
|
453
|
+
schema: Wt,
|
|
453
454
|
onSubmit: async (e) => {
|
|
454
455
|
let t = await u.execute({
|
|
455
456
|
body: {
|
|
456
|
-
...
|
|
457
|
+
...h.toForm(n.invoice),
|
|
457
458
|
subject: e.subject
|
|
458
459
|
},
|
|
459
460
|
params: { invoiceUuid: n.invoice.uuid }
|
|
460
461
|
});
|
|
461
|
-
t.isErr() &&
|
|
462
|
+
t.isErr() && a.apiError(t.error);
|
|
462
463
|
}
|
|
463
464
|
}), y = v.register("subject");
|
|
464
|
-
return
|
|
465
|
-
form:
|
|
465
|
+
return ke({ form: v }), (e, t) => (L(), A(R(Tt), {
|
|
466
|
+
form: R(v),
|
|
466
467
|
"prompt-on-unsaved-changes": !1
|
|
467
468
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
"fallback-title":
|
|
469
|
+
default: z(() => [P(Ze, {
|
|
470
|
+
"fallback-title": R(i).t("wise_invoicing.invoice.detail.fallback_title"),
|
|
470
471
|
"is-disabled": _.value,
|
|
471
472
|
sequence: n.invoice.sequence,
|
|
472
|
-
"status-color":
|
|
473
|
-
"status-label":
|
|
474
|
-
icon:
|
|
475
|
-
"subject-field":
|
|
476
|
-
"subject-placeholder":
|
|
473
|
+
"status-color": f.value,
|
|
474
|
+
"status-label": p.value,
|
|
475
|
+
icon: R(x),
|
|
476
|
+
"subject-field": R(y),
|
|
477
|
+
"subject-placeholder": R(i).t("wise_invoicing.invoice.detail.header.subject_placeholder")
|
|
477
478
|
}, {
|
|
478
|
-
actions:
|
|
479
|
+
actions: z(() => [P(Je, {
|
|
479
480
|
"is-pdf-view-active": n.isPdfViewActive,
|
|
480
|
-
"menu-groups":
|
|
481
|
-
"primary-buttons":
|
|
482
|
-
onTogglePdfView: t[0] ||= (e) =>
|
|
481
|
+
"menu-groups": R(s),
|
|
482
|
+
"primary-buttons": R(l),
|
|
483
|
+
onTogglePdfView: t[0] ||= (e) => r("togglePdfView")
|
|
483
484
|
}, null, 8, [
|
|
484
485
|
"is-pdf-view-active",
|
|
485
486
|
"menu-groups",
|
|
486
487
|
"primary-buttons"
|
|
487
488
|
])]),
|
|
488
|
-
status:
|
|
489
|
+
status: z(() => [P(R(Y), {
|
|
489
490
|
gap: "xs",
|
|
490
491
|
class: "flex-wrap items-start"
|
|
491
492
|
}, {
|
|
492
|
-
default:
|
|
493
|
-
|
|
494
|
-
|
|
493
|
+
default: z(() => [
|
|
494
|
+
P(we, { "lifecycle-status": n.invoice.lifecycleStatus }, null, 8, ["lifecycle-status"]),
|
|
495
|
+
P(xe, {
|
|
495
496
|
"is-sent": g.value,
|
|
496
497
|
"balance-due-amount": n.invoice.balanceDueAmount,
|
|
497
498
|
"gross-amount": n.invoice.grossAmount,
|
|
@@ -506,12 +507,12 @@ var Zt = /* @__PURE__ */ L({
|
|
|
506
507
|
"settlement-status",
|
|
507
508
|
"total-credited-amount"
|
|
508
509
|
]),
|
|
509
|
-
n.invoice.isOverdue ? (
|
|
510
|
-
|
|
511
|
-
|
|
510
|
+
n.invoice.isOverdue ? (L(), A(Me, { key: 0 })) : j("", !0),
|
|
511
|
+
R(o) ? (L(), A(ye, { key: 1 })) : j("", !0),
|
|
512
|
+
m.value ? (L(), A(Ht, {
|
|
512
513
|
key: 2,
|
|
513
514
|
"delivery-status": n.invoice.deliveryStatus
|
|
514
|
-
}, null, 8, ["delivery-status"])) :
|
|
515
|
+
}, null, 8, ["delivery-status"])) : j("", !0)
|
|
515
516
|
]),
|
|
516
517
|
_: 1
|
|
517
518
|
})]),
|
|
@@ -529,12 +530,12 @@ var Zt = /* @__PURE__ */ L({
|
|
|
529
530
|
_: 1
|
|
530
531
|
}, 8, ["form"]));
|
|
531
532
|
}
|
|
532
|
-
}),
|
|
533
|
+
}), an = { class: "grid w-full grid-cols-1 gap-md lg:grid-cols-3" }, on = /* @__PURE__ */ F({
|
|
533
534
|
__name: "InvoiceDetailLinkedCreditNotesSection",
|
|
534
535
|
props: { invoice: {} },
|
|
535
536
|
setup(e) {
|
|
536
|
-
let t = e, n =
|
|
537
|
-
let t = new
|
|
537
|
+
let t = e, n = O(), r = d(), i = k(() => t.invoice.creditNotes.map((e) => {
|
|
538
|
+
let t = new Ye(e.status);
|
|
538
539
|
return {
|
|
539
540
|
uuid: e.uuid,
|
|
540
541
|
title: e.sequence === null ? n.t("wise_invoicing.invoice.detail.credit_notes.untitled") : n.t("wise_invoicing.invoice.detail.credit_notes.card_title", { sequence: e.sequence }),
|
|
@@ -549,17 +550,17 @@ var Zt = /* @__PURE__ */ L({
|
|
|
549
550
|
amount: e.grossAmount.amount > 0 ? -e.grossAmount.amount : e.grossAmount.amount
|
|
550
551
|
};
|
|
551
552
|
}
|
|
552
|
-
return (e, t) => i.value.length > 0 ? (
|
|
553
|
+
return (e, t) => i.value.length > 0 ? (L(), A(R(vt), {
|
|
553
554
|
key: 0,
|
|
554
555
|
as: "section",
|
|
555
556
|
gap: "md",
|
|
556
557
|
class: "w-full"
|
|
557
558
|
}, {
|
|
558
|
-
default:
|
|
559
|
-
text:
|
|
559
|
+
default: z(() => [P(R(X), {
|
|
560
|
+
text: R(n).t("wise_invoicing.invoice.detail.credit_notes.title"),
|
|
560
561
|
as: "h2",
|
|
561
562
|
class: "text-sm font-semibold text-primary"
|
|
562
|
-
}, null, 8, ["text"]),
|
|
563
|
+
}, null, 8, ["text"]), N("div", an, [(L(!0), M(nt, null, ot(i.value, (e) => (L(), A(R($e), {
|
|
563
564
|
key: e.uuid,
|
|
564
565
|
to: {
|
|
565
566
|
name: "invoicing-credit-note-detail",
|
|
@@ -567,23 +568,23 @@ var Zt = /* @__PURE__ */ L({
|
|
|
567
568
|
},
|
|
568
569
|
class: "min-w-0 rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
|
|
569
570
|
}, {
|
|
570
|
-
default:
|
|
571
|
+
default: z(() => [P(R(Y), {
|
|
571
572
|
align: "center",
|
|
572
573
|
gap: "md",
|
|
573
574
|
class: "min-w-0"
|
|
574
575
|
}, {
|
|
575
|
-
default:
|
|
576
|
-
|
|
576
|
+
default: z(() => [
|
|
577
|
+
P(R(X), {
|
|
577
578
|
text: e.title,
|
|
578
579
|
class: "min-w-0 flex-1 truncate text-xs font-semibold text-primary"
|
|
579
580
|
}, null, 8, ["text"]),
|
|
580
|
-
|
|
581
|
+
P(R(V), {
|
|
581
582
|
label: e.statusLabel,
|
|
582
583
|
color: e.statusColor,
|
|
583
584
|
size: "sm",
|
|
584
585
|
variant: "translucent"
|
|
585
586
|
}, null, 8, ["label", "color"]),
|
|
586
|
-
|
|
587
|
+
P(R(V), {
|
|
587
588
|
label: e.amountLabel,
|
|
588
589
|
variant: "translucent",
|
|
589
590
|
size: "sm"
|
|
@@ -594,33 +595,33 @@ var Zt = /* @__PURE__ */ L({
|
|
|
594
595
|
_: 2
|
|
595
596
|
}, 1032, ["to"]))), 128))])]),
|
|
596
597
|
_: 1
|
|
597
|
-
})) :
|
|
598
|
+
})) : j("", !0);
|
|
598
599
|
}
|
|
599
|
-
}),
|
|
600
|
-
deliveredOn:
|
|
601
|
-
dueOn:
|
|
602
|
-
issuedOn:
|
|
603
|
-
customFields:
|
|
604
|
-
externalRemarks:
|
|
605
|
-
poNumber:
|
|
606
|
-
preparedBy:
|
|
607
|
-
uuid:
|
|
608
|
-
name:
|
|
600
|
+
}), sn = D.object({
|
|
601
|
+
deliveredOn: he.nullable(),
|
|
602
|
+
dueOn: he,
|
|
603
|
+
issuedOn: he,
|
|
604
|
+
customFields: D.array(D.custom()),
|
|
605
|
+
externalRemarks: D.string().nullable(),
|
|
606
|
+
poNumber: D.string().nullable(),
|
|
607
|
+
preparedBy: D.object({
|
|
608
|
+
uuid: D.uuid(),
|
|
609
|
+
name: D.string()
|
|
609
610
|
}),
|
|
610
|
-
subject:
|
|
611
|
+
subject: D.string().nullable()
|
|
611
612
|
}).superRefine((t, n) => {
|
|
612
613
|
Temporal.PlainDate.compare(t.dueOn, t.issuedOn) < 0 && n.addIssue({
|
|
613
614
|
code: "custom",
|
|
614
615
|
message: e.global.t("invoicing.invoice.validation.due_date_after_issue_date"),
|
|
615
616
|
path: ["dueOn"]
|
|
616
617
|
});
|
|
617
|
-
}),
|
|
618
|
+
}), cn = /* @__PURE__ */ F({
|
|
618
619
|
__name: "InvoiceDetailRemarksSection",
|
|
619
620
|
props: { invoice: {} },
|
|
620
621
|
setup(e) {
|
|
621
|
-
let t = e, n =
|
|
622
|
-
initialState:
|
|
623
|
-
schema:
|
|
622
|
+
let t = e, n = O(), r = Q(), i = Vt(), a = $({
|
|
623
|
+
initialState: k(() => h.toForm(t.invoice)),
|
|
624
|
+
schema: sn,
|
|
624
625
|
onSubmit: async (e) => {
|
|
625
626
|
let n = await i.execute({
|
|
626
627
|
body: e,
|
|
@@ -628,16 +629,16 @@ var Zt = /* @__PURE__ */ L({
|
|
|
628
629
|
});
|
|
629
630
|
n.isErr() && r.apiError(n.error);
|
|
630
631
|
}
|
|
631
|
-
}), o = a.register("externalRemarks"), s =
|
|
632
|
-
return
|
|
633
|
-
form:
|
|
632
|
+
}), o = a.register("externalRemarks"), s = k(() => !w.isEditable(t.invoice.status));
|
|
633
|
+
return ke({ form: a }), (e, t) => (L(), A(R(Tt), {
|
|
634
|
+
form: R(a),
|
|
634
635
|
"prompt-on-unsaved-changes": !1
|
|
635
636
|
}, {
|
|
636
|
-
default:
|
|
637
|
+
default: z(() => [P(Ae, {
|
|
637
638
|
"is-disabled": s.value,
|
|
638
|
-
placeholder:
|
|
639
|
-
"remarks-field":
|
|
640
|
-
title:
|
|
639
|
+
placeholder: R(n).t("wise_invoicing.invoice.detail.remarks.placeholder"),
|
|
640
|
+
"remarks-field": R(o),
|
|
641
|
+
title: R(n).t("wise_invoicing.invoice.detail.remarks.title")
|
|
641
642
|
}, null, 8, [
|
|
642
643
|
"is-disabled",
|
|
643
644
|
"placeholder",
|
|
@@ -650,33 +651,33 @@ var Zt = /* @__PURE__ */ L({
|
|
|
650
651
|
});
|
|
651
652
|
//#endregion
|
|
652
653
|
//#region src/modules/invoice/api/queries/invoiceActivityLogIndex.query.ts
|
|
653
|
-
function
|
|
654
|
-
return
|
|
654
|
+
function ln(e) {
|
|
655
|
+
return ut("invoiceActivityLogIndex", {
|
|
655
656
|
params: { invoiceUuid: e },
|
|
656
|
-
queryFn: (t) =>
|
|
657
|
+
queryFn: (t) => _.getActivityLogs(e.value, { pagination: t })
|
|
657
658
|
});
|
|
658
659
|
}
|
|
659
660
|
//#endregion
|
|
660
661
|
//#region src/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarActivityTab.vue
|
|
661
|
-
var
|
|
662
|
+
var un = /* @__PURE__ */ F({
|
|
662
663
|
__name: "InvoiceDetailSidebarActivityTab",
|
|
663
664
|
props: { invoice: {} },
|
|
664
665
|
setup(e) {
|
|
665
|
-
let t = e, n =
|
|
666
|
+
let t = e, n = O(), { hasNextPage: r, isFetchingNextPage: i, isLoading: a, fetchNextPage: o, result: s } = ln(k(() => t.invoice.uuid)), c = k(() => s.value.unwrapOr({
|
|
666
667
|
data: [],
|
|
667
668
|
meta: { next: null }
|
|
668
669
|
}).data);
|
|
669
|
-
return (e, s) => (
|
|
670
|
+
return (e, s) => (L(), A(Ie, {
|
|
670
671
|
"current-billing-document": {
|
|
671
|
-
role:
|
|
672
|
+
role: R(l).INVOICE,
|
|
672
673
|
uuid: t.invoice.uuid
|
|
673
674
|
},
|
|
674
|
-
"empty-message":
|
|
675
|
-
entries:
|
|
676
|
-
"fetch-next-page":
|
|
677
|
-
"has-next-page":
|
|
678
|
-
"is-fetching-next-page":
|
|
679
|
-
"is-loading":
|
|
675
|
+
"empty-message": R(n).t("wise_invoicing.invoice.detail.sidebar.activity_empty"),
|
|
676
|
+
entries: c.value,
|
|
677
|
+
"fetch-next-page": R(o),
|
|
678
|
+
"has-next-page": R(r),
|
|
679
|
+
"is-fetching-next-page": R(i),
|
|
680
|
+
"is-loading": R(a)
|
|
680
681
|
}, null, 8, [
|
|
681
682
|
"current-billing-document",
|
|
682
683
|
"empty-message",
|
|
@@ -687,9 +688,9 @@ var rn = /* @__PURE__ */ L({
|
|
|
687
688
|
"is-loading"
|
|
688
689
|
]));
|
|
689
690
|
}
|
|
690
|
-
}),
|
|
691
|
+
}), dn = /* @__PURE__ */ F({
|
|
691
692
|
__name: "CustomFieldFieldset",
|
|
692
|
-
props: /*@__PURE__*/
|
|
693
|
+
props: /*@__PURE__*/ it({
|
|
693
694
|
isDisabled: { type: Boolean },
|
|
694
695
|
currency: {},
|
|
695
696
|
definitions: {},
|
|
@@ -701,19 +702,19 @@ var rn = /* @__PURE__ */ L({
|
|
|
701
702
|
}),
|
|
702
703
|
emits: ["update:modelValue"],
|
|
703
704
|
setup(e) {
|
|
704
|
-
let t = e, n =
|
|
705
|
+
let t = e, n = ct(e, "modelValue");
|
|
705
706
|
function r(e) {
|
|
706
|
-
return
|
|
707
|
+
return qe.findByDefinition(n.value, e);
|
|
707
708
|
}
|
|
708
709
|
function i(e, t) {
|
|
709
|
-
n.value =
|
|
710
|
+
n.value = qe.upsert(n.value, e, t);
|
|
710
711
|
}
|
|
711
|
-
return (e, n) => t.definitions.length > 0 ? (
|
|
712
|
+
return (e, n) => t.definitions.length > 0 ? (L(), A(R(vt), {
|
|
712
713
|
key: 0,
|
|
713
714
|
gap: t.size === "sm" ? "xs" : "md",
|
|
714
715
|
align: "stretch"
|
|
715
716
|
}, {
|
|
716
|
-
default:
|
|
717
|
+
default: z(() => [(L(!0), M(nt, null, ot(t.definitions, (e) => (L(), A(ze, {
|
|
717
718
|
key: e.uuid,
|
|
718
719
|
currency: t.currency,
|
|
719
720
|
definition: e,
|
|
@@ -732,20 +733,91 @@ var rn = /* @__PURE__ */ L({
|
|
|
732
733
|
"onUpdate:modelValue"
|
|
733
734
|
]))), 128))]),
|
|
734
735
|
_: 1
|
|
735
|
-
}, 8, ["gap"])) :
|
|
736
|
+
}, 8, ["gap"])) : j("", !0);
|
|
736
737
|
}
|
|
737
738
|
});
|
|
738
739
|
//#endregion
|
|
739
740
|
//#region src/modules/invoice/api/queries/invoiceCustomerDetail.query.ts
|
|
740
|
-
function
|
|
741
|
-
return
|
|
741
|
+
function fn(e) {
|
|
742
|
+
return ft("invoiceCustomerDetail", {
|
|
742
743
|
params: { customerUuid: e },
|
|
743
|
-
queryFn: () =>
|
|
744
|
+
queryFn: () => Te.getByUuid(e.value)
|
|
744
745
|
});
|
|
745
746
|
}
|
|
746
747
|
//#endregion
|
|
747
|
-
//#region src/modules/invoice/
|
|
748
|
-
var
|
|
748
|
+
//#region src/modules/invoice/models/invoice/update/invoicePreparer.transformer.ts
|
|
749
|
+
var pn = class {
|
|
750
|
+
static fromDto(e) {
|
|
751
|
+
let t = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim();
|
|
752
|
+
return {
|
|
753
|
+
uuid: e.uuid,
|
|
754
|
+
name: t === "" ? e.email ?? e.uuid : t
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
}, mn = class {
|
|
758
|
+
static toDto(e) {
|
|
759
|
+
return {
|
|
760
|
+
pagination: e.pagination,
|
|
761
|
+
search: g.toDto(e.search)
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
}, hn = class {
|
|
765
|
+
static async getAll(e) {
|
|
766
|
+
return (await n.fromPromise(t({ query: mn.toDto(e) }))).map((e) => ({
|
|
767
|
+
data: e.data.items.map(pn.fromDto),
|
|
768
|
+
meta: e.data.meta
|
|
769
|
+
}));
|
|
770
|
+
}
|
|
771
|
+
};
|
|
772
|
+
//#endregion
|
|
773
|
+
//#region src/modules/invoice/api/queries/invoiceUserSearch.query.ts
|
|
774
|
+
function gn(e) {
|
|
775
|
+
let t = k(() => ({ search: e.params.search?.value }));
|
|
776
|
+
return dt("invoiceUserSearch", {
|
|
777
|
+
params: { queryParams: t },
|
|
778
|
+
queryFn: (t) => hn.getAll({
|
|
779
|
+
pagination: t,
|
|
780
|
+
search: e.params.search?.value ?? ""
|
|
781
|
+
})
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
//#endregion
|
|
785
|
+
//#region src/modules/invoice/components/form/InvoiceFormPreparedByField.vue
|
|
786
|
+
var _n = /* @__PURE__ */ F({
|
|
787
|
+
__name: "InvoiceFormPreparedByField",
|
|
788
|
+
props: {
|
|
789
|
+
isLoading: { type: Boolean },
|
|
790
|
+
field: {},
|
|
791
|
+
users: {}
|
|
792
|
+
},
|
|
793
|
+
emits: ["nextPage", "updateSearch"],
|
|
794
|
+
setup(e, { emit: t }) {
|
|
795
|
+
let n = e, r = t, i = O(), a = k(() => Lt(n.users));
|
|
796
|
+
function o(e) {
|
|
797
|
+
return e.name;
|
|
798
|
+
}
|
|
799
|
+
function s(e) {
|
|
800
|
+
e !== null && (n.field.setValue(e), r("updateSearch", ""));
|
|
801
|
+
}
|
|
802
|
+
return (e, t) => (L(), A(R(mt), I(R(T)(n.field), {
|
|
803
|
+
"display-fn": o,
|
|
804
|
+
"is-loading": n.isLoading,
|
|
805
|
+
"is-required": !0,
|
|
806
|
+
items: a.value,
|
|
807
|
+
label: R(i).t("wise_invoicing.invoice.detail.header.created_by"),
|
|
808
|
+
placeholder: R(i).t("component.autocomplete.search_placeholder"),
|
|
809
|
+
"search-mode": "remote",
|
|
810
|
+
onNextPage: t[0] ||= (e) => r("nextPage"),
|
|
811
|
+
"onUpdate:modelValue": s,
|
|
812
|
+
"onUpdate:search": t[1] ||= (e) => r("updateSearch", e)
|
|
813
|
+
}), null, 16, [
|
|
814
|
+
"is-loading",
|
|
815
|
+
"items",
|
|
816
|
+
"label",
|
|
817
|
+
"placeholder"
|
|
818
|
+
]));
|
|
819
|
+
}
|
|
820
|
+
}), vn = /* @__PURE__ */ F({
|
|
749
821
|
__name: "InvoiceUpdateDialog",
|
|
750
822
|
props: {
|
|
751
823
|
customFieldDefinitions: {},
|
|
@@ -753,14 +825,18 @@ var sn = /* @__PURE__ */ L({
|
|
|
753
825
|
},
|
|
754
826
|
emits: ["close"],
|
|
755
827
|
setup(e, { emit: t }) {
|
|
756
|
-
let n = e, r = t, i =
|
|
757
|
-
|
|
828
|
+
let n = e, r = t, i = O(), a = Q(), o = Vt(), s = Ee(), c = y(), l = f({ debounceMs: 250 }), u = gn({ params: { search: l.debouncedSearch } }), d = k(() => u.result.value.match({
|
|
829
|
+
err: () => [],
|
|
830
|
+
loading: () => [],
|
|
831
|
+
ok: (e) => e.data
|
|
832
|
+
})), p = fn(k(() => n.invoice.customer.uuid)), m = k(() => {
|
|
833
|
+
let e = p.result.value;
|
|
758
834
|
if (e.isOk()) return e.getValue().defaultPaymentTermDays;
|
|
759
835
|
let t = s.result.value;
|
|
760
836
|
return t.isOk() ? t.getValue().defaultPaymentTermDays ?? 0 : 0;
|
|
761
|
-
}),
|
|
762
|
-
initialState:
|
|
763
|
-
schema:
|
|
837
|
+
}), g = $({
|
|
838
|
+
initialState: k(() => h.toForm(n.invoice)),
|
|
839
|
+
schema: sn,
|
|
764
840
|
onSubmit: async (e) => {
|
|
765
841
|
let t = await o.execute({
|
|
766
842
|
body: e,
|
|
@@ -775,55 +851,70 @@ var sn = /* @__PURE__ */ L({
|
|
|
775
851
|
onSubmitError: () => {
|
|
776
852
|
a.unableToSave();
|
|
777
853
|
}
|
|
778
|
-
}),
|
|
779
|
-
get: () =>
|
|
854
|
+
}), _ = g.register("issuedOn"), v = g.register("dueOn"), b = g.register("deliveredOn"), ee = g.register("poNumber"), x = g.register("preparedBy"), te = g.register("subject"), ne = g.register("customFields"), re = k({
|
|
855
|
+
get: () => ne.modelValue.value ?? [],
|
|
780
856
|
set: (e) => {
|
|
781
|
-
|
|
857
|
+
ne.setValue(e);
|
|
782
858
|
}
|
|
783
859
|
});
|
|
784
|
-
function
|
|
785
|
-
e !== null &&
|
|
860
|
+
function ie(e) {
|
|
861
|
+
e !== null && v.setValue(e.add({ days: m.value }));
|
|
862
|
+
}
|
|
863
|
+
function oe(e) {
|
|
864
|
+
l.updateSearch(e);
|
|
786
865
|
}
|
|
787
|
-
return (e, t) => (
|
|
788
|
-
form:
|
|
866
|
+
return (e, t) => (L(), A(R(Et), {
|
|
867
|
+
form: R(g),
|
|
789
868
|
size: "sm",
|
|
790
869
|
onClose: t[1] ||= (e) => r("close")
|
|
791
870
|
}, {
|
|
792
|
-
default:
|
|
793
|
-
|
|
794
|
-
icon:
|
|
871
|
+
default: z(() => [
|
|
872
|
+
P(R(J), {
|
|
873
|
+
icon: R(ae),
|
|
795
874
|
"is-description-visible": !1,
|
|
796
|
-
title:
|
|
875
|
+
title: R(i).t("wise_invoicing.invoice.detail.header.edit_info"),
|
|
797
876
|
description: ""
|
|
798
877
|
}, null, 8, ["icon", "title"]),
|
|
799
|
-
|
|
800
|
-
default:
|
|
801
|
-
default:
|
|
878
|
+
P(R(Ct), null, {
|
|
879
|
+
default: z(() => [P(R(Ot), null, {
|
|
880
|
+
default: z(() => [P(R(Dt), {
|
|
802
881
|
lg: 2,
|
|
803
882
|
sm: 1
|
|
804
883
|
}, {
|
|
805
|
-
default:
|
|
806
|
-
|
|
807
|
-
label:
|
|
884
|
+
default: z(() => [
|
|
885
|
+
P(R(H), I(R(T)(R(_)), {
|
|
886
|
+
label: R(i).t("wise_invoicing.invoice.detail.header.invoice_date"),
|
|
808
887
|
"is-required": !0,
|
|
809
|
-
"onUpdate:modelValue":
|
|
888
|
+
"onUpdate:modelValue": ie
|
|
810
889
|
}), null, 16, ["label"]),
|
|
811
|
-
|
|
812
|
-
label:
|
|
890
|
+
P(R(H), I(R(T)(R(v)), {
|
|
891
|
+
label: R(i).t("wise_invoicing.invoice.detail.header.due_date"),
|
|
813
892
|
"is-required": !0,
|
|
814
|
-
"min-date":
|
|
893
|
+
"min-date": R(_).modelValue.value
|
|
815
894
|
}), null, 16, ["label", "min-date"]),
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
895
|
+
R(c).isDeliveryDateVisible.value ? (L(), A(R(H), I({ key: 0 }, R(T)(R(b)), { label: R(i).t("wise_invoicing.invoice.detail.header.delivery_date") }), null, 16, ["label"])) : j("", !0),
|
|
896
|
+
P(_n, {
|
|
897
|
+
field: R(x),
|
|
898
|
+
"is-loading": R(u).isLoading.value,
|
|
899
|
+
users: d.value,
|
|
900
|
+
onNextPage: R(u).fetchNextPage,
|
|
901
|
+
onUpdateSearch: oe
|
|
902
|
+
}, null, 8, [
|
|
903
|
+
"field",
|
|
904
|
+
"is-loading",
|
|
905
|
+
"users",
|
|
906
|
+
"onNextPage"
|
|
907
|
+
]),
|
|
908
|
+
P(R(It), I(R(T)(R(ee)), { label: R(i).t("wise_invoicing.invoice.detail.header.po_number") }), null, 16, ["label"]),
|
|
909
|
+
P(R(It), I(R(T)(R(te)), {
|
|
910
|
+
label: R(i).t("wise_invoicing.invoice.detail.header.subject"),
|
|
911
|
+
placeholder: R(i).t("wise_invoicing.invoice.detail.header.subject_placeholder")
|
|
821
912
|
}), null, 16, ["label", "placeholder"])
|
|
822
913
|
]),
|
|
823
914
|
_: 1
|
|
824
|
-
}),
|
|
825
|
-
modelValue:
|
|
826
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
915
|
+
}), P(dn, {
|
|
916
|
+
modelValue: re.value,
|
|
917
|
+
"onUpdate:modelValue": t[0] ||= (e) => re.value = e,
|
|
827
918
|
currency: n.invoice.currency,
|
|
828
919
|
definitions: n.customFieldDefinitions,
|
|
829
920
|
"is-disabled": !0,
|
|
@@ -839,24 +930,24 @@ var sn = /* @__PURE__ */ L({
|
|
|
839
930
|
})]),
|
|
840
931
|
_: 1
|
|
841
932
|
}),
|
|
842
|
-
|
|
843
|
-
right:
|
|
933
|
+
P(R(K), null, {
|
|
934
|
+
right: z(() => [P(R(q), { label: "cancel" }), P(R(wt), { label: R(i).t("wise_invoicing.invoice.detail.header.edit_info") }, null, 8, ["label"])]),
|
|
844
935
|
_: 1
|
|
845
936
|
})
|
|
846
937
|
]),
|
|
847
938
|
_: 1
|
|
848
939
|
}, 8, ["form"]));
|
|
849
940
|
}
|
|
850
|
-
}),
|
|
941
|
+
}), yn = /* @__PURE__ */ F({
|
|
851
942
|
__name: "InvoiceDetailSidebarInfoTab",
|
|
852
943
|
props: {
|
|
853
944
|
customFieldDefinitions: {},
|
|
854
945
|
invoice: {}
|
|
855
946
|
},
|
|
856
947
|
setup(e) {
|
|
857
|
-
let t = e, n =
|
|
948
|
+
let t = e, n = O(), r = me(), i = y(), a = Bt().create(vn), o = k(() => w.isEditable(t.invoice.status)), c = k(() => ge.filterByEntityType(t.customFieldDefinitions, s.INVOICE)), l = k(() => {
|
|
858
949
|
if (!t.invoice.isOverdue) return null;
|
|
859
|
-
let e = t.invoice.dueOn.toZonedDateTime(
|
|
950
|
+
let e = t.invoice.dueOn.toZonedDateTime(pt.Now.timeZoneId()).toInstant();
|
|
860
951
|
return r.toRelativeTime(e);
|
|
861
952
|
});
|
|
862
953
|
async function u() {
|
|
@@ -868,52 +959,52 @@ var sn = /* @__PURE__ */ L({
|
|
|
868
959
|
function d(e) {
|
|
869
960
|
return e === null ? "-" : r.formatPlainDate(e);
|
|
870
961
|
}
|
|
871
|
-
return (e, r) => (
|
|
872
|
-
default:
|
|
873
|
-
|
|
874
|
-
default:
|
|
875
|
-
|
|
876
|
-
default:
|
|
877
|
-
icon:
|
|
878
|
-
label:
|
|
879
|
-
}, null, 8, ["icon", "label"]),
|
|
962
|
+
return (e, r) => (L(), A(R(bt), { class: "px-2xl py-xl" }, {
|
|
963
|
+
default: z(() => [
|
|
964
|
+
P(R(xt), { label: R(n).t("wise_invoicing.invoice.detail.sidebar.general") }, rt({
|
|
965
|
+
default: z(() => [
|
|
966
|
+
P(R(U), null, {
|
|
967
|
+
default: z(() => [P(R(W), {
|
|
968
|
+
icon: R(S),
|
|
969
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.invoice_id")
|
|
970
|
+
}, null, 8, ["icon", "label"]), P(R(G), { text: t.invoice.sequence ?? "-" }, null, 8, ["text"])]),
|
|
880
971
|
_: 1
|
|
881
972
|
}),
|
|
882
|
-
|
|
883
|
-
default:
|
|
884
|
-
icon:
|
|
885
|
-
label:
|
|
886
|
-
}, null, 8, ["icon", "label"]),
|
|
973
|
+
P(R(U), null, {
|
|
974
|
+
default: z(() => [P(R(W), {
|
|
975
|
+
icon: R(le),
|
|
976
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.po_number")
|
|
977
|
+
}, null, 8, ["icon", "label"]), P(R(G), { text: t.invoice.poNumber ?? "-" }, null, 8, ["text"])]),
|
|
887
978
|
_: 1
|
|
888
979
|
}),
|
|
889
|
-
|
|
890
|
-
default:
|
|
891
|
-
icon:
|
|
892
|
-
label:
|
|
893
|
-
}, null, 8, ["icon", "label"]),
|
|
980
|
+
P(R(U), null, {
|
|
981
|
+
default: z(() => [P(R(W), {
|
|
982
|
+
icon: R(ue),
|
|
983
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.issuer")
|
|
984
|
+
}, null, 8, ["icon", "label"]), P(R(G), { text: t.invoice.issuer.name ?? "-" }, null, 8, ["text"])]),
|
|
894
985
|
_: 1
|
|
895
986
|
}),
|
|
896
|
-
|
|
897
|
-
default:
|
|
898
|
-
icon:
|
|
899
|
-
label:
|
|
900
|
-
}, null, 8, ["icon", "label"]),
|
|
987
|
+
P(R(U), null, {
|
|
988
|
+
default: z(() => [P(R(W), {
|
|
989
|
+
icon: R(x),
|
|
990
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.invoice_date")
|
|
991
|
+
}, null, 8, ["icon", "label"]), P(R(G), { text: d(t.invoice.issueOn) }, null, 8, ["text"])]),
|
|
901
992
|
_: 1
|
|
902
993
|
}),
|
|
903
|
-
|
|
904
|
-
default:
|
|
905
|
-
icon:
|
|
906
|
-
label:
|
|
994
|
+
P(R(U), null, {
|
|
995
|
+
default: z(() => [P(R(W), {
|
|
996
|
+
icon: R(ie),
|
|
997
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.due_date"),
|
|
907
998
|
variant: t.invoice.isOverdue ? "error" : "default"
|
|
908
999
|
}, null, 8, [
|
|
909
1000
|
"icon",
|
|
910
1001
|
"label",
|
|
911
1002
|
"variant"
|
|
912
|
-
]),
|
|
913
|
-
default:
|
|
1003
|
+
]), P(R(Y), { gap: "xs" }, {
|
|
1004
|
+
default: z(() => [P(R(G), {
|
|
914
1005
|
text: d(t.invoice.dueOn),
|
|
915
1006
|
variant: t.invoice.isOverdue ? "error" : "default"
|
|
916
|
-
}, null, 8, ["text", "variant"]), l.value === null ?
|
|
1007
|
+
}, null, 8, ["text", "variant"]), l.value === null ? j("", !0) : (L(), A(R(V), {
|
|
917
1008
|
key: 0,
|
|
918
1009
|
label: l.value,
|
|
919
1010
|
color: "error",
|
|
@@ -924,69 +1015,69 @@ var sn = /* @__PURE__ */ L({
|
|
|
924
1015
|
})]),
|
|
925
1016
|
_: 1
|
|
926
1017
|
}),
|
|
927
|
-
|
|
928
|
-
default:
|
|
929
|
-
icon:
|
|
930
|
-
label:
|
|
931
|
-
}, null, 8, ["icon", "label"]),
|
|
1018
|
+
R(i).isDeliveryDateVisible.value ? (L(), A(R(U), { key: 0 }, {
|
|
1019
|
+
default: z(() => [P(R(W), {
|
|
1020
|
+
icon: R(de),
|
|
1021
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.delivery_date")
|
|
1022
|
+
}, null, 8, ["icon", "label"]), P(R(G), { text: d(t.invoice.deliveredOn) }, null, 8, ["text"])]),
|
|
932
1023
|
_: 1
|
|
933
|
-
})) :
|
|
934
|
-
|
|
1024
|
+
})) : j("", !0),
|
|
1025
|
+
P(Le, {
|
|
935
1026
|
definitions: t.customFieldDefinitions,
|
|
936
1027
|
values: t.invoice.customFields
|
|
937
1028
|
}, null, 8, ["definitions", "values"])
|
|
938
1029
|
]),
|
|
939
1030
|
_: 2
|
|
940
|
-
}, [
|
|
1031
|
+
}, [o.value ? {
|
|
941
1032
|
name: "actions",
|
|
942
|
-
fn:
|
|
943
|
-
icon:
|
|
944
|
-
label:
|
|
1033
|
+
fn: z(() => [P(R(At), {
|
|
1034
|
+
icon: R(fe),
|
|
1035
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.edit_info"),
|
|
945
1036
|
variant: "tertiary",
|
|
946
1037
|
onClick: u
|
|
947
1038
|
}, null, 8, ["icon", "label"])]),
|
|
948
1039
|
key: "0"
|
|
949
1040
|
} : void 0]), 1032, ["label"]),
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
label:
|
|
1041
|
+
P(Be, { "original-invoice": t.invoice.originalInvoice }, null, 8, ["original-invoice"]),
|
|
1042
|
+
P(R(St)),
|
|
1043
|
+
P(R(xt), {
|
|
1044
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.bill_to"),
|
|
954
1045
|
"collapse-options": {
|
|
955
1046
|
isCollapsible: !0,
|
|
956
1047
|
isOpenByDefault: !0,
|
|
957
1048
|
badge: { label: t.invoice.customer.name ?? "-" }
|
|
958
1049
|
}
|
|
959
1050
|
}, {
|
|
960
|
-
default:
|
|
961
|
-
default:
|
|
1051
|
+
default: z(() => [P(R(U), { orientation: "vertical" }, {
|
|
1052
|
+
default: z(() => [P(R(X), {
|
|
962
1053
|
text: t.invoice.customer.name ?? "-",
|
|
963
1054
|
class: "text-xs font-medium"
|
|
964
|
-
}, null, 8, ["text"]), t.invoice.customer.address ? (
|
|
965
|
-
text:
|
|
1055
|
+
}, null, 8, ["text"]), t.invoice.customer.address ? (L(), M(nt, { key: 0 }, [P(R(X), {
|
|
1056
|
+
text: R(b).formatLines(t.invoice.customer.address)[0] ?? "",
|
|
966
1057
|
class: "text-xs"
|
|
967
|
-
}, null, 8, ["text"]), t.invoice.customer.address ? (
|
|
1058
|
+
}, null, 8, ["text"]), t.invoice.customer.address ? (L(), A(R(X), {
|
|
968
1059
|
key: 0,
|
|
969
|
-
text:
|
|
1060
|
+
text: R(b).formatLines(t.invoice.customer.address)[1] ?? "",
|
|
970
1061
|
class: "text-xs"
|
|
971
|
-
}, null, 8, ["text"])) :
|
|
1062
|
+
}, null, 8, ["text"])) : j("", !0)], 64)) : j("", !0)]),
|
|
972
1063
|
_: 1
|
|
973
1064
|
})]),
|
|
974
1065
|
_: 1
|
|
975
1066
|
}, 8, ["label", "collapse-options"]),
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
label:
|
|
1067
|
+
P(R(St)),
|
|
1068
|
+
P(R(xt), {
|
|
1069
|
+
label: R(n).t("wise_invoicing.invoice.detail.header.bill_from"),
|
|
979
1070
|
"collapse-options": {
|
|
980
1071
|
isCollapsible: !0,
|
|
981
1072
|
isOpenByDefault: !1,
|
|
982
1073
|
badge: { label: t.invoice.issuer.email ?? "-" }
|
|
983
1074
|
}
|
|
984
1075
|
}, {
|
|
985
|
-
default:
|
|
986
|
-
default:
|
|
1076
|
+
default: z(() => [P(R(U), { orientation: "vertical" }, {
|
|
1077
|
+
default: z(() => [P(R(W), { label: t.invoice.issuer.email ?? "-" }, null, 8, ["label"]), t.invoice.issuer.address ? (L(), A(R(G), {
|
|
987
1078
|
key: 0,
|
|
988
|
-
text:
|
|
989
|
-
}, null, 8, ["text"])) :
|
|
1079
|
+
text: R(b).format(t.invoice.issuer.address)
|
|
1080
|
+
}, null, 8, ["text"])) : j("", !0)]),
|
|
990
1081
|
_: 1
|
|
991
1082
|
})]),
|
|
992
1083
|
_: 1
|
|
@@ -995,20 +1086,20 @@ var sn = /* @__PURE__ */ L({
|
|
|
995
1086
|
_: 1
|
|
996
1087
|
}));
|
|
997
1088
|
}
|
|
998
|
-
}),
|
|
1089
|
+
}), bn = /* @__PURE__ */ F({
|
|
999
1090
|
__name: "InvoiceDetailSidebar",
|
|
1000
1091
|
props: {
|
|
1001
1092
|
customFieldDefinitions: {},
|
|
1002
1093
|
invoice: {}
|
|
1003
1094
|
},
|
|
1004
1095
|
setup(e) {
|
|
1005
|
-
let t = e, n =
|
|
1006
|
-
return (e, n) => (
|
|
1096
|
+
let t = e, n = O(), r = me(), i = k(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.invoice.updatedAt) }));
|
|
1097
|
+
return (e, n) => (L(), A(Ue, {
|
|
1007
1098
|
"billing-document": t.invoice,
|
|
1008
1099
|
"updated-footer": i.value
|
|
1009
1100
|
}, {
|
|
1010
|
-
activity:
|
|
1011
|
-
info:
|
|
1101
|
+
activity: z(() => [P(un, { invoice: t.invoice }, null, 8, ["invoice"])]),
|
|
1102
|
+
info: z(() => [P(yn, {
|
|
1012
1103
|
"custom-field-definitions": t.customFieldDefinitions,
|
|
1013
1104
|
invoice: t.invoice
|
|
1014
1105
|
}, null, 8, ["custom-field-definitions", "invoice"])]),
|
|
@@ -1018,9 +1109,9 @@ var sn = /* @__PURE__ */ L({
|
|
|
1018
1109
|
});
|
|
1019
1110
|
//#endregion
|
|
1020
1111
|
//#region src/modules/invoice/api/mutations/invoicePaymentDelete.mutation.ts
|
|
1021
|
-
function
|
|
1022
|
-
return
|
|
1023
|
-
queryFn: (e) =>
|
|
1112
|
+
function xn() {
|
|
1113
|
+
return B({
|
|
1114
|
+
queryFn: (e) => _.deletePayment(e.params.invoiceUuid, e.params.paymentUuid),
|
|
1024
1115
|
queryKeysToInvalidate: {
|
|
1025
1116
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
1026
1117
|
invoicePaymentIndex: { invoiceUuid: (e) => e.invoiceUuid }
|
|
@@ -1029,57 +1120,57 @@ function un() {
|
|
|
1029
1120
|
}
|
|
1030
1121
|
//#endregion
|
|
1031
1122
|
//#region src/modules/invoice/api/queries/invoicePaymentIndex.query.ts
|
|
1032
|
-
function
|
|
1033
|
-
return
|
|
1123
|
+
function Sn(e) {
|
|
1124
|
+
return ft("invoicePaymentIndex", {
|
|
1034
1125
|
params: { invoiceUuid: e },
|
|
1035
|
-
queryFn: () =>
|
|
1126
|
+
queryFn: () => _.getPayments(e.value)
|
|
1036
1127
|
});
|
|
1037
1128
|
}
|
|
1038
1129
|
//#endregion
|
|
1039
1130
|
//#region src/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentActionsCell.vue
|
|
1040
|
-
var
|
|
1131
|
+
var Cn = /* @__PURE__ */ F({
|
|
1041
1132
|
__name: "InvoiceDetailPaymentActionsCell",
|
|
1042
1133
|
props: {
|
|
1043
1134
|
payment: {},
|
|
1044
1135
|
onDelete: { type: Function }
|
|
1045
1136
|
},
|
|
1046
1137
|
setup(e) {
|
|
1047
|
-
let
|
|
1048
|
-
return (e,
|
|
1049
|
-
default:
|
|
1050
|
-
default:
|
|
1138
|
+
let t = e, n = O();
|
|
1139
|
+
return (e, r) => (L(), A(R(Pt), null, {
|
|
1140
|
+
default: z(() => [P(R(Ft), null, {
|
|
1141
|
+
default: z(() => [t.payment.source === R(u).MANUAL ? (L(), A(R(At), {
|
|
1051
1142
|
key: 0,
|
|
1052
|
-
label:
|
|
1053
|
-
icon:
|
|
1143
|
+
label: R(n).t("wise_invoicing.invoice.detail.payments.delete.title"),
|
|
1144
|
+
icon: R(Ce),
|
|
1054
1145
|
size: "sm",
|
|
1055
1146
|
variant: "tertiary",
|
|
1056
|
-
onClick:
|
|
1057
|
-
}, null, 8, ["label", "icon"])) :
|
|
1147
|
+
onClick: r[0] ||= (e) => t.onDelete(t.payment)
|
|
1148
|
+
}, null, 8, ["label", "icon"])) : j("", !0)]),
|
|
1058
1149
|
_: 1
|
|
1059
1150
|
})]),
|
|
1060
1151
|
_: 1
|
|
1061
1152
|
}));
|
|
1062
1153
|
}
|
|
1063
|
-
}),
|
|
1154
|
+
}), wn = /* @__PURE__ */ F({
|
|
1064
1155
|
__name: "InvoiceDetailPaymentManualCell",
|
|
1065
1156
|
props: { payment: {} },
|
|
1066
1157
|
setup(e) {
|
|
1067
|
-
let
|
|
1068
|
-
return (e,
|
|
1069
|
-
default:
|
|
1158
|
+
let t = e;
|
|
1159
|
+
return (e, n) => (L(), A(R(Pt), null, {
|
|
1160
|
+
default: z(() => [t.payment.source === R(u).MANUAL ? (L(), A(R(Se), {
|
|
1070
1161
|
key: 0,
|
|
1071
1162
|
class: "size-4 text-brand-600"
|
|
1072
|
-
})) :
|
|
1163
|
+
})) : j("", !0)]),
|
|
1073
1164
|
_: 1
|
|
1074
1165
|
}));
|
|
1075
1166
|
}
|
|
1076
|
-
}),
|
|
1167
|
+
}), Tn = /* @__PURE__ */ F({
|
|
1077
1168
|
__name: "InvoiceDetailPaymentsTableTextCell",
|
|
1078
1169
|
props: { text: {} },
|
|
1079
1170
|
setup(e) {
|
|
1080
1171
|
let t = e;
|
|
1081
|
-
return (e, n) => (
|
|
1082
|
-
default:
|
|
1172
|
+
return (e, n) => (L(), A(R(Pt), null, {
|
|
1173
|
+
default: z(() => [P(R(X), {
|
|
1083
1174
|
text: t.text ?? "-",
|
|
1084
1175
|
class: "text-sm/5 text-primary"
|
|
1085
1176
|
}, null, 8, ["text"])]),
|
|
@@ -1089,9 +1180,9 @@ var fn = /* @__PURE__ */ L({
|
|
|
1089
1180
|
});
|
|
1090
1181
|
//#endregion
|
|
1091
1182
|
//#region src/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.ts
|
|
1092
|
-
function
|
|
1093
|
-
let t =
|
|
1094
|
-
return
|
|
1183
|
+
function En(e) {
|
|
1184
|
+
let t = O(), n = me(), r = d();
|
|
1185
|
+
return k(() => zt()([
|
|
1095
1186
|
{
|
|
1096
1187
|
headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.date"),
|
|
1097
1188
|
key: "date",
|
|
@@ -1099,7 +1190,7 @@ function mn(e) {
|
|
|
1099
1190
|
max: "12rem",
|
|
1100
1191
|
min: "12rem"
|
|
1101
1192
|
},
|
|
1102
|
-
component: (e) =>
|
|
1193
|
+
component: (e) => Z(Tn, { text: n.formatPlainDate(e.date) })
|
|
1103
1194
|
},
|
|
1104
1195
|
{
|
|
1105
1196
|
headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.reference"),
|
|
@@ -1108,7 +1199,7 @@ function mn(e) {
|
|
|
1108
1199
|
max: "14rem",
|
|
1109
1200
|
min: "12rem"
|
|
1110
1201
|
},
|
|
1111
|
-
component: (e) =>
|
|
1202
|
+
component: (e) => Z(Tn, { text: e.paymentReference ?? "—" })
|
|
1112
1203
|
},
|
|
1113
1204
|
{
|
|
1114
1205
|
headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.remark"),
|
|
@@ -1117,7 +1208,7 @@ function mn(e) {
|
|
|
1117
1208
|
max: "1fr",
|
|
1118
1209
|
min: "12rem"
|
|
1119
1210
|
},
|
|
1120
|
-
component: (e) =>
|
|
1211
|
+
component: (e) => Z(Tn, { text: e.remarks ?? "—" })
|
|
1121
1212
|
},
|
|
1122
1213
|
{
|
|
1123
1214
|
headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.manual"),
|
|
@@ -1126,7 +1217,7 @@ function mn(e) {
|
|
|
1126
1217
|
max: "6rem",
|
|
1127
1218
|
min: "6rem"
|
|
1128
1219
|
},
|
|
1129
|
-
component: (e) =>
|
|
1220
|
+
component: (e) => Z(wn, { payment: e })
|
|
1130
1221
|
},
|
|
1131
1222
|
{
|
|
1132
1223
|
headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.amount"),
|
|
@@ -1135,7 +1226,7 @@ function mn(e) {
|
|
|
1135
1226
|
max: "10rem",
|
|
1136
1227
|
min: "10rem"
|
|
1137
1228
|
},
|
|
1138
|
-
component: (e) =>
|
|
1229
|
+
component: (e) => Z(Tn, { text: r.formatMonetary(e.amount) })
|
|
1139
1230
|
},
|
|
1140
1231
|
{
|
|
1141
1232
|
headerLabel: "",
|
|
@@ -1144,7 +1235,7 @@ function mn(e) {
|
|
|
1144
1235
|
max: "5rem",
|
|
1145
1236
|
min: "5rem"
|
|
1146
1237
|
},
|
|
1147
|
-
component: (t) =>
|
|
1238
|
+
component: (t) => Z(Cn, {
|
|
1148
1239
|
payment: t,
|
|
1149
1240
|
onDelete: e.onDelete
|
|
1150
1241
|
})
|
|
@@ -1153,9 +1244,9 @@ function mn(e) {
|
|
|
1153
1244
|
}
|
|
1154
1245
|
//#endregion
|
|
1155
1246
|
//#region src/modules/invoice/api/mutations/invoicePaymentCreate.mutation.ts
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1158
|
-
queryFn: (e) =>
|
|
1247
|
+
function Dn() {
|
|
1248
|
+
return B({
|
|
1249
|
+
queryFn: (e) => _.createPayment(e.params.invoiceUuid, e.body),
|
|
1159
1250
|
queryKeysToInvalidate: {
|
|
1160
1251
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
1161
1252
|
invoicePaymentIndex: { invoiceUuid: (e) => e.invoiceUuid }
|
|
@@ -1164,28 +1255,28 @@ function hn() {
|
|
|
1164
1255
|
}
|
|
1165
1256
|
//#endregion
|
|
1166
1257
|
//#region src/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.ts
|
|
1167
|
-
var
|
|
1168
|
-
amount:
|
|
1169
|
-
currency:
|
|
1170
|
-
date:
|
|
1171
|
-
paymentReference:
|
|
1172
|
-
precision:
|
|
1173
|
-
remarks:
|
|
1174
|
-
}),
|
|
1258
|
+
var On = D.object({
|
|
1259
|
+
amount: D.number().positive(),
|
|
1260
|
+
currency: D.enum(r),
|
|
1261
|
+
date: m,
|
|
1262
|
+
paymentReference: D.string().nullable(),
|
|
1263
|
+
precision: D.number().int().nonnegative(),
|
|
1264
|
+
remarks: D.string().nullable()
|
|
1265
|
+
}), kn = { class: "pr-md text-xs text-secondary" }, An = /* @__PURE__ */ F({
|
|
1175
1266
|
__name: "InvoicePaymentCreateDialog",
|
|
1176
1267
|
props: { invoice: {} },
|
|
1177
1268
|
emits: ["close"],
|
|
1178
1269
|
setup(e, { emit: t }) {
|
|
1179
|
-
let n = e, r = t, i =
|
|
1270
|
+
let n = e, r = t, i = O(), a = Q(), o = d(), s = Dn(), c = k(() => o.getSymbol(n.invoice.grossAmount.currency)), l = $({
|
|
1180
1271
|
initialState: {
|
|
1181
1272
|
amount: null,
|
|
1182
1273
|
currency: n.invoice.grossAmount.currency,
|
|
1183
|
-
date:
|
|
1274
|
+
date: p.getToday(),
|
|
1184
1275
|
paymentReference: null,
|
|
1185
1276
|
precision: n.invoice.grossAmount.precision,
|
|
1186
1277
|
remarks: null
|
|
1187
1278
|
},
|
|
1188
|
-
schema:
|
|
1279
|
+
schema: On,
|
|
1189
1280
|
onSubmit: async (e) => {
|
|
1190
1281
|
let t = await s.execute({
|
|
1191
1282
|
body: e,
|
|
@@ -1200,45 +1291,45 @@ var gn = O.object({
|
|
|
1200
1291
|
onSubmitError: () => {
|
|
1201
1292
|
a.unableToSave();
|
|
1202
1293
|
}
|
|
1203
|
-
}),
|
|
1204
|
-
return (e, t) => (
|
|
1205
|
-
form:
|
|
1294
|
+
}), u = l.register("amount"), f = l.register("date"), m = l.register("paymentReference"), h = l.register("remarks");
|
|
1295
|
+
return (e, t) => (L(), A(R(Et), {
|
|
1296
|
+
form: R(l),
|
|
1206
1297
|
size: "sm",
|
|
1207
1298
|
onClose: t[0] ||= (e) => r("close")
|
|
1208
1299
|
}, {
|
|
1209
|
-
default:
|
|
1210
|
-
|
|
1211
|
-
title:
|
|
1212
|
-
description:
|
|
1213
|
-
icon:
|
|
1300
|
+
default: z(() => [
|
|
1301
|
+
P(R(J), {
|
|
1302
|
+
title: R(i).t("wise_invoicing.invoice.detail.payments.create.title"),
|
|
1303
|
+
description: R(i).t("wise_invoicing.invoice.detail.payments.create.description"),
|
|
1304
|
+
icon: R(ve),
|
|
1214
1305
|
"is-description-visible": !0
|
|
1215
1306
|
}, null, 8, [
|
|
1216
1307
|
"title",
|
|
1217
1308
|
"description",
|
|
1218
1309
|
"icon"
|
|
1219
1310
|
]),
|
|
1220
|
-
|
|
1221
|
-
default:
|
|
1222
|
-
default:
|
|
1311
|
+
P(R(Ct), null, {
|
|
1312
|
+
default: z(() => [P(R(Ot), null, {
|
|
1313
|
+
default: z(() => [P(R(Dt), {
|
|
1223
1314
|
lg: 2,
|
|
1224
1315
|
sm: 1
|
|
1225
1316
|
}, {
|
|
1226
|
-
default:
|
|
1227
|
-
|
|
1317
|
+
default: z(() => [
|
|
1318
|
+
P(R(jt), I(R(T)(R(u)), {
|
|
1228
1319
|
"is-required": !0,
|
|
1229
|
-
label:
|
|
1320
|
+
label: R(i).t("wise_invoicing.invoice.detail.payments.create.fields.amount"),
|
|
1230
1321
|
min: .01,
|
|
1231
1322
|
step: .01
|
|
1232
1323
|
}), {
|
|
1233
|
-
right:
|
|
1324
|
+
right: z(() => [N("span", kn, st(c.value.symbol), 1)]),
|
|
1234
1325
|
_: 1
|
|
1235
1326
|
}, 16, ["label"]),
|
|
1236
|
-
|
|
1327
|
+
P(R(H), I(R(T)(R(f)), {
|
|
1237
1328
|
"is-required": !0,
|
|
1238
|
-
label:
|
|
1329
|
+
label: R(i).t("wise_invoicing.invoice.detail.payments.create.fields.date")
|
|
1239
1330
|
}), null, 16, ["label"]),
|
|
1240
|
-
|
|
1241
|
-
|
|
1331
|
+
P(R(It), I(R(T)(R(m)), { label: R(i).t("wise_invoicing.invoice.detail.payments.create.fields.reference") }), null, 16, ["label"]),
|
|
1332
|
+
P(R(It), I(R(T)(R(h)), { label: R(i).t("wise_invoicing.invoice.detail.payments.create.fields.remarks") }), null, 16, ["label"])
|
|
1242
1333
|
]),
|
|
1243
1334
|
_: 1
|
|
1244
1335
|
})]),
|
|
@@ -1246,29 +1337,29 @@ var gn = O.object({
|
|
|
1246
1337
|
})]),
|
|
1247
1338
|
_: 1
|
|
1248
1339
|
}),
|
|
1249
|
-
|
|
1250
|
-
right:
|
|
1340
|
+
P(R(K), null, {
|
|
1341
|
+
right: z(() => [P(R(q), { label: "cancel" }), P(R(kt), { label: R(i).t("wise_invoicing.invoice.detail.payments.create.submit") }, null, 8, ["label"])]),
|
|
1251
1342
|
_: 1
|
|
1252
1343
|
})
|
|
1253
1344
|
]),
|
|
1254
1345
|
_: 1
|
|
1255
1346
|
}, 8, ["form"]));
|
|
1256
1347
|
}
|
|
1257
|
-
}),
|
|
1348
|
+
}), jn = /* @__PURE__ */ F({
|
|
1258
1349
|
__name: "InvoiceDetailPaymentsSection",
|
|
1259
1350
|
props: { invoice: {} },
|
|
1260
1351
|
setup(e) {
|
|
1261
|
-
let t = e, n =
|
|
1352
|
+
let t = e, n = O(), r = d(), i = k(() => t.invoice.uuid), a = k(() => t.invoice.balanceDueAmount === null ? null : r.formatMonetary(t.invoice.balanceDueAmount)), { isLoading: o, result: s } = Sn(i), c = Bt(), l = Q(), u = c.create(An), f = c.create(yt), p = xn(), m = k(() => s.value.match({
|
|
1262
1353
|
err: () => [],
|
|
1263
1354
|
loading: () => [],
|
|
1264
1355
|
ok: (e) => e
|
|
1265
|
-
})), h =
|
|
1356
|
+
})), h = k(() => s.value.match({
|
|
1266
1357
|
err: (e) => e,
|
|
1267
1358
|
loading: () => null,
|
|
1268
1359
|
ok: () => null
|
|
1269
|
-
})), g =
|
|
1360
|
+
})), g = k(() => !w.getMetadata(t.invoice.status).isTerminal);
|
|
1270
1361
|
function _() {
|
|
1271
|
-
|
|
1362
|
+
u.open({ invoice: t.invoice });
|
|
1272
1363
|
}
|
|
1273
1364
|
function v(e) {
|
|
1274
1365
|
f.open({
|
|
@@ -1282,56 +1373,56 @@ var gn = O.object({
|
|
|
1282
1373
|
paymentUuid: e.uuid
|
|
1283
1374
|
} });
|
|
1284
1375
|
if (r.isErr()) {
|
|
1285
|
-
|
|
1376
|
+
l.apiError(r.error);
|
|
1286
1377
|
return;
|
|
1287
1378
|
}
|
|
1288
|
-
|
|
1379
|
+
l.show({ message: n.t("wise_invoicing.invoice.detail.payments.delete.success") }), f.close();
|
|
1289
1380
|
}
|
|
1290
1381
|
});
|
|
1291
1382
|
}
|
|
1292
|
-
let y =
|
|
1293
|
-
return (e, t) => (
|
|
1294
|
-
default:
|
|
1383
|
+
let y = En({ onDelete: v });
|
|
1384
|
+
return (e, t) => (L(), A(He, null, {
|
|
1385
|
+
default: z(() => [P(R(Y), {
|
|
1295
1386
|
justify: "between",
|
|
1296
1387
|
class: "w-full gap-lg border-b border-secondary px-lg py-md"
|
|
1297
1388
|
}, {
|
|
1298
|
-
default:
|
|
1299
|
-
default:
|
|
1300
|
-
text:
|
|
1389
|
+
default: z(() => [P(R(Y), { gap: "sm" }, {
|
|
1390
|
+
default: z(() => [P(R(X), {
|
|
1391
|
+
text: R(n).t("wise_invoicing.invoice.detail.payments.title"),
|
|
1301
1392
|
as: "h2",
|
|
1302
1393
|
class: "text-sm font-semibold text-primary"
|
|
1303
|
-
}, null, 8, ["text"]), a.value === null ?
|
|
1394
|
+
}, null, 8, ["text"]), a.value === null ? j("", !0) : (L(), A(R(V), {
|
|
1304
1395
|
key: 0,
|
|
1305
1396
|
color: "gray",
|
|
1306
1397
|
size: "sm",
|
|
1307
1398
|
variant: "outline"
|
|
1308
1399
|
}, {
|
|
1309
|
-
default:
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1400
|
+
default: z(() => [
|
|
1401
|
+
P(R(ht), { label: R(n).t("wise_invoicing.invoice.detail.payments.balance_due") }, null, 8, ["label"]),
|
|
1402
|
+
P(R(gt)),
|
|
1403
|
+
P(R(ht), { label: a.value }, null, 8, ["label"])
|
|
1313
1404
|
]),
|
|
1314
1405
|
_: 1
|
|
1315
1406
|
}))]),
|
|
1316
1407
|
_: 1
|
|
1317
|
-
}), g.value ? (
|
|
1408
|
+
}), g.value ? (L(), A(R(_t), {
|
|
1318
1409
|
key: 0,
|
|
1319
|
-
label:
|
|
1320
|
-
"icon-left":
|
|
1410
|
+
label: R(n).t("wise_invoicing.invoice.detail.payments.add"),
|
|
1411
|
+
"icon-left": R(be),
|
|
1321
1412
|
size: "sm",
|
|
1322
1413
|
onClick: _
|
|
1323
|
-
}, null, 8, ["label", "icon-left"])) :
|
|
1414
|
+
}, null, 8, ["label", "icon-left"])) : j("", !0)]),
|
|
1324
1415
|
_: 1
|
|
1325
|
-
}),
|
|
1416
|
+
}), P(R(Nt), {
|
|
1326
1417
|
"active-filter-count": 0,
|
|
1327
|
-
columns:
|
|
1418
|
+
columns: R(y),
|
|
1328
1419
|
data: m.value,
|
|
1329
1420
|
error: h.value,
|
|
1330
1421
|
"get-key": (e) => e.uuid,
|
|
1331
1422
|
"has-active-search": !1,
|
|
1332
1423
|
"header-actions": [],
|
|
1333
1424
|
"is-fetching-next-page": !1,
|
|
1334
|
-
"is-loading":
|
|
1425
|
+
"is-loading": R(o)
|
|
1335
1426
|
}, null, 8, [
|
|
1336
1427
|
"columns",
|
|
1337
1428
|
"data",
|
|
@@ -1345,40 +1436,40 @@ var gn = O.object({
|
|
|
1345
1436
|
});
|
|
1346
1437
|
//#endregion
|
|
1347
1438
|
//#region src/modules/invoice/api/mutations/invoiceUpdateLines.mutation.ts
|
|
1348
|
-
function
|
|
1349
|
-
return
|
|
1350
|
-
queryFn: (e) =>
|
|
1439
|
+
function Mn() {
|
|
1440
|
+
return B({
|
|
1441
|
+
queryFn: (e) => _.updateLines(e.params.invoiceUuid, e.body),
|
|
1351
1442
|
queryKeysToInvalidate: { invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid } }
|
|
1352
1443
|
});
|
|
1353
1444
|
}
|
|
1354
1445
|
//#endregion
|
|
1355
1446
|
//#region src/modules/invoice/api/mutations/invoiceApplyDiscount.mutation.ts
|
|
1356
|
-
function
|
|
1357
|
-
return
|
|
1358
|
-
queryFn: (e) =>
|
|
1447
|
+
function Nn() {
|
|
1448
|
+
return B({
|
|
1449
|
+
queryFn: (e) => _.applyDiscount(e.params.invoiceUuid, e.body),
|
|
1359
1450
|
queryKeysToInvalidate: { invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid } }
|
|
1360
1451
|
});
|
|
1361
1452
|
}
|
|
1362
1453
|
//#endregion
|
|
1363
1454
|
//#region src/modules/invoice/models/invoice/update/invoiceApplyDiscountForm.model.ts
|
|
1364
|
-
var
|
|
1365
|
-
currency:
|
|
1366
|
-
precision:
|
|
1367
|
-
type:
|
|
1368
|
-
value:
|
|
1369
|
-
}).refine((e) => e.type !==
|
|
1455
|
+
var Pn = D.object({
|
|
1456
|
+
currency: D.enum(r),
|
|
1457
|
+
precision: D.number().int().nonnegative(),
|
|
1458
|
+
type: D.enum(a),
|
|
1459
|
+
value: D.number()
|
|
1460
|
+
}).refine((e) => e.type !== a.PERCENTAGE || e.value <= 100, { path: ["value"] }), Fn = { class: "pr-md text-xs text-secondary" }, In = /* @__PURE__ */ F({
|
|
1370
1461
|
__name: "InvoiceApplyDiscountDialog",
|
|
1371
1462
|
props: { invoice: {} },
|
|
1372
1463
|
emits: ["close"],
|
|
1373
1464
|
setup(e, { emit: t }) {
|
|
1374
|
-
let n = e, r = t,
|
|
1465
|
+
let n = e, r = t, i = O(), o = Q(), s = d(), c = Nn(), l = k(() => Rt([a.PERCENTAGE, a.AMOUNT])), u = $({
|
|
1375
1466
|
initialState: {
|
|
1376
1467
|
currency: n.invoice.grossAmount.currency,
|
|
1377
1468
|
precision: n.invoice.grossAmount.precision,
|
|
1378
|
-
type:
|
|
1469
|
+
type: a.PERCENTAGE,
|
|
1379
1470
|
value: null
|
|
1380
1471
|
},
|
|
1381
|
-
schema:
|
|
1472
|
+
schema: Pn,
|
|
1382
1473
|
onSubmit: async (e) => {
|
|
1383
1474
|
let t = await c.execute({
|
|
1384
1475
|
body: e,
|
|
@@ -1393,59 +1484,59 @@ var Sn = O.object({
|
|
|
1393
1484
|
onSubmitError: () => {
|
|
1394
1485
|
o.unableToSave();
|
|
1395
1486
|
}
|
|
1396
|
-
}), f =
|
|
1487
|
+
}), f = u.register("value"), p = u.register("type"), m = k(() => p.modelValue.value === a.PERCENTAGE), h = k(() => p.modelValue.value === a.AMOUNT), g = k(() => s.getSymbol(n.invoice.grossAmount.currency));
|
|
1397
1488
|
function _(e) {
|
|
1398
|
-
return
|
|
1489
|
+
return i.t(`wise_invoicing.invoice.detail.global_discount.type.${e}`);
|
|
1399
1490
|
}
|
|
1400
|
-
return (e, t) => (
|
|
1401
|
-
form:
|
|
1491
|
+
return (e, t) => (L(), A(R(Et), {
|
|
1492
|
+
form: R(u),
|
|
1402
1493
|
size: "sm",
|
|
1403
1494
|
onClose: t[0] ||= (e) => r("close")
|
|
1404
1495
|
}, {
|
|
1405
|
-
default:
|
|
1406
|
-
|
|
1407
|
-
title:
|
|
1408
|
-
description:
|
|
1409
|
-
icon:
|
|
1496
|
+
default: z(() => [
|
|
1497
|
+
P(R(J), {
|
|
1498
|
+
title: R(i).t("wise_invoicing.invoice.detail.line_items.global_discount"),
|
|
1499
|
+
description: R(i).t("wise_invoicing.invoice.detail.global_discount.description"),
|
|
1500
|
+
icon: R(C),
|
|
1410
1501
|
"is-description-visible": !0
|
|
1411
1502
|
}, null, 8, [
|
|
1412
1503
|
"title",
|
|
1413
1504
|
"description",
|
|
1414
1505
|
"icon"
|
|
1415
1506
|
]),
|
|
1416
|
-
|
|
1417
|
-
default:
|
|
1418
|
-
default:
|
|
1507
|
+
P(R(Ct), null, {
|
|
1508
|
+
default: z(() => [P(R(Ot), null, {
|
|
1509
|
+
default: z(() => [P(R(Dt), {
|
|
1419
1510
|
lg: 2,
|
|
1420
1511
|
sm: 1
|
|
1421
1512
|
}, {
|
|
1422
|
-
default:
|
|
1423
|
-
|
|
1513
|
+
default: z(() => [
|
|
1514
|
+
P(R(Mt), I(R(T)(R(p)), {
|
|
1424
1515
|
"display-fn": _,
|
|
1425
1516
|
"is-required": !0,
|
|
1426
|
-
items:
|
|
1427
|
-
label:
|
|
1517
|
+
items: l.value,
|
|
1518
|
+
label: R(i).t("wise_invoicing.invoice.detail.global_discount.type.label")
|
|
1428
1519
|
}), null, 16, ["items", "label"]),
|
|
1429
|
-
m.value ? (
|
|
1430
|
-
hint:
|
|
1520
|
+
m.value ? (L(), A(R(jt), I({ key: 0 }, R(T)(R(f)), {
|
|
1521
|
+
hint: R(i).t("wise_invoicing.invoice.detail.global_discount.amount.hint"),
|
|
1431
1522
|
"is-required": !0,
|
|
1432
|
-
label:
|
|
1523
|
+
label: R(i).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
|
|
1433
1524
|
max: 100,
|
|
1434
1525
|
min: 0,
|
|
1435
1526
|
step: .01
|
|
1436
1527
|
}), {
|
|
1437
|
-
right:
|
|
1528
|
+
right: z(() => [...t[1] ||= [N("span", { class: "pr-md text-xs text-secondary" }, " % ", -1)]]),
|
|
1438
1529
|
_: 1
|
|
1439
|
-
}, 16, ["hint", "label"])) :
|
|
1440
|
-
h.value ? (
|
|
1530
|
+
}, 16, ["hint", "label"])) : j("", !0),
|
|
1531
|
+
h.value ? (L(), A(R(jt), I({ key: 1 }, R(T)(R(f)), {
|
|
1441
1532
|
"is-required": !0,
|
|
1442
|
-
label:
|
|
1533
|
+
label: R(i).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
|
|
1443
1534
|
min: .01,
|
|
1444
1535
|
step: .01
|
|
1445
1536
|
}), {
|
|
1446
|
-
right:
|
|
1537
|
+
right: z(() => [N("span", Fn, st(g.value.symbol), 1)]),
|
|
1447
1538
|
_: 1
|
|
1448
|
-
}, 16, ["label"])) :
|
|
1539
|
+
}, 16, ["label"])) : j("", !0)
|
|
1449
1540
|
]),
|
|
1450
1541
|
_: 1
|
|
1451
1542
|
})]),
|
|
@@ -1453,23 +1544,23 @@ var Sn = O.object({
|
|
|
1453
1544
|
})]),
|
|
1454
1545
|
_: 1
|
|
1455
1546
|
}),
|
|
1456
|
-
|
|
1457
|
-
right:
|
|
1547
|
+
P(R(K), null, {
|
|
1548
|
+
right: z(() => [P(R(q), { label: "cancel" }), P(R(wt), { label: R(i).t("wise_invoicing.invoice.detail.global_discount.confirm") }, null, 8, ["label"])]),
|
|
1458
1549
|
_: 1
|
|
1459
1550
|
})
|
|
1460
1551
|
]),
|
|
1461
1552
|
_: 1
|
|
1462
1553
|
}, 8, ["form"]));
|
|
1463
1554
|
}
|
|
1464
|
-
}),
|
|
1555
|
+
}), Ln = /* @__PURE__ */ F({
|
|
1465
1556
|
__name: "InvoiceLineItemsTableSection",
|
|
1466
1557
|
props: {
|
|
1467
1558
|
customFieldDefinitions: {},
|
|
1468
1559
|
invoice: {}
|
|
1469
1560
|
},
|
|
1470
1561
|
setup(e) {
|
|
1471
|
-
let t = e, n =
|
|
1472
|
-
isSaving:
|
|
1562
|
+
let t = e, n = k(() => t.invoice), r = y(), i = Mn(), a = k(() => w.isEditable(t.invoice.status)), o = Re({
|
|
1563
|
+
isSaving: k(() => i.isLoading.value),
|
|
1473
1564
|
billingDocument: () => n.value,
|
|
1474
1565
|
canEdit: a,
|
|
1475
1566
|
customFieldDefinitions: () => t.customFieldDefinitions,
|
|
@@ -1477,69 +1568,69 @@ var Sn = O.object({
|
|
|
1477
1568
|
body: e,
|
|
1478
1569
|
params: { invoiceUuid: t.invoice.uuid }
|
|
1479
1570
|
})
|
|
1480
|
-
}), s =
|
|
1571
|
+
}), s = Bt().create(In);
|
|
1481
1572
|
function c() {
|
|
1482
1573
|
s.open({ invoice: t.invoice });
|
|
1483
1574
|
}
|
|
1484
|
-
return
|
|
1485
|
-
default:
|
|
1486
|
-
|
|
1487
|
-
"show-apply-discount":
|
|
1575
|
+
return Fe(o), (e, n) => (L(), A(He, null, {
|
|
1576
|
+
default: z(() => [
|
|
1577
|
+
P(Ge, {
|
|
1578
|
+
"show-apply-discount": R(r).isGlobalDiscountEnabled.value,
|
|
1488
1579
|
onApplyDiscount: c
|
|
1489
1580
|
}, null, 8, ["show-apply-discount"]),
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1581
|
+
P(Ne),
|
|
1582
|
+
P(je, { "billing-document": t.invoice }, null, 8, ["billing-document"]),
|
|
1583
|
+
P(Pe)
|
|
1493
1584
|
]),
|
|
1494
1585
|
_: 1
|
|
1495
1586
|
}));
|
|
1496
1587
|
}
|
|
1497
|
-
}),
|
|
1588
|
+
}), Rn = /* @__PURE__ */ F({
|
|
1498
1589
|
__name: "InvoiceDetailView",
|
|
1499
1590
|
props: {
|
|
1500
1591
|
customFieldDefinitions: {},
|
|
1501
1592
|
invoice: {}
|
|
1502
1593
|
},
|
|
1503
1594
|
setup(e) {
|
|
1504
|
-
let t = e, n =
|
|
1595
|
+
let t = e, n = O(), r = at(!1), i = k(() => [{
|
|
1505
1596
|
label: n.t("wise_invoicing.invoice.overview.title"),
|
|
1506
1597
|
to: { name: "invoicing-invoice-overview" }
|
|
1507
1598
|
}, { label: t.invoice.sequence ?? t.invoice.subject ?? n.t("wise_invoicing.invoice.detail.fallback_title") }]);
|
|
1508
|
-
return (e, a) => (
|
|
1599
|
+
return (e, a) => (L(), A(We, {
|
|
1509
1600
|
"billing-document": t.invoice,
|
|
1510
1601
|
breadcrumbs: i.value,
|
|
1511
|
-
title:
|
|
1602
|
+
title: R(n).t("wise_invoicing.invoice.detail.fallback_title")
|
|
1512
1603
|
}, {
|
|
1513
|
-
header:
|
|
1604
|
+
header: z(() => [P(rn, {
|
|
1514
1605
|
invoice: t.invoice,
|
|
1515
1606
|
"is-pdf-view-active": r.value,
|
|
1516
1607
|
class: "w-full",
|
|
1517
1608
|
onTogglePdfView: a[0] ||= (e) => r.value = !r.value
|
|
1518
1609
|
}, null, 8, ["invoice", "is-pdf-view-active"])]),
|
|
1519
|
-
default:
|
|
1610
|
+
default: z(() => [r.value ? (L(), A(Ve, {
|
|
1520
1611
|
key: 0,
|
|
1521
1612
|
"billing-document": t.invoice,
|
|
1522
1613
|
class: "w-full"
|
|
1523
|
-
}, null, 8, ["billing-document"])) : (
|
|
1524
|
-
|
|
1614
|
+
}, null, 8, ["billing-document"])) : (L(), M(nt, { key: 1 }, [
|
|
1615
|
+
P(Ln, {
|
|
1525
1616
|
"custom-field-definitions": t.customFieldDefinitions,
|
|
1526
1617
|
invoice: t.invoice
|
|
1527
1618
|
}, null, 8, ["custom-field-definitions", "invoice"]),
|
|
1528
|
-
|
|
1619
|
+
R(w).isEditable(t.invoice.status) ? j("", !0) : (L(), A(jn, {
|
|
1529
1620
|
key: 0,
|
|
1530
1621
|
invoice: t.invoice,
|
|
1531
1622
|
class: "w-full"
|
|
1532
1623
|
}, null, 8, ["invoice"])),
|
|
1533
|
-
|
|
1624
|
+
P(on, {
|
|
1534
1625
|
invoice: t.invoice,
|
|
1535
1626
|
class: "w-full"
|
|
1536
1627
|
}, null, 8, ["invoice"]),
|
|
1537
|
-
|
|
1628
|
+
P(cn, {
|
|
1538
1629
|
invoice: t.invoice,
|
|
1539
1630
|
class: "w-full"
|
|
1540
1631
|
}, null, 8, ["invoice"])
|
|
1541
1632
|
], 64))]),
|
|
1542
|
-
sidebar:
|
|
1633
|
+
sidebar: z(() => [P(bn, {
|
|
1543
1634
|
"custom-field-definitions": t.customFieldDefinitions,
|
|
1544
1635
|
invoice: t.invoice
|
|
1545
1636
|
}, null, 8, ["custom-field-definitions", "invoice"])]),
|
|
@@ -1550,20 +1641,20 @@ var Sn = O.object({
|
|
|
1550
1641
|
"title"
|
|
1551
1642
|
]));
|
|
1552
1643
|
}
|
|
1553
|
-
}),
|
|
1644
|
+
}), zn = /* @__PURE__ */ F({
|
|
1554
1645
|
__name: "InvoiceDetailViewDataProvider",
|
|
1555
1646
|
props: { invoiceUuid: {} },
|
|
1556
1647
|
setup(e) {
|
|
1557
|
-
let t = e, n =
|
|
1648
|
+
let t = e, n = O(), r = k(() => [{
|
|
1558
1649
|
label: n.t("wise_invoicing.invoice.overview.title"),
|
|
1559
1650
|
to: { name: "invoicing-invoice-overview" }
|
|
1560
|
-
}]), i =
|
|
1561
|
-
return (e, t) => (
|
|
1562
|
-
"custom-field-definitions-query":
|
|
1563
|
-
query:
|
|
1651
|
+
}]), i = Qe(k(() => t.invoiceUuid)), a = _e();
|
|
1652
|
+
return (e, t) => (L(), A(Ke, {
|
|
1653
|
+
"custom-field-definitions-query": R(a),
|
|
1654
|
+
query: R(i),
|
|
1564
1655
|
"loading-breadcrumbs": r.value
|
|
1565
1656
|
}, {
|
|
1566
|
-
default:
|
|
1657
|
+
default: z(({ billingDocument: e, customFieldDefinitions: t }) => [P(Rn, {
|
|
1567
1658
|
"custom-field-definitions": t,
|
|
1568
1659
|
invoice: e
|
|
1569
1660
|
}, null, 8, ["custom-field-definitions", "invoice"])]),
|
|
@@ -1576,4 +1667,4 @@ var Sn = O.object({
|
|
|
1576
1667
|
}
|
|
1577
1668
|
});
|
|
1578
1669
|
//#endregion
|
|
1579
|
-
export {
|
|
1670
|
+
export { zn as default };
|