@wisemen/wise-invoicing-web 0.12.0 → 0.13.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-BnHeEMZD.js → ApprovalReminderSettingsViewDataProvider-HANaeRzK.js} +3 -3
- package/dist/{BillingDocumentDetailViewDataProvider-Dm8C5WNN.js → BillingDocumentDetailViewDataProvider-BVrmLEP5.js} +9 -14
- package/dist/{BillingDocumentPdf-57ksqoPW.js → BillingDocumentPdf-BLlJw5Wp.js} +3 -3
- package/dist/{CreditNoteDetailViewDataProvider-CC4gnwSN.js → CreditNoteDetailViewDataProvider-CnmNQyXq.js} +6 -6
- package/dist/{CreditNotePdfViewDataProvider-C9vgN3kV.js → CreditNotePdfViewDataProvider-Bu8lNWSx.js} +3 -3
- package/dist/{CustomFieldValueText-CvWq0fl_.js → CustomFieldValueText-DX_7bMFM.js} +2 -2
- package/dist/{DunningCaseSendDialog-CfWSrquA.js → DunningCaseSendDialog-D5_uNt0g.js} +12 -12
- package/dist/{InvoiceApprovalOutOfSyncIndicator-CKLAraIU.js → InvoiceApprovalOutOfSyncIndicator-CX7hLBIC.js} +1 -1
- package/dist/{InvoiceApprovalOverviewView-DpL-vV8_.js → InvoiceApprovalOverviewView-1pLrgcIU.js} +6 -6
- package/dist/{InvoiceApprovalStatusBadge-oVWkCqZY.js → InvoiceApprovalStatusBadge-DqsSuo4M.js} +2 -2
- package/dist/{InvoiceApproveDialogDataProvider-serNDdl9.js → InvoiceApproveDialogDataProvider-D22o3mIC.js} +6 -6
- package/dist/{InvoiceDetailViewDataProvider-BaT7fgsi.js → InvoiceDetailViewDataProvider-DoqOGDZb.js} +14 -14
- package/dist/{InvoicePdfView-MaBnd78V.js → InvoicePdfView-Df9masUV.js} +1 -1
- package/dist/{InvoicePdfViewDataProvider-BIHBY608.js → InvoicePdfViewDataProvider-CKCp0TJ7.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-KY8pN59k.js → InvoicePublicProFormaPdfViewDataProvider-CqAP9Ckj.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-CxmF68sz.js → InvoicingFileUploadProvider-Da_JGESE.js} +9 -9
- package/dist/IssuerSettingsViewDataProvider-xXQEED2s.js +544 -0
- package/dist/{PeppolSettingsViewDataProvider-C7lwtu7n.js → PeppolSettingsViewDataProvider-B4Hu1RQk.js} +4 -4
- package/dist/{api.util-Ct8FnoLB.js → api.util-DpWaDY5y.js} +671 -587
- package/dist/{billingDocumentDetail.transformer-B3ypgtIv.js → billingDocumentDetail.transformer-BJQFbO87.js} +1 -1
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +3 -1
- package/dist/client/types.gen.d.ts +84 -0
- package/dist/client/zod.gen.d.ts +2236 -886
- package/dist/{creditNoteDetail.query-C2BYvPKC.js → creditNoteDetail.query-BVXYLSMf.js} +18 -18
- package/dist/{i18n.lib-8sQYo5_y.js → i18n.lib-Be2_Gg1d.js} +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +905 -790
- package/dist/{invoice.service-CtePUw1R.js → invoice.service-Dugf3vP3.js} +110 -104
- package/dist/{invoiceApproval.service-CQzG8_wX.js → invoiceApproval.service-TTtH_nbV.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-C4su45dU.js → invoiceApprovalStatus.util-BebJpPKg.js} +1 -1
- package/dist/{invoiceCustomer.service-CzbM3ey1.js → invoiceCustomer.service-BgaMvr34.js} +6 -6
- package/dist/{invoiceDetail.query-NNAoIuWN.js → invoiceDetail.query-DaY-Dwp4.js} +1 -1
- package/dist/{invoiceIndexCache.util-DI0WM-eW.js → invoiceIndexCache.util-8JQCyWbl.js} +2 -2
- package/dist/{invoicingConfig.composable-DXJ71Uq_.js → invoicingConfig.composable-DQTYsGa7.js} +2 -2
- package/dist/{issuerSettings.query-ggEHdk0S.js → issuerSettings.query-mMH2f5g6.js} +1 -1
- package/dist/libs/i18n.lib.d.ts +24 -0
- package/dist/locales/en-US.json.d.ts +12 -0
- package/dist/locales/nl-BE.json.d.ts +12 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkDelete.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +3 -1
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkDeleteDialog.vue.d.ts +14 -0
- package/dist/{reminderConfig.query-C2xT3DJH.js → reminderConfig.query-Dn0_h7xY.js} +14 -14
- package/package.json +1 -1
- package/dist/IssuerSettingsViewDataProvider-DJzVZS8Q.js +0 -543
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { N as
|
|
1
|
+
import { C as e, D as t, E as n, F as r, G as ee, K as i, M as a, N as o, O as s, P as c, R as l, S as u, T as d, V as te, Z as ne, _ as re, a as ie, c as ae, ct as oe, f as se, ft as ce, g as le, gt as ue, h as de, i as fe, j as pe, k as me, l as he, m as ge, n as _e, o as ve, ot as ye, pt as be, q as xe, r as Se, st as Ce, t as f, u as we, w as Te, x as Ee, y as De, z as Oe } from "./api.util-DpWaDY5y.js";
|
|
2
|
+
import { N as p, b as m, f as h, h as g, r as _, x as v } from "./documentTitle.composable-BqZWKGw1.js";
|
|
3
3
|
import { n as y } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { r as b } from "./src-Vz2dm4sM.js";
|
|
5
5
|
import { t as x } from "./address.transformer-jGddczLV.js";
|
|
6
6
|
import { n as S, r as C, t as w } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
7
7
|
import { n as T, t as E } from "./percentage.util-Bl78kSSk.js";
|
|
8
|
-
import { a as D, i as
|
|
8
|
+
import { a as D, i as ke, n as O, o as Ae, r as je, t as Me } from "./billingDocumentDetail.transformer-BJQFbO87.js";
|
|
9
9
|
import { t as k } from "./dist-BFx8U4Su.js";
|
|
10
10
|
import A from "zod";
|
|
11
|
-
import { ref as
|
|
12
|
-
import { SortUtil as
|
|
11
|
+
import { ref as Ne } from "vue";
|
|
12
|
+
import { SortUtil as Pe } from "@wisemen/vue-core-api-utils";
|
|
13
13
|
import { Temporal as j } from "temporal-polyfill";
|
|
14
14
|
//#region ../toolkit/src/utils/monetary/monetary.util.ts
|
|
15
15
|
var M = class e {
|
|
@@ -33,7 +33,7 @@ var M = class e {
|
|
|
33
33
|
static toNullableDto(t) {
|
|
34
34
|
return t === null ? null : e.toDto(t);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
36
|
+
}, Fe = class {
|
|
37
37
|
static toDto(e) {
|
|
38
38
|
let t = e.remarks?.trim() ?? "";
|
|
39
39
|
return {
|
|
@@ -41,7 +41,7 @@ var M = class e {
|
|
|
41
41
|
remarks: t === "" ? null : t
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
},
|
|
44
|
+
}, Ie = class {
|
|
45
45
|
static toDto(e) {
|
|
46
46
|
if (e.reason === null) throw Error("A rejection reason is required");
|
|
47
47
|
let t = e.remarks?.trim() ?? "";
|
|
@@ -69,12 +69,12 @@ var M = class e {
|
|
|
69
69
|
filter: this.toFilterDto(e.filters),
|
|
70
70
|
pagination: e.pagination,
|
|
71
71
|
search: N.toDto(e.search),
|
|
72
|
-
sort:
|
|
73
|
-
created_at:
|
|
74
|
-
issued_on:
|
|
75
|
-
customer:
|
|
76
|
-
netAmount:
|
|
77
|
-
sequence:
|
|
72
|
+
sort: Pe.toDto(e.sort, {
|
|
73
|
+
created_at: p.CREATED_AT,
|
|
74
|
+
issued_on: p.ISSUED_ON,
|
|
75
|
+
customer: p.CUSTOMER,
|
|
76
|
+
netAmount: p.NET_AMOUNT,
|
|
77
|
+
sequence: p.SEQUENCE
|
|
78
78
|
})
|
|
79
79
|
};
|
|
80
80
|
}
|
|
@@ -97,7 +97,7 @@ var M = class e {
|
|
|
97
97
|
search: N.toDto(e.queryParams.search)
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, Le = class {
|
|
101
101
|
static toDto(e) {
|
|
102
102
|
return { customerUuid: e.customer.uuid };
|
|
103
103
|
}
|
|
@@ -124,26 +124,26 @@ var M = class e {
|
|
|
124
124
|
remark: e.customerRemark
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
},
|
|
127
|
+
}, Re = class e {
|
|
128
128
|
static findActiveApproval(e) {
|
|
129
129
|
return e.approval.find((e) => e.isActive) ?? null;
|
|
130
130
|
}
|
|
131
131
|
static fromDto(t) {
|
|
132
132
|
let n = e.findActiveApproval(t), r = t.approval.find((e) => e.rejectionReason !== null) ?? null;
|
|
133
133
|
return {
|
|
134
|
-
...
|
|
134
|
+
...Me.fromViewInvoiceDetailDto(t, t.uuid, v.STANDARD),
|
|
135
135
|
approvalUuid: n === null ? null : n.uuid,
|
|
136
136
|
hasApprovalHistory: t.approval.length > 0,
|
|
137
137
|
hasChangesSinceApprovalSent: t.hasChangesSinceApprovalSent,
|
|
138
138
|
isEditable: t.isEditable,
|
|
139
139
|
approval: n === null ? null : I.fromDetailDto(n),
|
|
140
140
|
approvalEmail: t.customer.approvalEmail,
|
|
141
|
-
approvalProFormaFile: n === null ? null :
|
|
141
|
+
approvalProFormaFile: n === null ? null : je.fromNullableDto(n.proFormaFile),
|
|
142
142
|
rejection: r === null ? null : I.rejectionFromDetailDto(r),
|
|
143
143
|
requiresPriorApproval: t.requiresPriorApproval
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
},
|
|
146
|
+
}, ze = class {
|
|
147
147
|
static fromDto(e) {
|
|
148
148
|
return {
|
|
149
149
|
uuid: e.uuid,
|
|
@@ -248,13 +248,13 @@ var M = class e {
|
|
|
248
248
|
let { offset: t } = R.getNow().toZonedDateTimeISO(e), [n, r] = t.split(":");
|
|
249
249
|
return r === "00" ? n : t;
|
|
250
250
|
}
|
|
251
|
-
},
|
|
251
|
+
}, Be = {
|
|
252
252
|
appLanguage: L.getCurrentLocale(),
|
|
253
253
|
hourCycle: "locale-default",
|
|
254
254
|
locale: L.getCurrentLocale(),
|
|
255
255
|
timeZone: z.getCurrentTimeZone()
|
|
256
256
|
};
|
|
257
|
-
|
|
257
|
+
Ne(Be);
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region ../date/src/models/form/plainDateField.model.ts
|
|
260
260
|
var B = A.instanceof(j.PlainDate, { error: () => "Invalid date format" }), V = A.instanceof(j.PlainTime, { error: () => "Invalid time format" }), H = A.object({
|
|
@@ -315,7 +315,7 @@ A.object({
|
|
|
315
315
|
});
|
|
316
316
|
//#endregion
|
|
317
317
|
//#region ../date/src/transformers/instant.transformer.ts
|
|
318
|
-
var
|
|
318
|
+
var Ve = class {
|
|
319
319
|
static fromDto(e) {
|
|
320
320
|
return j.Instant.from(e);
|
|
321
321
|
}
|
|
@@ -341,11 +341,11 @@ var ze = class {
|
|
|
341
341
|
static toNullableDto(e) {
|
|
342
342
|
return e === null ? null : this.toDto(e);
|
|
343
343
|
}
|
|
344
|
-
},
|
|
344
|
+
}, He = class {
|
|
345
345
|
static fromDto(e) {
|
|
346
346
|
return {
|
|
347
347
|
uuid: e.uuid,
|
|
348
|
-
createdAt:
|
|
348
|
+
createdAt: Ve.fromDto(e.createdAt),
|
|
349
349
|
amount: M.fromDto(e.amount),
|
|
350
350
|
date: K.fromDto(e.date),
|
|
351
351
|
paymentReference: e.paymentReference,
|
|
@@ -353,7 +353,7 @@ var ze = class {
|
|
|
353
353
|
source: e.source
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
},
|
|
356
|
+
}, Ue = class {
|
|
357
357
|
static toDto(e) {
|
|
358
358
|
return {
|
|
359
359
|
amount: M.toDto({
|
|
@@ -369,7 +369,7 @@ var ze = class {
|
|
|
369
369
|
};
|
|
370
370
|
//#endregion
|
|
371
371
|
//#region src/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.ts
|
|
372
|
-
function
|
|
372
|
+
function We(e) {
|
|
373
373
|
return {
|
|
374
374
|
uuid: e.uuid,
|
|
375
375
|
createdAt: C.fromDto(e.createdAt),
|
|
@@ -406,8 +406,8 @@ function J(e) {
|
|
|
406
406
|
position: e.position
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
return [...e.ungroupedLines, ...
|
|
409
|
+
function Ge(e) {
|
|
410
|
+
return [...e.ungroupedLines, ...ke.flattenLines(e.groups)].toSorted((e, t) => e.position - t.position);
|
|
411
411
|
}
|
|
412
412
|
var Y = class e {
|
|
413
413
|
static fromPublicDto(t) {
|
|
@@ -415,7 +415,7 @@ var Y = class e {
|
|
|
415
415
|
...e.fromPublicProFormaDto(t),
|
|
416
416
|
deliveredOn: w.fromNullableDto(t.deliveredOn),
|
|
417
417
|
dueOn: w.fromNullableDto(t.dueOn),
|
|
418
|
-
originalInvoice: t.originalInvoice === null ? null :
|
|
418
|
+
originalInvoice: t.originalInvoice === null ? null : We(t.originalInvoice),
|
|
419
419
|
recipient: t.recipient === null ? null : {
|
|
420
420
|
name: t.recipient.name,
|
|
421
421
|
email: t.recipient.email
|
|
@@ -458,14 +458,14 @@ var Y = class e {
|
|
|
458
458
|
globalDiscount: D.fromDto(e.globalDiscount),
|
|
459
459
|
grossAmount: S.fromDto(e.grossAmount),
|
|
460
460
|
groups: e.groups.toSorted((e, t) => e.position - t.position).map(J),
|
|
461
|
-
lines:
|
|
461
|
+
lines: Ge(e).map(q),
|
|
462
462
|
netAmount: S.fromDto(e.netAmount),
|
|
463
463
|
originalInvoice: null,
|
|
464
464
|
paymentReference: e.paymentReference,
|
|
465
465
|
poNumber: e.poNumber,
|
|
466
466
|
recipient: null,
|
|
467
467
|
sequence: null,
|
|
468
|
-
status:
|
|
468
|
+
status: m.READY,
|
|
469
469
|
subject: e.subject,
|
|
470
470
|
totalDiscountAmount: S.fromNullableDto(e.totalDiscountAmount),
|
|
471
471
|
type: v.STANDARD,
|
|
@@ -478,7 +478,7 @@ var Y = class e {
|
|
|
478
478
|
}))
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
},
|
|
481
|
+
}, Ke = class {
|
|
482
482
|
static toDto(e) {
|
|
483
483
|
let t = Math.abs(e.value);
|
|
484
484
|
return e.type === h.PERCENTAGE ? { discount: {
|
|
@@ -565,77 +565,80 @@ function $(e) {
|
|
|
565
565
|
position: e.position
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
var
|
|
568
|
+
var qe = class {
|
|
569
569
|
static toDto(e) {
|
|
570
570
|
return {
|
|
571
571
|
groups: e.groups.map($),
|
|
572
572
|
ungroupedLines: e.ungroupedLines.map(Q)
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
|
-
},
|
|
575
|
+
}, Je = class {
|
|
576
576
|
static async applyDiscount(e, t) {
|
|
577
|
-
let n = await
|
|
578
|
-
body:
|
|
577
|
+
let n = await f.fromPromise(_e({
|
|
578
|
+
body: Ke.toDto(t),
|
|
579
579
|
path: { uuid: e }
|
|
580
580
|
}));
|
|
581
|
-
return
|
|
581
|
+
return f.void(n);
|
|
582
582
|
}
|
|
583
583
|
static async approveApproval(e, t) {
|
|
584
|
-
let n = await
|
|
585
|
-
body:
|
|
584
|
+
let n = await f.fromPromise(Se({
|
|
585
|
+
body: Fe.toDto(t),
|
|
586
586
|
path: { uuid: e }
|
|
587
587
|
}));
|
|
588
|
-
return
|
|
588
|
+
return f.void(n);
|
|
589
589
|
}
|
|
590
590
|
static async archiveApproval(e) {
|
|
591
|
-
let t = await
|
|
592
|
-
return
|
|
591
|
+
let t = await f.fromPromise(we({ path: { uuid: e } }));
|
|
592
|
+
return f.void(t);
|
|
593
|
+
}
|
|
594
|
+
static async bulkDelete(e) {
|
|
595
|
+
return (await f.fromPromise(fe({ query: F.toDto(e) }))).map((e) => e.data);
|
|
593
596
|
}
|
|
594
597
|
static async bulkFinalize(e) {
|
|
595
|
-
return (await
|
|
598
|
+
return (await f.fromPromise(ie({ query: F.toDto(e) }))).map((e) => e.data);
|
|
596
599
|
}
|
|
597
600
|
static async bulkMarkAsReady(e) {
|
|
598
|
-
return (await
|
|
601
|
+
return (await f.fromPromise(ve({ query: F.toDto(e) }))).map((e) => e.data);
|
|
599
602
|
}
|
|
600
603
|
static async bulkSend(e) {
|
|
601
|
-
return (await
|
|
604
|
+
return (await f.fromPromise(he({ query: F.toDto(e) }))).map((e) => e.data);
|
|
602
605
|
}
|
|
603
606
|
static async bulkSendApproval(e) {
|
|
604
|
-
return (await
|
|
607
|
+
return (await f.fromPromise(ae({ query: F.toDto(e) }))).map((e) => e.data);
|
|
605
608
|
}
|
|
606
609
|
static async create(e) {
|
|
607
|
-
return (await
|
|
610
|
+
return (await f.fromPromise(ge({ body: Le.toDto(e) }))).map((e) => e.data.uuid);
|
|
608
611
|
}
|
|
609
612
|
static async createCreditNote(e) {
|
|
610
|
-
return (await
|
|
613
|
+
return (await f.fromPromise(se({ path: { uuid: e } }))).map((e) => e.data.uuid);
|
|
611
614
|
}
|
|
612
615
|
static async createPayment(e, t) {
|
|
613
|
-
let n = await
|
|
614
|
-
body:
|
|
616
|
+
let n = await f.fromPromise(de({
|
|
617
|
+
body: Ue.toDto(t),
|
|
615
618
|
path: { uuid: e }
|
|
616
619
|
}));
|
|
617
|
-
return
|
|
620
|
+
return f.void(n);
|
|
618
621
|
}
|
|
619
622
|
static async delete(e) {
|
|
620
|
-
let t = await
|
|
621
|
-
return
|
|
623
|
+
let t = await f.fromPromise(le({ path: { uuid: e } }));
|
|
624
|
+
return f.void(t);
|
|
622
625
|
}
|
|
623
626
|
static async deletePayment(e, t) {
|
|
624
|
-
let n = await
|
|
627
|
+
let n = await f.fromPromise(re({ path: {
|
|
625
628
|
uuid: e,
|
|
626
629
|
paymentUuid: t
|
|
627
630
|
} }));
|
|
628
|
-
return
|
|
631
|
+
return f.void(n);
|
|
629
632
|
}
|
|
630
633
|
static async duplicate(e) {
|
|
631
|
-
return (await
|
|
634
|
+
return (await f.fromPromise(De({ path: { uuid: e } }))).map((e) => e.data.uuid);
|
|
632
635
|
}
|
|
633
636
|
static async finalize(e) {
|
|
634
|
-
let t = await
|
|
635
|
-
return
|
|
637
|
+
let t = await f.fromPromise(Ee({ path: { uuid: e } }));
|
|
638
|
+
return f.void(t);
|
|
636
639
|
}
|
|
637
640
|
static async getActivityLogs(e, t) {
|
|
638
|
-
return (await
|
|
641
|
+
return (await f.fromPromise(ne({ query: {
|
|
639
642
|
filter: {
|
|
640
643
|
entityUuids: [e],
|
|
641
644
|
roles: [_.INVOICE]
|
|
@@ -645,115 +648,118 @@ var Ge = class {
|
|
|
645
648
|
limit: t.pagination.limit
|
|
646
649
|
}
|
|
647
650
|
} }))).map((e) => ({
|
|
648
|
-
data: e.data.logs.map(
|
|
651
|
+
data: e.data.logs.map(Ae.fromDto),
|
|
649
652
|
meta: { next: e.data.nextKey }
|
|
650
653
|
}));
|
|
651
654
|
}
|
|
652
655
|
static async getAll(e) {
|
|
653
|
-
return (await
|
|
656
|
+
return (await f.fromPromise(Ce({
|
|
654
657
|
query: P.toDto(e),
|
|
655
658
|
responseValidator: void 0
|
|
656
659
|
}))).map((e) => ({
|
|
657
|
-
data: e.data.items.map(
|
|
660
|
+
data: e.data.items.map(ze.fromDto),
|
|
658
661
|
meta: e.data.meta
|
|
659
662
|
}));
|
|
660
663
|
}
|
|
661
664
|
static async getByUuid(e) {
|
|
662
|
-
return (await
|
|
665
|
+
return (await f.fromPromise(ye({ path: { uuid: e } }))).map((e) => Re.fromDto(e.data));
|
|
663
666
|
}
|
|
664
667
|
static async getPayments(e) {
|
|
665
|
-
return (await
|
|
668
|
+
return (await f.fromPromise(oe({ path: { uuid: e } }))).map((e) => e.data.items.map(He.fromDto));
|
|
666
669
|
}
|
|
667
670
|
static async getPublicDetail(e) {
|
|
668
|
-
return (await
|
|
671
|
+
return (await f.fromPromise(ce({ query: { token: e } }))).map((e) => Y.fromPublicDto(e.data));
|
|
669
672
|
}
|
|
670
673
|
static async getPublicProFormaDetail(e) {
|
|
671
|
-
return (await
|
|
674
|
+
return (await f.fromPromise(be({ query: { token: e } }))).map((e) => Y.fromPublicProFormaDto(e.data));
|
|
672
675
|
}
|
|
673
|
-
static async markAsDraft(
|
|
674
|
-
let
|
|
675
|
-
return
|
|
676
|
+
static async markAsDraft(t) {
|
|
677
|
+
let n = await f.fromPromise(e({ path: { uuid: t } }));
|
|
678
|
+
return f.void(n);
|
|
676
679
|
}
|
|
677
680
|
static async markAsPaid(e) {
|
|
678
|
-
let
|
|
679
|
-
return
|
|
681
|
+
let t = await f.fromPromise(Te({ path: { uuid: e } }));
|
|
682
|
+
return f.void(t);
|
|
680
683
|
}
|
|
681
684
|
static async markAsPriorApprovalRequired(e) {
|
|
682
|
-
let t = await
|
|
683
|
-
return
|
|
685
|
+
let t = await f.fromPromise(d({ path: { uuid: e } }));
|
|
686
|
+
return f.void(t);
|
|
684
687
|
}
|
|
685
688
|
static async markAsProtested(e) {
|
|
686
|
-
let t = await
|
|
687
|
-
return
|
|
689
|
+
let t = await f.fromPromise(u({ path: { uuid: e } }));
|
|
690
|
+
return f.void(t);
|
|
688
691
|
}
|
|
689
692
|
static async markAsReady(e) {
|
|
690
|
-
let t = await
|
|
691
|
-
return
|
|
693
|
+
let t = await f.fromPromise(n({ path: { uuid: e } }));
|
|
694
|
+
return f.void(t);
|
|
695
|
+
}
|
|
696
|
+
static async previewBulkDelete(e) {
|
|
697
|
+
return (await f.fromPromise(t({ query: F.toDto(e) }))).map((e) => e.data);
|
|
692
698
|
}
|
|
693
699
|
static async previewBulkFinalize(e) {
|
|
694
|
-
return (await
|
|
700
|
+
return (await f.fromPromise(s({ query: F.toDto(e) }))).map((e) => e.data);
|
|
695
701
|
}
|
|
696
702
|
static async previewBulkMarkAsReady(e) {
|
|
697
|
-
return (await
|
|
703
|
+
return (await f.fromPromise(me({ query: F.toDto(e) }))).map((e) => e.data);
|
|
698
704
|
}
|
|
699
|
-
static async previewBulkSend(
|
|
700
|
-
return (await
|
|
705
|
+
static async previewBulkSend(e) {
|
|
706
|
+
return (await f.fromPromise(a({ query: F.toDto(e) }))).map((e) => e.data);
|
|
701
707
|
}
|
|
702
708
|
static async previewBulkSendApproval(e) {
|
|
703
|
-
return (await
|
|
709
|
+
return (await f.fromPromise(pe({ query: F.toDto(e) }))).map((e) => e.data);
|
|
704
710
|
}
|
|
705
711
|
static async rejectApproval(e, t) {
|
|
706
|
-
let n = await
|
|
707
|
-
body:
|
|
712
|
+
let n = await f.fromPromise(o({
|
|
713
|
+
body: Ie.toDto(t),
|
|
708
714
|
path: { uuid: e }
|
|
709
715
|
}));
|
|
710
|
-
return
|
|
716
|
+
return f.void(n);
|
|
711
717
|
}
|
|
712
718
|
static async restartApproval(e) {
|
|
713
|
-
let t = await
|
|
714
|
-
return
|
|
719
|
+
let t = await f.fromPromise(c({ path: { uuid: e } }));
|
|
720
|
+
return f.void(t);
|
|
715
721
|
}
|
|
716
722
|
static async restoreFromProForma(e) {
|
|
717
|
-
let t = await
|
|
718
|
-
return
|
|
723
|
+
let t = await f.fromPromise(r({ path: { uuid: e } }));
|
|
724
|
+
return f.void(t);
|
|
719
725
|
}
|
|
720
726
|
static async send(e) {
|
|
721
|
-
let t = await
|
|
722
|
-
return
|
|
727
|
+
let t = await f.fromPromise(Oe({ path: { uuid: e } }));
|
|
728
|
+
return f.void(t);
|
|
723
729
|
}
|
|
724
730
|
static async sendApproval(e) {
|
|
725
|
-
let t = await
|
|
726
|
-
return
|
|
731
|
+
let t = await f.fromPromise(l({ path: { uuid: e } }));
|
|
732
|
+
return f.void(t);
|
|
727
733
|
}
|
|
728
734
|
static async unmarkAsPriorApprovalRequired(e) {
|
|
729
|
-
let t = await
|
|
730
|
-
return
|
|
735
|
+
let t = await f.fromPromise(te({ path: { uuid: e } }));
|
|
736
|
+
return f.void(t);
|
|
731
737
|
}
|
|
732
738
|
static async update(e, t) {
|
|
733
|
-
let n = await
|
|
739
|
+
let n = await f.fromPromise(xe({
|
|
734
740
|
body: Z.toDto(t),
|
|
735
741
|
path: { uuid: e }
|
|
736
742
|
}));
|
|
737
|
-
return
|
|
743
|
+
return f.void(n);
|
|
738
744
|
}
|
|
739
745
|
static async updateAttachments(e, t) {
|
|
740
|
-
let n = await
|
|
746
|
+
let n = await f.fromPromise(ee({
|
|
741
747
|
body: X.toDto(t),
|
|
742
748
|
path: { uuid: e }
|
|
743
749
|
}));
|
|
744
|
-
return
|
|
750
|
+
return f.void(n);
|
|
745
751
|
}
|
|
746
752
|
static async updateLines(e, t) {
|
|
747
|
-
let n = await
|
|
748
|
-
body:
|
|
753
|
+
let n = await f.fromPromise(i({
|
|
754
|
+
body: qe.toDto(t),
|
|
749
755
|
path: { uuid: e }
|
|
750
756
|
}));
|
|
751
|
-
return
|
|
757
|
+
return f.void(n);
|
|
752
758
|
}
|
|
753
759
|
static async withdrawProtest(e) {
|
|
754
|
-
let t = await
|
|
755
|
-
return
|
|
760
|
+
let t = await f.fromPromise(ue({ path: { uuid: e } }));
|
|
761
|
+
return f.void(t);
|
|
756
762
|
}
|
|
757
763
|
};
|
|
758
764
|
//#endregion
|
|
759
|
-
export { R as a, B as i, Z as n, N as o, X as r,
|
|
765
|
+
export { R as a, B as i, Z as n, N as o, X as r, Je as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, Q as t, at as n, t as r } from "./api.util-DpWaDY5y.js";
|
|
2
2
|
import { n as i, r as a, t as o } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
3
|
-
import { t as s } from "./invoiceApprovalStatus.util-
|
|
3
|
+
import { t as s } from "./invoiceApprovalStatus.util-BebJpPKg.js";
|
|
4
4
|
//#region src/modules/invoice-approval/models/approvalReminderConfig.transformer.ts
|
|
5
5
|
var c = class {
|
|
6
6
|
static toDto(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as r } from "./invoice.service-
|
|
1
|
+
import { et as e, t, tt as n } from "./api.util-DpWaDY5y.js";
|
|
2
|
+
import { o as r } from "./invoice.service-Dugf3vP3.js";
|
|
3
3
|
//#region src/models/customer/customerDetail.transformer.ts
|
|
4
4
|
var i = class {
|
|
5
5
|
static fromDto(e) {
|
|
@@ -25,14 +25,14 @@ var i = class {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
}, s = class {
|
|
28
|
-
static async getAll(
|
|
29
|
-
return (await
|
|
28
|
+
static async getAll(e) {
|
|
29
|
+
return (await t.fromPromise(n({ query: o.toDto(e) }))).map((e) => ({
|
|
30
30
|
data: e.data.items.map(a.fromDto),
|
|
31
31
|
meta: e.data.meta
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
-
static async getByUuid(
|
|
35
|
-
return (await
|
|
34
|
+
static async getByUuid(n) {
|
|
35
|
+
return (await t.fromPromise(e({ path: { uuid: n } }))).map((e) => i.fromDto(e.data));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api.util-
|
|
1
|
+
import "./api.util-DpWaDY5y.js";
|
|
2
2
|
import { k as e, v as t } from "./documentTitle.composable-BqZWKGw1.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as r } from "./CustomFieldValueText-
|
|
4
|
+
import { n as r } from "./CustomFieldValueText-DX_7bMFM.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createVNode as c, defineComponent as l, openBlock as u, unref as d, withCtx as f } from "vue";
|
|
7
7
|
import { QueryClient as p, getTanstackQueryClient as m } from "@wisemen/vue-core-api-utils";
|
package/dist/{invoicingConfig.composable-DXJ71Uq_.js → invoicingConfig.composable-DQTYsGa7.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./i18n.lib-Be2_Gg1d.js";
|
|
2
|
+
import { _t as t } from "./api.util-DpWaDY5y.js";
|
|
3
3
|
import { useI18n as n } from "vue-i18n";
|
|
4
4
|
import { computed as r, ref as i, shallowRef as a, toValue as o, watch as s } from "vue";
|
|
5
5
|
//#region src/libs/http.lib.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as e, lt as t, t as n } from "./api.util-DpWaDY5y.js";
|
|
2
2
|
import { D as r, E as i, O as a, p as o } from "./documentTitle.composable-BqZWKGw1.js";
|
|
3
3
|
import { n as s, t as c } from "./address.transformer-jGddczLV.js";
|
|
4
4
|
import { t as l } from "./dist-BFx8U4Su.js";
|
package/dist/libs/i18n.lib.d.ts
CHANGED
|
@@ -105,6 +105,16 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
105
105
|
"wise_invoicing.invoice.overview.columns.created_by": string;
|
|
106
106
|
"wise_invoicing.invoice.overview.active_filters": string;
|
|
107
107
|
"wise_invoicing.invoice.overview.bulk.cancel": string;
|
|
108
|
+
"wise_invoicing.invoice.overview.bulk.delete.action": string;
|
|
109
|
+
"wise_invoicing.invoice.overview.bulk.delete.confirm": string;
|
|
110
|
+
"wise_invoicing.invoice.overview.bulk.delete.description": string;
|
|
111
|
+
"wise_invoicing.invoice.overview.bulk.delete.loading": string;
|
|
112
|
+
"wise_invoicing.invoice.overview.bulk.delete.none_processable": string;
|
|
113
|
+
"wise_invoicing.invoice.overview.bulk.delete.processable": string;
|
|
114
|
+
"wise_invoicing.invoice.overview.bulk.delete.skipped": string;
|
|
115
|
+
"wise_invoicing.invoice.overview.bulk.delete.skipped_preview": string;
|
|
116
|
+
"wise_invoicing.invoice.overview.bulk.delete.success": string;
|
|
117
|
+
"wise_invoicing.invoice.overview.bulk.delete.title": string;
|
|
108
118
|
"wise_invoicing.invoice.overview.bulk.finalize.action": string;
|
|
109
119
|
"wise_invoicing.invoice.overview.bulk.finalize.confirm": string;
|
|
110
120
|
"wise_invoicing.invoice.overview.bulk.finalize.description": string;
|
|
@@ -138,6 +148,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
138
148
|
"wise_invoicing.invoice.overview.bulk.skip_reason.approval_already_sent": string;
|
|
139
149
|
"wise_invoicing.invoice.overview.bulk.skip_reason.approval_not_required": string;
|
|
140
150
|
"wise_invoicing.invoice.overview.bulk.skip_reason.already_approved": string;
|
|
151
|
+
"wise_invoicing.invoice.overview.bulk.skip_reason.has_approval": string;
|
|
141
152
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_before_last_issued": string;
|
|
142
153
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_closed_period": string;
|
|
143
154
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_future": string;
|
|
@@ -689,6 +700,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
689
700
|
"wise_invoicing.settings.fields.default_payment_term.suffix": string;
|
|
690
701
|
"wise_invoicing.settings.fields.sequence_prefix.label": string;
|
|
691
702
|
"wise_invoicing.settings.fields.sequence_prefix.placeholder": string;
|
|
703
|
+
"wise_invoicing.settings.fields.sequence_prefix.only_letters": string;
|
|
692
704
|
"wise_invoicing.settings.fields.credit_note_sequence_prefix.label": string;
|
|
693
705
|
"wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder": string;
|
|
694
706
|
"wise_invoicing.settings.fields.sequence_date_format.label": string;
|
|
@@ -1094,6 +1106,16 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
1094
1106
|
"wise_invoicing.invoice.overview.columns.created_by": string;
|
|
1095
1107
|
"wise_invoicing.invoice.overview.active_filters": string;
|
|
1096
1108
|
"wise_invoicing.invoice.overview.bulk.cancel": string;
|
|
1109
|
+
"wise_invoicing.invoice.overview.bulk.delete.action": string;
|
|
1110
|
+
"wise_invoicing.invoice.overview.bulk.delete.confirm": string;
|
|
1111
|
+
"wise_invoicing.invoice.overview.bulk.delete.description": string;
|
|
1112
|
+
"wise_invoicing.invoice.overview.bulk.delete.loading": string;
|
|
1113
|
+
"wise_invoicing.invoice.overview.bulk.delete.none_processable": string;
|
|
1114
|
+
"wise_invoicing.invoice.overview.bulk.delete.processable": string;
|
|
1115
|
+
"wise_invoicing.invoice.overview.bulk.delete.skipped": string;
|
|
1116
|
+
"wise_invoicing.invoice.overview.bulk.delete.skipped_preview": string;
|
|
1117
|
+
"wise_invoicing.invoice.overview.bulk.delete.success": string;
|
|
1118
|
+
"wise_invoicing.invoice.overview.bulk.delete.title": string;
|
|
1097
1119
|
"wise_invoicing.invoice.overview.bulk.finalize.action": string;
|
|
1098
1120
|
"wise_invoicing.invoice.overview.bulk.finalize.confirm": string;
|
|
1099
1121
|
"wise_invoicing.invoice.overview.bulk.finalize.description": string;
|
|
@@ -1127,6 +1149,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
1127
1149
|
"wise_invoicing.invoice.overview.bulk.skip_reason.approval_already_sent": string;
|
|
1128
1150
|
"wise_invoicing.invoice.overview.bulk.skip_reason.approval_not_required": string;
|
|
1129
1151
|
"wise_invoicing.invoice.overview.bulk.skip_reason.already_approved": string;
|
|
1152
|
+
"wise_invoicing.invoice.overview.bulk.skip_reason.has_approval": string;
|
|
1130
1153
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_before_last_issued": string;
|
|
1131
1154
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_closed_period": string;
|
|
1132
1155
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_future": string;
|
|
@@ -1678,6 +1701,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
1678
1701
|
"wise_invoicing.settings.fields.default_payment_term.suffix": string;
|
|
1679
1702
|
"wise_invoicing.settings.fields.sequence_prefix.label": string;
|
|
1680
1703
|
"wise_invoicing.settings.fields.sequence_prefix.placeholder": string;
|
|
1704
|
+
"wise_invoicing.settings.fields.sequence_prefix.only_letters": string;
|
|
1681
1705
|
"wise_invoicing.settings.fields.credit_note_sequence_prefix.label": string;
|
|
1682
1706
|
"wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder": string;
|
|
1683
1707
|
"wise_invoicing.settings.fields.sequence_date_format.label": string;
|
|
@@ -98,6 +98,16 @@ declare const _default: {
|
|
|
98
98
|
"wise_invoicing.invoice.overview.columns.created_by": "Created by",
|
|
99
99
|
"wise_invoicing.invoice.overview.active_filters": "{count} active filters",
|
|
100
100
|
"wise_invoicing.invoice.overview.bulk.cancel": "Cancel",
|
|
101
|
+
"wise_invoicing.invoice.overview.bulk.delete.action": "Delete",
|
|
102
|
+
"wise_invoicing.invoice.overview.bulk.delete.confirm": "Delete",
|
|
103
|
+
"wise_invoicing.invoice.overview.bulk.delete.description": "Only the selected invoices in this table will be deleted. This cannot be undone.",
|
|
104
|
+
"wise_invoicing.invoice.overview.bulk.delete.loading": "Checking selected invoices...",
|
|
105
|
+
"wise_invoicing.invoice.overview.bulk.delete.none_processable": "None of the selected invoices can be deleted.",
|
|
106
|
+
"wise_invoicing.invoice.overview.bulk.delete.processable": "{count} invoice will be deleted. | {count} invoices will be deleted.",
|
|
107
|
+
"wise_invoicing.invoice.overview.bulk.delete.skipped": "{count} invoice could not be deleted. | {count} invoices could not be deleted.",
|
|
108
|
+
"wise_invoicing.invoice.overview.bulk.delete.skipped_preview": "{count} invoice cannot be deleted. | {count} invoices cannot be deleted.",
|
|
109
|
+
"wise_invoicing.invoice.overview.bulk.delete.success": "{count} invoice has been deleted. | {count} invoices have been deleted.",
|
|
110
|
+
"wise_invoicing.invoice.overview.bulk.delete.title": "Delete {count} invoice? | Delete {count} invoices?",
|
|
101
111
|
"wise_invoicing.invoice.overview.bulk.finalize.action": "Finalize",
|
|
102
112
|
"wise_invoicing.invoice.overview.bulk.finalize.confirm": "Finalize",
|
|
103
113
|
"wise_invoicing.invoice.overview.bulk.finalize.description": "Only the selected invoices in this table will be finalized.",
|
|
@@ -131,6 +141,7 @@ declare const _default: {
|
|
|
131
141
|
"wise_invoicing.invoice.overview.bulk.skip_reason.approval_already_sent": "An approval request is already out for this invoice.",
|
|
132
142
|
"wise_invoicing.invoice.overview.bulk.skip_reason.approval_not_required": "This invoice does not need approval.",
|
|
133
143
|
"wise_invoicing.invoice.overview.bulk.skip_reason.already_approved": "This invoice is already approved.",
|
|
144
|
+
"wise_invoicing.invoice.overview.bulk.skip_reason.has_approval": "This invoice has an approval request and cannot be deleted.",
|
|
134
145
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_before_last_issued": "The issue date is earlier than the last numbered invoice.",
|
|
135
146
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_closed_period": "The numbering for the issue date is already closed.",
|
|
136
147
|
"wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_future": "The issue date is in the future.",
|
|
@@ -682,6 +693,7 @@ declare const _default: {
|
|
|
682
693
|
"wise_invoicing.settings.fields.default_payment_term.suffix": "days",
|
|
683
694
|
"wise_invoicing.settings.fields.sequence_prefix.label": "Invoice prefix",
|
|
684
695
|
"wise_invoicing.settings.fields.sequence_prefix.placeholder": "e.g. WSM",
|
|
696
|
+
"wise_invoicing.settings.fields.sequence_prefix.only_letters": "Only letters (A-Z) are allowed",
|
|
685
697
|
"wise_invoicing.settings.fields.credit_note_sequence_prefix.label": "Credit note prefix",
|
|
686
698
|
"wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder": "e.g. CN",
|
|
687
699
|
"wise_invoicing.settings.fields.sequence_date_format.label": "Date",
|