@wisemen/wise-invoicing-web 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalReminderSettingsViewDataProvider-CD0Seawd.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-BgVYrLu8.js → BillingDocumentDetailViewDataProvider-TX-tovKU.js} +1708 -1576
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-LYvPMzYT.js → BillingDocumentPdf-c-7N80u4.js} +266 -205
- package/dist/{CreditNoteDetailViewDataProvider-CpSIbMM2.js → CreditNoteDetailViewDataProvider-BNT0h67Q.js} +196 -189
- package/dist/{CreditNotePdfViewDataProvider-Dtnu9gS3.js → CreditNotePdfViewDataProvider-qgOuhUf_.js} +2 -2
- package/dist/{CustomFieldValueText-DA0aPKwC.js → CustomFieldValueText-BP4bKQh7.js} +68 -38
- package/dist/{DunningCaseDetailViewDataProvider-DutSCkco.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
- package/dist/{DunningCaseOverviewView-D8o4VMQD.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
- package/dist/{DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
- package/dist/{DunningCaseSendDialog-DGg7bXeZ.js → DunningCaseSendDialog-DwB_jFum.js} +17 -17
- package/dist/{InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-C4MI4IqD.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-BJ3Q18bf.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
- package/dist/{InvoiceApproveDialogDataProvider-CMZ0zDZo.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
- package/dist/{InvoiceDetailViewDataProvider-k1yIeHYP.js → InvoiceDetailViewDataProvider-B8mMYTQf.js} +648 -642
- package/dist/{InvoiceOverviewViewDataProvider-BrgmweRE.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +501 -501
- package/dist/{InvoicePdfView-CB8gx8TE.js → InvoicePdfView-C518PlHp.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-Cs4Gqa0h.js → InvoicePdfViewDataProvider-ClfBkHUZ.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-BaSvVJ8W.js → InvoicePublicPdfViewDataProvider-CoXBj3Je.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-S3N9E91M.js → InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-BLBjPKqx.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-BStn0jFI.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +51 -46
- package/dist/PeppolSettingsViewDataProvider-Cptga29B.js +276 -0
- package/dist/{ReminderSettingsViewDataProvider-BotrOSmS.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +63 -63
- package/dist/{api.util-D6m6OY3_.js → api.util-CR2xLnNj.js} +785 -670
- package/dist/{billingDocumentDetail.transformer-Da-Nt4bI.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +9 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +4 -1
- package/dist/client/types.gen.d.ts +240 -56
- package/dist/client/zod.gen.d.ts +4206 -1343
- package/dist/composables/invoicingConfig.composable.d.ts +12 -0
- package/dist/{creditNoteDetail.query-Yb8TdZNm.js → creditNoteDetail.query-DGeG9_sO.js} +15 -15
- package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
- package/dist/{dist-BpDuRYDT.js → dist-DALBiuub.js} +134 -134
- package/dist/{documentTitle.composable-CRJjS6p-.js → documentTitle.composable-RvqrZTBa.js} +28 -26
- package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
- package/dist/{i18n.lib-DBxdqkbJ.js → i18n.lib-MOiHLIGc.js} +58 -2
- package/dist/index.d.ts +59 -2
- package/dist/index.js +232 -212
- package/dist/{invoice.service-DWDl9XRh.js → invoice.service-Fv4F4aZq.js} +39 -38
- package/dist/{invoiceApproval.service-Fwlxgd9o.js → invoiceApproval.service-DJvXagC7.js} +7 -7
- package/dist/{invoiceApprovalStatus.util-q-zHLdFV.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
- package/dist/{invoiceCustomer.service-DOexR54S.js → invoiceCustomer.service-CDyrtcwH.js} +6 -6
- package/dist/{invoiceDetail.query-B5w0Vlsy.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
- package/dist/{invoiceIndexCache.util-CUlp4R7R.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
- package/dist/{invoicingConfig.composable-CaWQMTP1.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
- package/dist/{issuerSettings.query-BHuLjV9P.js → issuerSettings.query-CoiXblSm.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +56 -0
- package/dist/locales/en-US.json.d.ts +29 -1
- package/dist/locales/nl-BE.json.d.ts +29 -1
- package/dist/models/billing-document/billingDocumentAdvancePayment.util.d.ts +9 -0
- package/dist/models/billing-document/billingDocumentAdvancePayment.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
- package/dist/modules/custom-field/components/customFieldList.spec.d.ts +1 -0
- package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
- package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +6 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +6 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldViewKey.model.d.ts +9 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
- package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +3 -1
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/modules/invoice-delivery/api/mutations/peppolConnectionUpdate.mutation.d.ts +6 -0
- package/dist/modules/invoice-delivery/api/queries/peppolConnection.query.d.ts +1 -0
- package/dist/modules/invoice-delivery/api/query-keys/invoiceDelivery.queryKeys.d.ts +6 -0
- package/dist/modules/invoice-delivery/api/services/peppolConnection.service.d.ts +8 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormApiKeyField.vue.d.ts +8 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormCompanyField.vue.d.ts +11 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormEnabledField.vue.d.ts +7 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormProviderField.vue.d.ts +9 -0
- package/dist/modules/invoice-delivery/index.d.ts +1 -0
- package/dist/modules/invoice-delivery/models/deliveryReason.util.d.ts +6 -0
- package/dist/modules/invoice-delivery/models/peppolConnection.model.d.ts +18 -0
- package/dist/modules/invoice-delivery/models/peppolConnection.transformer.d.ts +9 -0
- package/dist/modules/invoice-delivery/models/peppolConnectionForm.model.d.ts +9 -0
- package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsView.vue.d.ts +7 -0
- package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{reminderConfig.query-C4J6m4ER.js → reminderConfig.query-aRFzY6uZ.js} +22 -22
- package/dist/style.css +1 -1
- package/dist/types/queryKey.type.d.ts +2 -1
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { n as e, r as t } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { n as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { z as
|
|
26
|
-
import { useI18n as
|
|
27
|
-
import { Fragment as
|
|
28
|
-
import { useQueryClient as
|
|
29
|
-
import { QueryClient as
|
|
30
|
-
import { RouterLink as
|
|
31
|
-
import { UIBadge as
|
|
32
|
-
import { createAction as
|
|
1
|
+
import { n as e, r as t } from "./i18n.lib-MOiHLIGc.js";
|
|
2
|
+
import "./api.util-CR2xLnNj.js";
|
|
3
|
+
import { A as n, D as r, b as i, l as a, t as o, u as s, x as c } from "./documentTitle.composable-RvqrZTBa.js";
|
|
4
|
+
import { n as l, r as u, t as d } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
+
import { n as f, t as p } from "./invoicingConfig.composable-UC7tGtBj.js";
|
|
6
|
+
import { t as m } from "./search.composable-CU9OpyUB.js";
|
|
7
|
+
import { t as h } from "./src-DUSgQTKr.js";
|
|
8
|
+
import { i as ee, r as g, t as _ } from "./InvoiceOverviewViewDataProvider-CLgV-Jcv.js";
|
|
9
|
+
import { n as v } from "./address.transformer-jGddczLV.js";
|
|
10
|
+
import { t as y } from "./addressForm.model-C853zEtX.js";
|
|
11
|
+
import { a as b, i as te, n as x, r as S } from "./CustomFieldValueText-BP4bKQh7.js";
|
|
12
|
+
import { n as C, t as w } from "./download.util-LyRpGWKA.js";
|
|
13
|
+
import { n as T } from "./reminderConfig.query-aRFzY6uZ.js";
|
|
14
|
+
import { n as E } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
15
|
+
import { n as D, t as O } from "./percentage.util-Bl78kSSk.js";
|
|
16
|
+
import { r as k, t as ne } from "./DunningCaseOverviewView-Dvwaw597.js";
|
|
17
|
+
import { F as re, lt as ie, rt as ae } from "./dist-BMzyJZTx.js";
|
|
18
|
+
import { s as oe } from "./DunningCaseSendDialog-DwB_jFum.js";
|
|
19
|
+
import { n as se } from "./dist-Cdbpkd3Y.js";
|
|
20
|
+
import { t as ce } from "./DunningCaseDetailViewDataProvider-BNByfQTc.js";
|
|
21
|
+
import { a as le, i as ue, l as A, n as de, o as fe, r as pe, s as me, t as j } from "./dist-DALBiuub.js";
|
|
22
|
+
import { t as he } from "./DunningCaseReminderPdfViewDataProvider-D1avIVyK.js";
|
|
23
|
+
import { t as ge } from "./ReminderSettingsViewDataProvider-BZgzQIxM.js";
|
|
24
|
+
import { r as _e, t as ve } from "./InvoicePublicPdfViewDataProvider-CoXBj3Je.js";
|
|
25
|
+
import { z as M } from "zod";
|
|
26
|
+
import { useI18n as N } from "vue-i18n";
|
|
27
|
+
import { Fragment as ye, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as be, createVNode as z, defineComponent as B, openBlock as V, toDisplayString as H, unref as U, withCtx as W } from "vue";
|
|
28
|
+
import { useQueryClient as xe } from "@tanstack/vue-query";
|
|
29
|
+
import { QueryClient as Se, SortUtil as Ce, useQuery as we } from "@wisemen/vue-core-api-utils";
|
|
30
|
+
import { RouterLink as Te, useRouter as Ee } from "vue-router";
|
|
31
|
+
import { UIBadge as De, UIDetailListGroup as Oe, UIDetailListGroupSeparator as ke, UIEmptyState as Ae, UIFeaturedIcon as je, UIRowLayout as G, UITable as Me, UITableCell as K, UITableCellText as Ne, UIText as q, UITextField as Pe, createComponent as J, defineTableColumns as Fe, useSort as Ie } from "@wisemen/vue-core-design-system";
|
|
32
|
+
import { createAction as Le } from "@wisemen/vue-core-actions";
|
|
33
33
|
//#region src/locales/ui-en-US.json
|
|
34
|
-
var
|
|
34
|
+
var Re = {
|
|
35
35
|
"component.api_error.default_message": "An unexpected error occurred.",
|
|
36
36
|
"component.api_error.default_title": "Error",
|
|
37
37
|
"component.autocomplete.more_results_available": "More results may be available. Narrow your search criteria.",
|
|
@@ -93,7 +93,7 @@ var Pe = {
|
|
|
93
93
|
"shared.clear": "Clear",
|
|
94
94
|
"shared.close": "Close",
|
|
95
95
|
"shared.options": "Options"
|
|
96
|
-
},
|
|
96
|
+
}, ze = {
|
|
97
97
|
"component.api_error.default_message": "Er is een onverwachte fout opgetreden.",
|
|
98
98
|
"component.api_error.default_title": "Fout",
|
|
99
99
|
"component.autocomplete.more_results_available": "Er zijn mogelijk meer resultaten beschikbaar. Verfijn uw zoekcriteria.",
|
|
@@ -158,13 +158,13 @@ var Pe = {
|
|
|
158
158
|
};
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region src/composables/created.composable.ts
|
|
161
|
-
function
|
|
161
|
+
function Be(e) {
|
|
162
162
|
e();
|
|
163
163
|
}
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/composables/invoicingQueryInvalidation.composable.ts
|
|
166
|
-
function
|
|
167
|
-
let e = new
|
|
166
|
+
function Ve() {
|
|
167
|
+
let e = new Se(xe());
|
|
168
168
|
async function t() {
|
|
169
169
|
await e.invalidate("invoiceIndex");
|
|
170
170
|
}
|
|
@@ -172,62 +172,62 @@ function Le() {
|
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region src/modules/credit-note/models/creditNoteUuid.model.ts
|
|
175
|
-
var
|
|
175
|
+
var He = M.uuid().brand("CreditNoteUuid");
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.ts
|
|
178
|
-
function
|
|
179
|
-
return
|
|
180
|
-
isEnabled:
|
|
178
|
+
function Ue(e) {
|
|
179
|
+
return we("dunningCaseCustomerByExternalId", {
|
|
180
|
+
isEnabled: P(() => e.value !== null),
|
|
181
181
|
params: { externalId: e },
|
|
182
|
-
queryFn: () =>
|
|
182
|
+
queryFn: () => oe.getUuidByExternalId(e.value ?? "")
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue?vue&type=script&setup=true&lang.ts
|
|
187
|
-
var
|
|
187
|
+
var We = { class: "min-w-0 flex-1" }, Ge = { class: "flex min-w-0 flex-wrap items-center gap-sm" }, Ke = { class: "truncate text-xs font-semibold text-primary" }, qe = {
|
|
188
188
|
key: 0,
|
|
189
189
|
class: "inline-flex shrink-0 items-center gap-xs rounded-sm border border-secondary px-sm py-px text-xs text-primary"
|
|
190
|
-
},
|
|
190
|
+
}, Je = { class: "mt-xxs block truncate text-xs text-secondary tabular-nums" }, Ye = /* @__PURE__ */ B({
|
|
191
191
|
__name: "CustomerDunningCasesSection",
|
|
192
192
|
props: {
|
|
193
193
|
customerUuid: {},
|
|
194
194
|
externalId: {}
|
|
195
195
|
},
|
|
196
196
|
setup(e) {
|
|
197
|
-
let t = e, n =
|
|
198
|
-
isEnabled:
|
|
197
|
+
let t = e, n = N(), r = u(), i = Ue(P(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = P(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = k({
|
|
198
|
+
isEnabled: P(() => a.value !== void 0),
|
|
199
199
|
params: {
|
|
200
200
|
customerUuid: a,
|
|
201
|
-
isOpen:
|
|
201
|
+
isOpen: P(() => !0)
|
|
202
202
|
}
|
|
203
|
-
}), s =
|
|
203
|
+
}), s = P(() => o.result.value.isOk() ? o.result.value.getValue().data[0] ?? null : null);
|
|
204
204
|
function c(e) {
|
|
205
205
|
return e === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: e });
|
|
206
206
|
}
|
|
207
|
-
return (e, t) => s.value === null ?
|
|
207
|
+
return (e, t) => s.value === null ? I("", !0) : (V(), L(ye, { key: 0 }, [z(U(ke)), z(U(Oe), {
|
|
208
208
|
"collapse-options": {
|
|
209
209
|
isCollapsible: !0,
|
|
210
210
|
isOpenByDefault: !0,
|
|
211
|
-
badge: { label:
|
|
211
|
+
badge: { label: U(r).formatMonetary(s.value.outstandingBalance) }
|
|
212
212
|
},
|
|
213
|
-
label:
|
|
213
|
+
label: U(n).t("module.dunning_case.customer.title")
|
|
214
214
|
}, {
|
|
215
|
-
default:
|
|
215
|
+
default: W(() => [z(U(Te), {
|
|
216
216
|
to: {
|
|
217
217
|
name: "dunning-case-detail",
|
|
218
218
|
params: { dunningCaseUuid: s.value.uuid }
|
|
219
219
|
},
|
|
220
220
|
class: "flex w-full items-center gap-md rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
|
|
221
221
|
}, {
|
|
222
|
-
default:
|
|
223
|
-
icon:
|
|
222
|
+
default: W(() => [z(U(je), {
|
|
223
|
+
icon: U(re),
|
|
224
224
|
color: "brand",
|
|
225
225
|
size: "md",
|
|
226
226
|
variant: "translucent"
|
|
227
|
-
}, null, 8, ["icon"]),
|
|
227
|
+
}, null, 8, ["icon"]), R("span", We, [R("span", Ge, [R("span", Ke, H(U(n).t("module.dunning_case.customer.open_case")), 1), s.value.level === null ? I("", !0) : (V(), L("span", qe, [z(T, {
|
|
228
228
|
level: s.value.level,
|
|
229
229
|
size: "sm"
|
|
230
|
-
}, null, 8, ["level"]),
|
|
230
|
+
}, null, 8, ["level"]), be(" " + H(c(s.value.level)), 1)]))]), R("span", Je, H(U(n).t("module.dunning_case.customer.outstanding", { amount: U(r).formatMonetary(s.value.outstandingBalance) })), 1)])]),
|
|
231
231
|
_: 1
|
|
232
232
|
}, 8, ["to"])]),
|
|
233
233
|
_: 1
|
|
@@ -236,9 +236,9 @@ var Be = { class: "min-w-0 flex-1" }, Ve = { class: "flex min-w-0 flex-wrap item
|
|
|
236
236
|
});
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region src/modules/invoice/actions/invoiceNavigateToDetail.action.ts
|
|
239
|
-
function
|
|
240
|
-
let e =
|
|
241
|
-
return
|
|
239
|
+
function Xe() {
|
|
240
|
+
let e = Ee();
|
|
241
|
+
return Le({
|
|
242
242
|
id: "invoice-navigate-to-detail",
|
|
243
243
|
isApplicable: (e) => e.hasTargetedModelsOfType("Invoice"),
|
|
244
244
|
name: (e) => {
|
|
@@ -247,7 +247,7 @@ function Ke() {
|
|
|
247
247
|
},
|
|
248
248
|
execute: (t) => {
|
|
249
249
|
let n = t.targetedModelOfTypeOrThrow("Invoice");
|
|
250
|
-
n.type ===
|
|
250
|
+
n.type === c.STANDARD ? e.push({
|
|
251
251
|
name: "invoicing-invoice-detail",
|
|
252
252
|
params: { invoiceUuid: n.uuid }
|
|
253
253
|
}) : e.push({
|
|
@@ -259,113 +259,118 @@ function Ke() {
|
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region src/modules/invoice/models/invoiceUuid.model.ts
|
|
262
|
-
var
|
|
262
|
+
var Ze = M.uuid().brand("InvoiceUuid");
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region ../router/src/createRoutes.ts
|
|
265
|
-
function
|
|
265
|
+
function Y(e) {
|
|
266
266
|
return e;
|
|
267
267
|
}
|
|
268
268
|
//#endregion
|
|
269
269
|
//#region src/modules/dunning-case/routes/dunningCase.routes.ts
|
|
270
|
-
var
|
|
270
|
+
var Qe = Y([{
|
|
271
271
|
name: "dunning-case-module",
|
|
272
272
|
path: "/dunning-cases",
|
|
273
273
|
redirect: { name: "dunning-case-overview" },
|
|
274
274
|
children: [{
|
|
275
275
|
name: "dunning-case-overview",
|
|
276
276
|
path: "",
|
|
277
|
-
component: () => import("./DunningCaseOverviewView-
|
|
277
|
+
component: () => import("./DunningCaseOverviewView-Dvwaw597.js").then((e) => e.n),
|
|
278
278
|
meta: { permission: "dunning-case.read" }
|
|
279
279
|
}, {
|
|
280
280
|
name: "dunning-case-detail",
|
|
281
281
|
props: !0,
|
|
282
282
|
path: ":dunningCaseUuid",
|
|
283
|
-
component: () => import("./DunningCaseDetailViewDataProvider-
|
|
283
|
+
component: () => import("./DunningCaseDetailViewDataProvider-BNByfQTc.js").then((e) => e.n),
|
|
284
284
|
meta: { permission: "dunning-case.read" }
|
|
285
285
|
}]
|
|
286
|
-
}]),
|
|
286
|
+
}]), $e = Y([{
|
|
287
287
|
name: "dunning-case-settings-module",
|
|
288
288
|
path: "payment-reminders",
|
|
289
|
-
component: () => import("./ReminderSettingsViewDataProvider-
|
|
289
|
+
component: () => import("./ReminderSettingsViewDataProvider-BZgzQIxM.js").then((e) => e.n),
|
|
290
290
|
meta: { permission: "reminder-config.read" }
|
|
291
|
-
}]),
|
|
291
|
+
}]), et = Y([{
|
|
292
292
|
name: "dunning-case-reminder-pdf",
|
|
293
293
|
path: "/dunning-case-reminder-pdf",
|
|
294
|
-
component: () => import("./DunningCaseReminderPdfViewDataProvider-
|
|
295
|
-
}]),
|
|
294
|
+
component: () => import("./DunningCaseReminderPdfViewDataProvider-D1avIVyK.js").then((e) => e.n)
|
|
295
|
+
}]), tt = Y([{
|
|
296
296
|
name: "invoice-approval-module",
|
|
297
297
|
path: "/invoicing/approvals",
|
|
298
298
|
redirect: { name: "invoice-approval-overview" },
|
|
299
299
|
children: [{
|
|
300
300
|
name: "invoice-approval-overview",
|
|
301
301
|
path: "",
|
|
302
|
-
component: () => import("./InvoiceApprovalOverviewView-
|
|
302
|
+
component: () => import("./InvoiceApprovalOverviewView-jawT-M1t.js"),
|
|
303
303
|
meta: { permission: "invoice-approval.read" }
|
|
304
304
|
}]
|
|
305
|
-
}]),
|
|
305
|
+
}]), nt = Y([{
|
|
306
306
|
name: "invoice-approval-settings-module",
|
|
307
307
|
path: "approval-reminders",
|
|
308
|
-
component: () => import("./ApprovalReminderSettingsViewDataProvider-
|
|
308
|
+
component: () => import("./ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js"),
|
|
309
309
|
meta: { permission: "reminder-config.read" }
|
|
310
|
-
}]),
|
|
310
|
+
}]), rt = [
|
|
311
311
|
{
|
|
312
312
|
name: "invoicing-settings-module",
|
|
313
313
|
path: "invoicing",
|
|
314
314
|
redirect: { name: "invoicing-settings-overview" },
|
|
315
315
|
children: [{
|
|
316
|
+
name: "invoicing-peppol-settings",
|
|
317
|
+
path: "peppol",
|
|
318
|
+
component: () => import("./PeppolSettingsViewDataProvider-Cptga29B.js"),
|
|
319
|
+
meta: { permission: "peppol-connection.update" }
|
|
320
|
+
}, {
|
|
316
321
|
name: "invoicing-settings-overview",
|
|
317
322
|
path: "",
|
|
318
|
-
component: () => import("./IssuerSettingsViewDataProvider-
|
|
323
|
+
component: () => import("./IssuerSettingsViewDataProvider-CXyyCvoZ.js"),
|
|
319
324
|
meta: { permission: "issuer.read" }
|
|
320
325
|
}]
|
|
321
326
|
},
|
|
322
|
-
|
|
323
|
-
...
|
|
327
|
+
...$e,
|
|
328
|
+
...nt
|
|
324
329
|
];
|
|
325
330
|
//#endregion
|
|
326
331
|
//#region src/modules/invoice/routes/invoice.routes.ts
|
|
327
|
-
function
|
|
328
|
-
return
|
|
332
|
+
function it(e) {
|
|
333
|
+
return Y([{
|
|
329
334
|
name: "invoicing-module",
|
|
330
335
|
path: "/invoicing/invoices",
|
|
331
336
|
redirect: { name: "invoicing-invoice-overview" },
|
|
332
337
|
children: [{
|
|
333
338
|
name: "invoicing-invoice-overview",
|
|
334
339
|
path: "",
|
|
335
|
-
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-
|
|
340
|
+
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-CLgV-Jcv.js").then((e) => e.n)),
|
|
336
341
|
meta: { permission: "invoice.read" }
|
|
337
342
|
}, {
|
|
338
343
|
name: "invoicing-invoice-detail",
|
|
339
344
|
props: !0,
|
|
340
345
|
path: ":invoiceUuid",
|
|
341
|
-
component: () => import("./InvoiceDetailViewDataProvider-
|
|
346
|
+
component: () => import("./InvoiceDetailViewDataProvider-B8mMYTQf.js"),
|
|
342
347
|
meta: { permission: "invoice.read" }
|
|
343
348
|
}]
|
|
344
349
|
}]);
|
|
345
350
|
}
|
|
346
|
-
var
|
|
351
|
+
var at = Y([{
|
|
347
352
|
name: "invoicing-invoice-pdf-preview",
|
|
348
353
|
props: !0,
|
|
349
354
|
path: "/invoicing/invoices/:invoiceUuid/pdf",
|
|
350
|
-
component: () => import("./InvoicePdfViewDataProvider-
|
|
355
|
+
component: () => import("./InvoicePdfViewDataProvider-ClfBkHUZ.js"),
|
|
351
356
|
meta: { permission: "invoice.read" }
|
|
352
|
-
}]),
|
|
357
|
+
}]), ot = Y([{
|
|
353
358
|
name: "invoicing-invoice-public-pdf-preview",
|
|
354
359
|
path: "/pdf",
|
|
355
|
-
component: () => import("./InvoicePublicPdfViewDataProvider-
|
|
360
|
+
component: () => import("./InvoicePublicPdfViewDataProvider-CoXBj3Je.js").then((e) => e.n)
|
|
356
361
|
}, {
|
|
357
362
|
name: "invoicing-invoice-public-pro-forma-pdf-preview",
|
|
358
363
|
path: "/pro-forma-pdf",
|
|
359
|
-
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-
|
|
364
|
+
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js")
|
|
360
365
|
}]);
|
|
361
366
|
//#endregion
|
|
362
367
|
//#region src/routes/invoicingPublicRoutes.composable.ts
|
|
363
|
-
function
|
|
364
|
-
return [...
|
|
368
|
+
function st() {
|
|
369
|
+
return [...ot, ...et];
|
|
365
370
|
}
|
|
366
371
|
//#endregion
|
|
367
372
|
//#region src/modules/credit-note/routes/creditNote.routes.ts
|
|
368
|
-
var
|
|
373
|
+
var ct = [{
|
|
369
374
|
name: "invoicing-credit-note-module",
|
|
370
375
|
path: "/invoicing/credit-notes",
|
|
371
376
|
redirect: { name: "invoicing-invoice-overview" },
|
|
@@ -373,33 +378,33 @@ var it = [{
|
|
|
373
378
|
name: "invoicing-credit-note-detail",
|
|
374
379
|
props: !0,
|
|
375
380
|
path: ":creditNoteUuid",
|
|
376
|
-
component: () => import("./CreditNoteDetailViewDataProvider-
|
|
381
|
+
component: () => import("./CreditNoteDetailViewDataProvider-BNT0h67Q.js"),
|
|
377
382
|
meta: { permission: "invoice.read" }
|
|
378
383
|
}]
|
|
379
|
-
}],
|
|
384
|
+
}], lt = [{
|
|
380
385
|
name: "invoicing-credit-note-pdf-preview",
|
|
381
386
|
props: !0,
|
|
382
387
|
path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
|
|
383
|
-
component: () => import("./CreditNotePdfViewDataProvider-
|
|
388
|
+
component: () => import("./CreditNotePdfViewDataProvider-qgOuhUf_.js"),
|
|
384
389
|
meta: { permission: "invoice.read" }
|
|
385
390
|
}];
|
|
386
391
|
//#endregion
|
|
387
392
|
//#region src/routes/invoicingRoutes.composable.ts
|
|
388
|
-
function
|
|
389
|
-
return
|
|
393
|
+
function ut(e) {
|
|
394
|
+
return Y([{
|
|
390
395
|
path: "",
|
|
391
396
|
children: [
|
|
392
|
-
...
|
|
393
|
-
...
|
|
394
|
-
...
|
|
395
|
-
...
|
|
397
|
+
...it(e?.invoiceOverviewComponent),
|
|
398
|
+
...ct,
|
|
399
|
+
...Qe,
|
|
400
|
+
...tt
|
|
396
401
|
]
|
|
397
402
|
}]);
|
|
398
403
|
}
|
|
399
404
|
//#endregion
|
|
400
405
|
//#region src/routes/invoicingStandaloneRoutes.composable.ts
|
|
401
|
-
function
|
|
402
|
-
return [...
|
|
406
|
+
function dt() {
|
|
407
|
+
return [...lt, ...at];
|
|
403
408
|
}
|
|
404
409
|
//#endregion
|
|
405
410
|
//#region src/types/apiError.type.ts
|
|
@@ -408,13 +413,13 @@ var X = {
|
|
|
408
413
|
invoice_line_group_max_depth_exceeded: "wise_invoicing.api_error.invoice_line_group_max_depth_exceeded",
|
|
409
414
|
invoice_not_editable: "wise_invoicing.api_error.invoice_not_editable"
|
|
410
415
|
};
|
|
411
|
-
function
|
|
412
|
-
let e =
|
|
413
|
-
return { messages:
|
|
416
|
+
function ft() {
|
|
417
|
+
let e = N();
|
|
418
|
+
return { messages: P(() => Object.fromEntries(Object.entries(X).map(([t, n]) => [t, e.t(n)]))) };
|
|
414
419
|
}
|
|
415
420
|
//#endregion
|
|
416
421
|
//#region src/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue
|
|
417
|
-
var Z = /* @__PURE__ */
|
|
422
|
+
var Z = /* @__PURE__ */ B({
|
|
418
423
|
__name: "CustomerInvoiceTableBadgeCell",
|
|
419
424
|
props: {
|
|
420
425
|
color: {},
|
|
@@ -422,8 +427,8 @@ var Z = /* @__PURE__ */ z({
|
|
|
422
427
|
},
|
|
423
428
|
setup(e) {
|
|
424
429
|
let t = e;
|
|
425
|
-
return (e, n) => (
|
|
426
|
-
default:
|
|
430
|
+
return (e, n) => (V(), F(U(K), null, {
|
|
431
|
+
default: W(() => [z(U(De), {
|
|
427
432
|
label: t.label,
|
|
428
433
|
color: t.color,
|
|
429
434
|
size: "sm"
|
|
@@ -431,32 +436,32 @@ var Z = /* @__PURE__ */ z({
|
|
|
431
436
|
_: 1
|
|
432
437
|
}));
|
|
433
438
|
}
|
|
434
|
-
}),
|
|
439
|
+
}), pt = /* @__PURE__ */ B({
|
|
435
440
|
__name: "CustomerInvoiceTableInvoiceNumberCell",
|
|
436
441
|
props: { sequence: {} },
|
|
437
442
|
setup(e) {
|
|
438
443
|
let t = e;
|
|
439
|
-
return (e, n) => (
|
|
440
|
-
default:
|
|
444
|
+
return (e, n) => (V(), F(U(K), null, {
|
|
445
|
+
default: W(() => [z(U(q), {
|
|
441
446
|
text: t.sequence ?? "-",
|
|
442
447
|
class: "text-xs font-medium text-primary"
|
|
443
448
|
}, null, 8, ["text"])]),
|
|
444
449
|
_: 1
|
|
445
450
|
}));
|
|
446
451
|
}
|
|
447
|
-
}), Q = /* @__PURE__ */
|
|
452
|
+
}), Q = /* @__PURE__ */ B({
|
|
448
453
|
__name: "CustomerInvoiceTableTextCell",
|
|
449
454
|
props: { text: {} },
|
|
450
455
|
setup(e) {
|
|
451
456
|
let t = e;
|
|
452
|
-
return (e, n) => (
|
|
453
|
-
default:
|
|
457
|
+
return (e, n) => (V(), F(U(K), null, {
|
|
458
|
+
default: W(() => [z(U(Ne), { text: t.text ?? "-" }, null, 8, ["text"])]),
|
|
454
459
|
_: 1
|
|
455
460
|
}));
|
|
456
461
|
}
|
|
457
462
|
}), $ = class {
|
|
458
463
|
static getStatusBadgeColor(e) {
|
|
459
|
-
return e ===
|
|
464
|
+
return e === i.OVERDUE || e === i.PROTESTED ? "error" : "gray";
|
|
460
465
|
}
|
|
461
466
|
static getVatAmount(e) {
|
|
462
467
|
return {
|
|
@@ -467,121 +472,133 @@ var Z = /* @__PURE__ */ z({
|
|
|
467
472
|
};
|
|
468
473
|
//#endregion
|
|
469
474
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
|
|
470
|
-
function
|
|
471
|
-
let
|
|
472
|
-
function
|
|
473
|
-
return e === null ? null :
|
|
475
|
+
function mt(e) {
|
|
476
|
+
let t = N(), r = se(), i = u();
|
|
477
|
+
function a(e) {
|
|
478
|
+
return e === null ? null : r.formatPlainDate(e);
|
|
474
479
|
}
|
|
475
|
-
return
|
|
480
|
+
return P(() => Fe()([
|
|
476
481
|
{
|
|
477
|
-
headerLabel:
|
|
478
|
-
key:
|
|
482
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
|
|
483
|
+
key: n.SEQUENCE,
|
|
479
484
|
size: {
|
|
480
485
|
max: "9.625rem",
|
|
481
486
|
min: "9.625rem"
|
|
482
487
|
},
|
|
483
|
-
component: (e) =>
|
|
488
|
+
component: (e) => J(pt, { sequence: e.sequence })
|
|
484
489
|
},
|
|
485
490
|
{
|
|
486
|
-
headerLabel:
|
|
491
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.status"),
|
|
487
492
|
key: "status",
|
|
488
493
|
size: {
|
|
489
494
|
max: "6.4375rem",
|
|
490
495
|
min: "6.4375rem"
|
|
491
496
|
},
|
|
492
|
-
component: (
|
|
493
|
-
color: $.getStatusBadgeColor(
|
|
494
|
-
label:
|
|
497
|
+
component: (e) => J(Z, {
|
|
498
|
+
color: $.getStatusBadgeColor(e.status),
|
|
499
|
+
label: t.t(x.getMetadata(e.status).translationKey)
|
|
495
500
|
})
|
|
496
501
|
},
|
|
497
502
|
{
|
|
498
|
-
headerLabel:
|
|
499
|
-
key:
|
|
503
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
|
|
504
|
+
key: n.ISSUED_ON,
|
|
500
505
|
size: {
|
|
501
506
|
max: "8.125rem",
|
|
502
507
|
min: "8.125rem"
|
|
503
508
|
},
|
|
504
|
-
component: (e) =>
|
|
509
|
+
component: (e) => J(Q, { text: a(e.issuedOn) })
|
|
505
510
|
},
|
|
506
511
|
{
|
|
507
|
-
headerLabel:
|
|
512
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.due_date"),
|
|
508
513
|
key: "dueOn",
|
|
509
514
|
size: {
|
|
510
515
|
max: "7.125rem",
|
|
511
516
|
min: "7.125rem"
|
|
512
517
|
},
|
|
513
|
-
component: (e) =>
|
|
518
|
+
component: (e) => J(Q, { text: a(e.dueOn) })
|
|
514
519
|
},
|
|
515
520
|
{
|
|
516
|
-
headerLabel:
|
|
521
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.type"),
|
|
517
522
|
key: "type",
|
|
518
523
|
size: {
|
|
519
524
|
max: "7.875rem",
|
|
520
525
|
min: "7.875rem"
|
|
521
526
|
},
|
|
522
|
-
component: (
|
|
527
|
+
component: (e) => J(Z, {
|
|
523
528
|
color: "gray",
|
|
524
|
-
label:
|
|
529
|
+
label: t.t(e.type === c.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
|
|
525
530
|
})
|
|
526
531
|
},
|
|
527
532
|
{
|
|
528
|
-
headerLabel:
|
|
529
|
-
key:
|
|
533
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
|
|
534
|
+
key: n.NET_AMOUNT,
|
|
530
535
|
size: {
|
|
531
536
|
max: "8.25rem",
|
|
532
537
|
min: "8.25rem"
|
|
533
538
|
},
|
|
534
|
-
component: (e) =>
|
|
539
|
+
component: (e) => J(Q, { text: i.formatMonetary(e.total) })
|
|
535
540
|
},
|
|
536
541
|
{
|
|
537
|
-
headerLabel:
|
|
542
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.vat"),
|
|
538
543
|
key: "vat",
|
|
539
544
|
size: {
|
|
540
545
|
max: "8.25rem",
|
|
541
546
|
min: "8.25rem"
|
|
542
547
|
},
|
|
543
|
-
component: (e) =>
|
|
548
|
+
component: (e) => J(Q, { text: i.formatMonetary($.getVatAmount(e)) })
|
|
544
549
|
},
|
|
545
550
|
{
|
|
546
|
-
headerLabel:
|
|
551
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_incl_vat"),
|
|
547
552
|
key: "grossAmount",
|
|
548
553
|
size: {
|
|
549
554
|
max: "8.25rem",
|
|
550
555
|
min: "8.25rem"
|
|
551
556
|
},
|
|
552
|
-
component: (e) =>
|
|
557
|
+
component: (e) => J(Q, { text: i.formatMonetary(e.grossAmount) })
|
|
553
558
|
},
|
|
554
559
|
{
|
|
555
|
-
headerLabel:
|
|
560
|
+
headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
|
|
556
561
|
key: "balanceDueAmount",
|
|
557
562
|
size: {
|
|
558
563
|
max: "1fr",
|
|
559
564
|
min: "8.3125rem"
|
|
560
565
|
},
|
|
561
|
-
component: (e) =>
|
|
562
|
-
}
|
|
566
|
+
component: (e) => J(Q, { text: e.balanceDueAmount === null ? null : i.formatMonetary(e.balanceDueAmount) })
|
|
567
|
+
},
|
|
568
|
+
...e.customFieldDefinitions().map((e) => ({
|
|
569
|
+
headerLabel: S.getLabel(e, t.locale.value),
|
|
570
|
+
key: `custom-field-${e.uuid}`,
|
|
571
|
+
size: {
|
|
572
|
+
max: "1fr",
|
|
573
|
+
min: "10rem"
|
|
574
|
+
},
|
|
575
|
+
component: (t) => J(g, {
|
|
576
|
+
definition: e,
|
|
577
|
+
value: t.customFields.find((t) => t.definitionUuid === e.uuid)
|
|
578
|
+
})
|
|
579
|
+
}))
|
|
563
580
|
]));
|
|
564
581
|
}
|
|
565
582
|
//#endregion
|
|
566
583
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
|
|
567
|
-
function
|
|
568
|
-
let e =
|
|
584
|
+
function ht() {
|
|
585
|
+
let e = N(), t = ue({
|
|
569
586
|
actionGroup: { name: "customer-invoices" },
|
|
570
587
|
filters: [
|
|
571
|
-
|
|
588
|
+
le({
|
|
572
589
|
defaultValue: {
|
|
573
|
-
operator:
|
|
590
|
+
operator: pe.INCLUDES,
|
|
574
591
|
value: []
|
|
575
592
|
},
|
|
576
593
|
disableOperators: !0,
|
|
577
|
-
displayFn: (t) => e.t(
|
|
594
|
+
displayFn: (t) => e.t(x.getMetadata(t).translationKey),
|
|
578
595
|
key: "statuses",
|
|
579
596
|
label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
|
|
580
|
-
options: () => Object.values(
|
|
597
|
+
options: () => Object.values(i)
|
|
581
598
|
}),
|
|
582
|
-
|
|
599
|
+
A({
|
|
583
600
|
defaultValue: {
|
|
584
|
-
operator:
|
|
601
|
+
operator: j.IS_BETWEEN,
|
|
585
602
|
value: {
|
|
586
603
|
from: null,
|
|
587
604
|
until: null
|
|
@@ -591,9 +608,9 @@ function ut() {
|
|
|
591
608
|
key: "issuedOnRange",
|
|
592
609
|
label: e.t("wise_invoicing.invoice.overview.filters.issued_on")
|
|
593
610
|
}),
|
|
594
|
-
|
|
611
|
+
A({
|
|
595
612
|
defaultValue: {
|
|
596
|
-
operator:
|
|
613
|
+
operator: j.IS_BETWEEN,
|
|
597
614
|
value: {
|
|
598
615
|
from: null,
|
|
599
616
|
until: null
|
|
@@ -604,16 +621,16 @@ function ut() {
|
|
|
604
621
|
label: e.t("wise_invoicing.invoice.overview.filters.due_on")
|
|
605
622
|
})
|
|
606
623
|
]
|
|
607
|
-
}), n =
|
|
624
|
+
}), n = P(() => {
|
|
608
625
|
let e = t.values.value.statuses.value;
|
|
609
626
|
return e?.length ? e : null;
|
|
610
627
|
});
|
|
611
628
|
return {
|
|
612
|
-
issuedOnRange:
|
|
629
|
+
issuedOnRange: P(() => {
|
|
613
630
|
let e = t.values.value.issuedOnRange.value;
|
|
614
631
|
return e.from === null || e.until === null ? null : e;
|
|
615
632
|
}),
|
|
616
|
-
dueOnRange:
|
|
633
|
+
dueOnRange: P(() => {
|
|
617
634
|
let e = t.values.value.dueOnRange.value;
|
|
618
635
|
return e.from === null || e.until === null ? null : e;
|
|
619
636
|
}),
|
|
@@ -623,37 +640,40 @@ function ut() {
|
|
|
623
640
|
}
|
|
624
641
|
//#endregion
|
|
625
642
|
//#region src/ui/customer-invoice-list/CustomerInvoiceTable.vue?vue&type=script&setup=true&lang.ts
|
|
626
|
-
var
|
|
643
|
+
var gt = { class: "flex min-h-0 flex-1 flex-col" }, _t = {
|
|
627
644
|
key: 1,
|
|
628
645
|
class: "flex min-h-0 flex-1 flex-col"
|
|
629
|
-
},
|
|
646
|
+
}, vt = /* @__PURE__ */ B({
|
|
630
647
|
__name: "CustomerInvoiceTable",
|
|
631
648
|
props: { externalId: {} },
|
|
632
649
|
setup(e) {
|
|
633
|
-
let t = e,
|
|
634
|
-
|
|
635
|
-
|
|
650
|
+
let t = e, r = N(), i = te(P(() => ({ entityTypes: [a.INVOICE] }))), o = P(() => {
|
|
651
|
+
let e = i.result.value;
|
|
652
|
+
return e.isOk() ? S.filterByView(e.getValue(), b.INVOICE_OVERVIEW) : [];
|
|
653
|
+
}), s = mt({ customFieldDefinitions: () => o.value }), l = m({ debounceMs: 300 }), { issuedOnRange: u, dueOnRange: d, filters: f, statuses: p } = ht();
|
|
654
|
+
de(f);
|
|
655
|
+
let h = Ie({
|
|
636
656
|
initialValues: [{
|
|
637
657
|
direction: "desc",
|
|
638
|
-
key:
|
|
658
|
+
key: n.ISSUED_ON
|
|
639
659
|
}],
|
|
640
660
|
keys: [
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
661
|
+
n.SEQUENCE,
|
|
662
|
+
n.ISSUED_ON,
|
|
663
|
+
n.NET_AMOUNT
|
|
644
664
|
]
|
|
645
|
-
}), { isFetching:
|
|
646
|
-
filters:
|
|
647
|
-
issuedOnRange:
|
|
665
|
+
}), { isFetching: g, isFetchingNextPage: _, isLoading: v, fetchNextPage: y, result: x } = ee({ params: {
|
|
666
|
+
filters: P(() => ({
|
|
667
|
+
issuedOnRange: u.value,
|
|
648
668
|
customerExternalIds: [t.externalId],
|
|
649
|
-
dueOnRange:
|
|
650
|
-
statuses:
|
|
669
|
+
dueOnRange: d.value,
|
|
670
|
+
statuses: p.value
|
|
651
671
|
})),
|
|
652
|
-
search:
|
|
653
|
-
sort:
|
|
654
|
-
} }),
|
|
655
|
-
function
|
|
656
|
-
return e.type ===
|
|
672
|
+
search: l.debouncedSearch,
|
|
673
|
+
sort: h.values
|
|
674
|
+
} }), C = P(() => x.value.isOk() ? x.value.getValue().data : []), w = P(() => x.value.isErr() ? x.value.getError() : null), T = P(() => f.activeFilters.value.length), E = P(() => (l.debouncedSearch.value?.trim().length ?? 0) > 0), D = P(() => !v.value && !g.value && w.value === null && C.value.length === 0 && l.search.value === "" && T.value === 0);
|
|
675
|
+
function O(e) {
|
|
676
|
+
return e.type === c.CREDIT_NOTE ? {
|
|
657
677
|
name: "invoicing-credit-note-detail",
|
|
658
678
|
params: { creditNoteUuid: e.uuid }
|
|
659
679
|
} : {
|
|
@@ -661,65 +681,65 @@ var dt = { class: "flex min-h-0 flex-1 flex-col" }, ft = {
|
|
|
661
681
|
params: { invoiceUuid: e.uuid }
|
|
662
682
|
};
|
|
663
683
|
}
|
|
664
|
-
return (e, t) => (
|
|
684
|
+
return (e, t) => (V(), L("div", gt, [z(U(G), {
|
|
665
685
|
align: "center",
|
|
666
686
|
justify: "between",
|
|
667
687
|
class: "border-b border-secondary bg-secondary px-lg py-md"
|
|
668
688
|
}, {
|
|
669
|
-
default:
|
|
689
|
+
default: W(() => [z(U(G), {
|
|
670
690
|
align: "center",
|
|
671
691
|
gap: "md",
|
|
672
692
|
class: "min-w-0"
|
|
673
693
|
}, {
|
|
674
|
-
default:
|
|
675
|
-
text:
|
|
694
|
+
default: W(() => [z(U(q), {
|
|
695
|
+
text: U(r).t("wise_invoicing.customer_invoice_list.title"),
|
|
676
696
|
class: "shrink-0 text-sm font-semibold text-primary"
|
|
677
|
-
}, null, 8, ["text"]),
|
|
697
|
+
}, null, 8, ["text"]), z(U(fe))]),
|
|
678
698
|
_: 1
|
|
679
|
-
}),
|
|
699
|
+
}), D.value ? I("", !0) : (V(), F(U(G), {
|
|
680
700
|
key: 0,
|
|
681
701
|
justify: "end"
|
|
682
702
|
}, {
|
|
683
|
-
default:
|
|
684
|
-
modelValue:
|
|
685
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
703
|
+
default: W(() => [z(U(Pe), {
|
|
704
|
+
modelValue: U(l).search.value,
|
|
705
|
+
"onUpdate:modelValue": t[0] ||= (e) => U(l).search.value = e,
|
|
686
706
|
label: null,
|
|
687
|
-
"icon-left":
|
|
688
|
-
placeholder:
|
|
707
|
+
"icon-left": U(ae),
|
|
708
|
+
placeholder: U(r).t("wise_invoicing.common.search"),
|
|
689
709
|
size: "sm",
|
|
690
710
|
type: "search"
|
|
691
711
|
}, null, 8, [
|
|
692
712
|
"modelValue",
|
|
693
713
|
"icon-left",
|
|
694
714
|
"placeholder"
|
|
695
|
-
]),
|
|
715
|
+
]), z(U(me))]),
|
|
696
716
|
_: 1
|
|
697
717
|
}))]),
|
|
698
718
|
_: 1
|
|
699
|
-
}),
|
|
719
|
+
}), D.value ? (V(), F(U(Ae), {
|
|
700
720
|
key: 0,
|
|
701
|
-
icon:
|
|
702
|
-
title:
|
|
703
|
-
description:
|
|
721
|
+
icon: U(ie),
|
|
722
|
+
title: U(r).t("wise_invoicing.customer_invoice_list.empty_state.title"),
|
|
723
|
+
description: U(r).t("wise_invoicing.customer_invoice_list.empty_state.description"),
|
|
704
724
|
class: "py-7xl"
|
|
705
725
|
}, null, 8, [
|
|
706
726
|
"icon",
|
|
707
727
|
"title",
|
|
708
728
|
"description"
|
|
709
|
-
])) : (
|
|
710
|
-
columns:
|
|
711
|
-
data:
|
|
712
|
-
sort:
|
|
713
|
-
"is-loading":
|
|
714
|
-
"is-fetching-next-page":
|
|
715
|
-
error:
|
|
716
|
-
"has-active-search":
|
|
717
|
-
"active-filter-count":
|
|
729
|
+
])) : (V(), L("div", _t, [z(U(Me), {
|
|
730
|
+
columns: U(s),
|
|
731
|
+
data: C.value,
|
|
732
|
+
sort: U(h),
|
|
733
|
+
"is-loading": U(v),
|
|
734
|
+
"is-fetching-next-page": U(_),
|
|
735
|
+
error: w.value,
|
|
736
|
+
"has-active-search": E.value,
|
|
737
|
+
"active-filter-count": T.value,
|
|
718
738
|
"get-key": (e) => e.uuid,
|
|
719
|
-
"get-link":
|
|
720
|
-
onNextPage:
|
|
721
|
-
onClearSearch: t[1] ||= (e) =>
|
|
722
|
-
onClearFilters: t[2] ||= (e) =>
|
|
739
|
+
"get-link": O,
|
|
740
|
+
onNextPage: U(y),
|
|
741
|
+
onClearSearch: t[1] ||= (e) => U(l).clear(),
|
|
742
|
+
onClearFilters: t[2] ||= (e) => U(f).clearAll()
|
|
723
743
|
}, null, 8, [
|
|
724
744
|
"columns",
|
|
725
745
|
"data",
|
|
@@ -733,32 +753,32 @@ var dt = { class: "flex min-h-0 flex-1 flex-col" }, ft = {
|
|
|
733
753
|
"onNextPage"
|
|
734
754
|
])]))]));
|
|
735
755
|
}
|
|
736
|
-
}),
|
|
756
|
+
}), yt = /* @__PURE__ */ B({
|
|
737
757
|
__name: "CustomerInvoiceList",
|
|
738
758
|
props: { externalId: {} },
|
|
739
759
|
setup(e) {
|
|
740
|
-
let t = e, n =
|
|
741
|
-
return (e, t) => n.value === null ?
|
|
760
|
+
let t = e, n = P(() => typeof t.externalId == "string" && t.externalId !== "" ? t.externalId : null);
|
|
761
|
+
return (e, t) => n.value === null ? I("", !0) : (V(), F(vt, {
|
|
742
762
|
key: n.value,
|
|
743
763
|
"external-id": n.value
|
|
744
764
|
}, null, 8, ["external-id"]));
|
|
745
765
|
}
|
|
746
|
-
}),
|
|
766
|
+
}), bt = class {
|
|
747
767
|
static format(e, t = 0) {
|
|
748
768
|
return new Intl.NumberFormat(void 0, { maximumFractionDigits: t }).format(e);
|
|
749
769
|
}
|
|
750
770
|
static randomBetween(e, t) {
|
|
751
771
|
return Math.floor(Math.random() * (t - e + 1)) + e;
|
|
752
772
|
}
|
|
753
|
-
},
|
|
773
|
+
}, xt = {
|
|
754
774
|
"en-US": {
|
|
755
775
|
...t,
|
|
756
|
-
...
|
|
776
|
+
...Re
|
|
757
777
|
},
|
|
758
778
|
"nl-BE": {
|
|
759
779
|
...e,
|
|
760
|
-
...
|
|
780
|
+
...ze
|
|
761
781
|
}
|
|
762
782
|
};
|
|
763
783
|
//#endregion
|
|
764
|
-
export {
|
|
784
|
+
export { v as AddressUtil, w as DownloadUtil, E as MonetaryTransformer, bt as NumberUtil, O as Percentage, D as PercentageTransformer, r as SortDirection, Ce as SortUtil, a as WiseInvoicingCustomFieldEntityType, s as WiseInvoicingCustomFieldType, C as WiseInvoicingCustomFieldValueUtil, b as WiseInvoicingCustomFieldViewKey, Ye as WiseInvoicingCustomerDunningCasesSection, yt as WiseInvoicingCustomerInvoiceList, ce as WiseInvoicingDunningCaseDetailView, ne as WiseInvoicingDunningCaseOverviewView, he as WiseInvoicingDunningCaseReminderPdfView, _ as WiseInvoicingInvoiceOverviewView, ve as WiseInvoicingInvoicePublicPdfViewDataProvider, ge as WiseInvoicingReminderSettingsView, y as addressFormSchema, He as creditNoteUuidSchema, p as initWiseInvoicingConfig, Ze as invoiceUuidSchema, Be as onCreated, d as toMajorUnits, l as toMinorUnits, u as useCurrencyFormat, o as useDocumentTitle, Xe as useInvoiceNavigateToDetailAction, m as useSearch, h as useSort, ft as useWiseInvoicingApiError, f as useWiseInvoicingConfig, k as useWiseInvoicingDunningCaseIndexQuery, _e as useWiseInvoicingInvoicePublicDetailQuery, st as useWiseInvoicingPublicRoutes, Ve as useWiseInvoicingQueryInvalidation, ut as useWiseInvoicingRoutes, dt as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, xt as wiseInvoicingLocales, rt as wiseInvoicingSettingsRoutes };
|