@wisemen/wise-invoicing-web 0.3.0 → 0.4.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 (68) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js → ApprovalReminderSettingsViewDataProvider-IuReavOR.js} +3 -3
  2. package/dist/{BillingDocumentDetailViewDataProvider-TJUwMhtn.js → BillingDocumentDetailViewDataProvider-B3I6UIKY.js} +2201 -1728
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-PU9Ldfhs.js → BillingDocumentPdf-rFqmLUPy.js} +226 -219
  5. package/dist/{CreditNoteDetailViewDataProvider-DOPmal5D.js → CreditNoteDetailViewDataProvider-CQRnG2Fz.js} +42 -42
  6. package/dist/{CreditNotePdfViewDataProvider-BH7MaReQ.js → CreditNotePdfViewDataProvider-RytwPWH5.js} +2 -2
  7. package/dist/{CustomFieldValueText-BjRVovZL.js → CustomFieldValueText-DA0aPKwC.js} +2 -2
  8. package/dist/{DunningCaseDetailViewDataProvider-CW8ijY3H.js → DunningCaseDetailViewDataProvider-BRYbYgTw.js} +65 -65
  9. package/dist/{DunningCaseOverviewView-Cfo-4VIw.js → DunningCaseOverviewView-D0vScVF1.js} +125 -125
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-Dr-CS_VQ.js → DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js} +2 -2
  11. package/dist/{DunningCaseSendDialog-BYFXJYMM.js → DunningCaseSendDialog-CV66_tMv.js} +8 -8
  12. package/dist/{InvoiceApprovalOutOfSyncIndicator-CP2GLaeh.js → InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js} +2 -2
  13. package/dist/{InvoiceApprovalOverviewView-Cjdu9iZC.js → InvoiceApprovalOverviewView-CcMqr2jH.js} +213 -213
  14. package/dist/{InvoiceApprovalStatusBadge-CcX8agTF.js → InvoiceApprovalStatusBadge-BJ3Q18bf.js} +4 -4
  15. package/dist/{InvoiceApproveDialogDataProvider-4wNAetBn.js → InvoiceApproveDialogDataProvider-DaCEHgs0.js} +7 -7
  16. package/dist/{InvoiceDetailViewDataProvider-C9O3hXGo.js → InvoiceDetailViewDataProvider-B5uZY8Qy.js} +47 -47
  17. package/dist/{InvoiceOverviewViewDataProvider-DBdw7FvZ.js → InvoiceOverviewViewDataProvider-BrgmweRE.js} +57 -57
  18. package/dist/{InvoicePdfView-CvU9bRVd.js → InvoicePdfView-CPEX7E9W.js} +1 -1
  19. package/dist/{InvoicePdfViewDataProvider-CFjHQ58K.js → InvoicePdfViewDataProvider-T4-8A2OD.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-DDv-LdBU.js → InvoicePublicPdfViewDataProvider-BkHZoPSZ.js} +3 -3
  21. package/dist/{InvoicePublicProFormaPdfViewDataProvider-BTjJnELb.js → InvoicePublicProFormaPdfViewDataProvider-CfkArXbC.js} +3 -3
  22. package/dist/{InvoicingFileUploadProvider-Kcq7kSSt.js → InvoicingFileUploadProvider-BLBjPKqx.js} +1 -1
  23. package/dist/{IssuerSettingsViewDataProvider-BuSIVnIl.js → IssuerSettingsViewDataProvider-BStn0jFI.js} +2 -2
  24. package/dist/{ReminderSettingsViewDataProvider-CH7gSXnj.js → ReminderSettingsViewDataProvider-CjX7afDs.js} +3 -3
  25. package/dist/{api.util-CkIRZS3h.js → api.util-D6m6OY3_.js} +15 -6
  26. package/dist/{billingDocumentDetail.transformer-Bfd8geNo.js → billingDocumentDetail.transformer-Da-Nt4bI.js} +37 -29
  27. package/dist/client/index.d.ts +1 -1
  28. package/dist/client/types.gen.d.ts +16 -2
  29. package/dist/client/zod.gen.d.ts +28 -0
  30. package/dist/{creditNoteDetail.query-tLnfqsEB.js → creditNoteDetail.query-Yb8TdZNm.js} +22 -18
  31. package/dist/{dist-D5agTXFI.js → dist-BpDuRYDT.js} +132 -132
  32. package/dist/{dist-boJIIxnT.js → dist-Cdbpkd3Y.js} +1 -1
  33. package/dist/{dist-BD7Allff.js → dist-DCbLgB6Y.js} +182 -102
  34. package/dist/{i18n.lib--mzprLMR.js → i18n.lib-CKs3ExEl.js} +28 -0
  35. package/dist/index.d.ts +28 -0
  36. package/dist/index.js +33 -32
  37. package/dist/{invoice.service-B1w16_Md.js → invoice.service-DWDl9XRh.js} +214 -209
  38. package/dist/{invoiceApproval.service-BHAJmFkU.js → invoiceApproval.service-Fwlxgd9o.js} +2 -2
  39. package/dist/{invoiceApprovalStatus.util-DohOKR4q.js → invoiceApprovalStatus.util-q-zHLdFV.js} +1 -1
  40. package/dist/{invoiceCustomer.service-DpVfpQUD.js → invoiceCustomer.service-DOexR54S.js} +2 -2
  41. package/dist/{invoiceDetail.query-CfyNSXLS.js → invoiceDetail.query-B5w0Vlsy.js} +1 -1
  42. package/dist/{invoiceIndexCache.util-jHsrFwcA.js → invoiceIndexCache.util-CUlp4R7R.js} +2 -2
  43. package/dist/{invoicingConfig.composable-COn1rKRf.js → invoicingConfig.composable-DjFexycc.js} +2 -2
  44. package/dist/{issuerSettings.query-CDFk2GiP.js → issuerSettings.query-BHuLjV9P.js} +1 -1
  45. package/dist/libs/i18n.lib.d.ts +28 -0
  46. package/dist/locales/en-US.json.d.ts +14 -0
  47. package/dist/locales/nl-BE.json.d.ts +14 -0
  48. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
  49. package/dist/models/billing-document/billingDocumentLineGroup.util.d.ts +15 -0
  50. package/dist/models/billing-document/billingDocumentLineGroup.util.spec.d.ts +1 -0
  51. package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +1 -0
  52. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
  53. package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +4 -1
  54. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +5 -0
  55. package/dist/{reminderConfig.query-DSO0ekC_.js → reminderConfig.query-C4J6m4ER.js} +1 -1
  56. package/dist/style.css +1 -1
  57. package/dist/types/apiError.type.d.ts +2 -2
  58. package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +1 -0
  59. package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +3 -0
  60. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +5 -2
  61. package/dist/ui/billing-document/table/BillingDocumentLineItemsTreeIndent.vue.d.ts +17 -0
  62. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +78 -18
  63. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +14 -4
  64. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +6 -0
  65. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +8 -4
  66. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +16 -3
  67. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +163 -26
  68. package/package.json +2 -2
@@ -1,23 +1,23 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import "./api.util-CkIRZS3h.js";
2
+ import "./api.util-D6m6OY3_.js";
3
3
  import { T as t, _ as n, a as r, b as i, c as a, d as o, k as s, l as c, o as l, t as u, u as d, v as f, x as p, y as m } from "./documentTitle.composable-CRJjS6p-.js";
4
4
  import { n as h, r as g, t as _ } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
5
  import { t as v } from "./search.composable-CU9OpyUB.js";
6
6
  import { t as y } from "./src-DUSgQTKr.js";
7
- import { t as b } from "./invoice.service-B1w16_Md.js";
7
+ import { t as b } from "./invoice.service-DWDl9XRh.js";
8
8
  import { r as x, t as S } from "./plainDate.transformer-Bhiz9jW7.js";
9
- import { $ as ee, G as te, O as ne, W as re, X as ie, dt as C, i as ae, u as oe } from "./dist-BD7Allff.js";
10
- import { n as se, t as ce } from "./customerUuid.model-ClN4Vi9n.js";
11
- import { n as le } from "./dist-boJIIxnT.js";
12
- import { t as ue } from "./DataProvider-C3uEds9v.js";
13
- import { a as de, c as fe, d as w, f as pe, i as me, l as T, n as he, o as ge, r as E, s as _e, t as ve, u as ye } from "./dist-D5agTXFI.js";
9
+ import { $ as ee, J as te, gt as ne, i as re, j as ie, nt as ae, q as oe, u as se } from "./dist-DCbLgB6Y.js";
10
+ import { n as ce, t as le } from "./customerUuid.model-ClN4Vi9n.js";
11
+ import { n as ue } from "./dist-Cdbpkd3Y.js";
12
+ import { t as de } from "./DataProvider-C3uEds9v.js";
13
+ import { a as fe, c as pe, d as C, f as me, i as w, l as T, n as he, o as ge, r as E, s as _e, t as ve, u as ye } from "./dist-BpDuRYDT.js";
14
14
  import { t as be } from "./formango.util-D5c2ql--.js";
15
- import { i as xe, n as Se, r as Ce, t as we } from "./CustomFieldValueText-BjRVovZL.js";
16
- import { t as D } from "./invoiceApprovalStatus.util-DohOKR4q.js";
17
- import { n as Te, t as Ee } from "./InvoiceApprovalOutOfSyncIndicator-CP2GLaeh.js";
18
- import { a as De, i as Oe, n as ke, o as Ae, r as je, t as O } from "./invoiceIndexCache.util-jHsrFwcA.js";
19
- import { t as Me } from "./InvoiceApprovalStatusBadge-CcX8agTF.js";
20
- import { t as Ne } from "./issuerSettings.query-CDFk2GiP.js";
15
+ import { i as xe, n as Se, r as Ce, t as we } from "./CustomFieldValueText-DA0aPKwC.js";
16
+ import { t as D } from "./invoiceApprovalStatus.util-q-zHLdFV.js";
17
+ import { n as Te, t as Ee } from "./InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js";
18
+ import { a as De, i as Oe, n as ke, o as Ae, r as je, t as O } from "./invoiceIndexCache.util-CUlp4R7R.js";
19
+ import { t as Me } from "./InvoiceApprovalStatusBadge-BJ3Q18bf.js";
20
+ import { t as Ne } from "./issuerSettings.query-BHuLjV9P.js";
21
21
  import { t as Pe } from "./dashboard-BaWGNEek.js";
22
22
  import { z as k } from "zod";
23
23
  import { useI18n as A } from "vue-i18n";
@@ -108,7 +108,7 @@ var Mt = /* @__PURE__ */ L({
108
108
  ]));
109
109
  }
110
110
  }), Nt = k.enum(o), Pt = k.object({
111
- uuid: ce,
111
+ uuid: le,
112
112
  name: k.string().min(1),
113
113
  type: Nt
114
114
  }), Ft = k.object({ customer: Pt }), It = /* @__PURE__ */ L({
@@ -146,7 +146,7 @@ var Mt = /* @__PURE__ */ L({
146
146
  I(V(dt), {
147
147
  title: V(r).t("wise_invoicing.invoice.create.modal_title"),
148
148
  description: V(r).t("wise_invoicing.invoice.create.modal_description"),
149
- icon: V(re)
149
+ icon: V(oe)
150
150
  }, null, 8, [
151
151
  "title",
152
152
  "description",
@@ -362,14 +362,14 @@ function Vt(e) {
362
362
  })), o = e.customFieldDefinitions.map((n) => {
363
363
  let r = Q.getKey(n), i = Ce.getLabel(n, t.locale.value);
364
364
  switch (n.type) {
365
- case d.BOOLEAN: return fe({
365
+ case d.BOOLEAN: return pe({
366
366
  entityLabel: i,
367
367
  key: r,
368
368
  label: i
369
369
  });
370
370
  case d.MONETARY: {
371
371
  let t = Q.getRuleNumber(n, "precision"), a = Q.getMonetaryCurrency(n, e.currency);
372
- return w({
372
+ return C({
373
373
  customUnit: a,
374
374
  defaultValue: {
375
375
  operator: ye.EQUALS,
@@ -383,7 +383,7 @@ function Vt(e) {
383
383
  step: t === void 0 ? void 0 : 1 / 10 ** t
384
384
  });
385
385
  }
386
- case d.NUMBER: return w({
386
+ case d.NUMBER: return C({
387
387
  defaultValue: {
388
388
  operator: ye.EQUALS,
389
389
  value: null
@@ -395,7 +395,7 @@ function Vt(e) {
395
395
  min: Q.getRuleNumber(n, "min")
396
396
  });
397
397
  case d.MULTI_SELECT:
398
- case d.SINGLE_SELECT: return de({
398
+ case d.SINGLE_SELECT: return fe({
399
399
  defaultValue: {
400
400
  operator: E.INCLUDES,
401
401
  value: []
@@ -409,7 +409,7 @@ function Vt(e) {
409
409
  case d.DATE:
410
410
  case d.TEXT:
411
411
  case d.TEXT_ARRAY:
412
- case d.TIMESTAMP: return pe({
412
+ case d.TIMESTAMP: return me({
413
413
  defaultValue: {
414
414
  operator: E.INCLUDES,
415
415
  value: []
@@ -422,10 +422,10 @@ function Vt(e) {
422
422
  });
423
423
  default: throw TypeError("Unsupported custom field definition type");
424
424
  }
425
- }), s = me({
425
+ }), s = w({
426
426
  actionGroup: { name: "invoices" },
427
427
  filters: [
428
- pe({
428
+ me({
429
429
  defaultValue: {
430
430
  operator: E.INCLUDES,
431
431
  value: []
@@ -448,7 +448,7 @@ function Vt(e) {
448
448
  key: "dueOnRange",
449
449
  label: t.t("wise_invoicing.invoice.overview.filters.due_on")
450
450
  }),
451
- de({
451
+ fe({
452
452
  defaultValue: {
453
453
  operator: E.INCLUDES,
454
454
  value: []
@@ -459,7 +459,7 @@ function Vt(e) {
459
459
  label: t.t("wise_invoicing.invoice.overview.filters.lifecycle"),
460
460
  options: () => Object.values(m)
461
461
  }),
462
- de({
462
+ fe({
463
463
  defaultValue: {
464
464
  operator: E.INCLUDES,
465
465
  value: []
@@ -470,7 +470,7 @@ function Vt(e) {
470
470
  label: t.t("wise_invoicing.invoice.overview.filters.approval"),
471
471
  options: () => Object.values(r)
472
472
  }),
473
- fe({
473
+ pe({
474
474
  defaultValue: null,
475
475
  entityLabel: t.t("wise_invoicing.invoice.overview.filters.out_of_sync"),
476
476
  key: "hasChangesSinceApprovalSent",
@@ -685,7 +685,7 @@ var Gt = { class: "font-medium text-secondary" }, Kt = ["title"], qt = /* @__PUR
685
685
  value: {}
686
686
  },
687
687
  setup(e) {
688
- let t = e, n = le(), r = j(() => t.value === null ? "-" : n.formatPlainDate(t.value)), i = j(() => {
688
+ let t = e, n = ue(), r = j(() => t.value === null ? "-" : n.formatPlainDate(t.value)), i = j(() => {
689
689
  if (!t.isOverdue || t.value === null) return null;
690
690
  let e = t.value.toZonedDateTime(Qe.Now.timeZoneId()).toInstant();
691
691
  return n.toRelativeTime(e);
@@ -714,7 +714,7 @@ var Gt = { class: "font-medium text-secondary" }, Kt = ["title"], qt = /* @__PUR
714
714
  __name: "InvoiceOverviewTableIssuedDateCell",
715
715
  props: { value: {} },
716
716
  setup(e) {
717
- let t = e, n = le(), r = j(() => t.value === null ? "-" : n.formatPlainDate(t.value));
717
+ let t = e, n = ue(), r = j(() => t.value === null ? "-" : n.formatPlainDate(t.value));
718
718
  return (e, t) => (R(), M(V(q), null, {
719
719
  default: H(() => [I(V(J), {
720
720
  text: r.value,
@@ -753,7 +753,7 @@ var Gt = { class: "font-medium text-secondary" }, Kt = ["title"], qt = /* @__PUR
753
753
  default: H(() => [F("span", {
754
754
  title: t.customerName,
755
755
  class: "truncate text-sm/4 font-medium text-primary"
756
- }, B(t.customerName), 9, en), t.type === V(p).CREDIT_NOTE ? (R(), M(V(ee), {
756
+ }, B(t.customerName), 9, en), t.type === V(p).CREDIT_NOTE ? (R(), M(V(ae), {
757
757
  key: 0,
758
758
  "aria-label": V(n).t("wise_invoicing.invoice.type.credit_note"),
759
759
  class: "size-3 shrink-0 text-warning-primary",
@@ -793,7 +793,7 @@ var Gt = { class: "font-medium text-secondary" }, Kt = ["title"], qt = /* @__PUR
793
793
  setup(e) {
794
794
  let t = e, n = A(), r = j(() => [f.SENT, f.VIEWED].includes(t.deliveryStatus));
795
795
  return (e, i) => (R(), M(V(q), null, {
796
- default: H(() => [r.value ? (R(), M(V(ae), {
796
+ default: H(() => [r.value ? (R(), M(V(re), {
797
797
  key: 0,
798
798
  class: "size-4 text-brand-600"
799
799
  })) : t.deliveryStatus === V(f).PROCESSING ? (R(), M(V(pt), {
@@ -809,7 +809,7 @@ var Gt = { class: "font-medium text-secondary" }, Kt = ["title"], qt = /* @__PUR
809
809
  "popover-side": "bottom"
810
810
  }, {
811
811
  trigger: H(() => [I(V(gt), null, {
812
- default: H(() => [I(V(oe), {
812
+ default: H(() => [I(V(se), {
813
813
  "aria-label": V(n).t("wise_invoicing.invoice.overview.send_failed"),
814
814
  class: "size-4 text-error-primary"
815
815
  }, null, 8, ["aria-label"])]),
@@ -1235,7 +1235,7 @@ var un = {
1235
1235
  }), (e, t) => (R(), M(yn, {
1236
1236
  "confirm-label": V(a).t("wise_invoicing.invoice.overview.bulk.finalize.confirm"),
1237
1237
  description: V(a).t("wise_invoicing.invoice.overview.bulk.finalize.description"),
1238
- icon: V(ne),
1238
+ icon: V(ie),
1239
1239
  "is-preview-loading": c.value,
1240
1240
  "is-submitting": l.value,
1241
1241
  "loading-label": V(a).t("wise_invoicing.invoice.overview.bulk.finalize.loading"),
@@ -1325,7 +1325,7 @@ var Sn = /* @__PURE__ */ L({
1325
1325
  }), (e, t) => (R(), M(yn, {
1326
1326
  "confirm-label": V(a).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.confirm"),
1327
1327
  description: V(a).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.description"),
1328
- icon: V(re),
1328
+ icon: V(oe),
1329
1329
  "is-preview-loading": c.value,
1330
1330
  "is-submitting": l.value,
1331
1331
  "loading-label": V(a).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.loading"),
@@ -1449,7 +1449,7 @@ var wn = /* @__PURE__ */ L({
1449
1449
  }), (e, t) => (R(), M(yn, {
1450
1450
  "confirm-label": V(o).t("wise_invoicing.invoice.overview.bulk.send_approval.confirm"),
1451
1451
  description: V(o).t("wise_invoicing.invoice.overview.bulk.send_approval.description"),
1452
- icon: V(C),
1452
+ icon: V(ne),
1453
1453
  "is-preview-loading": l.value,
1454
1454
  "is-submitting": u.value,
1455
1455
  "loading-label": V(o).t("wise_invoicing.invoice.overview.bulk.send_approval.loading"),
@@ -1536,7 +1536,7 @@ var En = /* @__PURE__ */ L({
1536
1536
  }), (e, t) => (R(), M(yn, {
1537
1537
  "confirm-label": V(a).t("wise_invoicing.invoice.overview.bulk.send.confirm"),
1538
1538
  description: V(a).t("wise_invoicing.invoice.overview.bulk.send.description"),
1539
- icon: V(C),
1539
+ icon: V(ne),
1540
1540
  "is-preview-loading": c.value,
1541
1541
  "is-submitting": l.value,
1542
1542
  "loading-label": V(a).t("wise_invoicing.invoice.overview.bulk.send.loading"),
@@ -1583,7 +1583,7 @@ var En = /* @__PURE__ */ L({
1583
1583
  until: n.value?.until ?? null
1584
1584
  });
1585
1585
  });
1586
- let o = le(), s = j(() => n.value === null ? r.t("component.date_range_filter_button.select_dates") : n.value.from !== null && n.value.until !== null && n.value.from.equals(n.value.until) ? o.formatPlainDate(n.value.from) : `${n.value.from === null ? "-" : o.formatPlainDate(n.value.from)} - ${n.value.until === null ? "-" : o.formatPlainDate(n.value.until)}`);
1586
+ let o = ue(), s = j(() => n.value === null ? r.t("component.date_range_filter_button.select_dates") : n.value.from !== null && n.value.until !== null && n.value.from.equals(n.value.until) ? o.formatPlainDate(n.value.from) : `${n.value.from === null ? "-" : o.formatPlainDate(n.value.from)} - ${n.value.until === null ? "-" : o.formatPlainDate(n.value.until)}`);
1587
1587
  function c() {
1588
1588
  n.value = a.value.from !== null || a.value.until !== null ? { ...a.value } : null, i.value = !1;
1589
1589
  }
@@ -1602,7 +1602,7 @@ var En = /* @__PURE__ */ L({
1602
1602
  trigger: H(() => [I(V(W), {
1603
1603
  "aria-label": t.ariaLabel,
1604
1604
  label: s.value,
1605
- "icon-right": V(ie),
1605
+ "icon-right": V(ee),
1606
1606
  variant: "secondary"
1607
1607
  }, null, 8, [
1608
1608
  "aria-label",
@@ -1659,30 +1659,30 @@ var En = /* @__PURE__ */ L({
1659
1659
  s.ISSUED_ON,
1660
1660
  s.NET_AMOUNT
1661
1661
  ]
1662
- }), x = Ut(), { hasChangesSinceApprovalSent: S, approvalStatuses: ee, customerUuids: ne, customFields: re, dueOnRange: ie, filters: C, lifecycleStatuses: ae } = Vt({
1662
+ }), x = Ut(), { hasChangesSinceApprovalSent: S, approvalStatuses: ee, customerUuids: ne, customFields: re, dueOnRange: ie, filters: ae, lifecycleStatuses: oe } = Vt({
1663
1663
  currency: t.currency,
1664
1664
  customFieldDefinitions: t.customFieldDefinitions
1665
1665
  });
1666
- he(C);
1667
- let oe = z(null), ce = j(() => x.getFilters(_.value)), { isFetchingNextPage: le, isLoading: ue, fetchNextPage: de, refetch: fe, result: w } = At({ params: {
1666
+ he(ae);
1667
+ let se = z(null), le = j(() => x.getFilters(_.value)), { isFetchingNextPage: ue, isLoading: de, fetchNextPage: fe, refetch: pe, result: C } = At({ params: {
1668
1668
  filters: j(() => ({
1669
1669
  hasChangesSinceApprovalSent: S.value,
1670
- issuedOnRange: oe.value,
1670
+ issuedOnRange: se.value,
1671
1671
  approvalStatuses: ee.value,
1672
1672
  customerUuids: ne.value,
1673
1673
  customFields: re.value,
1674
1674
  dueOnRange: ie.value,
1675
- lifecycleStatuses: ae.value,
1676
- ...ce.value
1675
+ lifecycleStatuses: oe.value,
1676
+ ...le.value
1677
1677
  })),
1678
1678
  search: g.debouncedSearch,
1679
1679
  sort: b.values
1680
1680
  } });
1681
1681
  a.set(() => n.t("wise_invoicing.invoice.overview.title"));
1682
- let pe = { name: () => n.t("wise_invoicing.invoice.overview.title") }, me = j(() => w.value.isOk() ? w.value.getValue().data : []), T = Wt({ rows: () => me.value });
1683
- se({
1684
- refetch: fe,
1685
- sendingUuids: () => me.value.filter((e) => e.deliveryStatus === f.PROCESSING).map((e) => e.uuid)
1682
+ let me = { name: () => n.t("wise_invoicing.invoice.overview.title") }, w = j(() => C.value.isOk() ? C.value.getValue().data : []), T = Wt({ rows: () => w.value });
1683
+ ce({
1684
+ refetch: pe,
1685
+ sendingUuids: () => w.value.filter((e) => e.deliveryStatus === f.PROCESSING).map((e) => e.uuid)
1686
1686
  });
1687
1687
  let E = cn({
1688
1688
  customFieldDefinitions: () => t.customFieldDefinitions,
@@ -1691,17 +1691,17 @@ var En = /* @__PURE__ */ L({
1691
1691
  toggleRow: T.toggleRow
1692
1692
  }
1693
1693
  }), { customizedColumns: ve, customizeTableAction: ye } = Dt({
1694
- actionGroup: pe,
1694
+ actionGroup: me,
1695
1695
  availableColumns: E,
1696
1696
  initialState: Je("invoice-overview-columns", []).value
1697
- }), be = j(() => w.value.isErr() ? w.value.getError() : null), xe = j(() => C.activeFilters.value.length), Se = j(() => (g.debouncedSearch.value?.trim().length ?? 0) > 0), Ce = j(() => T.selectedInvoices.value.some((e) => e.status === i.READY)), we = j(() => T.selectedInvoices.value.some((e) => e.status === i.DRAFT)), { canSend: Te } = zt({ selectedInvoices: () => T.selectedInvoices.value }), Ee = j(() => T.selectedInvoices.value.some((e) => {
1697
+ }), be = j(() => C.value.isErr() ? C.value.getError() : null), xe = j(() => ae.activeFilters.value.length), Se = j(() => (g.debouncedSearch.value?.trim().length ?? 0) > 0), Ce = j(() => T.selectedInvoices.value.some((e) => e.status === i.READY)), we = j(() => T.selectedInvoices.value.some((e) => e.status === i.DRAFT)), { canSend: Te } = zt({ selectedInvoices: () => T.selectedInvoices.value }), Ee = j(() => T.selectedInvoices.value.some((e) => {
1698
1698
  let t = D.getDisplayStatus({
1699
1699
  approval: e.approval,
1700
1700
  requiresPriorApproval: e.requiresPriorApproval
1701
1701
  });
1702
1702
  return t !== null && t !== r.APPROVED;
1703
1703
  }));
1704
- Ke(me, () => {
1704
+ Ke(w, () => {
1705
1705
  T.syncSelection();
1706
1706
  });
1707
1707
  function De() {
@@ -1773,8 +1773,8 @@ var En = /* @__PURE__ */ L({
1773
1773
  class: "items-stretch"
1774
1774
  }, {
1775
1775
  default: H(() => [I(Dn, {
1776
- modelValue: oe.value,
1777
- "onUpdate:modelValue": t[1] ||= (e) => oe.value = e,
1776
+ modelValue: se.value,
1777
+ "onUpdate:modelValue": t[1] ||= (e) => se.value = e,
1778
1778
  "aria-label": V(n).t("wise_invoicing.invoice.overview.filters.issued_on")
1779
1779
  }, null, 8, ["modelValue", "aria-label"]), I(V(K), { justify: "end" }, {
1780
1780
  default: H(() => [
@@ -1809,9 +1809,9 @@ var En = /* @__PURE__ */ L({
1809
1809
  _: 1
1810
1810
  }), F("div", On, [I(V(ht), {
1811
1811
  columns: V(ve),
1812
- data: me.value,
1813
- "is-loading": V(ue),
1814
- "is-fetching-next-page": V(le),
1812
+ data: w.value,
1813
+ "is-loading": V(de),
1814
+ "is-fetching-next-page": V(ue),
1815
1815
  error: be.value,
1816
1816
  "has-active-search": Se.value,
1817
1817
  "active-filter-count": xe.value,
@@ -1823,9 +1823,9 @@ var En = /* @__PURE__ */ L({
1823
1823
  key: e.uuid,
1824
1824
  ...e
1825
1825
  }),
1826
- onNextPage: V(de),
1826
+ onNextPage: V(fe),
1827
1827
  onClearSearch: t[3] ||= (e) => V(g).clear(),
1828
- onClearFilters: t[4] ||= (e) => V(C).clearAll()
1828
+ onClearFilters: t[4] ||= (e) => V(ae).clearAll()
1829
1829
  }, null, 8, [
1830
1830
  "columns",
1831
1831
  "data",
@@ -1867,7 +1867,7 @@ var En = /* @__PURE__ */ L({
1867
1867
  props: { onCreateInvoice: { type: Function } },
1868
1868
  setup(e) {
1869
1869
  let t = xe(j(() => ({ entityTypes: [c.INVOICE] }))), n = Ne();
1870
- return (r, i) => (R(), M(ue, { queries: {
1870
+ return (r, i) => (R(), M(de, { queries: {
1871
1871
  customFieldDefinitions: V(t),
1872
1872
  issuerSettings: V(n)
1873
1873
  } }, {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./documentTitle.composable-CRJjS6p-.js";
2
- import { t } from "./BillingDocumentPdf-PU9Ldfhs.js";
2
+ import { t } from "./BillingDocumentPdf-rFqmLUPy.js";
3
3
  import { useI18n as n } from "vue-i18n";
4
4
  import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s } from "vue";
5
5
  //#region src/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue?vue&type=script&setup=true&lang.ts
@@ -1,7 +1,7 @@
1
- import { n as e } from "./invoicingConfig.composable-COn1rKRf.js";
1
+ import { n as e } from "./invoicingConfig.composable-DjFexycc.js";
2
2
  import { t } from "./DataProvider-C3uEds9v.js";
3
- import { t as n } from "./InvoicePdfView-CvU9bRVd.js";
4
- import { t as r } from "./invoiceDetail.query-CfyNSXLS.js";
3
+ import { t as n } from "./InvoicePdfView-CPEX7E9W.js";
4
+ import { t as r } from "./invoiceDetail.query-B5w0Vlsy.js";
5
5
  import { useI18n as i } from "vue-i18n";
6
6
  import { computed as a, createBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, openBlock as u, resolveDynamicComponent as d, unref as f, withCtx as p } from "vue";
7
7
  import { UIText as m } from "@wisemen/vue-core-design-system";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { n as t } from "./invoicingConfig.composable-COn1rKRf.js";
3
- import { t as n } from "./invoice.service-B1w16_Md.js";
2
+ import { n as t } from "./invoicingConfig.composable-DjFexycc.js";
3
+ import { t as n } from "./invoice.service-DWDl9XRh.js";
4
4
  import { t as r } from "./DataProvider-C3uEds9v.js";
5
- import { t as i } from "./InvoicePdfView-CvU9bRVd.js";
5
+ import { t as i } from "./InvoicePdfView-CPEX7E9W.js";
6
6
  import { useI18n as a } from "vue-i18n";
7
7
  import { computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, openBlock as f, resolveDynamicComponent as p, unref as m, watch as h, withCtx as g } from "vue";
8
8
  import { useQuery as _ } from "@wisemen/vue-core-api-utils";
@@ -1,7 +1,7 @@
1
- import { n as e } from "./invoicingConfig.composable-COn1rKRf.js";
2
- import { t } from "./invoice.service-B1w16_Md.js";
1
+ import { n as e } from "./invoicingConfig.composable-DjFexycc.js";
2
+ import { t } from "./invoice.service-DWDl9XRh.js";
3
3
  import { t as n } from "./DataProvider-C3uEds9v.js";
4
- import { t as r } from "./InvoicePdfView-CvU9bRVd.js";
4
+ import { t as r } from "./InvoicePdfView-CPEX7E9W.js";
5
5
  import { useI18n as i } from "vue-i18n";
6
6
  import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, openBlock as d, resolveDynamicComponent as f, unref as p, watch as m, withCtx as h } from "vue";
7
7
  import { useQuery as g } from "@wisemen/vue-core-api-utils";
@@ -1,4 +1,4 @@
1
- import { _ as e, f as t, t as n, u as r } from "./api.util-CkIRZS3h.js";
1
+ import { _ as e, f as t, t as n, u as r } from "./api.util-D6m6OY3_.js";
2
2
  import { S as i } from "./documentTitle.composable-CRJjS6p-.js";
3
3
  import { z as a } from "zod";
4
4
  import { createBlock as o, defineComponent as s, openBlock as c, renderSlot as l, unref as u, withCtx as d } from "vue";
@@ -1,10 +1,10 @@
1
- import "./api.util-CkIRZS3h.js";
1
+ import "./api.util-D6m6OY3_.js";
2
2
  import { c as e, t } from "./documentTitle.composable-CRJjS6p-.js";
3
3
  import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
4
  import { t as r } from "./addressForm.model-C853zEtX.js";
5
5
  import { t as i } from "./DataProvider-C3uEds9v.js";
6
6
  import { t as a } from "./formango.util-D5c2ql--.js";
7
- import { n as o, r as s, t as c } from "./issuerSettings.query-CDFk2GiP.js";
7
+ import { n as o, r as s, t as c } from "./issuerSettings.query-BHuLjV9P.js";
8
8
  import { t as l } from "./dashboard-BaWGNEek.js";
9
9
  import { z as u } from "zod";
10
10
  import { useI18n as d } from "vue-i18n";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./i18n.lib--mzprLMR.js";
3
- import "./api.util-CkIRZS3h.js";
2
+ import { t } from "./i18n.lib-CKs3ExEl.js";
3
+ import "./api.util-D6m6OY3_.js";
4
4
  import { c as n, m as r, t as i, w as a } from "./documentTitle.composable-CRJjS6p-.js";
5
- import { i as o, n as s, r as c, t as l } from "./reminderConfig.query-DSO0ekC_.js";
5
+ import { i as o, n as s, r as c, t as l } from "./reminderConfig.query-C4J6m4ER.js";
6
6
  import { t as u } from "./DataProvider-C3uEds9v.js";
7
7
  import { t as d } from "./formango.util-D5c2ql--.js";
8
8
  import { z as f } from "zod";
@@ -727,7 +727,7 @@ var Le = e.enum([
727
727
  }), Be = e.object({
728
728
  limit: e.number().gte(0).lte(100).optional(),
729
729
  key: ze.nullish()
730
- }), Ve = e.enum(/* @__PURE__ */ "api-key.created,api-key.deleted,approval-reminder.sent,credit-note.created,credit-note.updated,credit-note.finalized,credit-note.invoice-lines.updated,credit-note.deleted,credit-note.email-sent,customer.created,customer.updated,customer.synced,customer.deactivated,customer.reactivated,file.created,file.uploaded,issuer.updated,issuer.created,invoice-approval.approved,invoice-approval.cancelled,invoice-approval.created,invoice-approval.expired,invoice-approval.rejected,invoice-approval.sent,invoice.attachments.updated,invoice.created,invoice.deleted,invoice.discount.applied,invoice.disputed-withdrawn,invoice.duplicated,invoice.email-sent,invoice.finalization-blocked,invoice.finalized,invoice.marked-as-disputed,invoice.marked-as-draft,invoice.marked-as-overdue,invoice.marked-as-paid,invoice.marked-as-prior-approval-required,invoice.marked-as-ready,invoice.pdf.generated,invoice.restored-from-pro-forma,invoice.unmarked-as-prior-approval-required,invoice.updated,payment.created,payment.deleted,pro-forma.created,pro-forma.pdf.generated,notification.created,notification.read,notification.read.all,notification.unread,notification.types.migrated,notification.preference.preset.updated,role.created,role.deleted,role.renamed,role.permissions.updated,role.permissions.cache.cleared,test-notification.sent,user.created,user.updated,user.role-assigned,user.roles-set,user.notification.created,user.default-notification-preferences.assigned,user.assigned-as-admin,recipient.created,recipient.updated,recipient.default-set,recipient.deleted,approval-reminder-config.updated,reminder-config.updated,dunning-case.synced,dunning-case.closed,dunning-case.reminder.created,dunning-case.reminder.pdf.generated,dunning-case.reminder.retried,dunning-case.reminder.sent,tenant.created,tenant.updated,tenant.deactivated".split(",")), He = e.object({
730
+ }), Ve = e.enum(/* @__PURE__ */ "api-key.created,api-key.deleted,approval-reminder.sent,credit-note.created,credit-note.updated,credit-note.finalized,credit-note.invoice-lines.updated,credit-note.deleted,credit-note.email-sent,customer.created,customer.updated,customer.synced,customer.deactivated,customer.reactivated,file.created,file.uploaded,issuer.updated,issuer.created,invoice-approval.approved,invoice-approval.cancelled,invoice-approval.created,invoice-approval.expired,invoice-approval.rejected,invoice-approval.sent,invoice-approval.superseded,invoice.attachments.updated,invoice.created,invoice.deleted,invoice.discount.applied,invoice.disputed-withdrawn,invoice.duplicated,invoice.email-sent,invoice.finalization-blocked,invoice.finalized,invoice.marked-as-disputed,invoice.marked-as-draft,invoice.marked-as-overdue,invoice.marked-as-paid,invoice.marked-as-prior-approval-required,invoice.marked-as-ready,invoice.pdf.generated,invoice.restored-from-pro-forma,invoice.unmarked-as-prior-approval-required,invoice.updated,payment.created,payment.deleted,pro-forma.created,pro-forma.pdf.generated,notification.created,notification.read,notification.read.all,notification.unread,notification.types.migrated,notification.preference.preset.updated,role.created,role.deleted,role.renamed,role.permissions.updated,role.permissions.cache.cleared,test-notification.sent,user.created,user.updated,user.role-assigned,user.roles-set,user.notification.created,user.default-notification-preferences.assigned,user.assigned-as-admin,recipient.created,recipient.updated,recipient.default-set,recipient.deleted,approval-reminder-config.updated,reminder-config.updated,dunning-case.synced,dunning-case.closed,dunning-case.reminder.created,dunning-case.reminder.pdf.generated,dunning-case.reminder.retried,dunning-case.reminder.sent,tenant.created,tenant.updated,tenant.deactivated".split(",")), He = e.object({
731
731
  uuid: e.uuid(),
732
732
  createdAt: e.iso.datetime(),
733
733
  version: e.int().gte(0),
@@ -1314,7 +1314,8 @@ var w = e.object({
1314
1314
  j,
1315
1315
  M
1316
1316
  ])),
1317
- lines: e.array(Yt)
1317
+ lines: e.array(Yt),
1318
+ groups: e.array(e.lazy(() => Xt))
1318
1319
  }), Zt = e.object({
1319
1320
  vatRate: P,
1320
1321
  netAmount: x,
@@ -1442,7 +1443,8 @@ var w = e.object({
1442
1443
  j,
1443
1444
  M
1444
1445
  ])),
1445
- lines: e.array(cn)
1446
+ lines: e.array(cn),
1447
+ groups: e.array(e.lazy(() => ln))
1446
1448
  }), un = e.object({
1447
1449
  vatRate: P,
1448
1450
  netAmount: x,
@@ -1761,6 +1763,10 @@ e.object({
1761
1763
  detail: e.string().optional(),
1762
1764
  status: e.enum(["400"]),
1763
1765
  code: e.enum(["invoice_line_and_group_position_overlap"])
1766
+ }), e.object({
1767
+ detail: e.string().optional(),
1768
+ status: e.enum(["400"]),
1769
+ code: e.enum(["invoice_line_group_max_depth_exceeded"])
1764
1770
  });
1765
1771
  var jn = e.object({
1766
1772
  name: e.string(),
@@ -1798,7 +1804,8 @@ var jn = e.object({
1798
1804
  A,
1799
1805
  j,
1800
1806
  M
1801
- ])).optional()
1807
+ ])).optional(),
1808
+ groups: e.array(e.lazy(() => Mn)).optional()
1802
1809
  }), Nn = e.object({
1803
1810
  groups: e.array(Mn),
1804
1811
  ungroupedLines: e.array(jn)
@@ -1892,7 +1899,8 @@ var Rn = e.object({
1892
1899
  A,
1893
1900
  j,
1894
1901
  M
1895
- ])).optional()
1902
+ ])).optional(),
1903
+ groups: e.array(e.lazy(() => zn)).optional()
1896
1904
  }), Bn = e.object({
1897
1905
  groups: e.array(zn),
1898
1906
  ungroupedLines: e.array(Rn)
@@ -2834,7 +2842,8 @@ var di = e.object({
2834
2842
  j,
2835
2843
  M
2836
2844
  ])),
2837
- lines: e.array(bi)
2845
+ lines: e.array(bi),
2846
+ groups: e.array(e.lazy(() => xi))
2838
2847
  }), Si = e.object({
2839
2848
  vatRate: P,
2840
2849
  netAmount: x,
@@ -1,4 +1,4 @@
1
- import "./api.util-CkIRZS3h.js";
1
+ import "./api.util-D6m6OY3_.js";
2
2
  import { f as e, u as t } from "./documentTitle.composable-CRJjS6p-.js";
3
3
  import { t as n } from "./address.transformer-jGddczLV.js";
4
4
  import { n as r, r as i, t as a } from "./plainDate.transformer-Bhiz9jW7.js";
@@ -49,7 +49,11 @@ var l = class {
49
49
  type: t.type
50
50
  };
51
51
  }
52
- }, d = class e {
52
+ }, d = class {
53
+ static flattenLines(e) {
54
+ return e.flatMap((e) => [...e.lines, ...this.flattenLines(e.groups)]);
55
+ }
56
+ }, f = class e {
53
57
  static fromDto(e) {
54
58
  return {
55
59
  uuid: e.uuid,
@@ -75,10 +79,10 @@ var l = class {
75
79
  };
76
80
  //#endregion
77
81
  //#region src/modules/custom-field/models/custom-field-value/customFieldValue.transformer.ts
78
- function f(e) {
82
+ function p(e) {
79
83
  return e === "infinity" || e === "-infinity" ? e : a.fromDto(e);
80
84
  }
81
- var p = class {
85
+ var m = class {
82
86
  static fromDto(e) {
83
87
  let n = e.definitionUuid;
84
88
  switch (e.type) {
@@ -90,7 +94,7 @@ var p = class {
90
94
  case t.DATE: return {
91
95
  definitionUuid: n,
92
96
  type: t.DATE,
93
- value: f(e.value)
97
+ value: p(e.value)
94
98
  };
95
99
  case t.MONETARY: return {
96
100
  definitionUuid: n,
@@ -156,13 +160,13 @@ var p = class {
156
160
  };
157
161
  //#endregion
158
162
  //#region src/models/billing-document/billingDocumentDetail.transformer.ts
159
- function m(e) {
163
+ function h(e) {
160
164
  return {
161
165
  uuid: e.uuid,
162
166
  groupUuid: e.groupUuid,
163
167
  isDiscount: e.isDiscount,
164
168
  name: e.name,
165
- customFields: e.customFields.map(p.fromDto),
169
+ customFields: e.customFields.map(m.fromDto),
166
170
  description: e.description,
167
171
  discount: u.fromDto(e.discount),
168
172
  grossAmount: r.fromDto(e.grossAmount),
@@ -180,7 +184,18 @@ function m(e) {
180
184
  vatRatePercentage: o.fromDto(e.vatRatePercentage)
181
185
  };
182
186
  }
183
- function h(e) {
187
+ function g(e) {
188
+ return {
189
+ uuid: e.uuid,
190
+ name: e.name,
191
+ customFields: e.customFields.map(m.fromDto),
192
+ description: e.description,
193
+ groups: e.groups.toSorted((e, t) => e.position - t.position).map(g),
194
+ lines: e.lines.toSorted((e, t) => e.position - t.position).map(h),
195
+ position: e.position
196
+ };
197
+ }
198
+ function _(e) {
184
199
  return {
185
200
  uuid: e.uuid,
186
201
  createdAt: i.fromDto(e.createdAt),
@@ -191,7 +206,7 @@ function h(e) {
191
206
  totalCreditedAmount: r.fromNullableDto(e.totalCreditedAmount)
192
207
  };
193
208
  }
194
- function g(e) {
209
+ function v(e) {
195
210
  if (e.balanceDueAmount === null) return null;
196
211
  let t = e.paidAmount?.amount ?? 0, n = Math.max(e.grossAmount.amount - e.balanceDueAmount.amount - t, 0);
197
212
  return n > 0 ? r.fromDto({
@@ -199,16 +214,9 @@ function g(e) {
199
214
  amount: n
200
215
  }) : null;
201
216
  }
202
- var _ = class {
217
+ var y = class {
203
218
  static fromViewInvoiceDetailDto(e, t, o) {
204
- let l = e.ungroupedLines.map(m), f = e.groups.toSorted((e, t) => e.position - t.position).map((e) => ({
205
- uuid: e.uuid,
206
- name: e.name,
207
- customFields: e.customFields.map(p.fromDto),
208
- description: e.description,
209
- lines: e.lines.toSorted((e, t) => e.position - t.position).map(m),
210
- position: e.position
211
- })), _ = [...l, ...f.flatMap((e) => e.lines)].toSorted((e, t) => e.position - t.position);
219
+ let l = e.ungroupedLines.map(h), p = e.groups.toSorted((e, t) => e.position - t.position).map(g), y = [...l, ...d.flattenLines(p)].toSorted((e, t) => e.position - t.position);
212
220
  return {
213
221
  uuid: t,
214
222
  createdAt: i.fromDto(e.createdAt),
@@ -229,10 +237,10 @@ var _ = class {
229
237
  vatNumber: e.issuer.vatNumber,
230
238
  website: e.issuer.website
231
239
  },
232
- approvalProofs: e.approvalProofs.map(d.fromDto),
233
- attachments: e.attachments.map(d.fromDto),
240
+ approvalProofs: e.approvalProofs.map(f.fromDto),
241
+ attachments: e.attachments.map(f.fromDto),
234
242
  balanceDueAmount: r.fromNullableDto(e.balanceDueAmount),
235
- creditNotes: e.creditNotes.map(h),
243
+ creditNotes: e.creditNotes.map(_),
236
244
  currency: e.currency,
237
245
  customer: {
238
246
  uuid: e.customer.uuid,
@@ -244,18 +252,18 @@ var _ = class {
244
252
  type: e.customer.type,
245
253
  vatNumber: e.customer.vatNumber
246
254
  },
247
- customFields: e.customFields.map(p.fromDto),
255
+ customFields: e.customFields.map(m.fromDto),
248
256
  deliveryStatus: e.deliveryStatus,
249
257
  effectiveNet: r.fromDto(e.effectiveNet),
250
258
  externalRemarks: s.trimOrNull(e.externalRemarks),
251
- file: d.fromNullableDto(e.file),
259
+ file: f.fromNullableDto(e.file),
252
260
  globalDiscount: u.fromDto(e.globalDiscount),
253
261
  grossAmount: r.fromDto(e.grossAmount),
254
- groups: f,
262
+ groups: p,
255
263
  lifecycleStatus: e.lifecycleStatus,
256
- lines: _,
264
+ lines: y,
257
265
  netAmount: r.fromDto(e.netAmount),
258
- originalInvoice: e.originalInvoice === null ? null : h(e.originalInvoice),
266
+ originalInvoice: e.originalInvoice === null ? null : _(e.originalInvoice),
259
267
  paidAmount: r.fromNullableDto(e.paidAmount),
260
268
  paymentReference: e.paymentReference,
261
269
  poNumber: e.poNumber,
@@ -268,12 +276,12 @@ var _ = class {
268
276
  name: e.recipient.name,
269
277
  email: e.recipient.email
270
278
  },
271
- rejectionFiles: e.rejectionFiles.map(d.fromDto),
279
+ rejectionFiles: e.rejectionFiles.map(f.fromDto),
272
280
  sequence: e.sequence,
273
281
  settlementStatus: e.settlementStatus,
274
282
  status: e.status,
275
283
  subject: s.trimOrNull(e.subject),
276
- totalCreditedAmount: g(e),
284
+ totalCreditedAmount: v(e),
277
285
  totalDiscountAmount: r.fromNullableDto(e.totalDiscountAmount),
278
286
  type: o,
279
287
  ungroupedLines: l,
@@ -287,4 +295,4 @@ var _ = class {
287
295
  }
288
296
  };
289
297
  //#endregion
290
- export { l as a, u as i, p as n, d as r, _ as t };
298
+ export { u as a, d as i, m as n, l as o, f as r, y as t };