@wisemen/wise-invoicing-web 0.0.4 → 0.0.6
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-BGE-p_FL.js} +953 -863
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-Dg5JlQE1.js → BillingDocumentPdf-Ca81NkZq.js} +4 -4
- package/dist/{CreditNoteDetailViewDataProvider-C-A0jyVr.js → CreditNoteDetailViewDataProvider-b5dY_4mH.js} +181 -181
- package/dist/{CreditNotePdfViewDataProvider-DNUvFVDj.js → CreditNotePdfViewDataProvider-C2QqCdQ7.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-jsh-LlGx.js} +68 -59
- package/dist/DunningCaseOverviewView-WbXalMt6.js +747 -0
- package/dist/{DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js → DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js} +1 -1
- package/dist/DunningCaseSendDialog-D7jAZ8yT.js +349 -0
- package/dist/{InvoiceDetailViewDataProvider-BDL9lAWe.js → InvoiceDetailViewDataProvider-BAVdcJay.js} +589 -498
- package/dist/{InvoiceOverviewViewDataProvider-B_jrcC_8.js → InvoiceOverviewViewDataProvider-BT9cuQXw.js} +546 -482
- package/dist/{InvoicePdfView-Bygb-9z6.js → InvoicePdfView-BpIaYdZX.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-nBk3XNrE.js → InvoicePdfViewDataProvider-DGCnmNE-.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-DHJP_-7-.js → InvoicePublicPdfViewDataProvider-KV0_hKUI.js} +3 -3
- package/dist/{IssuerSettingsViewDataProvider-Dk_Q6w6f.js → IssuerSettingsViewDataProvider-Bs4rEES2.js} +4 -4
- package/dist/ReminderSettingsViewDataProvider-D4bRLLXx.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-BGcQ_OBF.js} +50 -2
- package/dist/index.d.ts +51 -2
- 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-Kad_HHx_.js} +2 -2
- package/dist/{issuerSettings.query-RqtrZFaB.js → issuerSettings.query-6wnSPphB.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +50 -2
- package/dist/locales/en-US.json.d.ts +25 -1
- package/dist/locales/nl-BE.json.d.ts +25 -1
- 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 -3
- 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-hmDNKreg.js} +105 -91
- 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/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { n as e, r as t } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, r as t } from "./i18n.lib-BGcQ_OBF.js";
|
|
2
|
+
import "./api.util-BCSgCfpS.js";
|
|
3
|
+
import { g as n, h as r, t as i, w as a, x as o } from "./documentTitle.composable-4ApFl9TZ.js";
|
|
4
4
|
import { n as s, r as c, t as l } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { r as
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { n as le } from "./dist-
|
|
18
|
-
import { i as D } from "./CustomFieldValueText-
|
|
19
|
-
import { t as ue } from "./DunningCaseDetailViewDataProvider-
|
|
20
|
-
import { t as de } from "./DunningCaseReminderPdfViewDataProvider-
|
|
21
|
-
import { t as fe } from "./ReminderSettingsViewDataProvider-
|
|
22
|
-
import { t as pe } from "./InvoicePublicPdfViewDataProvider-
|
|
5
|
+
import { t as u } from "./search.composable-BCtYqudV.js";
|
|
6
|
+
import { t as d } from "./src-BFgnUugN.js";
|
|
7
|
+
import { r as ee, t as f } from "./InvoiceOverviewViewDataProvider-BT9cuQXw.js";
|
|
8
|
+
import { t as p } from "./download.util-PjaUQR6r.js";
|
|
9
|
+
import { i as m, n as h, r as g } from "./plainDate.transformer-Dfe5r84P.js";
|
|
10
|
+
import { n as _, t as v } from "./invoicingConfig.composable-Kad_HHx_.js";
|
|
11
|
+
import { r as y } from "./address.transformer-B8C0pwT1.js";
|
|
12
|
+
import { t as b } from "./addressForm.model-C853zEtX.js";
|
|
13
|
+
import { r as x, t as S } from "./DunningCaseOverviewView-WbXalMt6.js";
|
|
14
|
+
import { C, L as te, T as w } from "./dist-D9lp7NDv.js";
|
|
15
|
+
import { o as ne } from "./DunningCaseSendDialog-D7jAZ8yT.js";
|
|
16
|
+
import { n as re } from "./dist-YTXTCfo1.js";
|
|
17
|
+
import { a as ie, i as ae, l as T, n as oe, o as se, r as ce, s as le, t as E } from "./dist-PErDVE6-.js";
|
|
18
|
+
import { i as D } from "./CustomFieldValueText-ne5yy02J.js";
|
|
19
|
+
import { t as ue } from "./DunningCaseDetailViewDataProvider-jsh-LlGx.js";
|
|
20
|
+
import { t as de } from "./DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js";
|
|
21
|
+
import { t as fe } from "./ReminderSettingsViewDataProvider-D4bRLLXx.js";
|
|
22
|
+
import { t as pe } from "./InvoicePublicPdfViewDataProvider-KV0_hKUI.js";
|
|
23
23
|
import { createAction as me } from "@wisemen/vue-core-actions";
|
|
24
24
|
import { RouterLink as O, useRouter as he } from "vue-router";
|
|
25
25
|
import { z as k } from "zod";
|
|
@@ -166,13 +166,13 @@ function ke() {
|
|
|
166
166
|
return t.subject ?? t.sequence ?? t.uuid;
|
|
167
167
|
},
|
|
168
168
|
execute: (t) => {
|
|
169
|
-
let
|
|
170
|
-
|
|
169
|
+
let r = t.targetedModelOfTypeOrThrow("Invoice");
|
|
170
|
+
r.type === n.STANDARD ? e.push({
|
|
171
171
|
name: "invoicing-invoice-detail",
|
|
172
|
-
params: { invoiceUuid:
|
|
172
|
+
params: { invoiceUuid: r.uuid }
|
|
173
173
|
}) : e.push({
|
|
174
174
|
name: "invoicing-credit-note-detail",
|
|
175
|
-
params: { creditNoteUuid:
|
|
175
|
+
params: { creditNoteUuid: r.uuid }
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
});
|
|
@@ -215,24 +215,24 @@ var Fe = J([{
|
|
|
215
215
|
children: [{
|
|
216
216
|
name: "dunning-case-overview",
|
|
217
217
|
path: "",
|
|
218
|
-
component: () => import("./DunningCaseOverviewView-
|
|
218
|
+
component: () => import("./DunningCaseOverviewView-WbXalMt6.js").then((e) => e.n),
|
|
219
219
|
meta: { permission: "dunning-case.read" }
|
|
220
220
|
}, {
|
|
221
221
|
name: "dunning-case-detail",
|
|
222
222
|
props: !0,
|
|
223
223
|
path: ":dunningCaseUuid",
|
|
224
|
-
component: () => import("./DunningCaseDetailViewDataProvider-
|
|
224
|
+
component: () => import("./DunningCaseDetailViewDataProvider-jsh-LlGx.js").then((e) => e.n),
|
|
225
225
|
meta: { permission: "dunning-case.read" }
|
|
226
226
|
}]
|
|
227
227
|
}]), Y = J([{
|
|
228
228
|
name: "dunning-case-settings-module",
|
|
229
229
|
path: "payment-reminders",
|
|
230
|
-
component: () => import("./ReminderSettingsViewDataProvider-
|
|
230
|
+
component: () => import("./ReminderSettingsViewDataProvider-D4bRLLXx.js").then((e) => e.n),
|
|
231
231
|
meta: { permission: "reminder-config.read" }
|
|
232
232
|
}]), Ie = J([{
|
|
233
233
|
name: "dunning-case-reminder-pdf",
|
|
234
234
|
path: "/dunning-case-reminder-pdf",
|
|
235
|
-
component: () => import("./DunningCaseReminderPdfViewDataProvider-
|
|
235
|
+
component: () => import("./DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js").then((e) => e.n)
|
|
236
236
|
}]), Le = [{
|
|
237
237
|
name: "invoicing-settings-module",
|
|
238
238
|
path: "invoicing",
|
|
@@ -240,7 +240,7 @@ var Fe = J([{
|
|
|
240
240
|
children: [{
|
|
241
241
|
name: "invoicing-settings-overview",
|
|
242
242
|
path: "",
|
|
243
|
-
component: () => import("./IssuerSettingsViewDataProvider-
|
|
243
|
+
component: () => import("./IssuerSettingsViewDataProvider-Bs4rEES2.js"),
|
|
244
244
|
meta: { permission: "issuer.read" }
|
|
245
245
|
}]
|
|
246
246
|
}, ...Y], X = {
|
|
@@ -257,7 +257,7 @@ function ze(e) {
|
|
|
257
257
|
return ye("dunningCaseCustomerByExternalId", {
|
|
258
258
|
isEnabled: M(() => e.value !== null),
|
|
259
259
|
params: { externalId: e },
|
|
260
|
-
queryFn: () =>
|
|
260
|
+
queryFn: () => ne.getUuidByExternalId(e.value ?? "")
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
//#endregion
|
|
@@ -272,13 +272,13 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
272
272
|
externalId: {}
|
|
273
273
|
},
|
|
274
274
|
setup(e) {
|
|
275
|
-
let t = e, n = A(), r = c(), i = ze(M(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = M(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o =
|
|
275
|
+
let t = e, n = A(), r = c(), i = ze(M(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = M(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = x({
|
|
276
276
|
isEnabled: M(() => a.value !== void 0),
|
|
277
277
|
params: {
|
|
278
278
|
customerUuid: a,
|
|
279
279
|
isOpen: M(() => !0)
|
|
280
280
|
}
|
|
281
|
-
}), s =
|
|
281
|
+
}), s = x({
|
|
282
282
|
isEnabled: M(() => a.value !== void 0),
|
|
283
283
|
params: {
|
|
284
284
|
customerUuid: a,
|
|
@@ -296,14 +296,14 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
296
296
|
class: "mb-md flex w-fit max-w-full items-center gap-lg rounded-lg border border-secondary bg-primary p-lg shadow-sm hover:bg-secondary sm:max-w-2xl"
|
|
297
297
|
}, {
|
|
298
298
|
default: U(() => [
|
|
299
|
-
I("span", He, [L(H(
|
|
299
|
+
I("span", He, [L(H(C), { class: "size-(--spacing-xl)" })]),
|
|
300
300
|
I("span", Ue, [I("span", We, [I("span", Ge, V(H(n).t("module.dunning_case.customer.open_case")), 1), L(H(W), {
|
|
301
301
|
label: e.level === 0 ? H(n).t("module.dunning_case.level.none") : H(n).t("module.dunning_case.level.reminder", { level: e.level }),
|
|
302
302
|
color: "brand",
|
|
303
303
|
size: "sm",
|
|
304
304
|
variant: "translucent"
|
|
305
305
|
}, null, 8, ["label"])]), I("span", Ke, V(H(n).t("module.dunning_case.customer.outstanding", { amount: H(r).formatMonetary(e.outstandingBalance) })), 1)]),
|
|
306
|
-
L(H(
|
|
306
|
+
L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
|
|
307
307
|
]),
|
|
308
308
|
_: 2
|
|
309
309
|
}, 1032, ["to"]))), 128)),
|
|
@@ -316,9 +316,9 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
316
316
|
class: "flex items-center justify-between gap-lg border-b border-secondary px-lg py-md text-sm last:border-b-0 hover:bg-secondary"
|
|
317
317
|
}, {
|
|
318
318
|
default: U(() => [
|
|
319
|
-
I("span", Xe, [L(H(
|
|
319
|
+
I("span", Xe, [L(H(C), { class: "size-(--spacing-xl)" })]),
|
|
320
320
|
I("span", Ze, [I("span", Qe, V(H(n).t("module.dunning_case.customer.closed_case")), 1), I("span", $e, V(H(r).formatMonetary(e.outstandingBalance)), 1)]),
|
|
321
|
-
L(H(
|
|
321
|
+
L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
|
|
322
322
|
]),
|
|
323
323
|
_: 2
|
|
324
324
|
}, 1032, ["to"]))), 128))])])) : P("", !0)
|
|
@@ -366,7 +366,7 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
366
366
|
}
|
|
367
367
|
}), $ = class {
|
|
368
368
|
static getStatusBadgeColor(e) {
|
|
369
|
-
return e ===
|
|
369
|
+
return e === r.OVERDUE || e === r.PROTESTED ? "error" : "gray";
|
|
370
370
|
}
|
|
371
371
|
static getVatAmount(e) {
|
|
372
372
|
return {
|
|
@@ -378,14 +378,14 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
378
378
|
//#endregion
|
|
379
379
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
|
|
380
380
|
function nt() {
|
|
381
|
-
let e = A(), t =
|
|
382
|
-
function
|
|
381
|
+
let e = A(), t = re(), r = c();
|
|
382
|
+
function i(e) {
|
|
383
383
|
return e === null ? null : t.formatPlainDate(e);
|
|
384
384
|
}
|
|
385
385
|
return M(() => Te()([
|
|
386
386
|
{
|
|
387
387
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
|
|
388
|
-
key:
|
|
388
|
+
key: a.SEQUENCE,
|
|
389
389
|
size: {
|
|
390
390
|
max: "9.625rem",
|
|
391
391
|
min: "9.625rem"
|
|
@@ -406,12 +406,12 @@ function nt() {
|
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
|
|
409
|
-
key:
|
|
409
|
+
key: a.ISSUED_ON,
|
|
410
410
|
size: {
|
|
411
411
|
max: "8.125rem",
|
|
412
412
|
min: "8.125rem"
|
|
413
413
|
},
|
|
414
|
-
component: (e) => q(Q, { text:
|
|
414
|
+
component: (e) => q(Q, { text: i(e.issuedOn) })
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.due_date"),
|
|
@@ -420,7 +420,7 @@ function nt() {
|
|
|
420
420
|
max: "7.125rem",
|
|
421
421
|
min: "7.125rem"
|
|
422
422
|
},
|
|
423
|
-
component: (e) => q(Q, { text:
|
|
423
|
+
component: (e) => q(Q, { text: i(e.dueOn) })
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.type"),
|
|
@@ -431,12 +431,12 @@ function nt() {
|
|
|
431
431
|
},
|
|
432
432
|
component: (t) => q(Z, {
|
|
433
433
|
color: "gray",
|
|
434
|
-
label: e.t(t.type ===
|
|
434
|
+
label: e.t(t.type === n.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
|
|
435
435
|
})
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
438
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
|
|
439
|
-
key:
|
|
439
|
+
key: a.NET_AMOUNT,
|
|
440
440
|
size: {
|
|
441
441
|
max: "8.25rem",
|
|
442
442
|
min: "8.25rem"
|
|
@@ -475,23 +475,23 @@ function nt() {
|
|
|
475
475
|
//#endregion
|
|
476
476
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
|
|
477
477
|
function rt() {
|
|
478
|
-
let e = A(), t =
|
|
478
|
+
let e = A(), t = ae({
|
|
479
479
|
actionGroup: { name: "customer-invoices" },
|
|
480
480
|
filters: [
|
|
481
|
-
|
|
481
|
+
ie({
|
|
482
482
|
defaultValue: {
|
|
483
|
-
operator:
|
|
483
|
+
operator: ce.INCLUDES,
|
|
484
484
|
value: []
|
|
485
485
|
},
|
|
486
486
|
disableOperators: !0,
|
|
487
487
|
displayFn: (t) => e.t(D.getMetadata(t).translationKey),
|
|
488
488
|
key: "statuses",
|
|
489
489
|
label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
|
|
490
|
-
options: () => Object.values(
|
|
490
|
+
options: () => Object.values(r)
|
|
491
491
|
}),
|
|
492
|
-
|
|
492
|
+
T({
|
|
493
493
|
defaultValue: {
|
|
494
|
-
operator:
|
|
494
|
+
operator: E.IS_BETWEEN,
|
|
495
495
|
value: {
|
|
496
496
|
from: null,
|
|
497
497
|
until: null
|
|
@@ -501,9 +501,9 @@ function rt() {
|
|
|
501
501
|
key: "issuedOnRange",
|
|
502
502
|
label: e.t("wise_invoicing.invoice.overview.filters.issued_on")
|
|
503
503
|
}),
|
|
504
|
-
|
|
504
|
+
T({
|
|
505
505
|
defaultValue: {
|
|
506
|
-
operator:
|
|
506
|
+
operator: E.IS_BETWEEN,
|
|
507
507
|
value: {
|
|
508
508
|
from: null,
|
|
509
509
|
until: null
|
|
@@ -566,30 +566,30 @@ var it = { class: "duration-500 starting:opacity-0 starting:blur-md" }, at = { c
|
|
|
566
566
|
__name: "CustomerInvoiceTable",
|
|
567
567
|
props: { externalId: {} },
|
|
568
568
|
setup(e) {
|
|
569
|
-
let t = e, r = A(),
|
|
570
|
-
|
|
571
|
-
let
|
|
569
|
+
let t = e, r = A(), i = nt(), o = u({ debounceMs: 300 }), { issuedOnRange: s, dueOnRange: c, filters: l, statuses: d } = rt();
|
|
570
|
+
oe(l);
|
|
571
|
+
let f = Ee({
|
|
572
572
|
initialValues: [{
|
|
573
573
|
direction: "desc",
|
|
574
|
-
key:
|
|
574
|
+
key: a.ISSUED_ON
|
|
575
575
|
}],
|
|
576
576
|
keys: [
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
577
|
+
a.SEQUENCE,
|
|
578
|
+
a.ISSUED_ON,
|
|
579
|
+
a.NET_AMOUNT
|
|
580
580
|
]
|
|
581
|
-
}), { isFetching:
|
|
581
|
+
}), { isFetching: p, isFetchingNextPage: m, isLoading: h, fetchNextPage: g, result: _ } = ee({ params: {
|
|
582
582
|
filters: M(() => ({
|
|
583
583
|
issuedOnRange: s.value,
|
|
584
584
|
customerExternalIds: [t.externalId],
|
|
585
585
|
dueOnRange: c.value,
|
|
586
|
-
statuses:
|
|
586
|
+
statuses: d.value
|
|
587
587
|
})),
|
|
588
588
|
search: o.debouncedSearch,
|
|
589
|
-
sort:
|
|
590
|
-
} }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (o.debouncedSearch.value?.trim().length ?? 0) > 0), S = M(() => !h.value && !
|
|
589
|
+
sort: f.values
|
|
590
|
+
} }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (o.debouncedSearch.value?.trim().length ?? 0) > 0), S = M(() => !h.value && !p.value && y.value === null && v.value.length === 0 && o.search.value === "" && b.value === 0);
|
|
591
591
|
function C(e) {
|
|
592
|
-
return e.type ===
|
|
592
|
+
return e.type === n.CREDIT_NOTE ? {
|
|
593
593
|
name: "invoicing-credit-note-detail",
|
|
594
594
|
params: { creditNoteUuid: e.uuid }
|
|
595
595
|
} : {
|
|
@@ -605,12 +605,12 @@ var it = { class: "duration-500 starting:opacity-0 starting:blur-md" }, at = { c
|
|
|
605
605
|
justify: "between",
|
|
606
606
|
class: "p-md"
|
|
607
607
|
}, {
|
|
608
|
-
default: U(() => [L(H(
|
|
608
|
+
default: U(() => [L(H(se)), L(H(G), { justify: "end" }, {
|
|
609
609
|
default: U(() => [L(H(we), {
|
|
610
610
|
modelValue: H(o).search.value,
|
|
611
611
|
"onUpdate:modelValue": t[0] ||= (e) => H(o).search.value = e,
|
|
612
612
|
label: null,
|
|
613
|
-
"icon-left": H(
|
|
613
|
+
"icon-left": H(te),
|
|
614
614
|
placeholder: H(r).t("wise_invoicing.common.search"),
|
|
615
615
|
size: "sm",
|
|
616
616
|
type: "search"
|
|
@@ -618,14 +618,14 @@ var it = { class: "duration-500 starting:opacity-0 starting:blur-md" }, at = { c
|
|
|
618
618
|
"modelValue",
|
|
619
619
|
"icon-left",
|
|
620
620
|
"placeholder"
|
|
621
|
-
]), L(H(
|
|
621
|
+
]), L(H(le))]),
|
|
622
622
|
_: 1
|
|
623
623
|
})]),
|
|
624
624
|
_: 1
|
|
625
625
|
}), I("div", lt, [L(H(xe), {
|
|
626
|
-
columns: H(
|
|
626
|
+
columns: H(i),
|
|
627
627
|
data: v.value,
|
|
628
|
-
sort: H(
|
|
628
|
+
sort: H(f),
|
|
629
629
|
"is-loading": H(h),
|
|
630
630
|
"is-fetching-next-page": H(m),
|
|
631
631
|
error: y.value,
|
|
@@ -670,13 +670,13 @@ function ft(e) {
|
|
|
670
670
|
children: [{
|
|
671
671
|
name: "invoicing-invoice-overview",
|
|
672
672
|
path: "",
|
|
673
|
-
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-
|
|
673
|
+
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-BT9cuQXw.js").then((e) => e.n)),
|
|
674
674
|
meta: { permission: "invoice.read" }
|
|
675
675
|
}, {
|
|
676
676
|
name: "invoicing-invoice-detail",
|
|
677
677
|
props: !0,
|
|
678
678
|
path: ":invoiceUuid",
|
|
679
|
-
component: () => import("./InvoiceDetailViewDataProvider-
|
|
679
|
+
component: () => import("./InvoiceDetailViewDataProvider-BAVdcJay.js"),
|
|
680
680
|
meta: { permission: "invoice.read" }
|
|
681
681
|
}]
|
|
682
682
|
}]);
|
|
@@ -685,12 +685,12 @@ var pt = J([{
|
|
|
685
685
|
name: "invoicing-invoice-pdf-preview",
|
|
686
686
|
props: !0,
|
|
687
687
|
path: "/invoicing/invoices/:invoiceUuid/pdf",
|
|
688
|
-
component: () => import("./InvoicePdfViewDataProvider-
|
|
688
|
+
component: () => import("./InvoicePdfViewDataProvider-DGCnmNE-.js"),
|
|
689
689
|
meta: { permission: "invoice.read" }
|
|
690
690
|
}]), mt = J([{
|
|
691
691
|
name: "invoicing-invoice-public-pdf-preview",
|
|
692
692
|
path: "/pdf",
|
|
693
|
-
component: () => import("./InvoicePublicPdfViewDataProvider-
|
|
693
|
+
component: () => import("./InvoicePublicPdfViewDataProvider-KV0_hKUI.js").then((e) => e.n)
|
|
694
694
|
}]);
|
|
695
695
|
//#endregion
|
|
696
696
|
//#region src/routes/invoicingPublicRoutes.composable.ts
|
|
@@ -707,14 +707,14 @@ var gt = [{
|
|
|
707
707
|
name: "invoicing-credit-note-detail",
|
|
708
708
|
props: !0,
|
|
709
709
|
path: ":creditNoteUuid",
|
|
710
|
-
component: () => import("./CreditNoteDetailViewDataProvider-
|
|
710
|
+
component: () => import("./CreditNoteDetailViewDataProvider-b5dY_4mH.js"),
|
|
711
711
|
meta: { permission: "invoice.read" }
|
|
712
712
|
}]
|
|
713
713
|
}], _t = [{
|
|
714
714
|
name: "invoicing-credit-note-pdf-preview",
|
|
715
715
|
props: !0,
|
|
716
716
|
path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
|
|
717
|
-
component: () => import("./CreditNotePdfViewDataProvider-
|
|
717
|
+
component: () => import("./CreditNotePdfViewDataProvider-C2QqCdQ7.js"),
|
|
718
718
|
meta: { permission: "invoice.read" }
|
|
719
719
|
}];
|
|
720
720
|
//#endregion
|
|
@@ -747,4 +747,4 @@ var bt = {
|
|
|
747
747
|
}
|
|
748
748
|
};
|
|
749
749
|
//#endregion
|
|
750
|
-
export {
|
|
750
|
+
export { y as AddressUtil, p as DownloadUtil, m as MonetaryTransformer, Me as NumberUtil, h as Percentage, g as PercentageTransformer, o as SortDirection, ve as SortUtil, et as WiseInvoicingCustomerDunningCasesSection, dt as WiseInvoicingCustomerInvoiceList, ue as WiseInvoicingDunningCaseDetailView, S as WiseInvoicingDunningCaseOverviewView, de as WiseInvoicingDunningCaseReminderPdfView, f as WiseInvoicingInvoiceOverviewView, pe as WiseInvoicingInvoicePublicPdfViewDataProvider, fe as WiseInvoicingReminderSettingsView, b as addressFormSchema, Ne as creditNoteUuidSchema, v as initWiseInvoicingConfig, Pe as invoiceUuidSchema, Ae as onCreated, l as toMajorUnits, s as toMinorUnits, c as useCurrencyFormat, i as useDocumentTitle, ke as useInvoiceNavigateToDetailAction, u as useSearch, d as useSort, Re as useWiseInvoicingApiError, _ as useWiseInvoicingConfig, x as useWiseInvoicingDunningCaseIndexQuery, ht as useWiseInvoicingPublicRoutes, je as useWiseInvoicingQueryInvalidation, vt as useWiseInvoicingRoutes, yt as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, bt as wiseInvoicingLocales, Le as wiseInvoicingSettingsRoutes };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, F as r, H as ee, M as te, S as ne, T as i, U as a, W as o,
|
|
2
|
-
import {
|
|
1
|
+
import { A as e, C as t, D as n, F as r, H as ee, M as te, S as ne, T as i, U as a, W as o, X as s, _ as c, b as l, c as u, d, f, h as p, i as m, j as re, n as ie, o as ae, p as oe, q as se, r as ce, t as h, u as le, v as ue, x as de, y as fe } from "./api.util-BCSgCfpS.js";
|
|
2
|
+
import { f as g, g as pe, l as me, r as he, w as _ } from "./documentTitle.composable-4ApFl9TZ.js";
|
|
3
3
|
import { n as ge } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { r as v } from "./src-BFgnUugN.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as O, t as k } from "./
|
|
5
|
+
import { i as y, n as b, r as x, t as S } from "./plainDate.transformer-Dfe5r84P.js";
|
|
6
|
+
import { n as C, t as w } from "./address.transformer-B8C0pwT1.js";
|
|
7
|
+
import { a as T, i as E, n as D, r as O, t as k } from "./billingDocumentDetail.transformer-DIKAl4_L.js";
|
|
8
8
|
import A from "zod";
|
|
9
9
|
import { ref as j } from "vue";
|
|
10
10
|
import { SortUtil as M } from "@wisemen/vue-core-api-utils";
|
|
@@ -37,20 +37,20 @@ var P = class e {
|
|
|
37
37
|
}
|
|
38
38
|
}, I = class {
|
|
39
39
|
static fromDto(e) {
|
|
40
|
-
return
|
|
40
|
+
return k.fromViewInvoiceDetailDto(e, e.uuid, pe.STANDARD);
|
|
41
41
|
}
|
|
42
42
|
}, L = class {
|
|
43
43
|
static fromDto(e) {
|
|
44
44
|
return {
|
|
45
45
|
uuid: e.uuid,
|
|
46
|
-
createdAt:
|
|
47
|
-
dueOn:
|
|
48
|
-
issuedOn:
|
|
46
|
+
createdAt: T.fromDto(e.createdAt),
|
|
47
|
+
dueOn: S.fromNullableDto(e.dueOn),
|
|
48
|
+
issuedOn: S.fromNullableDto(e.issuedOn),
|
|
49
49
|
isDisputed: e.isDisputed,
|
|
50
50
|
isOverdue: e.isOverdue,
|
|
51
51
|
balanceDueAmount: y.fromNullableDto(e.balanceDueAmount),
|
|
52
52
|
customerName: e.customer.name,
|
|
53
|
-
customFields: e.customFields.map(
|
|
53
|
+
customFields: e.customFields.map(D.fromDto),
|
|
54
54
|
deliveryStatus: e.deliveryStatus,
|
|
55
55
|
grossAmount: y.fromDto(e.grossAmount),
|
|
56
56
|
lifecycleStatus: e.lifecycleStatus,
|
|
@@ -73,8 +73,8 @@ var P = class e {
|
|
|
73
73
|
}, _e = class {
|
|
74
74
|
static toDateRangeDto(e) {
|
|
75
75
|
if (e != null && e.from !== null && e.until !== null) return {
|
|
76
|
-
startDate:
|
|
77
|
-
endDate:
|
|
76
|
+
startDate: S.toDto(e.from),
|
|
77
|
+
endDate: S.toDto(e.until)
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
static toDto(e) {
|
|
@@ -84,11 +84,11 @@ var P = class e {
|
|
|
84
84
|
pagination: e.pagination,
|
|
85
85
|
search: R.toDto(e.search),
|
|
86
86
|
sort: M.toDto(e.sort, {
|
|
87
|
-
created_at:
|
|
88
|
-
issued_on:
|
|
89
|
-
customer:
|
|
90
|
-
netAmount:
|
|
91
|
-
sequence:
|
|
87
|
+
created_at: _.CREATED_AT,
|
|
88
|
+
issued_on: _.ISSUED_ON,
|
|
89
|
+
customer: _.CUSTOMER,
|
|
90
|
+
netAmount: _.NET_AMOUNT,
|
|
91
|
+
sequence: _.SEQUENCE
|
|
92
92
|
})
|
|
93
93
|
};
|
|
94
94
|
}
|
|
@@ -293,7 +293,7 @@ var ye = class {
|
|
|
293
293
|
function Se(e) {
|
|
294
294
|
return {
|
|
295
295
|
uuid: e.uuid,
|
|
296
|
-
createdAt:
|
|
296
|
+
createdAt: T.fromDto(e.createdAt),
|
|
297
297
|
sequence: e.sequence,
|
|
298
298
|
status: e.status
|
|
299
299
|
};
|
|
@@ -304,7 +304,7 @@ function Y(e) {
|
|
|
304
304
|
isDiscount: e.isDiscount,
|
|
305
305
|
name: e.name,
|
|
306
306
|
description: e.description,
|
|
307
|
-
discount:
|
|
307
|
+
discount: O.fromDto(e.discount),
|
|
308
308
|
grossAmount: y.fromDto(e.grossAmount),
|
|
309
309
|
netAmount: y.fromDto(e.netAmount),
|
|
310
310
|
position: e.position,
|
|
@@ -312,7 +312,7 @@ function Y(e) {
|
|
|
312
312
|
unit: e.unit,
|
|
313
313
|
unitPrice: y.fromDto(e.unitPrice),
|
|
314
314
|
vatRate: e.vatRate,
|
|
315
|
-
vatRatePercentage:
|
|
315
|
+
vatRatePercentage: x.fromDto(e.vatRatePercentage)
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
function Ce(e) {
|
|
@@ -330,15 +330,15 @@ function X(e) {
|
|
|
330
330
|
var we = class {
|
|
331
331
|
static fromPublicDto(e) {
|
|
332
332
|
return {
|
|
333
|
-
createdAt:
|
|
334
|
-
deliveredOn:
|
|
335
|
-
dueOn:
|
|
336
|
-
issueOn:
|
|
337
|
-
updatedAt:
|
|
333
|
+
createdAt: T.fromDto(e.createdAt),
|
|
334
|
+
deliveredOn: S.fromNullableDto(e.deliveredOn),
|
|
335
|
+
dueOn: S.fromNullableDto(e.dueOn),
|
|
336
|
+
issueOn: S.fromNullableDto(e.issueOn),
|
|
337
|
+
updatedAt: T.fromDto(e.updatedAt),
|
|
338
338
|
issuer: {
|
|
339
339
|
uuid: e.issuer.uuid,
|
|
340
340
|
name: e.issuer.name,
|
|
341
|
-
address:
|
|
341
|
+
address: w.fromNullableDto(e.issuer.address),
|
|
342
342
|
alternativeBankAccountNumber: e.issuer.alternativeBankAccountNumber,
|
|
343
343
|
bankAccountNumber: e.issuer.bankAccountNumber,
|
|
344
344
|
email: e.issuer.email,
|
|
@@ -349,14 +349,14 @@ var we = class {
|
|
|
349
349
|
customer: {
|
|
350
350
|
uuid: e.customer.uuid,
|
|
351
351
|
name: e.customer.name,
|
|
352
|
-
address:
|
|
352
|
+
address: w.fromNullableDto(e.customer.address),
|
|
353
353
|
email: e.customer.email,
|
|
354
354
|
phoneNumber: e.customer.phoneNumber,
|
|
355
355
|
vatNumber: e.customer.vatNumber
|
|
356
356
|
},
|
|
357
357
|
effectiveNet: y.fromDto(e.effectiveNet),
|
|
358
358
|
externalRemarks: e.externalRemarks,
|
|
359
|
-
globalDiscount:
|
|
359
|
+
globalDiscount: O.fromDto(e.globalDiscount),
|
|
360
360
|
grossAmount: y.fromDto(e.grossAmount),
|
|
361
361
|
groups: e.groups.toSorted((e, t) => e.position - t.position).map(Ce),
|
|
362
362
|
lines: X(e).map(Y),
|
|
@@ -389,7 +389,7 @@ var we = class {
|
|
|
389
389
|
return e.type === me.PERCENTAGE ? { discount: {
|
|
390
390
|
amount: null,
|
|
391
391
|
description: null,
|
|
392
|
-
percentage:
|
|
392
|
+
percentage: x.toDto(new b(t)),
|
|
393
393
|
type: e.type
|
|
394
394
|
} } : { discount: {
|
|
395
395
|
amount: y.toDto({
|
|
@@ -420,13 +420,13 @@ var we = class {
|
|
|
420
420
|
static toDto(e) {
|
|
421
421
|
return {
|
|
422
422
|
preparedByUuid: e.preparedBy.uuid,
|
|
423
|
-
deliveredOn:
|
|
424
|
-
dueOn:
|
|
425
|
-
issuedOn:
|
|
426
|
-
customFields: e.customFields.map(
|
|
427
|
-
externalRemarks:
|
|
428
|
-
poNumber:
|
|
429
|
-
subject:
|
|
423
|
+
deliveredOn: S.toNullableDto(e.deliveredOn),
|
|
424
|
+
dueOn: S.toDto(e.dueOn),
|
|
425
|
+
issuedOn: S.toDto(e.issuedOn),
|
|
426
|
+
customFields: e.customFields.map(D.toDto),
|
|
427
|
+
externalRemarks: C.trimOrNull(e.externalRemarks),
|
|
428
|
+
poNumber: C.trimOrNull(e.poNumber),
|
|
429
|
+
subject: C.trimOrNull(e.subject)
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
432
|
static toForm(e) {
|
|
@@ -448,9 +448,9 @@ function $(e) {
|
|
|
448
448
|
return {
|
|
449
449
|
isDiscount: e.quantity < 0 || e.isDiscount,
|
|
450
450
|
name: e.name,
|
|
451
|
-
customFields: e.customFields.map(
|
|
451
|
+
customFields: e.customFields.map(D.toDto),
|
|
452
452
|
description: e.description,
|
|
453
|
-
discount:
|
|
453
|
+
discount: O.toDto(e.discount),
|
|
454
454
|
position: e.position,
|
|
455
455
|
quantity: e.quantity,
|
|
456
456
|
unit: e.unit,
|
|
@@ -463,7 +463,7 @@ var Ee = class {
|
|
|
463
463
|
return {
|
|
464
464
|
groups: e.groups.map((e) => ({
|
|
465
465
|
name: e.name,
|
|
466
|
-
customFields: e.customFields.map(
|
|
466
|
+
customFields: e.customFields.map(D.toDto),
|
|
467
467
|
description: e.description,
|
|
468
468
|
lines: e.lines.map($),
|
|
469
469
|
position: e.position
|
|
@@ -481,19 +481,19 @@ var Ee = class {
|
|
|
481
481
|
}
|
|
482
482
|
static async bulkFinalize(e) {
|
|
483
483
|
return (await h.fromPromise(ce({ query: { filter: { invoiceUuids: {
|
|
484
|
-
scope:
|
|
484
|
+
scope: g.INCLUDE,
|
|
485
485
|
values: e
|
|
486
486
|
} } } }))).map((e) => e.data);
|
|
487
487
|
}
|
|
488
488
|
static async bulkMarkAsReady(e) {
|
|
489
489
|
return (await h.fromPromise(m({ query: { filter: { invoiceUuids: {
|
|
490
|
-
scope:
|
|
490
|
+
scope: g.INCLUDE,
|
|
491
491
|
values: e
|
|
492
492
|
} } } }))).map((e) => e.data);
|
|
493
493
|
}
|
|
494
494
|
static async bulkSend(e) {
|
|
495
495
|
return (await h.fromPromise(ae({ query: { filter: { invoiceUuids: {
|
|
496
|
-
scope:
|
|
496
|
+
scope: g.INCLUDE,
|
|
497
497
|
values: e
|
|
498
498
|
} } } }))).map((e) => e.data);
|
|
499
499
|
}
|
|
@@ -539,7 +539,7 @@ var Ee = class {
|
|
|
539
539
|
limit: t.pagination.limit
|
|
540
540
|
}
|
|
541
541
|
} }))).map((e) => ({
|
|
542
|
-
data: e.data.logs.map(
|
|
542
|
+
data: e.data.logs.map(E.fromDto),
|
|
543
543
|
meta: { next: e.data.nextKey }
|
|
544
544
|
}));
|
|
545
545
|
}
|
|
@@ -579,19 +579,19 @@ var Ee = class {
|
|
|
579
579
|
}
|
|
580
580
|
static async previewBulkFinalize(e) {
|
|
581
581
|
return (await h.fromPromise(ne({ query: { filter: { invoiceUuids: {
|
|
582
|
-
scope:
|
|
582
|
+
scope: g.INCLUDE,
|
|
583
583
|
values: e
|
|
584
584
|
} } } }))).map((e) => e.data);
|
|
585
585
|
}
|
|
586
586
|
static async previewBulkMarkAsReady(e) {
|
|
587
587
|
return (await h.fromPromise(t({ query: { filter: { invoiceUuids: {
|
|
588
|
-
scope:
|
|
588
|
+
scope: g.INCLUDE,
|
|
589
589
|
values: e
|
|
590
590
|
} } } }))).map((e) => e.data);
|
|
591
591
|
}
|
|
592
592
|
static async previewBulkSend(e) {
|
|
593
593
|
return (await h.fromPromise(i({ query: { filter: { invoiceUuids: {
|
|
594
|
-
scope:
|
|
594
|
+
scope: g.INCLUDE,
|
|
595
595
|
values: e
|
|
596
596
|
} } } }))).map((e) => e.data);
|
|
597
597
|
}
|