@wisemen/wise-invoicing-web 0.6.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-r9DcFi76.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-CsqBeAiA.js → BillingDocumentDetailViewDataProvider-TX-tovKU.js} +1506 -1427
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-thrvzGfh.js → BillingDocumentPdf-c-7N80u4.js} +5 -5
- package/dist/{CreditNoteDetailViewDataProvider-D6IMBwLn.js → CreditNoteDetailViewDataProvider-BNT0h67Q.js} +230 -223
- package/dist/{CreditNotePdfViewDataProvider-C4z1NE3Q.js → CreditNotePdfViewDataProvider-qgOuhUf_.js} +2 -2
- package/dist/{CustomFieldValueText-BRpCwCqJ.js → CustomFieldValueText-BP4bKQh7.js} +53 -38
- package/dist/{DunningCaseDetailViewDataProvider-DTotyRX8.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
- package/dist/{DunningCaseOverviewView-kDq7UY5e.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
- package/dist/{DunningCaseReminderPdfViewDataProvider-DgKA-7lX.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
- package/dist/{DunningCaseSendDialog-DVfBVtgr.js → DunningCaseSendDialog-DwB_jFum.js} +8 -8
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DPlrqqOs.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-B6naRElx.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-CDc_Pwsm.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
- package/dist/{InvoiceApproveDialogDataProvider-CK6ij8X1.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
- package/dist/{InvoiceDetailViewDataProvider-BKurQPAV.js → InvoiceDetailViewDataProvider-B8mMYTQf.js} +592 -586
- package/dist/{InvoiceOverviewViewDataProvider-ChoyCi5L.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +440 -440
- package/dist/{InvoicePdfView-DLEKQ29O.js → InvoicePdfView-C518PlHp.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-C-b7iXiH.js → InvoicePdfViewDataProvider-ClfBkHUZ.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-DZ4WQsvi.js → InvoicePublicPdfViewDataProvider-CoXBj3Je.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CsF8fPlp.js → InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-t64Qiyn6.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-Cc8R6ekd.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +3 -3
- package/dist/{PeppolSettingsViewDataProvider-DpVIfFVG.js → PeppolSettingsViewDataProvider-Cptga29B.js} +2 -2
- package/dist/{ReminderSettingsViewDataProvider-QOh3LpMX.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +4 -4
- package/dist/{api.util-Do9BEwG4.js → api.util-CR2xLnNj.js} +536 -515
- package/dist/{billingDocumentDetail.transformer-BAOQ3Zrg.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +8 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.gen.d.ts +23 -17
- package/dist/client/zod.gen.d.ts +360 -0
- package/dist/composables/invoicingConfig.composable.d.ts +12 -0
- package/dist/{creditNoteDetail.query-C1rr54m1.js → creditNoteDetail.query-DGeG9_sO.js} +3 -3
- package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
- package/dist/{dist-CZAOPudv.js → dist-DALBiuub.js} +133 -133
- package/dist/{documentTitle.composable-C3k1m0Nz.js → documentTitle.composable-RvqrZTBa.js} +1 -1
- package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
- package/dist/{i18n.lib-Bkz_R954.js → i18n.lib-MOiHLIGc.js} +4 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +219 -204
- package/dist/{invoice.service-DrI2ULIR.js → invoice.service-Fv4F4aZq.js} +3 -3
- package/dist/{invoiceApproval.service-Dpxiru7l.js → invoiceApproval.service-DJvXagC7.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-CdOAcPzv.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
- package/dist/{invoiceCustomer.service-RRFosiYR.js → invoiceCustomer.service-CDyrtcwH.js} +2 -2
- package/dist/{invoiceDetail.query-BmtHdfj0.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
- package/dist/{invoiceIndexCache.util-DKtJorc_.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
- package/dist/{invoicingConfig.composable-CMTYHHS9.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
- package/dist/{issuerSettings.query-CKDhoStt.js → issuerSettings.query-CoiXblSm.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +4 -0
- package/dist/locales/en-US.json.d.ts +2 -0
- package/dist/locales/nl-BE.json.d.ts +2 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
- 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-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 +1 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/{reminderConfig.query-yImUS5qt.js → reminderConfig.query-aRFzY6uZ.js} +2 -2
- 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/{CreditNotePdfViewDataProvider-C4z1NE3Q.js → CreditNotePdfViewDataProvider-qgOuhUf_.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./DataProvider-C3uEds9v.js";
|
|
2
|
-
import { t } from "./InvoicePdfView-
|
|
3
|
-
import { t as n } from "./creditNoteDetail.query-
|
|
2
|
+
import { t } from "./InvoicePdfView-C518PlHp.js";
|
|
3
|
+
import { t as n } from "./creditNoteDetail.query-DGeG9_sO.js";
|
|
4
4
|
import { useI18n as r } from "vue-i18n";
|
|
5
5
|
import { computed as i, createBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, openBlock as l, unref as u, withCtx as d } from "vue";
|
|
6
6
|
import { UIText as f } from "@wisemen/vue-core-design-system";
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { Z as e, t } from "./api.util-
|
|
2
|
-
import { b as n, u as r, y as i } from "./documentTitle.composable-
|
|
1
|
+
import { Z as e, t } from "./api.util-CR2xLnNj.js";
|
|
2
|
+
import { b as n, u as r, y as i } from "./documentTitle.composable-RvqrZTBa.js";
|
|
3
3
|
import { r as a } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as o } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { n as o } from "./invoicingConfig.composable-UC7tGtBj.js";
|
|
5
|
+
import { n as s } from "./dist-Cdbpkd3Y.js";
|
|
6
|
+
import { useI18n as c } from "vue-i18n";
|
|
7
|
+
import { computed as l, createBlock as u, createTextVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
8
|
+
import { useQuery as v } from "@wisemen/vue-core-api-utils";
|
|
9
|
+
import { RouterLink as y } from "vue-router";
|
|
10
|
+
import { UIText as b } from "@wisemen/vue-core-design-system";
|
|
9
11
|
//#region src/modules/custom-field/models/custom-field-definition/customFieldViewKey.model.ts
|
|
10
|
-
var
|
|
12
|
+
var x = /* @__PURE__ */ function(e) {
|
|
11
13
|
return e.CREDIT_NOTE_DETAIL = "credit-note-detail", e.INVOICE_DETAIL = "invoice-detail", e.INVOICE_OVERVIEW = "invoice-overview", e;
|
|
12
|
-
}({}),
|
|
14
|
+
}({}), S = class {
|
|
13
15
|
static fromDto(e) {
|
|
14
16
|
return {
|
|
15
17
|
uuid: e.uuid,
|
|
@@ -25,28 +27,28 @@ var g = /* @__PURE__ */ function(e) {
|
|
|
25
27
|
label: e.label,
|
|
26
28
|
rules: e.rules,
|
|
27
29
|
type: e.type,
|
|
28
|
-
views: e.views.filter((e) => Object.values(
|
|
30
|
+
views: e.views.filter((e) => Object.values(x).includes(e.key)).map((e) => ({
|
|
29
31
|
key: e.key,
|
|
30
32
|
order: e.order
|
|
31
33
|
}))
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
|
-
},
|
|
36
|
+
}, C = class {
|
|
35
37
|
static async getAll(n) {
|
|
36
|
-
return (await t.fromPromise(e({ query: n?.entityTypes === void 0 ? void 0 : { filter: { entityTypes: n.entityTypes } } }))).map((e) => e.data.map(
|
|
38
|
+
return (await t.fromPromise(e({ query: n?.entityTypes === void 0 ? void 0 : { filter: { entityTypes: n.entityTypes } } }))).map((e) => e.data.map(S.fromDto));
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
41
|
//#endregion
|
|
40
42
|
//#region src/modules/custom-field/api/queries/customFieldDefinitionIndex.query.ts
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
+
function w(e) {
|
|
44
|
+
return v("customFieldDefinitionIndex", {
|
|
43
45
|
params: { queryParams: e },
|
|
44
|
-
queryFn: () =>
|
|
46
|
+
queryFn: () => C.getAll(e?.value)
|
|
45
47
|
});
|
|
46
48
|
}
|
|
47
49
|
//#endregion
|
|
48
50
|
//#region src/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.ts
|
|
49
|
-
var
|
|
51
|
+
var T = class {
|
|
50
52
|
static filterByEntityType(e, t) {
|
|
51
53
|
return e.filter((e) => e.entityType === t);
|
|
52
54
|
}
|
|
@@ -70,7 +72,7 @@ var b = class {
|
|
|
70
72
|
let n = t.toLowerCase(), r = n.split("-")[0], i = e.items.find((e) => e.locale.toLowerCase() === n), a = e.items.find((e) => e.locale.toLowerCase().split("-")[0] === r);
|
|
71
73
|
return i?.value ?? a?.value ?? e.items[0]?.value ?? "";
|
|
72
74
|
}
|
|
73
|
-
},
|
|
75
|
+
}, E = {
|
|
74
76
|
[n.CREDITED]: {
|
|
75
77
|
isEditable: !1,
|
|
76
78
|
isRefreshable: !1,
|
|
@@ -155,21 +157,21 @@ var b = class {
|
|
|
155
157
|
tone: "purple",
|
|
156
158
|
translationKey: "wise_invoicing.invoice.status.sent"
|
|
157
159
|
}
|
|
158
|
-
},
|
|
159
|
-
[i.DRAFT]:
|
|
160
|
-
[i.FINALIZED]:
|
|
161
|
-
[i.READY]:
|
|
162
|
-
},
|
|
160
|
+
}, D = {
|
|
161
|
+
[i.DRAFT]: E[n.DRAFT],
|
|
162
|
+
[i.FINALIZED]: E[n.FINALIZED],
|
|
163
|
+
[i.READY]: E[n.READY]
|
|
164
|
+
}, O = class {
|
|
163
165
|
static getLifecycleMetadata(e) {
|
|
164
|
-
return
|
|
166
|
+
return D[e];
|
|
165
167
|
}
|
|
166
168
|
static getMetadata(e) {
|
|
167
|
-
return
|
|
169
|
+
return E[e];
|
|
168
170
|
}
|
|
169
171
|
static isEditable(e) {
|
|
170
|
-
return
|
|
172
|
+
return E[e].isEditable;
|
|
171
173
|
}
|
|
172
|
-
},
|
|
174
|
+
}, k = /* @__PURE__ */ f({
|
|
173
175
|
__name: "CustomFieldValueText",
|
|
174
176
|
props: {
|
|
175
177
|
definition: {},
|
|
@@ -177,28 +179,41 @@ var b = class {
|
|
|
177
179
|
value: {}
|
|
178
180
|
},
|
|
179
181
|
setup(e) {
|
|
180
|
-
let t = e, n =
|
|
182
|
+
let t = e, n = c(), i = a(), f = s(), v = o(), x = l(() => {
|
|
181
183
|
switch (t.value.type) {
|
|
182
184
|
case r.BOOLEAN: return t.value.value ? n.t("wise_invoicing.common.yes") : n.t("wise_invoicing.common.no");
|
|
183
|
-
case r.DATE: return t.value.value === "infinity" ? n.t("wise_invoicing.custom_field.date.infinity") : t.value.value === "-infinity" ? n.t("wise_invoicing.custom_field.date.negative_infinity") :
|
|
185
|
+
case r.DATE: return t.value.value === "infinity" ? n.t("wise_invoicing.custom_field.date.infinity") : t.value.value === "-infinity" ? n.t("wise_invoicing.custom_field.date.negative_infinity") : f.formatPlainDate(t.value.value);
|
|
184
186
|
case r.MONETARY: return i.formatMonetary(t.value.value);
|
|
185
|
-
case r.MULTI_SELECT: return t.value.value.map((e) =>
|
|
187
|
+
case r.MULTI_SELECT: return t.value.value.map((e) => w(e)).join(", ");
|
|
186
188
|
case r.NUMBER: return new Intl.NumberFormat(n.locale.value, { maximumFractionDigits: 20 }).format(t.value.value);
|
|
187
|
-
case r.
|
|
189
|
+
case r.REFERENCE: return t.value.value;
|
|
190
|
+
case r.SINGLE_SELECT: return w(t.value.value);
|
|
188
191
|
case r.TEXT: return t.value.value;
|
|
189
192
|
case r.TEXT_ARRAY: return t.value.value.join(", ");
|
|
190
|
-
case r.TIMESTAMP: return
|
|
193
|
+
case r.TIMESTAMP: return f.toDateTime(t.value.value);
|
|
191
194
|
default: throw TypeError("Unsupported custom field value type");
|
|
192
195
|
}
|
|
193
|
-
}),
|
|
194
|
-
|
|
195
|
-
|
|
196
|
+
}), S = l(() => t.value.type !== r.REFERENCE || t.definition === void 0 ? null : v.getCustomFieldReferenceRoute({
|
|
197
|
+
entityType: t.definition.entityType,
|
|
198
|
+
key: t.definition.key,
|
|
199
|
+
value: t.value.value
|
|
200
|
+
})), C = l(() => t.size === "md" ? "min-w-0 text-sm/5 text-primary" : "min-w-0 text-xs text-primary");
|
|
201
|
+
function w(e) {
|
|
202
|
+
return t.definition === void 0 ? e : T.getChoiceLabel(t.definition, e, n.locale.value);
|
|
196
203
|
}
|
|
197
|
-
return (e,
|
|
198
|
-
|
|
199
|
-
|
|
204
|
+
return (e, r) => S.value !== null && t.definition !== void 0 ? (m(), u(g(y), {
|
|
205
|
+
key: 0,
|
|
206
|
+
to: S.value,
|
|
207
|
+
class: p([C.value, "underline underline-offset-2 transition-colors hover:text-brand-700 focus-visible:text-brand-700 focus-visible:outline-none"])
|
|
208
|
+
}, {
|
|
209
|
+
default: _(() => [d(h(g(T).getLabel(t.definition, g(n).locale.value)), 1)]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["to", "class"])) : (m(), u(g(b), {
|
|
212
|
+
key: 1,
|
|
213
|
+
text: x.value || "-",
|
|
214
|
+
class: p(C.value)
|
|
200
215
|
}, null, 8, ["text", "class"]));
|
|
201
216
|
}
|
|
202
217
|
});
|
|
203
218
|
//#endregion
|
|
204
|
-
export {
|
|
219
|
+
export { x as a, w as i, O as n, T as r, k as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import { E as t, t as n } from "./documentTitle.composable-
|
|
2
|
+
import "./api.util-CR2xLnNj.js";
|
|
3
|
+
import { E as t, t as n } from "./documentTitle.composable-RvqrZTBa.js";
|
|
4
4
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
6
|
-
import { n as a } from "./reminderConfig.query-
|
|
7
|
-
import {
|
|
8
|
-
import { a as u, i as ne, n as re, o as d, r as ie, t as ae } from "./DunningCaseSendDialog-
|
|
5
|
+
import { n as i } from "./invoicingConfig.composable-UC7tGtBj.js";
|
|
6
|
+
import { n as a } from "./reminderConfig.query-aRFzY6uZ.js";
|
|
7
|
+
import { N as o, Tt as s, it as ee, lt as c, mt as te, xt as l } from "./dist-BMzyJZTx.js";
|
|
8
|
+
import { a as u, i as ne, n as re, o as d, r as ie, t as ae } from "./DunningCaseSendDialog-DwB_jFum.js";
|
|
9
9
|
import { n as f } from "./customerUuid.model-ClN4Vi9n.js";
|
|
10
10
|
import { n as oe } from "./dist-Cdbpkd3Y.js";
|
|
11
11
|
import { t as p } from "./DataProvider-C3uEds9v.js";
|
|
@@ -220,7 +220,7 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
220
220
|
b("p", Ee, O(k(f).t("module.dunning_case.detail.last_synced", { date: k(I).toDateTime(d.dunningCase.updatedAt) })), 1)
|
|
221
221
|
]), d.dunningCase.canSendReminder || J.value === "sending" ? (T(), _(k(N), {
|
|
222
222
|
key: 0,
|
|
223
|
-
"icon-right": k(
|
|
223
|
+
"icon-right": k(s),
|
|
224
224
|
"is-loading": J.value === "sending",
|
|
225
225
|
label: k(f).t("module.dunning_case.detail.send"),
|
|
226
226
|
class: "w-fit self-start lg:ml-auto",
|
|
@@ -232,7 +232,7 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
232
232
|
"label"
|
|
233
233
|
])) : d.dunningCase.canRetryReminder ? (T(), _(k(N), {
|
|
234
234
|
key: 1,
|
|
235
|
-
"icon-right": k(
|
|
235
|
+
"icon-right": k(s),
|
|
236
236
|
"is-loading": k(B).result.value.isLoading(),
|
|
237
237
|
label: k(f).t("module.dunning_case.detail.retry"),
|
|
238
238
|
class: "w-fit self-start lg:ml-auto",
|
|
@@ -286,7 +286,7 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
286
286
|
_: 2
|
|
287
287
|
}, 1024))), 128))]),
|
|
288
288
|
b("div", ze, [b("span", Be, [S(k(o), { class: "size-(--spacing-xl) text-brand-700" })]), b("div", Ve, [b("p", He, O(k(f).t("module.dunning_case.detail.next_reminder")), 1), b("p", Ue, O(d.dunningCase.nextReminderOn === null ? k(f).t("module.dunning_case.overview.not_scheduled") : k(I).formatPlainDate(d.dunningCase.nextReminderOn)), 1)])]),
|
|
289
|
-
b("div", We, [b("span", Ge, [S(k(
|
|
289
|
+
b("div", We, [b("span", Ge, [S(k(c), { class: "size-(--spacing-xl) text-brand-700" })]), b("div", null, [
|
|
290
290
|
b("p", Ke, O(k(f).t("module.dunning_case.detail.invoices")), 1),
|
|
291
291
|
b("p", qe, O(d.dunningCase.invoices.length), 1),
|
|
292
292
|
q.value > 0 ? (T(), y("p", Je, O(k(f).t("module.dunning_case.detail.protested_count", { count: q.value })), 1)) : v("", !0)
|
|
@@ -380,7 +380,7 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
380
380
|
amount: k(P).formatMonetary(e.grossAmount),
|
|
381
381
|
date: k(I).formatPlainDate(e.finalizedOn),
|
|
382
382
|
sequence: e.sequence
|
|
383
|
-
})), 1)]))), 128))])])], 2)])], 10, xt)) : v("", !0)], 64))), 128))])])) : (T(), y("div", Tt, [b("span", Et, [S(k(
|
|
383
|
+
})), 1)]))), 128))])])], 2)])], 10, xt)) : v("", !0)], 64))), 128))])])) : (T(), y("div", Tt, [b("span", Et, [S(k(l), { class: "size-(--spacing-xl) text-primary" })]), b("p", Dt, O(k(f).t(V.value === "overdue" ? "module.dunning_case.detail.empty_overdue" : "module.dunning_case.detail.empty_outstanding")), 1)]))]),
|
|
384
384
|
V.value === "overdue" ? (T(), y("div", Ot, [b("div", kt, [b("span", null, O(k(f).t("module.dunning_case.detail.total_outstanding")), 1), b("span", At, O(k(P).formatMonetary(X.value)), 1)]), b("div", jt, [b("span", null, O(d.dunningCase.level === 0 ? k(f).t("module.dunning_case.detail.reminder_fee") : k(f).t("module.dunning_case.detail.fee", { level: d.dunningCase.level })), 1), b("span", Mt, O(k(P).formatMonetary(d.dunningCase.totalFee)), 1)])])) : v("", !0)
|
|
385
385
|
])]), b("aside", Nt, [b("h2", Pt, O(k(f).t("module.dunning_case.detail.activity")), 1), b("ol", Ft, [(T(!0), y(h, null, D(W.value, (e, t) => (T(), y("li", {
|
|
386
386
|
key: e.key,
|
|
@@ -396,13 +396,13 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
396
396
|
})) : e.type === "payment" ? (T(), _(k(te), {
|
|
397
397
|
key: 1,
|
|
398
398
|
class: "size-(--spacing-lg) text-success-primary"
|
|
399
|
-
})) : e.type === "credit-note" ? (T(), _(k(
|
|
399
|
+
})) : e.type === "credit-note" ? (T(), _(k(c), {
|
|
400
400
|
key: 2,
|
|
401
401
|
class: "size-(--spacing-lg) text-secondary"
|
|
402
|
-
})) : e.type === "reminder-sent" ? (T(), _(k(
|
|
402
|
+
})) : e.type === "reminder-sent" ? (T(), _(k(s), {
|
|
403
403
|
key: 3,
|
|
404
404
|
class: "size-(--spacing-lg) text-brand-tertiary"
|
|
405
|
-
})) : e.type === "case-closed" ? (T(), _(k(
|
|
405
|
+
})) : e.type === "case-closed" ? (T(), _(k(l), {
|
|
406
406
|
key: 4,
|
|
407
407
|
class: "size-(--spacing-lg) text-success-primary"
|
|
408
408
|
})) : v("", !0)], 2), t < W.value.length - 1 ? (T(), y("span", Lt)) : v("", !0)]), b("div", { class: w([{ "pb-xl": t < W.value.length - 1 }, "pt-xs"]) }, [b("p", Rt, O(Jt(e)), 1), b("p", zt, O(Yt(e)), 1)], 2)]))), 128))])])])
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { t } from "./documentTitle.composable-
|
|
2
|
+
import { t } from "./documentTitle.composable-RvqrZTBa.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as r } from "./invoicingConfig.composable-
|
|
4
|
+
import { n as r } from "./invoicingConfig.composable-UC7tGtBj.js";
|
|
5
5
|
import { t as i } from "./search.composable-CU9OpyUB.js";
|
|
6
|
-
import { n as a, r as o } from "./reminderConfig.query-
|
|
7
|
-
import {
|
|
8
|
-
import { a as m, n as h, r as g, s as _, t as v } from "./DunningCaseSendDialog-
|
|
6
|
+
import { n as a, r as o } from "./reminderConfig.query-aRFzY6uZ.js";
|
|
7
|
+
import { Ct as s, P as c, Q as l, Tt as u, W as d, l as f, u as p } from "./dist-BMzyJZTx.js";
|
|
8
|
+
import { a as m, n as h, r as g, s as _, t as v } from "./DunningCaseSendDialog-DwB_jFum.js";
|
|
9
9
|
import { n as ee } from "./customerUuid.model-ClN4Vi9n.js";
|
|
10
|
-
import { f as y, i as b, n as te, o as ne, r as x, s as re } from "./dist-
|
|
10
|
+
import { f as y, i as b, n as te, o as ne, r as x, s as re } from "./dist-DALBiuub.js";
|
|
11
11
|
import { z as S } from "zod";
|
|
12
12
|
import { useI18n as C } from "vue-i18n";
|
|
13
13
|
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createVNode as A, defineComponent as j, nextTick as M, normalizeClass as N, normalizeStyle as ie, onMounted as ae, openBlock as P, ref as F, renderList as I, toDisplayString as L, unref as R, watch as oe, withCtx as z } from "vue";
|
|
@@ -49,7 +49,7 @@ function ye() {
|
|
|
49
49
|
let r = e.targetedModelOfTypeOrThrow("DunningCase"), i = n.getCustomerDetailRoute(r.customer.uuid);
|
|
50
50
|
i !== null && t.push(i);
|
|
51
51
|
},
|
|
52
|
-
icon: () =>
|
|
52
|
+
icon: () => p
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
@@ -67,7 +67,7 @@ function be() {
|
|
|
67
67
|
params: { dunningCaseUuid: n.uuid }
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
|
-
icon: () =>
|
|
70
|
+
icon: () => d
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
@@ -232,7 +232,7 @@ var Le = { class: "flex w-full items-center justify-end gap-xs" }, Re = /* @__PU
|
|
|
232
232
|
"viewCustomer"
|
|
233
233
|
],
|
|
234
234
|
setup(e, { emit: t }) {
|
|
235
|
-
let n = e, i = t, a = C(), o = r(), s = T(() => o.getCustomerDetailRoute(n.item.customer.uuid)), l = T(() => n.item.blockedReason !== null),
|
|
235
|
+
let n = e, i = t, a = C(), o = r(), s = T(() => o.getCustomerDetailRoute(n.item.customer.uuid)), l = T(() => n.item.blockedReason !== null), d = T(() => m(n.item.latestCreatedReminder)), f = T(() => n.item.canRetryReminder ? a.t("module.dunning_case.overview.retry") : l.value ? a.t("module.dunning_case.overview.blocked") : n.item.nextReminderOn === null ? a.t("module.dunning_case.overview.not_scheduled") : a.t("module.dunning_case.overview.send"));
|
|
236
236
|
return (t, n) => (P(), E(R(Z), null, {
|
|
237
237
|
default: z(() => [A(R(ue), { class: "w-full" }, {
|
|
238
238
|
default: z(() => [k("div", Le, [l.value && s.value !== null ? (P(), E(R(G), {
|
|
@@ -244,9 +244,9 @@ var Le = { class: "flex w-full items-center justify-end gap-xs" }, Re = /* @__PU
|
|
|
244
244
|
onClick: n[0] ||= (e) => i("viewCustomer")
|
|
245
245
|
}, null, 8, ["icon-right", "label"])) : (P(), E(R(G), {
|
|
246
246
|
key: 1,
|
|
247
|
-
"icon-right": e.item.canSendReminder || e.item.canRetryReminder ? R(
|
|
247
|
+
"icon-right": e.item.canSendReminder || e.item.canRetryReminder ? R(u) : void 0,
|
|
248
248
|
"is-disabled": l.value || !e.item.canSendReminder && !e.item.canRetryReminder,
|
|
249
|
-
"is-loading":
|
|
249
|
+
"is-loading": d.value === "sending",
|
|
250
250
|
label: f.value,
|
|
251
251
|
size: "sm",
|
|
252
252
|
variant: "secondary",
|
|
@@ -534,7 +534,7 @@ var $e = /* @__PURE__ */ j({
|
|
|
534
534
|
function s(e) {
|
|
535
535
|
return Object.hasOwn(a, e);
|
|
536
536
|
}
|
|
537
|
-
let c = C(), l = ge(),
|
|
537
|
+
let c = C(), l = ge(), d = Qe(), f = F(null), p = F(!0), m = T(() => f.value?.meta.processed ?? 0);
|
|
538
538
|
function h(e) {
|
|
539
539
|
let t = e.errors.at(0)?.errors.at(0)?.code;
|
|
540
540
|
return t !== void 0 && s(t) ? c.t(a[t]) : c.t("module.dunning_case.bulk_send.skip_reason.unknown");
|
|
@@ -553,7 +553,7 @@ var $e = /* @__PURE__ */ j({
|
|
|
553
553
|
let _ = ve({
|
|
554
554
|
schema: S.object({}),
|
|
555
555
|
onSubmit: async () => {
|
|
556
|
-
let e = await
|
|
556
|
+
let e = await d.execute({ params: { queryParams: i } });
|
|
557
557
|
if (e.isErr()) {
|
|
558
558
|
l.apiError(e.error);
|
|
559
559
|
return;
|
|
@@ -594,7 +594,7 @@ var $e = /* @__PURE__ */ j({
|
|
|
594
594
|
title: p.value ? R(c).t("module.dunning_case.bulk_send.title") : R(c).t("module.dunning_case.bulk_send.confirm_question", { count: m.value }),
|
|
595
595
|
description: R(c).t("module.dunning_case.bulk_send.description"),
|
|
596
596
|
"has-separator": !1,
|
|
597
|
-
icon: R(
|
|
597
|
+
icon: R(u)
|
|
598
598
|
}, null, 8, [
|
|
599
599
|
"title",
|
|
600
600
|
"description",
|
|
@@ -615,7 +615,7 @@ var $e = /* @__PURE__ */ j({
|
|
|
615
615
|
}),
|
|
616
616
|
A(R(q), { "has-separator": !1 }, {
|
|
617
617
|
right: z(() => [A(R(J)), A(R(Y), {
|
|
618
|
-
"icon-right": R(
|
|
618
|
+
"icon-right": R(u),
|
|
619
619
|
"is-disabled": p.value || m.value === 0,
|
|
620
620
|
"is-loading": R(_).isSubmitting.value,
|
|
621
621
|
label: R(c).t("module.dunning_case.bulk_send.confirm", { count: m.value }),
|
|
@@ -642,24 +642,24 @@ var $e = /* @__PURE__ */ j({
|
|
|
642
642
|
}, _t = { class: "relative flex min-h-0 flex-1 flex-col" }, vt = /*@__PURE__*/ j({
|
|
643
643
|
__name: "DunningCaseOverviewView",
|
|
644
644
|
setup(e) {
|
|
645
|
-
let n = C(), i = he(), a = ge(), o = H(), c = t(),
|
|
645
|
+
let n = C(), i = he(), a = ge(), o = H(), c = t(), p = r(), m = g(), h = F("all"), _ = T(() => [
|
|
646
646
|
{
|
|
647
647
|
icon: l,
|
|
648
648
|
key: "all",
|
|
649
649
|
label: n.t("module.dunning_case.overview.filter_all")
|
|
650
650
|
},
|
|
651
651
|
{
|
|
652
|
-
icon:
|
|
652
|
+
icon: f,
|
|
653
653
|
key: "level-1",
|
|
654
654
|
label: n.t("module.dunning_case.level.reminder", { level: 1 })
|
|
655
655
|
},
|
|
656
656
|
{
|
|
657
|
-
icon:
|
|
657
|
+
icon: f,
|
|
658
658
|
key: "level-2",
|
|
659
659
|
label: n.t("module.dunning_case.level.reminder", { level: 2 })
|
|
660
660
|
},
|
|
661
661
|
{
|
|
662
|
-
icon:
|
|
662
|
+
icon: f,
|
|
663
663
|
key: "level-3",
|
|
664
664
|
label: n.t("module.dunning_case.level.reminder", { level: 3 })
|
|
665
665
|
}
|
|
@@ -688,7 +688,7 @@ var $e = /* @__PURE__ */ j({
|
|
|
688
688
|
i.create(ot, { props: { onSent: V() } }).open();
|
|
689
689
|
}
|
|
690
690
|
function J(e) {
|
|
691
|
-
let t =
|
|
691
|
+
let t = p.getCustomerDetailRoute(e.customer.uuid);
|
|
692
692
|
t !== null && o.push(t);
|
|
693
693
|
}
|
|
694
694
|
function Y(e) {
|
|
@@ -710,12 +710,12 @@ var $e = /* @__PURE__ */ j({
|
|
|
710
710
|
}, {
|
|
711
711
|
default: z(() => [k("div", st, [
|
|
712
712
|
k("div", ct, [k("div", null, [k("h2", lt, L(R(n).t("module.dunning_case.title")), 1), k("p", ut, L(R(n).t("module.dunning_case.overview.description")), 1)]), k("div", dt, [A(R(G), {
|
|
713
|
-
"icon-left": y.value ? R(
|
|
713
|
+
"icon-left": y.value ? R(s) : R(d),
|
|
714
714
|
label: R(n).t(y.value ? "module.dunning_case.overview.hide_metrics" : "module.dunning_case.overview.show_metrics"),
|
|
715
715
|
variant: "secondary",
|
|
716
716
|
onClick: t[0] ||= (e) => y.value = !y.value
|
|
717
717
|
}, null, 8, ["icon-left", "label"]), A(R(G), {
|
|
718
|
-
"icon-right": R(
|
|
718
|
+
"icon-right": R(u),
|
|
719
719
|
label: R(n).t("module.dunning_case.overview.send_all"),
|
|
720
720
|
onClick: q
|
|
721
721
|
}, null, 8, ["icon-right", "label"])])]),
|
|
@@ -753,7 +753,7 @@ var $e = /* @__PURE__ */ j({
|
|
|
753
753
|
})]),
|
|
754
754
|
_: 1
|
|
755
755
|
}, 8, ["modelValue", "aria-label"]), A(R(G), {
|
|
756
|
-
"icon-right": R(
|
|
756
|
+
"icon-right": R(u),
|
|
757
757
|
label: R(n).t("module.dunning_case.overview.send_all"),
|
|
758
758
|
size: "sm",
|
|
759
759
|
onClick: q
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { lt as t, t as n } from "./api.util-
|
|
2
|
+
import { lt as t, t as n } from "./api.util-CR2xLnNj.js";
|
|
3
3
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { n as i } from "./src-DUSgQTKr.js";
|
|
5
5
|
import { n as a, t as o } from "./address.transformer-jGddczLV.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as e, et as t, t as n } from "./api.util-
|
|
1
|
+
import { $ as e, et as t, t as n } from "./api.util-CR2xLnNj.js";
|
|
2
2
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
3
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
4
|
-
import { n as a, r as o, t as s } from "./reminderConfig.query-
|
|
5
|
-
import {
|
|
3
|
+
import { n as i } from "./invoicingConfig.composable-UC7tGtBj.js";
|
|
4
|
+
import { n as a, r as o, t as s } from "./reminderConfig.query-aRFzY6uZ.js";
|
|
5
|
+
import { Tt as c, ft as l, m as u } from "./dist-BMzyJZTx.js";
|
|
6
6
|
import { t as d } from "./customerUuid.model-ClN4Vi9n.js";
|
|
7
7
|
import { z as f } from "zod";
|
|
8
8
|
import { useI18n as p } from "vue-i18n";
|
|
@@ -101,7 +101,7 @@ var X = /* @__PURE__ */ S({
|
|
|
101
101
|
},
|
|
102
102
|
setup(e) {
|
|
103
103
|
let t = e, n = p(), r = {
|
|
104
|
-
icon:
|
|
104
|
+
icon: l,
|
|
105
105
|
type: "icon"
|
|
106
106
|
};
|
|
107
107
|
return (e, i) => t.blockedReason === null ? t.status === "failed" ? (w(), g(O(P), {
|
|
@@ -275,7 +275,7 @@ var Ne = {
|
|
|
275
275
|
},
|
|
276
276
|
emits: ["close"],
|
|
277
277
|
setup(e, { emit: t }) {
|
|
278
|
-
let n = e, r = t, a = p(), o = H(), s = i(),
|
|
278
|
+
let n = e, r = t, a = p(), o = H(), s = i(), l = Z(), d = K(h(() => n.dunningCaseUuid)), b = h(() => d.result.value.isOk() ? d.result.value.getValue() : null), S = Me(h(() => b.value?.customer.uuid ?? null)), C = je(h(() => b.value?.level ?? null)), T = h(() => {
|
|
279
279
|
let e = b.value?.customer.uuid;
|
|
280
280
|
return e === void 0 ? null : s.getCustomerDetailRoute(e);
|
|
281
281
|
}), E = h(() => b.value === null ? 0 : ce(b.value.invoices).length), k = h(() => typeof S.defaultEmail.value == "string" ? a.t("module.dunning_case.send.grouped_to", { email: S.defaultEmail.value }) : S.isMissing.value ? a.t("module.dunning_case.send.no_default_recipient") : a.t("module.dunning_case.send.description")), j = U({
|
|
@@ -285,7 +285,7 @@ var Ne = {
|
|
|
285
285
|
o.show({ message: a.t("module.dunning_case.send.no_default_recipient_blocked") });
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
|
-
let e = await
|
|
288
|
+
let e = await l.execute({ params: { dunningCaseUuid: n.dunningCaseUuid } });
|
|
289
289
|
if (e.isErr()) {
|
|
290
290
|
o.apiError(e.error);
|
|
291
291
|
return;
|
|
@@ -326,7 +326,7 @@ var Ne = {
|
|
|
326
326
|
"dunning-case": b.value,
|
|
327
327
|
subject: O(C)
|
|
328
328
|
}, null, 8, ["dunning-case", "subject"]),
|
|
329
|
-
y("div", Pe, [x(O(
|
|
329
|
+
y("div", Pe, [x(O(u), { class: "mt-xxs size-(--spacing-xl) shrink-0" }), y("p", Fe, D(O(a).t("module.dunning_case.send.impact", {
|
|
330
330
|
count: E.value,
|
|
331
331
|
level: b.value.level
|
|
332
332
|
})), 1)])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./invoiceCustomer.service-
|
|
1
|
+
import { ft as e } from "./dist-BMzyJZTx.js";
|
|
2
|
+
import { t } from "./invoiceCustomer.service-CDyrtcwH.js";
|
|
3
3
|
import { useI18n as n } from "vue-i18n";
|
|
4
4
|
import { computed as r, createBlock as i, createVNode as a, defineComponent as o, openBlock as s, unref as c, withCtx as l } from "vue";
|
|
5
5
|
import { useOffsetInfiniteQuery as u } from "@wisemen/vue-core-api-utils";
|