@wisemen/wise-invoicing-web 0.0.6 → 0.0.7
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-BGE-p_FL.js → BillingDocumentDetailViewDataProvider-CmHbMXp0.js} +463 -469
- package/dist/{BillingDocumentPdf-Ca81NkZq.js → BillingDocumentPdf-Dj_s1l_p.js} +2 -2
- package/dist/{CreditNoteDetailViewDataProvider-b5dY_4mH.js → CreditNoteDetailViewDataProvider-DPePmzgn.js} +68 -68
- package/dist/{CreditNotePdfViewDataProvider-C2QqCdQ7.js → CreditNotePdfViewDataProvider-Dp0zI0fB.js} +2 -2
- package/dist/{CustomFieldValueText-ne5yy02J.js → CustomFieldValueText-BGbQwhON.js} +1 -1
- package/dist/{DunningCaseDetailViewDataProvider-jsh-LlGx.js → DunningCaseDetailViewDataProvider-CInwZwMc.js} +4 -4
- package/dist/{DunningCaseOverviewView-WbXalMt6.js → DunningCaseOverviewView-DvOmEcJY.js} +4 -4
- package/dist/DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js +490 -0
- package/dist/{DunningCaseSendDialog-D7jAZ8yT.js → DunningCaseSendDialog-DISQ1Fs3.js} +2 -2
- package/dist/{InvoiceDetailViewDataProvider-BAVdcJay.js → InvoiceDetailViewDataProvider-YOlvUavt.js} +411 -411
- package/dist/{InvoiceOverviewViewDataProvider-BT9cuQXw.js → InvoiceOverviewViewDataProvider-i8tXATJE.js} +47 -47
- package/dist/{InvoicePdfView-BpIaYdZX.js → InvoicePdfView-Desmlys1.js} +1 -1
- package/dist/{InvoicePdfViewDataProvider-DGCnmNE-.js → InvoicePdfViewDataProvider--CHm0HAM.js} +2 -2
- package/dist/{InvoicePublicPdfViewDataProvider-KV0_hKUI.js → InvoicePublicPdfViewDataProvider-DoNBZsmi.js} +3 -3
- package/dist/{IssuerSettingsViewDataProvider-Bs4rEES2.js → IssuerSettingsViewDataProvider-COqHGUE6.js} +1 -1
- package/dist/{ReminderSettingsViewDataProvider-D4bRLLXx.js → ReminderSettingsViewDataProvider-Dys4bUU7.js} +2 -2
- package/dist/{address.transformer-B8C0pwT1.js → address.transformer-jGddczLV.js} +2 -73
- package/dist/{billingDocumentDetail.transformer-DIKAl4_L.js → billingDocumentDetail.transformer-BBn9R_cx.js} +32 -42
- package/dist/{creditNoteDetail.query-DHP69UiB.js → creditNoteDetail.query-BcPsB96h.js} +11 -11
- package/dist/customFieldValue.util-BwsX8exl.js +16 -0
- package/dist/{dist-PErDVE6-.js → dist-BBjpqvUl.js} +2 -2
- package/dist/dist-BFx8U4Su.js +72 -0
- package/dist/{dist-YTXTCfo1.js → dist-boJIIxnT.js} +1 -1
- package/dist/{i18n.lib-BGcQ_OBF.js → i18n.lib-C6eb-F-e.js} +28 -4
- package/dist/index.d.ts +30 -1
- package/dist/index.js +186 -185
- package/dist/instant.transformer-KmBsH3E9.js +18 -0
- package/dist/{invoice.service-DG5eacZC.js → invoice.service-Bb8VqQvc.js} +38 -32
- package/dist/{invoiceDeliveryStatus.util-CX-IdqAu.js → invoiceDeliveryStatus.util-BPkGCQM6.js} +2 -2
- package/dist/{invoiceDetail.query-C_IMGjOX.js → invoiceDetail.query-Cek8nyaw.js} +1 -1
- package/dist/{invoicingConfig.composable-Kad_HHx_.js → invoicingConfig.composable-D8HuO3Sl.js} +1 -1
- package/dist/{issuerSettings.query-6wnSPphB.js → issuerSettings.query-Bvz-Oj5D.js} +13 -12
- package/dist/libs/i18n.lib.d.ts +24 -0
- package/dist/locales/en-US.json.d.ts +14 -2
- package/dist/locales/nl-BE.json.d.ts +14 -2
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +49 -0
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +8 -0
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.spec.d.ts +1 -0
- package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +27 -0
- package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +1 -1
- package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfHeader.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +10 -16
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTotals.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +15 -6
- package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +1 -1
- package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +1 -1
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +4 -0
- package/dist/percentage.util-Bl78kSSk.js +35 -0
- package/dist/{plainDate.transformer-Dfe5r84P.js → plainDate.transformer-BxvJpJOv.js} +1 -32
- package/dist/{reminderConfig.query-hmDNKreg.js → reminderConfig.query-DsJNqqi7.js} +8 -7
- package/dist/style.css +1 -1
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +432 -432
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +36 -36
- package/package.json +1 -1
- package/dist/DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js +0 -239
- package/dist/download.util-PjaUQR6r.js +0 -9
|
@@ -2,12 +2,14 @@ import { Temporal } from 'temporal-polyfill';
|
|
|
2
2
|
import { InvoiceStatus, InvoiceType, UnitOfMeasurement, VatRate } from '../../../../../client/index.ts';
|
|
3
3
|
import { BillingDocumentIssuer, BillingDocumentParty, BillingDocumentRecipient, BillingDocumentRelatedDocument, BillingDocumentVatSummary } from '../../../../../models/billing-document/billingDocumentDetail.model.ts';
|
|
4
4
|
import { BillingDocumentDiscount } from '../../../../../models/billing-document/billingDocumentDiscount.model.ts';
|
|
5
|
+
import { CustomFieldValue } from '../../../../custom-field/models/custom-field-value/customFieldValue.model.ts';
|
|
5
6
|
import { Monetary } from '../../../../../utils/monetary/monetary.model.ts';
|
|
6
7
|
import { Percentage } from '../../../../../utils/percentage.util.ts';
|
|
7
8
|
export interface InvoicePdfLine {
|
|
8
9
|
uuid: string;
|
|
9
10
|
isDiscount: boolean;
|
|
10
11
|
name: string;
|
|
12
|
+
customFields: CustomFieldValue[];
|
|
11
13
|
description: string | null;
|
|
12
14
|
discount: BillingDocumentDiscount | null;
|
|
13
15
|
grossAmount: Monetary;
|
|
@@ -22,6 +24,7 @@ export interface InvoicePdfLine {
|
|
|
22
24
|
export interface InvoicePdfGroup {
|
|
23
25
|
uuid: string;
|
|
24
26
|
name: string;
|
|
27
|
+
customFields: CustomFieldValue[];
|
|
25
28
|
description: string | null;
|
|
26
29
|
lines: InvoicePdfLine[];
|
|
27
30
|
position: number;
|
|
@@ -34,6 +37,7 @@ export interface InvoicePdfDetail {
|
|
|
34
37
|
updatedAt: Temporal.Instant;
|
|
35
38
|
issuer: BillingDocumentIssuer;
|
|
36
39
|
customer: BillingDocumentParty;
|
|
40
|
+
customFields: CustomFieldValue[];
|
|
37
41
|
effectiveNet: Monetary;
|
|
38
42
|
externalRemarks: string | null;
|
|
39
43
|
globalDiscount: BillingDocumentDiscount | null;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/utils/percentage.util.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
value;
|
|
4
|
+
constructor(e) {
|
|
5
|
+
if (!Number.isFinite(e) || e < 0 || e > 100) throw Error(`Percentage value must be between 0 and 100, got ${e}`);
|
|
6
|
+
this.value = e;
|
|
7
|
+
}
|
|
8
|
+
getValue() {
|
|
9
|
+
return this.value;
|
|
10
|
+
}
|
|
11
|
+
toFraction() {
|
|
12
|
+
return this.value / 100;
|
|
13
|
+
}
|
|
14
|
+
toString(e = navigator.language) {
|
|
15
|
+
return Intl.NumberFormat(e, {
|
|
16
|
+
maximumFractionDigits: 2,
|
|
17
|
+
style: "percent"
|
|
18
|
+
}).format(this.toFraction());
|
|
19
|
+
}
|
|
20
|
+
}, t = class t {
|
|
21
|
+
static fromDto(t) {
|
|
22
|
+
return new e(t * 100);
|
|
23
|
+
}
|
|
24
|
+
static fromNullableDto(e) {
|
|
25
|
+
return e == null ? null : t.fromDto(e);
|
|
26
|
+
}
|
|
27
|
+
static toDto(e) {
|
|
28
|
+
return e.toFraction();
|
|
29
|
+
}
|
|
30
|
+
static toNullableDto(e) {
|
|
31
|
+
return e === null ? null : t.toDto(e);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { t as n, e as t };
|
|
@@ -22,37 +22,6 @@ var t = class e {
|
|
|
22
22
|
return t === null ? null : e.toDto(t);
|
|
23
23
|
}
|
|
24
24
|
}, n = class {
|
|
25
|
-
value;
|
|
26
|
-
constructor(e) {
|
|
27
|
-
if (!Number.isFinite(e) || e < 0 || e > 100) throw Error(`Percentage value must be between 0 and 100, got ${e}`);
|
|
28
|
-
this.value = e;
|
|
29
|
-
}
|
|
30
|
-
getValue() {
|
|
31
|
-
return this.value;
|
|
32
|
-
}
|
|
33
|
-
toFraction() {
|
|
34
|
-
return this.value / 100;
|
|
35
|
-
}
|
|
36
|
-
toString(e = navigator.language) {
|
|
37
|
-
return Intl.NumberFormat(e, {
|
|
38
|
-
maximumFractionDigits: 2,
|
|
39
|
-
style: "percent"
|
|
40
|
-
}).format(this.toFraction());
|
|
41
|
-
}
|
|
42
|
-
}, r = class e {
|
|
43
|
-
static fromDto(e) {
|
|
44
|
-
return new n(e * 100);
|
|
45
|
-
}
|
|
46
|
-
static fromNullableDto(t) {
|
|
47
|
-
return t == null ? null : e.fromDto(t);
|
|
48
|
-
}
|
|
49
|
-
static toDto(e) {
|
|
50
|
-
return e.toFraction();
|
|
51
|
-
}
|
|
52
|
-
static toNullableDto(t) {
|
|
53
|
-
return t === null ? null : e.toDto(t);
|
|
54
|
-
}
|
|
55
|
-
}, i = class {
|
|
56
25
|
static fromDto(t) {
|
|
57
26
|
return e.PlainDate.from(t);
|
|
58
27
|
}
|
|
@@ -67,4 +36,4 @@ var t = class e {
|
|
|
67
36
|
}
|
|
68
37
|
};
|
|
69
38
|
//#endregion
|
|
70
|
-
export { t as
|
|
39
|
+
export { t as n, n as t };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { B as e, E as t, J as n, P as r, V as i, a, t as o, w as s } from "./api.util-BCSgCfpS.js";
|
|
2
2
|
import { a as c, d as l, f as u } from "./documentTitle.composable-4ApFl9TZ.js";
|
|
3
|
-
import {
|
|
3
|
+
import { n as d, t as f } from "./plainDate.transformer-BxvJpJOv.js";
|
|
4
|
+
import { n as p } from "./percentage.util-Bl78kSSk.js";
|
|
4
5
|
import { Fragment as m, computed as h, createElementBlock as g, createElementVNode as _, defineComponent as v, normalizeClass as y, openBlock as b, renderList as x } from "vue";
|
|
5
6
|
import { useQuery as S } from "@wisemen/vue-core-api-utils";
|
|
6
7
|
import { Temporal as C } from "temporal-polyfill";
|
|
@@ -126,7 +127,7 @@ var z = class e {
|
|
|
126
127
|
closedAt: t.closedAt === null ? null : C.Instant.from(t.closedAt),
|
|
127
128
|
createdAt: C.Instant.from(t.createdAt),
|
|
128
129
|
lastReminderSentAt: e.fromNullableInstant(t.lastReminderSentAt),
|
|
129
|
-
nextReminderOn:
|
|
130
|
+
nextReminderOn: f.fromNullableDto(t.nextReminderOn),
|
|
130
131
|
updatedAt: C.Instant.from(t.updatedAt),
|
|
131
132
|
blockedReason: t.blockedReason,
|
|
132
133
|
canSendReminder: t.canSendReminder,
|
|
@@ -145,7 +146,7 @@ var z = class e {
|
|
|
145
146
|
return {
|
|
146
147
|
uuid: t.uuid,
|
|
147
148
|
lastReminderSentAt: e.fromNullableInstant(t.lastReminderSentAt),
|
|
148
|
-
nextReminderOn: t.nextReminderOn === null || t.nextReminderOn === "infinity" || t.nextReminderOn === "-infinity" ? null :
|
|
149
|
+
nextReminderOn: t.nextReminderOn === null || t.nextReminderOn === "infinity" || t.nextReminderOn === "-infinity" ? null : f.fromDto(t.nextReminderOn),
|
|
149
150
|
blockedReason: t.blockedReason,
|
|
150
151
|
canSendReminder: t.canSendReminder,
|
|
151
152
|
customer: t.customer,
|
|
@@ -158,12 +159,12 @@ var z = class e {
|
|
|
158
159
|
static fromInvoiceDto(e) {
|
|
159
160
|
return {
|
|
160
161
|
uuid: e.uuid,
|
|
161
|
-
dueOn:
|
|
162
|
+
dueOn: f.fromDto(e.dueOn),
|
|
162
163
|
isDisputed: e.isDisputed,
|
|
163
164
|
balanceDueAmount: d.fromDto(e.balanceDueAmount),
|
|
164
165
|
creditNotes: e.creditNotes.map((e) => ({
|
|
165
166
|
uuid: e.uuid,
|
|
166
|
-
finalizedOn:
|
|
167
|
+
finalizedOn: f.fromDto(e.finalizedOn),
|
|
167
168
|
grossAmount: d.fromDto(e.grossAmount),
|
|
168
169
|
sequence: e.sequence
|
|
169
170
|
})),
|
|
@@ -173,7 +174,7 @@ var z = class e {
|
|
|
173
174
|
payments: e.payments.map((e) => ({
|
|
174
175
|
uuid: e.uuid,
|
|
175
176
|
amount: d.fromDto(e.amount),
|
|
176
|
-
date:
|
|
177
|
+
date: f.fromDto(e.date)
|
|
177
178
|
})),
|
|
178
179
|
sequence: e.sequence,
|
|
179
180
|
settlementStatus: e.settlementStatus,
|
|
@@ -189,7 +190,7 @@ var z = class e {
|
|
|
189
190
|
uuid: e.uuid,
|
|
190
191
|
fee: {
|
|
191
192
|
amount: e.fee.amount === null ? null : d.fromDto(e.fee.amount),
|
|
192
|
-
percentage:
|
|
193
|
+
percentage: p.fromNullableDto(e.fee.percentage),
|
|
193
194
|
type: e.fee.type
|
|
194
195
|
},
|
|
195
196
|
offsetDays: e.offsetDays,
|