@wisemen/wise-invoicing-web 0.0.6 → 0.1.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.
Files changed (63) hide show
  1. package/dist/{BillingDocumentDetailViewDataProvider-BGE-p_FL.js → BillingDocumentDetailViewDataProvider-BemnzVNY.js} +463 -469
  2. package/dist/{BillingDocumentPdf-Ca81NkZq.js → BillingDocumentPdf-5vi2pgRM.js} +2 -2
  3. package/dist/{CreditNoteDetailViewDataProvider-b5dY_4mH.js → CreditNoteDetailViewDataProvider-BuY9ELoK.js} +68 -68
  4. package/dist/{CreditNotePdfViewDataProvider-C2QqCdQ7.js → CreditNotePdfViewDataProvider-DI4eQkpM.js} +2 -2
  5. package/dist/{CustomFieldValueText-ne5yy02J.js → CustomFieldValueText-BGbQwhON.js} +1 -1
  6. package/dist/{DunningCaseDetailViewDataProvider-jsh-LlGx.js → DunningCaseDetailViewDataProvider-DKuuysqS.js} +4 -4
  7. package/dist/{DunningCaseOverviewView-WbXalMt6.js → DunningCaseOverviewView-aWttPLrC.js} +4 -4
  8. package/dist/DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js +490 -0
  9. package/dist/{DunningCaseSendDialog-D7jAZ8yT.js → DunningCaseSendDialog-DyvA5R1p.js} +2 -2
  10. package/dist/{InvoiceDetailViewDataProvider-BAVdcJay.js → InvoiceDetailViewDataProvider-D6E7YVV1.js} +411 -411
  11. package/dist/{InvoiceOverviewViewDataProvider-BT9cuQXw.js → InvoiceOverviewViewDataProvider-i8tXATJE.js} +47 -47
  12. package/dist/{InvoicePdfView-BpIaYdZX.js → InvoicePdfView-C-7m2g3b.js} +1 -1
  13. package/dist/InvoicePdfViewDataProvider-BPiK110e.js +22 -0
  14. package/dist/InvoicePublicPdfViewDataProvider-BJe-8hC5.js +45 -0
  15. package/dist/{IssuerSettingsViewDataProvider-Bs4rEES2.js → IssuerSettingsViewDataProvider-COqHGUE6.js} +1 -1
  16. package/dist/{ReminderSettingsViewDataProvider-D4bRLLXx.js → ReminderSettingsViewDataProvider-Dys4bUU7.js} +2 -2
  17. package/dist/{address.transformer-B8C0pwT1.js → address.transformer-jGddczLV.js} +2 -73
  18. package/dist/{billingDocumentDetail.transformer-DIKAl4_L.js → billingDocumentDetail.transformer-BBn9R_cx.js} +32 -42
  19. package/dist/composables/invoicingConfig.composable.d.ts +8 -1
  20. package/dist/{creditNoteDetail.query-DHP69UiB.js → creditNoteDetail.query-BcPsB96h.js} +11 -11
  21. package/dist/customFieldValue.util-BwsX8exl.js +16 -0
  22. package/dist/{dist-PErDVE6-.js → dist-BBjpqvUl.js} +2 -2
  23. package/dist/dist-BFx8U4Su.js +72 -0
  24. package/dist/{dist-YTXTCfo1.js → dist-boJIIxnT.js} +1 -1
  25. package/dist/{i18n.lib-BGcQ_OBF.js → i18n.lib-C6eb-F-e.js} +28 -4
  26. package/dist/index.d.ts +30 -1
  27. package/dist/index.js +186 -185
  28. package/dist/instant.transformer-KmBsH3E9.js +18 -0
  29. package/dist/{invoice.service-DG5eacZC.js → invoice.service-Bb8VqQvc.js} +38 -32
  30. package/dist/{invoiceDeliveryStatus.util-CX-IdqAu.js → invoiceDeliveryStatus.util-BPkGCQM6.js} +2 -2
  31. package/dist/{invoiceDetail.query-C_IMGjOX.js → invoiceDetail.query-Cek8nyaw.js} +1 -1
  32. package/dist/invoicingConfig.composable-DTmad1fe.js +61 -0
  33. package/dist/{issuerSettings.query-6wnSPphB.js → issuerSettings.query-Bvz-Oj5D.js} +13 -12
  34. package/dist/libs/i18n.lib.d.ts +24 -0
  35. package/dist/locales/en-US.json.d.ts +14 -2
  36. package/dist/locales/nl-BE.json.d.ts +14 -2
  37. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +49 -0
  38. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +8 -0
  39. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.spec.d.ts +1 -0
  40. package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +27 -0
  41. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +1 -1
  42. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +2 -2
  43. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +2 -2
  44. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfHeader.vue.d.ts +7 -0
  45. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +10 -16
  46. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTotals.vue.d.ts +7 -0
  47. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +15 -6
  48. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +2 -2
  49. package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +1 -1
  50. package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +1 -1
  51. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +4 -0
  52. package/dist/percentage.util-Bl78kSSk.js +35 -0
  53. package/dist/{plainDate.transformer-Dfe5r84P.js → plainDate.transformer-BxvJpJOv.js} +1 -32
  54. package/dist/{reminderConfig.query-hmDNKreg.js → reminderConfig.query-DsJNqqi7.js} +8 -7
  55. package/dist/style.css +1 -1
  56. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +432 -432
  57. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +36 -36
  58. package/package.json +1 -1
  59. package/dist/DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js +0 -239
  60. package/dist/InvoicePdfViewDataProvider-DGCnmNE-.js +0 -21
  61. package/dist/InvoicePublicPdfViewDataProvider-KV0_hKUI.js +0 -44
  62. package/dist/download.util-PjaUQR6r.js +0 -9
  63. package/dist/invoicingConfig.composable-Kad_HHx_.js +0 -60
@@ -1,7 +1,7 @@
1
1
  import "./api.util-BCSgCfpS.js";
2
2
  import { g as e, h as t } from "./documentTitle.composable-4ApFl9TZ.js";
3
- import { n } from "./invoicingConfig.composable-Kad_HHx_.js";
4
- import { r } from "./address.transformer-B8C0pwT1.js";
3
+ import { n } from "./invoicingConfig.composable-DTmad1fe.js";
4
+ import { n as r } from "./address.transformer-jGddczLV.js";
5
5
  import { Z as i } from "./dist-D9lp7NDv.js";
6
6
  import { useI18n as a } from "vue-i18n";
7
7
  import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, openBlock as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
@@ -1,14 +1,14 @@
1
- import { t as e } from "./i18n.lib-BGcQ_OBF.js";
1
+ import { t as e } from "./i18n.lib-C6eb-F-e.js";
2
2
  import "./api.util-BCSgCfpS.js";
3
3
  import { h as t, r as n } from "./documentTitle.composable-4ApFl9TZ.js";
4
- import { t as r } from "./download.util-PjaUQR6r.js";
5
- import { r as i } from "./address.transformer-B8C0pwT1.js";
4
+ import { n as r } from "./customFieldValue.util-BwsX8exl.js";
5
+ import { n as i } from "./address.transformer-jGddczLV.js";
6
6
  import { D as a, G as o, I as s, O as c, R as l, g as u, h as d, i as f, j as p, l as m, tt as h, w as g } from "./dist-D9lp7NDv.js";
7
- import { n as _, t as v } from "./dist-YTXTCfo1.js";
8
- import { i as ee, r as y } from "./CustomFieldValueText-ne5yy02J.js";
9
- import { t as b } from "./formango.util-D5c2ql--.js";
10
- import { n as x, r as S, t as C } from "./creditNoteDetail.query-DHP69UiB.js";
11
- import { C as te, S as ne, T as w, _ as T, a as E, b as D, c as O, d as k, f as A, g as re, h as ie, i as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, v as pe, w as me, x as he, y as ge } from "./BillingDocumentDetailViewDataProvider-BGE-p_FL.js";
7
+ import { n as _, t as ee } from "./dist-boJIIxnT.js";
8
+ import { i as te, r as v } from "./CustomFieldValueText-BGbQwhON.js";
9
+ import { t as y } from "./formango.util-D5c2ql--.js";
10
+ import { n as b, r as x, t as S } from "./creditNoteDetail.query-BcPsB96h.js";
11
+ import { C, S as ne, _ as w, a as T, b as re, c as E, d as D, f as O, g as k, h as ie, i as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe, v as me, w as A, x as he, y as ge } from "./BillingDocumentDetailViewDataProvider-BemnzVNY.js";
12
12
  import { useRouter as _e } from "vue-router";
13
13
  import ve, { z as j } from "zod";
14
14
  import { useI18n as M } from "vue-i18n";
@@ -19,7 +19,7 @@ import { useForm as Z } from "formango";
19
19
  //#region src/modules/credit-note/api/mutations/creditNoteUpdate.mutation.ts
20
20
  function Q() {
21
21
  return W({
22
- queryFn: (e) => x.update(e.params.creditNoteUuid, e.body),
22
+ queryFn: (e) => b.update(e.params.creditNoteUuid, e.body),
23
23
  queryKeysToInvalidate: {
24
24
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
25
25
  invoiceIndex: {}
@@ -29,7 +29,7 @@ function Q() {
29
29
  //#endregion
30
30
  //#region src/modules/credit-note/models/update/creditNoteUpdateForm.model.ts
31
31
  var Ie = j.object({
32
- issuedOn: v,
32
+ issuedOn: ee,
33
33
  externalRemarks: j.string().nullable(),
34
34
  poNumber: j.string().nullable(),
35
35
  subject: j.string().nullable()
@@ -44,7 +44,7 @@ var Ie = j.object({
44
44
  //#region src/modules/credit-note/api/mutations/creditNoteFinalize.mutation.ts
45
45
  function Re() {
46
46
  return W({
47
- queryFn: (e) => x.finalize(e.params.creditNoteUuid),
47
+ queryFn: (e) => b.finalize(e.params.creditNoteUuid),
48
48
  queryKeysToInvalidate: {
49
49
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
50
50
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -56,7 +56,7 @@ function Re() {
56
56
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.ts
57
57
  function ze() {
58
58
  return W({
59
- queryFn: (e) => x.markAsDraft(e.params.creditNoteUuid),
59
+ queryFn: (e) => b.markAsDraft(e.params.creditNoteUuid),
60
60
  queryKeysToInvalidate: {
61
61
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
62
62
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -68,7 +68,7 @@ function ze() {
68
68
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.ts
69
69
  function Be() {
70
70
  return W({
71
- queryFn: (e) => x.markAsReady(e.params.creditNoteUuid),
71
+ queryFn: (e) => b.markAsReady(e.params.creditNoteUuid),
72
72
  queryKeysToInvalidate: {
73
73
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
74
74
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -80,7 +80,7 @@ function Be() {
80
80
  //#region src/modules/credit-note/api/mutations/creditNoteSend.mutation.ts
81
81
  function Ve() {
82
82
  return W({
83
- queryFn: (e) => x.send(e.params.creditNoteUuid),
83
+ queryFn: (e) => b.send(e.params.creditNoteUuid),
84
84
  queryKeysToInvalidate: { creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid } }
85
85
  });
86
86
  }
@@ -88,7 +88,7 @@ function Ve() {
88
88
  //#region src/modules/credit-note/api/mutations/creditNoteDelete.mutation.ts
89
89
  function He() {
90
90
  return W({
91
- queryFn: (e) => x.delete(e.params.creditNoteUuid),
91
+ queryFn: (e) => b.delete(e.params.creditNoteUuid),
92
92
  queryKeysToInvalidate: { invoiceIndex: {} }
93
93
  });
94
94
  }
@@ -133,11 +133,11 @@ var Ue = /* @__PURE__ */ L({
133
133
  //#endregion
134
134
  //#region src/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.ts
135
135
  function We(e) {
136
- let n = M(), i = X(), o = Fe(), s = o.create(Ue), l = o.create(he), d = Re(), p = ze(), m = Be(), _ = Ve(), { shouldSkipConfirmation: v } = ne(), y = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), b = N(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
137
- async function S() {
136
+ let n = M(), i = X(), o = Fe(), s = o.create(Ue), l = o.create(re), d = Re(), p = ze(), m = Be(), _ = Ve(), { shouldSkipConfirmation: ee } = he(), v = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), y = N(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
137
+ async function x() {
138
138
  let t = await m.execute({ params: {
139
139
  creditNoteUuid: e.value.uuid,
140
- invoiceUuid: y.value
140
+ invoiceUuid: v.value
141
141
  } });
142
142
  if (t.isErr()) {
143
143
  i.apiError(t.error);
@@ -145,27 +145,27 @@ function We(e) {
145
145
  }
146
146
  i.show({ message: n.t("wise_invoicing.credit_note.mark_as_ready.success") });
147
147
  }
148
- async function C() {
148
+ async function S() {
149
149
  let t = await d.execute({ params: {
150
150
  creditNoteUuid: e.value.uuid,
151
- invoiceUuid: y.value
151
+ invoiceUuid: v.value
152
152
  } });
153
153
  return t.isErr() ? (i.apiError(t.error), !1) : (i.show({ message: n.t("wise_invoicing.credit_note.finalize.success") }), !0);
154
154
  }
155
- async function w() {
156
- if (v.value) {
157
- await C();
155
+ async function C() {
156
+ if (ee.value) {
157
+ await S();
158
158
  return;
159
159
  }
160
160
  await l.open({
161
161
  billingDocumentType: "credit_note",
162
- onConfirm: C
162
+ onConfirm: S
163
163
  });
164
164
  }
165
- async function T() {
165
+ async function w() {
166
166
  let t = await p.execute({ params: {
167
167
  creditNoteUuid: e.value.uuid,
168
- invoiceUuid: y.value
168
+ invoiceUuid: v.value
169
169
  } });
170
170
  if (t.isErr()) {
171
171
  i.apiError(t.error);
@@ -173,7 +173,7 @@ function We(e) {
173
173
  }
174
174
  i.show({ message: n.t("wise_invoicing.credit_note.mark_as_draft.success") });
175
175
  }
176
- async function E() {
176
+ async function T() {
177
177
  let t = await _.execute({ params: { creditNoteUuid: e.value.uuid } });
178
178
  if (t.isErr()) {
179
179
  i.apiError(t.error);
@@ -181,11 +181,11 @@ function We(e) {
181
181
  }
182
182
  i.show({ message: n.t("wise_invoicing.credit_note.send.success") });
183
183
  }
184
- async function D() {
184
+ async function E() {
185
185
  await s.open({ creditNote: e.value });
186
186
  }
187
- async function O() {
188
- let t = await x.getByUuid(e.value.uuid);
187
+ async function D() {
188
+ let t = await b.getByUuid(e.value.uuid);
189
189
  if (t.isErr()) {
190
190
  i.apiError(t.error);
191
191
  return;
@@ -195,10 +195,10 @@ function We(e) {
195
195
  i.show({ message: n.t("wise_invoicing.invoice.download_pdf.generation_in_progress") });
196
196
  return;
197
197
  }
198
- let o = await te.getDownloadUrl(a.uuid);
198
+ let o = await ne.getDownloadUrl(a.uuid);
199
199
  o !== null && r.downloadUrl(o, a.name);
200
200
  }
201
- let k = N(() => [
201
+ let O = N(() => [
202
202
  {
203
203
  isLoading: _.isLoading.value,
204
204
  iconLeft: h,
@@ -206,7 +206,7 @@ function We(e) {
206
206
  label: n.t("wise_invoicing.invoice.detail.actions.send"),
207
207
  variant: "primary",
208
208
  visible: e.value.status === t.FINALIZED,
209
- onClick: E
209
+ onClick: T
210
210
  },
211
211
  {
212
212
  isLoading: m.isLoading.value,
@@ -214,7 +214,7 @@ function We(e) {
214
214
  key: "markAsReady",
215
215
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
216
216
  visible: e.value.status === t.DRAFT,
217
- onClick: S
217
+ onClick: x
218
218
  },
219
219
  {
220
220
  isLoading: d.isLoading.value,
@@ -222,27 +222,27 @@ function We(e) {
222
222
  key: "finalize",
223
223
  label: n.t("wise_invoicing.invoice.detail.actions.finalize"),
224
224
  visible: e.value.status === t.READY,
225
- onClick: w
225
+ onClick: C
226
226
  }
227
- ].filter((e) => e.visible)), A = N(() => {
227
+ ].filter((e) => e.visible)), k = N(() => {
228
228
  let r = [{
229
229
  icon: u,
230
230
  key: "downloadPdf",
231
231
  label: n.t("wise_invoicing.common.download_pdf"),
232
- visible: b.value,
233
- onSelect: O
232
+ visible: y.value,
233
+ onSelect: D
234
234
  }, {
235
235
  icon: c,
236
236
  key: "backToDraft",
237
237
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
238
238
  visible: e.value.status === t.READY,
239
- onSelect: T
239
+ onSelect: w
240
240
  }], i = [{
241
241
  icon: a,
242
242
  key: "delete",
243
243
  label: n.t("wise_invoicing.credit_note.detail.actions.delete"),
244
- visible: ee.isEditable(e.value.status),
245
- onSelect: D
244
+ visible: te.isEditable(e.value.status),
245
+ onSelect: E
246
246
  }];
247
247
  return [{
248
248
  items: r.filter((e) => e.visible),
@@ -253,9 +253,9 @@ function We(e) {
253
253
  }].filter((e) => e.items.length > 0);
254
254
  });
255
255
  return {
256
- isActionMenuVisible: N(() => A.value.length > 0),
257
- menuGroups: A,
258
- primaryButtons: k
256
+ isActionMenuVisible: N(() => k.value.length > 0),
257
+ menuGroups: k,
258
+ primaryButtons: O
259
259
  };
260
260
  }
261
261
  //#endregion
@@ -268,13 +268,13 @@ var Ge = /* @__PURE__ */ L({
268
268
  },
269
269
  emits: ["togglePdfView"],
270
270
  setup(e, { emit: n }) {
271
- let r = e, i = n, a = M(), s = X(), c = Q(), { menuGroups: l, primaryButtons: u } = We(N(() => r.creditNote)), d = N(() => new me(r.creditNote.status)), f = N(() => d.value.color), p = N(() => a.t(d.value.translationKey)), m = N(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), h = Z({
271
+ let r = e, i = n, a = M(), s = X(), c = Q(), { menuGroups: l, primaryButtons: u } = We(N(() => r.creditNote)), d = N(() => new C(r.creditNote.status)), f = N(() => d.value.color), p = N(() => a.t(d.value.translationKey)), m = N(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), h = Z({
272
272
  initialState: { subject: r.creditNote.subject },
273
273
  schema: Le,
274
274
  onSubmit: async (e) => {
275
275
  let t = await c.execute({
276
276
  body: {
277
- ...S.toForm(r.creditNote),
277
+ ...x.toForm(r.creditNote),
278
278
  subject: e.subject
279
279
  },
280
280
  params: { creditNoteUuid: r.creditNote.uuid }
@@ -282,11 +282,11 @@ var Ge = /* @__PURE__ */ L({
282
282
  t.isErr() && s.apiError(t.error);
283
283
  }
284
284
  }), g = h.register("subject");
285
- return w({ form: h }), (e, t) => (B(), P(H(K), {
285
+ return A({ form: h }), (e, t) => (B(), P(H(K), {
286
286
  form: H(h),
287
287
  "prompt-on-unsaved-changes": !1
288
288
  }, {
289
- default: U(() => [I(ge, {
289
+ default: U(() => [I(me, {
290
290
  "fallback-title": H(a).t("wise_invoicing.credit_note.detail.fallback_title"),
291
291
  "is-disabled": m.value,
292
292
  sequence: r.creditNote.sequence,
@@ -296,7 +296,7 @@ var Ge = /* @__PURE__ */ L({
296
296
  "subject-field": H(g),
297
297
  "subject-placeholder": H(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
298
298
  }, {
299
- actions: U(() => [I(pe, {
299
+ actions: U(() => [I(w, {
300
300
  "is-pdf-view-active": r.isPdfViewActive,
301
301
  "menu-groups": H(l),
302
302
  "primary-buttons": H(u),
@@ -310,7 +310,7 @@ var Ge = /* @__PURE__ */ L({
310
310
  gap: "xs",
311
311
  class: "flex-wrap items-start"
312
312
  }, {
313
- default: U(() => [r.creditNote.isOverdue ? (B(), P(D, { key: 0 })) : F("", !0)]),
313
+ default: U(() => [r.creditNote.isOverdue ? (B(), P(ge, { key: 0 })) : F("", !0)]),
314
314
  _: 1
315
315
  })]),
316
316
  _: 1
@@ -332,7 +332,7 @@ var Ge = /* @__PURE__ */ L({
332
332
  props: { creditNote: {} },
333
333
  setup(e) {
334
334
  let n = e, r = M(), i = X(), a = Q(), o = Z({
335
- initialState: N(() => S.toForm(n.creditNote)),
335
+ initialState: N(() => x.toForm(n.creditNote)),
336
336
  schema: Ie,
337
337
  onSubmit: async (e) => {
338
338
  let t = await a.execute({
@@ -342,11 +342,11 @@ var Ge = /* @__PURE__ */ L({
342
342
  t.isErr() && i.apiError(t.error);
343
343
  }
344
344
  }), s = o.register("externalRemarks"), c = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
345
- return w({ form: o }), (e, t) => (B(), P(H(K), {
345
+ return A({ form: o }), (e, t) => (B(), P(H(K), {
346
346
  form: H(o),
347
347
  "prompt-on-unsaved-changes": !1
348
348
  }, {
349
- default: U(() => [I(T, {
349
+ default: U(() => [I(k, {
350
350
  "is-disabled": c.value,
351
351
  placeholder: H(r).t("wise_invoicing.invoice.detail.remarks.placeholder"),
352
352
  "remarks-field": H(s),
@@ -366,7 +366,7 @@ var Ge = /* @__PURE__ */ L({
366
366
  function qe(e) {
367
367
  return we("creditNoteActivityLogIndex", {
368
368
  params: { creditNoteUuid: e },
369
- queryFn: (t) => x.getActivityLogs(e.value, { pagination: t })
369
+ queryFn: (t) => b.getActivityLogs(e.value, { pagination: t })
370
370
  });
371
371
  }
372
372
  //#endregion
@@ -379,7 +379,7 @@ var Je = /* @__PURE__ */ L({
379
379
  data: [],
380
380
  meta: { next: null }
381
381
  }).data);
382
- return (e, c) => (B(), P(re, {
382
+ return (e, c) => (B(), P(ie, {
383
383
  "current-billing-document": {
384
384
  role: H(n).CREDIT_NOTE,
385
385
  uuid: t.creditNote.uuid
@@ -497,7 +497,7 @@ var Je = /* @__PURE__ */ L({
497
497
  },
498
498
  setup(e) {
499
499
  let n = e, r = M(), i = X(), a = Q(), o = Z({
500
- initialState: N(() => S.toForm(n.creditNote)),
500
+ initialState: N(() => x.toForm(n.creditNote)),
501
501
  schema: Ie,
502
502
  onSubmit: async (e) => {
503
503
  let t = await a.execute({
@@ -507,7 +507,7 @@ var Je = /* @__PURE__ */ L({
507
507
  t.isErr() && i.apiError(t.error);
508
508
  }
509
509
  }), c = o.register("issuedOn"), l = o.register("poNumber"), u = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
510
- return w({ form: o }), (e, t) => (B(), P(H(K), {
510
+ return A({ form: o }), (e, t) => (B(), P(H(K), {
511
511
  form: H(o),
512
512
  "prompt-on-unsaved-changes": !1
513
513
  }, {
@@ -537,7 +537,7 @@ var Je = /* @__PURE__ */ L({
537
537
  "has-error": H(l).errors.value.length > 0,
538
538
  label: H(r).t("wise_invoicing.invoice.detail.header.po_number")
539
539
  }, {
540
- default: U(() => [I(H(Pe), R(H(b)(H(l)), {
540
+ default: U(() => [I(H(Pe), R(H(y)(H(l)), {
541
541
  "is-disabled": u.value,
542
542
  label: null,
543
543
  class: "w-full"
@@ -563,14 +563,14 @@ var Je = /* @__PURE__ */ L({
563
563
  "has-error": H(c).errors.value.length > 0,
564
564
  label: H(r).t("wise_invoicing.invoice.detail.header.invoice_date")
565
565
  }, {
566
- default: U(() => [I(H(Oe), R({ "is-disabled": u.value }, H(b)(H(c))), null, 16, ["is-disabled"])]),
566
+ default: U(() => [I(H(Oe), R({ "is-disabled": u.value }, H(y)(H(c))), null, 16, ["is-disabled"])]),
567
567
  _: 1
568
568
  }, 8, [
569
569
  "icon",
570
570
  "has-error",
571
571
  "label"
572
572
  ]),
573
- I(ie, {
573
+ I(oe, {
574
574
  definitions: n.customFieldDefinitions,
575
575
  values: n.creditNote.customFields
576
576
  }, null, 8, ["definitions", "values"])
@@ -580,7 +580,7 @@ var Je = /* @__PURE__ */ L({
580
580
  _: 1
581
581
  }),
582
582
  I(H(J)),
583
- I(oe, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
583
+ I(le, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
584
584
  I(Ye, {
585
585
  "is-default-open": !0,
586
586
  name: n.creditNote.customer.name ?? "-",
@@ -615,7 +615,7 @@ var Je = /* @__PURE__ */ L({
615
615
  },
616
616
  setup(e) {
617
617
  let t = e, n = M(), r = _(), i = N(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
618
- return (e, n) => (B(), P(le, {
618
+ return (e, n) => (B(), P(O, {
619
619
  "billing-document": t.creditNote,
620
620
  "updated-footer": i.value
621
621
  }, {
@@ -632,7 +632,7 @@ var Je = /* @__PURE__ */ L({
632
632
  //#region src/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.ts
633
633
  function Qe() {
634
634
  return W({
635
- queryFn: (e) => x.updateLines(e.params.creditNoteUuid, e.body),
635
+ queryFn: (e) => b.updateLines(e.params.creditNoteUuid, e.body),
636
636
  queryKeysToInvalidate: {
637
637
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
638
638
  invoiceIndex: {}
@@ -657,12 +657,12 @@ var $e = /* @__PURE__ */ L({
657
657
  params: { creditNoteUuid: t.creditNote.uuid }
658
658
  })
659
659
  });
660
- return A(i), (e, n) => (B(), P(ce, null, {
660
+ return D(i), (e, n) => (B(), P(ce, null, {
661
661
  default: U(() => [
662
662
  I(de, { "show-apply-discount": !1 }),
663
- I(O),
664
- I(E, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
665
- I(k)
663
+ I(E),
664
+ I(T, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
665
+ I(pe)
666
666
  ]),
667
667
  _: 1
668
668
  }));
@@ -729,7 +729,7 @@ var $e = /* @__PURE__ */ L({
729
729
  let t = e, n = M(), r = N(() => [{
730
730
  label: n.t("wise_invoicing.invoice.overview.title"),
731
731
  to: { name: "invoicing-invoice-overview" }
732
- }]), i = C(N(() => t.creditNoteUuid)), a = y();
732
+ }]), i = S(N(() => t.creditNoteUuid)), a = v();
733
733
  return (e, t) => (B(), P(fe, {
734
734
  "custom-field-definitions-query": H(a),
735
735
  query: H(i),
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./DataProvider-Dj34ljUX.js";
2
- import { t } from "./InvoicePdfView-BpIaYdZX.js";
3
- import { t as n } from "./creditNoteDetail.query-DHP69UiB.js";
2
+ import { t } from "./InvoicePdfView-C-7m2g3b.js";
3
+ import { t as n } from "./creditNoteDetail.query-BcPsB96h.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,7 +1,7 @@
1
1
  import { I as e, t } from "./api.util-BCSgCfpS.js";
2
2
  import { h as n, m as r, s as i } from "./documentTitle.composable-4ApFl9TZ.js";
3
3
  import { r as a } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { n as o } from "./dist-YTXTCfo1.js";
4
+ import { n as o } from "./dist-boJIIxnT.js";
5
5
  import { useI18n as s } from "vue-i18n";
6
6
  import { computed as c, createBlock as l, defineComponent as u, normalizeClass as d, openBlock as f, unref as p } from "vue";
7
7
  import { useQuery as m } from "@wisemen/vue-core-api-utils";
@@ -2,11 +2,11 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import "./api.util-BCSgCfpS.js";
3
3
  import { b as t, t as n } from "./documentTitle.composable-4ApFl9TZ.js";
4
4
  import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
- import { n as i } from "./invoicingConfig.composable-Kad_HHx_.js";
6
- import { n as a } from "./reminderConfig.query-hmDNKreg.js";
5
+ import { n as i } from "./invoicingConfig.composable-DTmad1fe.js";
6
+ import { n as a } from "./reminderConfig.query-DsJNqqi7.js";
7
7
  import { Q as o, R as ee, U as s, q as te, tt as c, x as l } from "./dist-D9lp7NDv.js";
8
- import { a as u, i as ne, n as re, r as ie, t as ae } from "./DunningCaseSendDialog-D7jAZ8yT.js";
9
- import { n as oe } from "./dist-YTXTCfo1.js";
8
+ import { a as u, i as ne, n as re, r as ie, t as ae } from "./DunningCaseSendDialog-DyvA5R1p.js";
9
+ import { n as oe } from "./dist-boJIIxnT.js";
10
10
  import { t as d } from "./DataProvider-Dj34ljUX.js";
11
11
  import { useViewModels as se } from "@wisemen/vue-core-actions";
12
12
  import { RouterLink as ce, useRouter as le } from "vue-router";
@@ -2,11 +2,11 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { t } from "./documentTitle.composable-4ApFl9TZ.js";
3
3
  import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
4
  import { t as r } from "./search.composable-BCtYqudV.js";
5
- import { n as i } from "./invoicingConfig.composable-Kad_HHx_.js";
6
- import { n as a, r as o } from "./reminderConfig.query-hmDNKreg.js";
5
+ import { n as i } from "./invoicingConfig.composable-DTmad1fe.js";
6
+ import { n as a, r as o } from "./reminderConfig.query-DsJNqqi7.js";
7
7
  import { $ as s, N as c, S as l, c as u, k as d, l as f, tt as p } from "./dist-D9lp7NDv.js";
8
- import { i as m, o as h, r as g, t as _ } from "./DunningCaseSendDialog-D7jAZ8yT.js";
9
- import { f as v, i as y, n as ee, o as te, r as b, s as ne } from "./dist-PErDVE6-.js";
8
+ import { i as m, o as h, r as g, t as _ } from "./DunningCaseSendDialog-DyvA5R1p.js";
9
+ import { f as v, i as y, n as ee, o as te, r as b, s as ne } from "./dist-BBjpqvUl.js";
10
10
  import { createAction as x } from "@wisemen/vue-core-actions";
11
11
  import { useRouter as S } from "vue-router";
12
12
  import { z as C } from "zod";