@wisemen/wise-invoicing-web 0.1.1 → 0.2.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-D-qXZrPT.js +151 -0
- package/dist/{BillingDocumentDetailViewDataProvider-f5goWm_i.js → BillingDocumentDetailViewDataProvider-DDdtlW-2.js} +1386 -1450
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-ehdFB6mr.js} +4 -4
- package/dist/{CreditNoteDetailViewDataProvider-Byd1QvfY.js → CreditNoteDetailViewDataProvider-11a-JO3H.js} +201 -201
- package/dist/{CreditNotePdfViewDataProvider-DI4eQkpM.js → CreditNotePdfViewDataProvider-bfeaya3P.js} +3 -3
- package/dist/{CustomFieldValueText-BGbQwhON.js → CustomFieldValueText-CZQXGE5F.js} +81 -81
- package/dist/DataProvider-C3uEds9v.js +75 -0
- package/dist/{DunningCaseDetailViewDataProvider-DKuuysqS.js → DunningCaseDetailViewDataProvider-DC-ziMoO.js} +35 -35
- package/dist/{DunningCaseOverviewView-aWttPLrC.js → DunningCaseOverviewView-y_bCmi5j.js} +180 -180
- package/dist/{DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js → DunningCaseReminderPdfViewDataProvider-DNODfED_.js} +22 -23
- package/dist/{DunningCaseSendDialog-DyvA5R1p.js → DunningCaseSendDialog-BPXcqit5.js} +82 -82
- package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +870 -0
- package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +161 -0
- package/dist/InvoiceApproveDialog-2LXneG2r.js +308 -0
- package/dist/InvoiceDetailViewDataProvider-BYeaaQzL.js +2156 -0
- package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +318 -0
- package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +1620 -0
- package/dist/{InvoicePdfView-C-7m2g3b.js → InvoicePdfView-BJRTg_TH.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-BPiK110e.js → InvoicePdfViewDataProvider-CwI_uGm3.js} +4 -4
- package/dist/InvoicePublicPdfViewDataProvider-uZUfsr5K.js +45 -0
- package/dist/InvoicingFileUploadProvider-D9Xk4rQM.js +94 -0
- package/dist/{IssuerSettingsViewDataProvider-COqHGUE6.js → IssuerSettingsViewDataProvider-CGRa8F-2.js} +4 -4
- package/dist/{ReminderSettingsViewDataProvider-Dys4bUU7.js → ReminderSettingsViewDataProvider-1ucp3z2T.js} +58 -58
- package/dist/{api.util-BCSgCfpS.js → api.util-C_kMGlJN.js} +1456 -846
- package/dist/{billingDocumentDetail.transformer-BBn9R_cx.js → billingDocumentDetail.transformer-Da6_-Hv9.js} +58 -59
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +18 -1
- package/dist/client/types.gen.d.ts +1059 -106
- package/dist/client/zod.gen.d.ts +32759 -16136
- package/dist/{creditNoteDetail.query-BcPsB96h.js → creditNoteDetail.query-DLR7L0Ep.js} +30 -30
- package/dist/{dist-BBjpqvUl.js → dist-CoztMdYH.js} +614 -614
- package/dist/{dist-D9lp7NDv.js → dist-Cxdm09Lp.js} +210 -98
- package/dist/{documentTitle.composable-4ApFl9TZ.js → documentTitle.composable-DsBbzhXN.js} +23 -15
- package/dist/{customFieldValue.util-BwsX8exl.js → download.util-B5Q7KUC9.js} +6 -6
- package/dist/{i18n.lib-C6eb-F-e.js → i18n.lib-Cvr8pcDw.js} +272 -8
- package/dist/index.d.ts +297 -31
- package/dist/index.js +344 -324
- package/dist/invoice.service-DEEA9mal.js +745 -0
- package/dist/invoiceApproval.service-DvL3LliM.js +72 -0
- package/dist/invoiceApprovalStatus.util-3Zh10Pj8.js +79 -0
- package/dist/invoiceDeliveryStatus.util-nCsqDypY.js +211 -0
- package/dist/{invoiceDetail.query-Cek8nyaw.js → invoiceDetail.query-CRoH_SgM.js} +1 -1
- package/dist/{invoicingConfig.composable-DTmad1fe.js → invoicingConfig.composable-rxjGK882.js} +2 -2
- package/dist/{issuerSettings.query-Bvz-Oj5D.js → issuerSettings.query-Dc5gsaEm.js} +5 -5
- package/dist/libs/i18n.lib.d.ts +270 -6
- package/dist/locales/en-US.json.d.ts +136 -4
- package/dist/locales/nl-BE.json.d.ts +136 -4
- package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +0 -1
- package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceArchiveApproval.mutation.d.ts +6 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +9 -0
- package/dist/modules/invoice/api/mutations/invoiceRestoreFromProForma.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceSendApproval.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +14 -1
- package/dist/modules/invoice/components/InvoiceApprovalOutOfSyncIndicator.vue.d.ts +3 -0
- package/dist/{ui/DisplayState.vue.d.ts → modules/invoice/components/InvoiceApprovalStatusBadge.vue.d.ts} +7 -10
- package/dist/modules/invoice/components/InvoiceApprovalStatusChip.vue.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalTransformers.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUuid.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +13 -1
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +4 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/invoiceApproval.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +34 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +10 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +19 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +5 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalArchiveDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalRevertDialog.vue.d.ts +15 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceFinalizeOutOfSyncDialog.vue.d.ts +21 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableApprovalCell.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.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/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +2 -0
- package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +0 -5
- package/dist/modules/invoice-approval/actions/invoiceApproval.actions.d.ts +5 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalArchive.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalMarkAsApproved.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalReject.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +1 -0
- package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +8 -0
- package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -0
- package/dist/modules/invoice-approval/api/queries/invoiceApprovalIndex.query.d.ts +3 -0
- package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +15 -0
- package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -0
- package/dist/modules/invoice-approval/components/InvoiceApprovalReminderLevelIndicator.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfig.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +21 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.d.ts +5 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.model.d.ts +9 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/routes/invoiceApproval.routes.d.ts +24 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewActionsCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewAmountCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewInvoiceCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewMetrics.vue.d.ts +18 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewNextReminderCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewStatusCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +42 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +10 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewTableColumns.composable.d.ts +3 -0
- package/dist/modules/invoice-approval/use-cases/overview/views/InvoiceApprovalOverviewView.vue.d.ts +3 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Bhiz9jW7.js} +17 -4
- package/dist/reminderConfig.query-snaHQmrY.js +309 -0
- package/dist/routes/invoicingRoutes.composable.d.ts +14 -6
- package/dist/search.composable-CU9OpyUB.js +52 -0
- package/dist/{src-BFgnUugN.js → src-DUSgQTKr.js} +45 -45
- package/dist/style.css +1 -1
- package/dist/types/queryKey.type.d.ts +3 -2
- package/dist/utils/html.util.d.ts +4 -0
- package/package.json +2 -1
- package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +0 -25
- package/dist/AirlineIcon-Z6sH_StM.js +0 -26
- package/dist/AirplaneIcon-C-nSkD1w.js +0 -19
- package/dist/AirportIcon-m4itDKCV.js +0 -16
- package/dist/AlertTriangleIcon-DtYLCC-Y.js +0 -23
- package/dist/AllocationsIcon-hcg93Sll.js +0 -16
- package/dist/ArrowNarrowRightIcon-2-Sml68f.js +0 -23
- package/dist/AssetIcon-qOYs6Wna.js +0 -16
- package/dist/BarChartIcon-DDyzpV_3.js +0 -22
- package/dist/BellIcon-DF1OBFta.js +0 -21
- package/dist/BuildingIcon-CC5PMNeP.js +0 -22
- package/dist/ChargerIcon-aM_endLr.js +0 -16
- package/dist/ChevronDownIcon-4QiK-Z6-.js +0 -23
- package/dist/ChevronUpIcon-qBsjZ5Dz.js +0 -23
- package/dist/ClockIcon-BNiPCaiB.js +0 -23
- package/dist/ClockSnoozeIcon-BxGfwJB6.js +0 -23
- package/dist/CopyIcon-DH5ly0dZ.js +0 -19
- package/dist/DataProvider-Dj34ljUX.js +0 -75
- package/dist/DownloadCloudIcon-Cf8ftklG.js +0 -22
- package/dist/EditIcon-Dr7OHBBR.js +0 -21
- package/dist/EraserIcon-B1VJSvdI.js +0 -23
- package/dist/FileIcon-ssmQI5Yl.js +0 -23
- package/dist/FilterLinesIcon-C7YdyPBk.js +0 -23
- package/dist/GlobeIcon-BfRM6Ike.js +0 -22
- package/dist/HelpIcon-BrJ49P5y.js +0 -22
- package/dist/HourGlassIcon-D9rfU1Is.js +0 -22
- package/dist/InfoCircleIcon-Ee0SyiMc.js +0 -23
- package/dist/InvoiceDetailViewDataProvider-BU6jZfD7.js +0 -1670
- package/dist/InvoiceOverviewViewDataProvider-i8tXATJE.js +0 -1677
- package/dist/InvoicePublicPdfViewDataProvider-BJe-8hC5.js +0 -45
- package/dist/KeyboardIcon-T3o_g-1c.js +0 -22
- package/dist/LinkExternalIcon-BkHS4fCx.js +0 -22
- package/dist/LinkIcon-DuPwae98.js +0 -22
- package/dist/MarkerIcon-B1Jqenjb.js +0 -28
- package/dist/MobileBatteryIcon-GZ1SMRDV.js +0 -16
- package/dist/MonitorIcon-pbK22reU.js +0 -22
- package/dist/NotificationIcon-Ctv8vyWt.js +0 -19
- package/dist/ParkingIcon-DnUPW3pB.js +0 -24
- package/dist/PlanningIcon-CXvrskgj.js +0 -16
- package/dist/PreferenceIcon-BHS8uDyi.js +0 -22
- package/dist/ReceiptCheckIcon-QTestqCJ.js +0 -23
- package/dist/RefreshIcon-DShY-aoS.js +0 -22
- package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +0 -28
- package/dist/RewindIcon-GWg2AQax.js +0 -22
- package/dist/SettingsIcon-CBLJ6B5u.js +0 -25
- package/dist/ShieldIcon-CVnrOcxl.js +0 -19
- package/dist/ShieldOffIcon-B9l0dDVb.js +0 -23
- package/dist/SignOutIcon-CmDkjJ5F.js +0 -21
- package/dist/SlashCircleIcon-jY5FBko5.js +0 -22
- package/dist/StandIcon-CoYnBLMn.js +0 -23
- package/dist/StarsIcon-D7ZlqOW7.js +0 -22
- package/dist/StopwatchIcon-BK0vh1lg.js +0 -22
- package/dist/TargetIcon-HMWj77-Q.js +0 -22
- package/dist/ThreeDotsIcon-BtFruOKz.js +0 -32
- package/dist/ToolIcon-DRfDb7fE.js +0 -22
- package/dist/TrashIcon-BwxBjHv5.js +0 -19
- package/dist/TurnaroundIcon-b1X61TwZ.js +0 -27
- package/dist/UploadCloudIcon-BF0equKg.js +0 -22
- package/dist/UserIcon-B0rCC6KE.js +0 -22
- package/dist/UsersIcon-cK5l_zKG.js +0 -22
- package/dist/VerifiedIcon-CELYlqcv.js +0 -22
- package/dist/WifiIcon--JPvMNEF.js +0 -23
- package/dist/WifiOffIcon-BS2KftcP.js +0 -23
- package/dist/ZapIcon-BHwcIQc0.js +0 -23
- package/dist/ZoomInIcon-Cu6r915V.js +0 -23
- package/dist/ZoomOutIcon-DwB4FRj-.js +0 -23
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/instant.transformer-KmBsH3E9.js +0 -18
- package/dist/invoice.service-Bb8VqQvc.js +0 -635
- package/dist/invoiceDeliveryStatus.util-BPkGCQM6.js +0 -331
- package/dist/reminderConfig.query-DsJNqqi7.js +0 -331
- package/dist/search.composable-BCtYqudV.js +0 -52
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { at as t, t as n } from "./api.util-C_kMGlJN.js";
|
|
3
3
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as i } from "./src-
|
|
5
|
-
import { n as a, t as o } from "./
|
|
6
|
-
import { n as s,
|
|
7
|
-
import { t as l } from "./instant.transformer-KmBsH3E9.js";
|
|
4
|
+
import { n as i } from "./src-DUSgQTKr.js";
|
|
5
|
+
import { n as a, t as o } from "./address.transformer-jGddczLV.js";
|
|
6
|
+
import { n as s, r as c, t as l } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
8
7
|
import { n as u, r as ee } from "./dist-boJIIxnT.js";
|
|
9
8
|
import { useI18n as d } from "vue-i18n";
|
|
10
9
|
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as te, createVNode as v, defineComponent as y, normalizeClass as b, onUnmounted as x, openBlock as S, renderList as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
|
|
@@ -15,35 +14,35 @@ import { useRouteQuery as M } from "@vueuse/router";
|
|
|
15
14
|
var N = class e {
|
|
16
15
|
static fromInvoiceDto(e) {
|
|
17
16
|
return {
|
|
18
|
-
dueOn:
|
|
19
|
-
issuedOn:
|
|
17
|
+
dueOn: l.fromDto(e.dueOn),
|
|
18
|
+
issuedOn: l.fromDto(e.issuedOn),
|
|
20
19
|
isNew: e.isNew,
|
|
21
20
|
daysOverdue: e.daysOverdue,
|
|
22
|
-
fee:
|
|
21
|
+
fee: s.fromDto(e.fee),
|
|
23
22
|
level: e.level,
|
|
24
|
-
outstandingBalance:
|
|
23
|
+
outstandingBalance: s.fromDto(e.outstandingBalance),
|
|
25
24
|
sequence: e.sequence
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
static fromOutstandingInvoiceDto(e) {
|
|
29
28
|
return {
|
|
30
|
-
dueOn:
|
|
31
|
-
issuedOn:
|
|
29
|
+
dueOn: l.fromDto(e.dueOn),
|
|
30
|
+
issuedOn: l.fromDto(e.issuedOn),
|
|
32
31
|
isNew: !1,
|
|
33
32
|
daysOverdue: e.daysOverdue,
|
|
34
33
|
fee: null,
|
|
35
34
|
level: null,
|
|
36
|
-
outstandingBalance:
|
|
35
|
+
outstandingBalance: s.fromDto(e.outstandingBalance),
|
|
37
36
|
sequence: e.sequence
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
static fromPublicDto(t) {
|
|
41
40
|
return {
|
|
42
|
-
createdAt:
|
|
43
|
-
sentAt:
|
|
41
|
+
createdAt: c.fromDto(t.createdAt),
|
|
42
|
+
sentAt: c.fromNullableDto(t.sentAt),
|
|
44
43
|
issuer: {
|
|
45
44
|
name: t.issuer.name,
|
|
46
|
-
address:
|
|
45
|
+
address: o.fromNullableDto(t.issuer.address),
|
|
47
46
|
alternativeBankAccountNumber: t.issuer.alternativeBankAccountNumber,
|
|
48
47
|
bankAccountNumber: t.issuer.bankAccountNumber,
|
|
49
48
|
email: t.issuer.email,
|
|
@@ -53,7 +52,7 @@ var N = class e {
|
|
|
53
52
|
},
|
|
54
53
|
customer: {
|
|
55
54
|
name: t.customer.name,
|
|
56
|
-
address:
|
|
55
|
+
address: o.fromNullableDto(t.customer.address),
|
|
57
56
|
locale: t.customer.locale
|
|
58
57
|
},
|
|
59
58
|
invoices: t.invoices.map(e.fromInvoiceDto).toSorted((e, t) => (t.level ?? 0) - (e.level ?? 0) || t.outstandingBalance.amount - e.outstandingBalance.amount),
|
|
@@ -63,7 +62,7 @@ var N = class e {
|
|
|
63
62
|
name: t.recipient.name,
|
|
64
63
|
email: t.recipient.email
|
|
65
64
|
},
|
|
66
|
-
totalFee:
|
|
65
|
+
totalFee: s.fromDto(t.totalFee)
|
|
67
66
|
};
|
|
68
67
|
}
|
|
69
68
|
}, P = class {
|
|
@@ -92,11 +91,11 @@ var I = /* @__PURE__ */ y({
|
|
|
92
91
|
__name: "DunningCaseReminderPdfFooter",
|
|
93
92
|
props: { issuer: {} },
|
|
94
93
|
setup(e) {
|
|
95
|
-
let t = e, n = d(), r = p(() => t.issuer.name ?? n.t("module.dunning_case.pdf.not_available")), i = p(() =>
|
|
96
|
-
function
|
|
94
|
+
let t = e, n = d(), r = p(() => t.issuer.name ?? n.t("module.dunning_case.pdf.not_available")), i = p(() => a.formatLines(t.issuer.address).join(", ")), o = p(() => t.issuer.bankAccountNumber ?? t.issuer.alternativeBankAccountNumber);
|
|
95
|
+
function s(...e) {
|
|
97
96
|
return e.flatMap(([e, t]) => t === null || t === "" ? [] : `${e}: ${t}`);
|
|
98
97
|
}
|
|
99
|
-
let c = p(() => [
|
|
98
|
+
let c = p(() => [s([n.t("module.dunning_case.pdf.footer.email"), t.issuer.email], [n.t("module.dunning_case.pdf.footer.phone"), t.issuer.phoneNumber]), s([n.t("module.dunning_case.pdf.footer.address"), i.value], [n.t("module.dunning_case.pdf.footer.vat_number"), t.issuer.vatNumber], [n.t("module.dunning_case.pdf.footer.iban"), o.value])].filter((e) => e.length > 0));
|
|
100
99
|
return (e, t) => (S(), m(T(O), {
|
|
101
100
|
as: "footer",
|
|
102
101
|
align: "stretch",
|
|
@@ -169,7 +168,7 @@ var I = /* @__PURE__ */ y({
|
|
|
169
168
|
__name: "DunningCaseReminderPdfHeader",
|
|
170
169
|
props: { reminder: {} },
|
|
171
170
|
setup(e) {
|
|
172
|
-
let t = e, n = d(), r = u(), i = p(() => t.reminder.issuer.name ?? n.t("module.dunning_case.pdf.not_available")),
|
|
171
|
+
let t = e, n = d(), r = u(), i = p(() => t.reminder.issuer.name ?? n.t("module.dunning_case.pdf.not_available")), o = p(() => a.formatLines(t.reminder.customer.address)), s = p(() => n.t(z.getLetterCopy(t.reminder.level).subtitleKey)), c = p(() => t.reminder.sentAt === null ? n.t("module.dunning_case.pdf.created_date") : n.t("module.dunning_case.pdf.reminder_date")), l = p(() => r.toDate(t.reminder.sentAt ?? t.reminder.createdAt));
|
|
173
172
|
return (e, r) => (S(), m(T(O), {
|
|
174
173
|
as: "header",
|
|
175
174
|
align: "center",
|
|
@@ -196,7 +195,7 @@ var I = /* @__PURE__ */ y({
|
|
|
196
195
|
class: "text-lg/7 font-medium"
|
|
197
196
|
}, null, 8, ["text"]),
|
|
198
197
|
v(T(A), {
|
|
199
|
-
text:
|
|
198
|
+
text: s.value,
|
|
200
199
|
truncate: !1,
|
|
201
200
|
as: "p",
|
|
202
201
|
class: "text-secondary"
|
|
@@ -213,7 +212,7 @@ var I = /* @__PURE__ */ y({
|
|
|
213
212
|
class: "leading-3.5 font-semibold"
|
|
214
213
|
}, null, 8, ["text"]), _("div", null, [
|
|
215
214
|
_("p", null, w(t.reminder.customer.name), 1),
|
|
216
|
-
(S(!0), g(f, null, C(
|
|
215
|
+
(S(!0), g(f, null, C(o.value, (e) => (S(), g("p", { key: e }, w(e), 1))), 128)),
|
|
217
216
|
_("p", null, w(t.reminder.recipient.email), 1)
|
|
218
217
|
])]),
|
|
219
218
|
_: 1
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as e, Z as t, t as n } from "./api.util-C_kMGlJN.js";
|
|
2
2
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
3
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
4
|
-
import { n as a, r as o, t as s } from "./reminderConfig.query-
|
|
5
|
-
import {
|
|
3
|
+
import { n as i } from "./invoicingConfig.composable-rxjGK882.js";
|
|
4
|
+
import { n as a, r as o, t as s } from "./reminderConfig.query-snaHQmrY.js";
|
|
5
|
+
import { Q as c, ct as l, d as u } from "./dist-Cxdm09Lp.js";
|
|
6
6
|
import { t as d } from "./customerUuid.model-GUFYq3O2.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { z as f } from "zod";
|
|
8
|
+
import { useI18n as p } from "vue-i18n";
|
|
9
|
+
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, normalizeClass as C, openBlock as w, ref as T, renderList as E, toDisplayString as D, unref as O, watch as k, withCtx as A } from "vue";
|
|
10
|
+
import { useMutation as j, useQuery as ee } from "@wisemen/vue-core-api-utils";
|
|
11
|
+
import { useRouter as M } from "vue-router";
|
|
12
12
|
import { Temporal as N } from "temporal-polyfill";
|
|
13
13
|
import { err as te, ok as ne } from "neverthrow";
|
|
14
14
|
import { UIBadge as P, UIColumnLayout as F, UIDialogBody as I, UIDialogFooter as L, UIDialogFooterCancel as R, UIDialogFooterPrimary as z, UIDialogHeader as B, UIFormDialog as V, useToast as H } from "@wisemen/vue-core-design-system";
|
|
15
15
|
import { useForm as U } from "formango";
|
|
16
16
|
//#region src/modules/dunning-case/api/services/dunningCaseCustomer.service.ts
|
|
17
17
|
var W = class {
|
|
18
|
-
static async getAll(
|
|
19
|
-
return (await
|
|
18
|
+
static async getAll(t, r) {
|
|
19
|
+
return (await n.fromPromise(e({ query: {
|
|
20
20
|
pagination: r,
|
|
21
|
-
search:
|
|
21
|
+
search: t
|
|
22
22
|
} }))).map((e) => ({
|
|
23
23
|
data: e.data.items.map((e) => ({
|
|
24
24
|
uuid: e.uuid,
|
|
@@ -30,7 +30,7 @@ var W = class {
|
|
|
30
30
|
static async getRecipients(e) {
|
|
31
31
|
let r = [], i = 0, a = 0;
|
|
32
32
|
do {
|
|
33
|
-
let o = await
|
|
33
|
+
let o = await n.fromPromise(t({
|
|
34
34
|
query: { pagination: {
|
|
35
35
|
limit: 100,
|
|
36
36
|
offset: i
|
|
@@ -45,9 +45,9 @@ var W = class {
|
|
|
45
45
|
} while (i < a);
|
|
46
46
|
return ne(r);
|
|
47
47
|
}
|
|
48
|
-
static async getUuidByExternalId(
|
|
49
|
-
return (await
|
|
50
|
-
filter: { externalId:
|
|
48
|
+
static async getUuidByExternalId(t) {
|
|
49
|
+
return (await n.fromPromise(e({ query: {
|
|
50
|
+
filter: { externalId: t },
|
|
51
51
|
pagination: {
|
|
52
52
|
limit: 1,
|
|
53
53
|
offset: 0
|
|
@@ -56,7 +56,7 @@ var W = class {
|
|
|
56
56
|
}
|
|
57
57
|
}, G = 3e4;
|
|
58
58
|
function K(e) {
|
|
59
|
-
return
|
|
59
|
+
return ee("dunningCaseDetail", {
|
|
60
60
|
staleTime: G,
|
|
61
61
|
params: { dunningCaseUuid: e },
|
|
62
62
|
queryFn: () => o.getByUuid(e.value)
|
|
@@ -64,27 +64,27 @@ function K(e) {
|
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region src/modules/dunning-case/components/DunningCaseReminderStatusIndicator.vue
|
|
67
|
-
var q = /* @__PURE__ */
|
|
67
|
+
var q = /* @__PURE__ */ S({
|
|
68
68
|
__name: "DunningCaseReminderStatusIndicator",
|
|
69
69
|
props: {
|
|
70
70
|
blockedReason: {},
|
|
71
71
|
status: {}
|
|
72
72
|
},
|
|
73
73
|
setup(e) {
|
|
74
|
-
let t = e, n =
|
|
74
|
+
let t = e, n = p(), r = {
|
|
75
75
|
icon: c,
|
|
76
76
|
type: "icon"
|
|
77
77
|
};
|
|
78
|
-
return (e, i) => t.blockedReason === null ? t.status === "failed" ? (
|
|
78
|
+
return (e, i) => t.blockedReason === null ? t.status === "failed" ? (w(), g(O(P), {
|
|
79
79
|
key: 1,
|
|
80
|
-
label:
|
|
80
|
+
label: O(n).t("module.dunning_case.reminder_status.failed"),
|
|
81
81
|
left: r,
|
|
82
82
|
color: "warning",
|
|
83
83
|
size: "sm",
|
|
84
84
|
variant: "translucent"
|
|
85
|
-
}, null, 8, ["label"])) :
|
|
85
|
+
}, null, 8, ["label"])) : _("", !0) : (w(), g(O(P), {
|
|
86
86
|
key: 0,
|
|
87
|
-
label:
|
|
87
|
+
label: O(n).t(`module.dunning_case.blocked_reason.${t.blockedReason}`),
|
|
88
88
|
left: r,
|
|
89
89
|
color: "error",
|
|
90
90
|
size: "sm",
|
|
@@ -92,7 +92,7 @@ var q = /* @__PURE__ */ C({
|
|
|
92
92
|
}, null, 8, ["label"]));
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
|
|
95
|
+
f.uuid().brand("DunningCaseUuid");
|
|
96
96
|
function J(e) {
|
|
97
97
|
return e === null ? "none" : e.hasErrors ? "failed" : e.sentAt === null ? "sending" : "sent";
|
|
98
98
|
}
|
|
@@ -113,7 +113,7 @@ function Y(e, t) {
|
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region src/modules/dunning-case/api/mutations/dunningCaseSend.mutation.ts
|
|
115
115
|
function X() {
|
|
116
|
-
return
|
|
116
|
+
return j({
|
|
117
117
|
queryFn: (e) => o.send(e.params.dunningCaseUuid),
|
|
118
118
|
queryKeysToInvalidate: {
|
|
119
119
|
dunningCaseDetail: { dunningCaseUuid: (e) => e.dunningCaseUuid },
|
|
@@ -123,15 +123,15 @@ function X() {
|
|
|
123
123
|
}
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region src/modules/dunning-case/use-cases/send/components/DunningCaseSendFeeRow.vue?vue&type=script&setup=true&lang.ts
|
|
126
|
-
var Z = { class: "flex items-center justify-between gap-lg px-lg py-xs" }, re = { class: "text-xs text-secondary" }, ie = { class: "font-mono text-xs font-medium text-primary tabular-nums" }, ae = /* @__PURE__ */
|
|
126
|
+
var Z = { class: "flex items-center justify-between gap-lg px-lg py-xs" }, re = { class: "text-xs text-secondary" }, ie = { class: "font-mono text-xs font-medium text-primary tabular-nums" }, ae = /* @__PURE__ */ S({
|
|
127
127
|
__name: "DunningCaseSendFeeRow",
|
|
128
128
|
props: {
|
|
129
129
|
fee: {},
|
|
130
130
|
level: {}
|
|
131
131
|
},
|
|
132
132
|
setup(e) {
|
|
133
|
-
let t = e, n =
|
|
134
|
-
return (e, r) => (
|
|
133
|
+
let t = e, n = p(), i = r();
|
|
134
|
+
return (e, r) => (w(), v("dl", Z, [y("dt", re, D(O(n).t("module.dunning_case.detail.reminder_fee")) + " · " + D(O(n).t("module.dunning_case.level.reminder", { level: t.level })), 1), y("dd", ie, D(O(i).formatMonetary(t.fee)), 1)]));
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
//#endregion
|
|
@@ -165,60 +165,60 @@ var le = { class: "min-w-0" }, ue = { class: "flex min-w-0 items-center gap-sm"
|
|
|
165
165
|
}, me = {
|
|
166
166
|
key: 2,
|
|
167
167
|
class: "flex shrink-0 gap-xxs"
|
|
168
|
-
}, he = { class: "font-mono text-xs font-medium text-primary tabular-nums" }, ge = /* @__PURE__ */
|
|
168
|
+
}, he = { class: "font-mono text-xs font-medium text-primary tabular-nums" }, ge = /* @__PURE__ */ S({
|
|
169
169
|
__name: "DunningCaseSendInvoiceRow",
|
|
170
170
|
props: {
|
|
171
171
|
hasSeparator: { type: Boolean },
|
|
172
172
|
invoice: {}
|
|
173
173
|
},
|
|
174
174
|
setup(e) {
|
|
175
|
-
let t = e, n =
|
|
176
|
-
return (e, r) => (
|
|
175
|
+
let t = e, n = p(), i = r();
|
|
176
|
+
return (e, r) => (w(), v("div", { class: C([{ "border-t border-secondary": t.hasSeparator }, "grid grid-cols-[minmax(0,1fr)_auto] items-center gap-lg px-lg py-xs"]) }, [y("div", le, [y("div", ue, [y("p", de, D(t.invoice.sequence), 1), t.invoice.isDisputed ? (w(), v("span", fe, " · " + D(O(n).t("module.dunning_case.detail.protested")), 1)) : O(Q)(t.invoice) ? (w(), v("span", pe, " (" + D(O(n).t("module.dunning_case.send.not_yet_due")) + ") ", 1)) : (w(), v("span", me, [x(a, {
|
|
177
177
|
level: t.invoice.level,
|
|
178
178
|
size: "sm"
|
|
179
|
-
}, null, 8, ["level"])]))])]),
|
|
179
|
+
}, null, 8, ["level"])]))])]), y("p", he, D(t.invoice.isDisputed ? "—" : O(i).formatMonetary(t.invoice.balanceDueAmount)), 1)], 2));
|
|
180
180
|
}
|
|
181
|
-
}), _e = { class: "w-full overflow-hidden rounded-md border border-secondary bg-primary shadow-xs" }, ve = { class: "flex items-start justify-between gap-lg border-b border-secondary px-lg py-md" }, ye = { class: "min-w-0" }, be = { class: "text-sm font-semibold text-primary" }, xe = { class: "shrink-0" }, Se = { class: "max-h-72 overflow-y-auto border-b border-secondary" }, Ce = { class: "flex items-center justify-between gap-xl bg-secondary px-lg py-md" }, we = { class: "text-sm font-medium text-primary" }, Te = { class: "font-mono text-xl font-semibold text-primary tabular-nums" }, Ee = /* @__PURE__ */
|
|
181
|
+
}), _e = { class: "w-full overflow-hidden rounded-md border border-secondary bg-primary shadow-xs" }, ve = { class: "flex items-start justify-between gap-lg border-b border-secondary px-lg py-md" }, ye = { class: "min-w-0" }, be = { class: "text-sm font-semibold text-primary" }, xe = { class: "shrink-0" }, Se = { class: "max-h-72 overflow-y-auto border-b border-secondary" }, Ce = { class: "flex items-center justify-between gap-xl bg-secondary px-lg py-md" }, we = { class: "text-sm font-medium text-primary" }, Te = { class: "font-mono text-xl font-semibold text-primary tabular-nums" }, Ee = /* @__PURE__ */ S({
|
|
182
182
|
__name: "DunningCaseSendInvoiceSummary",
|
|
183
183
|
props: {
|
|
184
184
|
dunningCase: {},
|
|
185
185
|
subject: {}
|
|
186
186
|
},
|
|
187
187
|
setup(e) {
|
|
188
|
-
let t = e, n =
|
|
189
|
-
return (e, r) => (
|
|
190
|
-
|
|
188
|
+
let t = e, n = p(), i = r(), a = h(() => ce(t.dunningCase.invoices, t.dunningCase.totalFee.amount > 0)), o = h(() => t.dunningCase.level === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: t.dunningCase.level }));
|
|
189
|
+
return (e, r) => (w(), v("section", _e, [
|
|
190
|
+
y("div", ve, [y("div", ye, [y("p", be, D(t.subject ?? O(n).t("module.dunning_case.detail.invoices")), 1)]), y("span", xe, [x(O(P), {
|
|
191
191
|
label: o.value,
|
|
192
192
|
color: "gray",
|
|
193
193
|
size: "sm",
|
|
194
194
|
variant: "translucent"
|
|
195
195
|
}, null, 8, ["label"])])]),
|
|
196
|
-
|
|
196
|
+
y("div", Se, [(w(!0), v(m, null, E(a.value, (e, n) => (w(), v(m, { key: e.type === "fee" ? "fee" : e.invoice.uuid }, [e.type === "fee" ? (w(), g(ae, {
|
|
197
197
|
key: 0,
|
|
198
198
|
fee: t.dunningCase.totalFee,
|
|
199
199
|
level: t.dunningCase.level
|
|
200
|
-
}, null, 8, ["fee", "level"])) : (
|
|
200
|
+
}, null, 8, ["fee", "level"])) : (w(), g(ge, {
|
|
201
201
|
key: 1,
|
|
202
202
|
"has-separator": a.value[n - 1]?.type === "fee",
|
|
203
203
|
invoice: e.invoice
|
|
204
204
|
}, null, 8, ["has-separator", "invoice"]))], 64))), 128))]),
|
|
205
|
-
|
|
205
|
+
y("dl", Ce, [y("dt", we, D(O(n).t("module.dunning_case.send.outstanding_balance")), 1), y("dd", Te, D(O(i).formatMonetary(t.dunningCase.outstandingBalance)), 1)])
|
|
206
206
|
]));
|
|
207
207
|
}
|
|
208
|
-
}), De = { class: "rounded-md border border-secondary bg-secondary p-md" }, $ = { class: "text-sm text-error-primary" }, Oe = /* @__PURE__ */
|
|
208
|
+
}), De = { class: "rounded-md border border-secondary bg-secondary p-md" }, $ = { class: "text-sm text-error-primary" }, Oe = /* @__PURE__ */ S({
|
|
209
209
|
__name: "DunningCaseSendRecipientAlert",
|
|
210
210
|
props: { customerDetailRoute: {} },
|
|
211
211
|
setup(e) {
|
|
212
|
-
let t = e, n =
|
|
212
|
+
let t = e, n = p(), r = M();
|
|
213
213
|
function i() {
|
|
214
214
|
t.customerDetailRoute !== null && r.push(t.customerDetailRoute);
|
|
215
215
|
}
|
|
216
|
-
return (e, r) => (
|
|
216
|
+
return (e, r) => (w(), v("div", De, [y("p", $, [b(D(O(n).t("module.dunning_case.send.no_default_recipient_description")) + " ", 1), t.customerDetailRoute === null ? _("", !0) : (w(), v("button", {
|
|
217
217
|
key: 0,
|
|
218
218
|
class: "font-medium underline hover:no-underline",
|
|
219
219
|
type: "button",
|
|
220
220
|
onClick: i
|
|
221
|
-
}, O(
|
|
221
|
+
}, D(O(n).t("module.dunning_case.send.open_customer")), 1))])]));
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
//#endregion
|
|
@@ -227,8 +227,8 @@ function ke(e) {
|
|
|
227
227
|
return e === "fr-BE" || e === "nl-BE" ? e : "en-US";
|
|
228
228
|
}
|
|
229
229
|
function Ae(e) {
|
|
230
|
-
let t =
|
|
231
|
-
return
|
|
230
|
+
let t = p(), n = s();
|
|
231
|
+
return h(() => {
|
|
232
232
|
let r = e.value;
|
|
233
233
|
return r === null || !n.result.value.isOk() ? null : n.result.value.getValue().find((e) => e.sequence === r)?.template[ke(t.locale.value)].subject || null;
|
|
234
234
|
});
|
|
@@ -236,8 +236,8 @@ function Ae(e) {
|
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region src/modules/dunning-case/use-cases/send/composables/dunningCaseSendRecipient.composable.ts
|
|
238
238
|
function je(e) {
|
|
239
|
-
let t =
|
|
240
|
-
return
|
|
239
|
+
let t = T(void 0), n = T(!0);
|
|
240
|
+
return k(e, async (e) => {
|
|
241
241
|
if (t.value = void 0, n.value = !0, e === null) return;
|
|
242
242
|
let r = await W.getRecipients(d.parse(e));
|
|
243
243
|
if (r.isErr()) {
|
|
@@ -246,7 +246,7 @@ function je(e) {
|
|
|
246
246
|
}
|
|
247
247
|
t.value = r.value.find((e) => e.isDefault)?.email ?? null, n.value = !1;
|
|
248
248
|
}, { immediate: !0 }), {
|
|
249
|
-
isMissing:
|
|
249
|
+
isMissing: h(() => t.value === null),
|
|
250
250
|
isPending: n,
|
|
251
251
|
defaultEmail: t
|
|
252
252
|
};
|
|
@@ -256,7 +256,7 @@ function je(e) {
|
|
|
256
256
|
var Me = {
|
|
257
257
|
key: 0,
|
|
258
258
|
class: "text-sm text-secondary"
|
|
259
|
-
}, Ne = { class: "flex w-full items-start gap-md rounded-md bg-secondary px-lg py-md text-secondary" }, Pe = { class: "text-xs/relaxed" }, Fe = /* @__PURE__ */
|
|
259
|
+
}, Ne = { class: "flex w-full items-start gap-md rounded-md bg-secondary px-lg py-md text-secondary" }, Pe = { class: "text-xs/relaxed" }, Fe = /* @__PURE__ */ S({
|
|
260
260
|
__name: "DunningCaseSendDialog",
|
|
261
261
|
props: {
|
|
262
262
|
dunningCaseUuid: {},
|
|
@@ -264,13 +264,13 @@ var Me = {
|
|
|
264
264
|
},
|
|
265
265
|
emits: ["close"],
|
|
266
266
|
setup(e, { emit: t }) {
|
|
267
|
-
let n = e, r = t, a =
|
|
268
|
-
let e =
|
|
267
|
+
let n = e, r = t, a = p(), o = H(), s = i(), c = X(), d = K(h(() => n.dunningCaseUuid)), b = h(() => d.result.value.isOk() ? d.result.value.getValue() : null), S = je(h(() => b.value?.customer.uuid ?? null)), C = Ae(h(() => b.value?.level ?? null)), T = h(() => {
|
|
268
|
+
let e = b.value?.customer.uuid;
|
|
269
269
|
return e === void 0 ? null : s.getCustomerDetailRoute(e);
|
|
270
|
-
}), E =
|
|
271
|
-
schema:
|
|
270
|
+
}), E = h(() => b.value === null ? 0 : se(b.value.invoices).length), k = h(() => typeof S.defaultEmail.value == "string" ? a.t("module.dunning_case.send.grouped_to", { email: S.defaultEmail.value }) : S.isMissing.value ? a.t("module.dunning_case.send.no_default_recipient") : a.t("module.dunning_case.send.description")), j = U({
|
|
271
|
+
schema: f.object({}),
|
|
272
272
|
onSubmit: async () => {
|
|
273
|
-
if (
|
|
273
|
+
if (S.isMissing.value) {
|
|
274
274
|
o.show({ message: a.t("module.dunning_case.send.no_default_recipient_blocked") });
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
@@ -281,56 +281,56 @@ var Me = {
|
|
|
281
281
|
}
|
|
282
282
|
o.show({
|
|
283
283
|
duration: Infinity,
|
|
284
|
-
message: a.t("module.dunning_case.send.success", { customer:
|
|
284
|
+
message: a.t("module.dunning_case.send.success", { customer: b.value?.customer.name ?? "" })
|
|
285
285
|
}), n.onSent?.(), r("close");
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
|
-
return (e, t) => (
|
|
289
|
-
form:
|
|
288
|
+
return (e, t) => (w(), g(O(V), {
|
|
289
|
+
form: O(j),
|
|
290
290
|
size: "lg",
|
|
291
291
|
onClose: t[0] ||= (e) => r("close")
|
|
292
292
|
}, {
|
|
293
|
-
default:
|
|
294
|
-
|
|
295
|
-
title:
|
|
296
|
-
customer:
|
|
297
|
-
level:
|
|
293
|
+
default: A(() => [
|
|
294
|
+
x(O(B), {
|
|
295
|
+
title: O(a).t("module.dunning_case.send.title", {
|
|
296
|
+
customer: b.value?.customer.name ?? "",
|
|
297
|
+
level: b.value?.level ?? ""
|
|
298
298
|
}),
|
|
299
|
-
description:
|
|
299
|
+
description: k.value,
|
|
300
300
|
"has-separator": !1,
|
|
301
|
-
icon:
|
|
301
|
+
icon: O(l)
|
|
302
302
|
}, null, 8, [
|
|
303
303
|
"title",
|
|
304
304
|
"description",
|
|
305
305
|
"icon"
|
|
306
306
|
]),
|
|
307
|
-
|
|
308
|
-
default:
|
|
309
|
-
default:
|
|
310
|
-
|
|
307
|
+
x(O(I), null, {
|
|
308
|
+
default: A(() => [x(O(F), { gap: "lg" }, {
|
|
309
|
+
default: A(() => [O(d).isLoading.value ? (w(), v("p", Me, D(O(a).t("module.dunning_case.common.loading")), 1)) : b.value === null ? _("", !0) : (w(), v(m, { key: 1 }, [
|
|
310
|
+
O(S).isMissing.value ? (w(), g(Oe, {
|
|
311
311
|
key: 0,
|
|
312
|
-
"customer-detail-route":
|
|
313
|
-
}, null, 8, ["customer-detail-route"])) :
|
|
314
|
-
|
|
315
|
-
"dunning-case":
|
|
316
|
-
subject:
|
|
312
|
+
"customer-detail-route": T.value
|
|
313
|
+
}, null, 8, ["customer-detail-route"])) : _("", !0),
|
|
314
|
+
x(Ee, {
|
|
315
|
+
"dunning-case": b.value,
|
|
316
|
+
subject: O(C)
|
|
317
317
|
}, null, 8, ["dunning-case", "subject"]),
|
|
318
|
-
|
|
318
|
+
y("div", Ne, [x(O(u), { class: "mt-xxs size-(--spacing-xl) shrink-0" }), y("p", Pe, D(O(a).t("module.dunning_case.send.impact", {
|
|
319
319
|
count: E.value,
|
|
320
|
-
level:
|
|
320
|
+
level: b.value.level
|
|
321
321
|
})), 1)])
|
|
322
322
|
], 64))]),
|
|
323
323
|
_: 1
|
|
324
324
|
})]),
|
|
325
325
|
_: 1
|
|
326
326
|
}),
|
|
327
|
-
|
|
328
|
-
right:
|
|
329
|
-
"icon-right":
|
|
330
|
-
"is-disabled":
|
|
331
|
-
"is-loading":
|
|
332
|
-
label:
|
|
333
|
-
onClick:
|
|
327
|
+
x(O(L), { "has-separator": !1 }, {
|
|
328
|
+
right: A(() => [x(O(R)), x(O(z), {
|
|
329
|
+
"icon-right": O(l),
|
|
330
|
+
"is-disabled": b.value === null || O(S).isPending.value || O(S).isMissing.value,
|
|
331
|
+
"is-loading": O(j).isSubmitting.value,
|
|
332
|
+
label: O(a).t("module.dunning_case.send.send_now"),
|
|
333
|
+
onClick: O(j).submit
|
|
334
334
|
}, null, 8, [
|
|
335
335
|
"icon-right",
|
|
336
336
|
"is-disabled",
|