@wisemen/wise-invoicing-web 0.1.0 → 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-BemnzVNY.js → BillingDocumentDetailViewDataProvider-DDdtlW-2.js} +1417 -1459
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-ehdFB6mr.js} +4 -4
- package/dist/{CreditNoteDetailViewDataProvider-BuY9ELoK.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/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +15 -0
- 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-D6E7YVV1.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
package/dist/{CreditNotePdfViewDataProvider-DI4eQkpM.js → CreditNotePdfViewDataProvider-bfeaya3P.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./DataProvider-
|
|
2
|
-
import { t } from "./InvoicePdfView-
|
|
3
|
-
import { t as n } from "./creditNoteDetail.query-
|
|
1
|
+
import { t as e } from "./DataProvider-C3uEds9v.js";
|
|
2
|
+
import { t } from "./InvoicePdfView-BJRTg_TH.js";
|
|
3
|
+
import { t as n } from "./creditNoteDetail.query-DLR7L0Ep.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,14 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { J as e, t } from "./api.util-C_kMGlJN.js";
|
|
2
|
+
import { l as n, v as r, y as i } from "./documentTitle.composable-DsBbzhXN.js";
|
|
3
3
|
import { r as a } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
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";
|
|
8
8
|
import { UIText as h } from "@wisemen/vue-core-design-system";
|
|
9
|
-
//#region src/modules/
|
|
10
|
-
var g = {
|
|
11
|
-
|
|
9
|
+
//#region src/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.ts
|
|
10
|
+
var g = class {
|
|
11
|
+
static fromDto(e) {
|
|
12
|
+
return {
|
|
13
|
+
uuid: e.uuid,
|
|
14
|
+
isRequired: e.isRequired,
|
|
15
|
+
choices: e.choices?.map((e) => ({
|
|
16
|
+
label: e.label,
|
|
17
|
+
order: e.order,
|
|
18
|
+
value: e.value
|
|
19
|
+
})).toSorted((e, t) => e.order - t.order) ?? [],
|
|
20
|
+
description: e.description,
|
|
21
|
+
entityType: e.entityType,
|
|
22
|
+
key: e.key,
|
|
23
|
+
label: e.label,
|
|
24
|
+
rules: e.rules,
|
|
25
|
+
type: e.type
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}, _ = class {
|
|
29
|
+
static async getAll(n) {
|
|
30
|
+
return (await t.fromPromise(e({ query: n?.entityTypes === void 0 ? void 0 : { filter: { entityTypes: n.entityTypes } } }))).map((e) => e.data.map(g.fromDto));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/modules/custom-field/api/queries/customFieldDefinitionIndex.query.ts
|
|
35
|
+
function v(e) {
|
|
36
|
+
return m("customFieldDefinitionIndex", {
|
|
37
|
+
params: { queryParams: e },
|
|
38
|
+
queryFn: () => _.getAll(e?.value)
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.ts
|
|
43
|
+
var y = class {
|
|
44
|
+
static filterByEntityType(e, t) {
|
|
45
|
+
return e.filter((e) => e.entityType === t);
|
|
46
|
+
}
|
|
47
|
+
static getChoiceLabel(e, t, n) {
|
|
48
|
+
let r = e.choices.find((e) => e.value === t);
|
|
49
|
+
return r === void 0 ? t : this.getLocalizedValue(r.label, n) || t;
|
|
50
|
+
}
|
|
51
|
+
static getLabel(e, t) {
|
|
52
|
+
return this.getLocalizedValue(e.label, t) || e.key;
|
|
53
|
+
}
|
|
54
|
+
static getLocalizedValue(e, t) {
|
|
55
|
+
let n = t.toLowerCase(), r = n.split("-")[0], i = e.items.find((e) => e.locale.toLowerCase() === n), a = e.items.find((e) => e.locale.toLowerCase().split("-")[0] === r);
|
|
56
|
+
return i?.value ?? a?.value ?? e.items[0]?.value ?? "";
|
|
57
|
+
}
|
|
58
|
+
}, b = {
|
|
59
|
+
[i.CREDITED]: {
|
|
12
60
|
isEditable: !1,
|
|
13
61
|
isRefreshable: !1,
|
|
14
62
|
isTerminal: !0,
|
|
@@ -16,7 +64,7 @@ var g = {
|
|
|
16
64
|
tone: "success",
|
|
17
65
|
translationKey: "wise_invoicing.invoice.status.credited"
|
|
18
66
|
},
|
|
19
|
-
[
|
|
67
|
+
[i.DRAFT]: {
|
|
20
68
|
isEditable: !0,
|
|
21
69
|
isRefreshable: !1,
|
|
22
70
|
isTerminal: !1,
|
|
@@ -24,7 +72,7 @@ var g = {
|
|
|
24
72
|
tone: "gray",
|
|
25
73
|
translationKey: "wise_invoicing.invoice.status.draft"
|
|
26
74
|
},
|
|
27
|
-
[
|
|
75
|
+
[i.FINALIZED]: {
|
|
28
76
|
isEditable: !1,
|
|
29
77
|
isRefreshable: !0,
|
|
30
78
|
isTerminal: !1,
|
|
@@ -32,7 +80,7 @@ var g = {
|
|
|
32
80
|
tone: "brand",
|
|
33
81
|
translationKey: "wise_invoicing.invoice.status.finalized"
|
|
34
82
|
},
|
|
35
|
-
[
|
|
83
|
+
[i.OVERDUE]: {
|
|
36
84
|
isEditable: !1,
|
|
37
85
|
isRefreshable: !0,
|
|
38
86
|
isTerminal: !1,
|
|
@@ -44,7 +92,7 @@ var g = {
|
|
|
44
92
|
tone: "error",
|
|
45
93
|
translationKey: "wise_invoicing.invoice.status.overdue"
|
|
46
94
|
},
|
|
47
|
-
[
|
|
95
|
+
[i.OVERPAID]: {
|
|
48
96
|
isEditable: !1,
|
|
49
97
|
isRefreshable: !1,
|
|
50
98
|
isTerminal: !0,
|
|
@@ -52,7 +100,7 @@ var g = {
|
|
|
52
100
|
tone: "warning",
|
|
53
101
|
translationKey: "wise_invoicing.invoice.status.overpaid"
|
|
54
102
|
},
|
|
55
|
-
[
|
|
103
|
+
[i.PAID]: {
|
|
56
104
|
isEditable: !1,
|
|
57
105
|
isRefreshable: !1,
|
|
58
106
|
isTerminal: !0,
|
|
@@ -60,7 +108,7 @@ var g = {
|
|
|
60
108
|
tone: "success",
|
|
61
109
|
translationKey: "wise_invoicing.invoice.status.paid"
|
|
62
110
|
},
|
|
63
|
-
[
|
|
111
|
+
[i.PROTESTED]: {
|
|
64
112
|
isEditable: !1,
|
|
65
113
|
isRefreshable: !0,
|
|
66
114
|
isTerminal: !1,
|
|
@@ -72,7 +120,7 @@ var g = {
|
|
|
72
120
|
tone: "warning",
|
|
73
121
|
translationKey: "wise_invoicing.invoice.status.protested"
|
|
74
122
|
},
|
|
75
|
-
[
|
|
123
|
+
[i.READY]: {
|
|
76
124
|
isEditable: !0,
|
|
77
125
|
isRefreshable: !1,
|
|
78
126
|
isTerminal: !1,
|
|
@@ -80,7 +128,7 @@ var g = {
|
|
|
80
128
|
tone: "blue",
|
|
81
129
|
translationKey: "wise_invoicing.invoice.status.ready"
|
|
82
130
|
},
|
|
83
|
-
[
|
|
131
|
+
[i.SENT]: {
|
|
84
132
|
isEditable: !1,
|
|
85
133
|
isRefreshable: !0,
|
|
86
134
|
isTerminal: !1,
|
|
@@ -92,67 +140,19 @@ var g = {
|
|
|
92
140
|
tone: "purple",
|
|
93
141
|
translationKey: "wise_invoicing.invoice.status.sent"
|
|
94
142
|
}
|
|
95
|
-
},
|
|
96
|
-
[r.DRAFT]:
|
|
97
|
-
[r.FINALIZED]:
|
|
98
|
-
[r.READY]:
|
|
99
|
-
},
|
|
143
|
+
}, x = {
|
|
144
|
+
[r.DRAFT]: b[i.DRAFT],
|
|
145
|
+
[r.FINALIZED]: b[i.FINALIZED],
|
|
146
|
+
[r.READY]: b[i.READY]
|
|
147
|
+
}, S = class {
|
|
100
148
|
static getLifecycleMetadata(e) {
|
|
101
|
-
return
|
|
149
|
+
return x[e];
|
|
102
150
|
}
|
|
103
151
|
static getMetadata(e) {
|
|
104
|
-
return
|
|
152
|
+
return b[e];
|
|
105
153
|
}
|
|
106
154
|
static isEditable(e) {
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
|
-
}, y = class {
|
|
110
|
-
static fromDto(e) {
|
|
111
|
-
return {
|
|
112
|
-
uuid: e.uuid,
|
|
113
|
-
isRequired: e.isRequired,
|
|
114
|
-
choices: e.choices?.map((e) => ({
|
|
115
|
-
label: e.label,
|
|
116
|
-
order: e.order,
|
|
117
|
-
value: e.value
|
|
118
|
-
})).toSorted((e, t) => e.order - t.order) ?? [],
|
|
119
|
-
description: e.description,
|
|
120
|
-
entityType: e.entityType,
|
|
121
|
-
key: e.key,
|
|
122
|
-
label: e.label,
|
|
123
|
-
rules: e.rules,
|
|
124
|
-
type: e.type
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
}, b = class {
|
|
128
|
-
static async getAll(n) {
|
|
129
|
-
return (await t.fromPromise(e({ query: n?.entityTypes === void 0 ? void 0 : { filter: { entityTypes: n.entityTypes } } }))).map((e) => e.data.map(y.fromDto));
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region src/modules/custom-field/api/queries/customFieldDefinitionIndex.query.ts
|
|
134
|
-
function x(e) {
|
|
135
|
-
return m("customFieldDefinitionIndex", {
|
|
136
|
-
params: { queryParams: e },
|
|
137
|
-
queryFn: () => b.getAll(e?.value)
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
//#endregion
|
|
141
|
-
//#region src/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.ts
|
|
142
|
-
var S = class {
|
|
143
|
-
static filterByEntityType(e, t) {
|
|
144
|
-
return e.filter((e) => e.entityType === t);
|
|
145
|
-
}
|
|
146
|
-
static getChoiceLabel(e, t, n) {
|
|
147
|
-
let r = e.choices.find((e) => e.value === t);
|
|
148
|
-
return r === void 0 ? t : this.getLocalizedValue(r.label, n) || t;
|
|
149
|
-
}
|
|
150
|
-
static getLabel(e, t) {
|
|
151
|
-
return this.getLocalizedValue(e.label, t) || e.key;
|
|
152
|
-
}
|
|
153
|
-
static getLocalizedValue(e, t) {
|
|
154
|
-
let n = t.toLowerCase(), r = n.split("-")[0], i = e.items.find((e) => e.locale.toLowerCase() === n), a = e.items.find((e) => e.locale.toLowerCase().split("-")[0] === r);
|
|
155
|
-
return i?.value ?? a?.value ?? e.items[0]?.value ?? "";
|
|
155
|
+
return b[e].isEditable;
|
|
156
156
|
}
|
|
157
157
|
}, C = /* @__PURE__ */ u({
|
|
158
158
|
__name: "CustomFieldValueText",
|
|
@@ -162,22 +162,22 @@ var S = class {
|
|
|
162
162
|
value: {}
|
|
163
163
|
},
|
|
164
164
|
setup(e) {
|
|
165
|
-
let t = e,
|
|
165
|
+
let t = e, r = s(), i = a(), u = o(), m = c(() => {
|
|
166
166
|
switch (t.value.type) {
|
|
167
|
-
case
|
|
168
|
-
case
|
|
169
|
-
case
|
|
170
|
-
case
|
|
171
|
-
case
|
|
172
|
-
case
|
|
173
|
-
case
|
|
174
|
-
case
|
|
175
|
-
case
|
|
167
|
+
case n.BOOLEAN: return t.value.value ? r.t("wise_invoicing.common.yes") : r.t("wise_invoicing.common.no");
|
|
168
|
+
case n.DATE: return t.value.value === "infinity" ? r.t("wise_invoicing.custom_field.date.infinity") : t.value.value === "-infinity" ? r.t("wise_invoicing.custom_field.date.negative_infinity") : u.formatPlainDate(t.value.value);
|
|
169
|
+
case n.MONETARY: return i.formatMonetary(t.value.value);
|
|
170
|
+
case n.MULTI_SELECT: return t.value.value.map((e) => _(e)).join(", ");
|
|
171
|
+
case n.NUMBER: return new Intl.NumberFormat(r.locale.value, { maximumFractionDigits: 20 }).format(t.value.value);
|
|
172
|
+
case n.SINGLE_SELECT: return _(t.value.value);
|
|
173
|
+
case n.TEXT: return t.value.value;
|
|
174
|
+
case n.TEXT_ARRAY: return t.value.value.join(", ");
|
|
175
|
+
case n.TIMESTAMP: return u.toDateTime(t.value.value);
|
|
176
176
|
default: throw TypeError("Unsupported custom field value type");
|
|
177
177
|
}
|
|
178
178
|
}), g = c(() => t.size === "md" ? "min-w-0 text-sm/5 text-primary" : "min-w-0 text-xs text-primary");
|
|
179
179
|
function _(e) {
|
|
180
|
-
return t.definition === void 0 ? e :
|
|
180
|
+
return t.definition === void 0 ? e : y.getChoiceLabel(t.definition, e, r.locale.value);
|
|
181
181
|
}
|
|
182
182
|
return (e, t) => (f(), l(p(h), {
|
|
183
183
|
text: m.value || "-",
|
|
@@ -186,4 +186,4 @@ var S = class {
|
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
//#endregion
|
|
189
|
-
export { v as i, S as n,
|
|
189
|
+
export { v as i, S as n, y as r, C as t };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useI18n as e } from "vue-i18n";
|
|
2
|
+
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, renderSlot as c, unref as l } from "vue";
|
|
3
|
+
import { ApiErrorUtil as u } from "@wisemen/vue-core-api-utils";
|
|
4
|
+
import { useRouter as d } from "vue-router";
|
|
5
|
+
import { UIEmptyState as f } from "@wisemen/vue-core-design-system";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/ui/data-provider/DataProviderErrorState.vue
|
|
8
|
+
var p = /* @__PURE__ */ o({
|
|
9
|
+
__name: "DataProviderErrorState",
|
|
10
|
+
props: { error: {} },
|
|
11
|
+
setup(r) {
|
|
12
|
+
let i = r, a = e(), o = d(), c = t(() => u.isExpectedApiError(i.error) ? i.error.errors[0] ?? null : null), p = t(() => c.value?.status === "404"), m = t(() => p.value ? a.t("wise_invoicing.common.not_found.title") : c.value?.status ?? a.t("wise_invoicing.common.error")), h = t(() => p.value ? a.t("wise_invoicing.common.not_found.description") : c.value === null ? u.isExpectedApiError(i.error) ? a.t("wise_invoicing.common.error") : i.error.message : c.value.detail);
|
|
13
|
+
function g() {
|
|
14
|
+
o.back();
|
|
15
|
+
}
|
|
16
|
+
function _() {
|
|
17
|
+
o.push({ name: "invoicing-invoice-overview" });
|
|
18
|
+
}
|
|
19
|
+
return (e, t) => (s(), n(l(f), {
|
|
20
|
+
description: h.value,
|
|
21
|
+
illustration: p.value ? "cloud-search" : null,
|
|
22
|
+
"primary-action": p.value ? {
|
|
23
|
+
label: l(a).t("wise_invoicing.common.not_found.invoice_overview"),
|
|
24
|
+
onClick: _,
|
|
25
|
+
type: "button"
|
|
26
|
+
} : null,
|
|
27
|
+
"secondary-action": p.value ? {
|
|
28
|
+
label: l(a).t("wise_invoicing.common.back"),
|
|
29
|
+
onClick: g,
|
|
30
|
+
type: "button"
|
|
31
|
+
} : null,
|
|
32
|
+
title: m.value
|
|
33
|
+
}, null, 8, [
|
|
34
|
+
"description",
|
|
35
|
+
"illustration",
|
|
36
|
+
"primary-action",
|
|
37
|
+
"secondary-action",
|
|
38
|
+
"title"
|
|
39
|
+
]));
|
|
40
|
+
}
|
|
41
|
+
}), m = {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "flex h-full items-center justify-center"
|
|
44
|
+
}, h = /* @__PURE__ */ o({
|
|
45
|
+
__name: "DataProvider",
|
|
46
|
+
props: { queries: {} },
|
|
47
|
+
setup(e) {
|
|
48
|
+
let n = e, o = t(() => {
|
|
49
|
+
for (let e in n.queries) if (n.queries[e].isLoading.value) return !0;
|
|
50
|
+
return !1;
|
|
51
|
+
}), l = t(() => {
|
|
52
|
+
for (let e in n.queries) {
|
|
53
|
+
let t = n.queries[e].result.value;
|
|
54
|
+
if (t != null && t.isErr()) return t.getError();
|
|
55
|
+
}
|
|
56
|
+
return null;
|
|
57
|
+
}), u = t(() => {
|
|
58
|
+
for (let e in n.queries) {
|
|
59
|
+
let t = n.queries[e].result.value;
|
|
60
|
+
if (t == null || t.isErr()) return !1;
|
|
61
|
+
}
|
|
62
|
+
return !0;
|
|
63
|
+
}), d = t(() => {
|
|
64
|
+
let e = {};
|
|
65
|
+
for (let t in n.queries) {
|
|
66
|
+
let r = t, i = n.queries[r].result.value;
|
|
67
|
+
i == null || !i.isOk() || (e[r] = i.getValue());
|
|
68
|
+
}
|
|
69
|
+
return e;
|
|
70
|
+
});
|
|
71
|
+
return (e, t) => o.value ? c(e.$slots, "loading", {}, void 0, void 0, 0) : l.value === null ? u.value ? c(e.$slots, "default", { data: d.value }, void 0, void 0, 2) : r("", !0) : (s(), i("div", m, [a(p, { error: l.value }, null, 8, ["error"])]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { h as t };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
2
|
+
import "./api.util-C_kMGlJN.js";
|
|
3
|
+
import { t, w as n } from "./documentTitle.composable-DsBbzhXN.js";
|
|
4
4
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
6
|
-
import { n as a } from "./reminderConfig.query-
|
|
7
|
-
import {
|
|
8
|
-
import { a as u, i as ne, n as re, r as ie, t as ae } from "./DunningCaseSendDialog-
|
|
5
|
+
import { n as i } from "./invoicingConfig.composable-rxjGK882.js";
|
|
6
|
+
import { n as a } from "./reminderConfig.query-snaHQmrY.js";
|
|
7
|
+
import { S as o, W as ee, Y as s, at as c, ct as l, et as te } from "./dist-Cxdm09Lp.js";
|
|
8
|
+
import { a as u, i as ne, n as re, r as ie, t as ae } from "./DunningCaseSendDialog-BPXcqit5.js";
|
|
9
9
|
import { n as oe } from "./dist-boJIIxnT.js";
|
|
10
|
-
import { t as d } from "./DataProvider-
|
|
11
|
-
import { useViewModels as se } from "@wisemen/vue-core-actions";
|
|
12
|
-
import { RouterLink as ce, useRouter as le } from "vue-router";
|
|
10
|
+
import { t as d } from "./DataProvider-C3uEds9v.js";
|
|
13
11
|
import { useI18n as f } from "vue-i18n";
|
|
14
|
-
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, normalizeClass as S, normalizeStyle as
|
|
12
|
+
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, normalizeClass as S, normalizeStyle as se, openBlock as C, ref as w, renderList as T, toDisplayString as E, unref as D, withCtx as O } from "vue";
|
|
13
|
+
import { RouterLink as ce, useRouter as le } from "vue-router";
|
|
15
14
|
import { Temporal as k } from "temporal-polyfill";
|
|
16
|
-
import { UIBadge as A, UIButton as
|
|
15
|
+
import { UIBadge as A, UIButton as ue, UIDashboardPage as de, UIDashboardPageContent as fe, UIDashboardPageLoadingState as j, UITabs as pe, UITabsItem as M, UITabsList as me, UITooltip as he, UITooltipContent as ge, useOverlay as _e } from "@wisemen/vue-core-design-system";
|
|
16
|
+
import { useViewModels as ve } from "@wisemen/vue-core-actions";
|
|
17
17
|
//#region src/modules/dunning-case/use-cases/detail/views/DunningCaseDetailView.vue?vue&type=script&setup=true&lang.ts
|
|
18
18
|
var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg lg:flex-row lg:items-start lg:justify-between" }, xe = { class: "flex flex-wrap items-center gap-sm" }, Se = { class: "text-lg font-semibold text-primary" }, Ce = { key: 1 }, we = { class: "inline-flex items-center gap-xs rounded-sm border border-secondary px-sm py-px text-xs text-primary" }, Te = {
|
|
19
19
|
key: 0,
|
|
@@ -62,12 +62,12 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
62
62
|
__name: "DunningCaseDetailView",
|
|
63
63
|
props: { dunningCase: {} },
|
|
64
64
|
setup(e) {
|
|
65
|
-
let u = e, d = f(), x =
|
|
65
|
+
let u = e, d = f(), x = _e(), j = r(), P = oe(), F = t(), I = i(), L = le(), R = w("overdue");
|
|
66
66
|
function z(e) {
|
|
67
67
|
return e.payments.length > 0 || e.creditNotes.length > 0;
|
|
68
68
|
}
|
|
69
69
|
let B = w(u.dunningCase.invoices.find(z)?.uuid ?? null);
|
|
70
|
-
F.set(() => u.dunningCase.customer.name),
|
|
70
|
+
F.set(() => u.dunningCase.customer.name), ve(m(() => [{
|
|
71
71
|
key: u.dunningCase.uuid,
|
|
72
72
|
modelName: "DunningCase",
|
|
73
73
|
...u.dunningCase
|
|
@@ -154,8 +154,8 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
154
154
|
}
|
|
155
155
|
function Kt(e) {
|
|
156
156
|
if (e.type === "reminder-due") return d.t("module.dunning_case.detail.today");
|
|
157
|
-
let
|
|
158
|
-
return e.type === "payment" && e.settlementStatus ===
|
|
157
|
+
let t = Wt(e);
|
|
158
|
+
return e.type === "payment" && e.settlementStatus === n.PARTIALLY_PAID ? d.t("module.dunning_case.detail.payment_partially_paid", { date: t }) : t;
|
|
159
159
|
}
|
|
160
160
|
function Q(e) {
|
|
161
161
|
return e.dueOn.until(k.Now.plainDateISO(), { largestUnit: "days" }).days;
|
|
@@ -169,12 +169,12 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
169
169
|
}
|
|
170
170
|
function Jt(e) {
|
|
171
171
|
switch (e) {
|
|
172
|
-
case
|
|
173
|
-
case
|
|
174
|
-
case
|
|
175
|
-
case
|
|
176
|
-
case
|
|
177
|
-
case
|
|
172
|
+
case n.PARTIALLY_PAID: return "warning";
|
|
173
|
+
case n.CREDITED:
|
|
174
|
+
case n.OVERPAID:
|
|
175
|
+
case n.PAID:
|
|
176
|
+
case n.SETTLED: return "success";
|
|
177
|
+
case n.UNPAID: return "error";
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
function Yt() {
|
|
@@ -183,11 +183,11 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
183
183
|
function Xt(e) {
|
|
184
184
|
B.value = B.value === e ? null : e;
|
|
185
185
|
}
|
|
186
|
-
return (e, t) => (C(), h(D(
|
|
186
|
+
return (e, t) => (C(), h(D(de), {
|
|
187
187
|
breadcrumbs: Ht.value,
|
|
188
188
|
title: u.dunningCase.customer.name
|
|
189
189
|
}, {
|
|
190
|
-
default: O(() => [b(D(
|
|
190
|
+
default: O(() => [b(D(fe), null, {
|
|
191
191
|
default: O(() => [v("div", ye, [
|
|
192
192
|
v("div", be, [v("div", null, [
|
|
193
193
|
v("div", xe, [
|
|
@@ -205,9 +205,9 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
205
205
|
]),
|
|
206
206
|
u.dunningCase.customer.vatNumber || u.dunningCase.customer.email ? (C(), _("p", Te, E([u.dunningCase.customer.vatNumber, u.dunningCase.customer.email].filter(Boolean).join(" · ")), 1)) : g("", !0),
|
|
207
207
|
v("p", Ee, E(D(d).t("module.dunning_case.detail.last_synced", { date: D(P).toDateTime(u.dunningCase.updatedAt) })), 1)
|
|
208
|
-
]), u.dunningCase.canSendReminder ? (C(), h(D(
|
|
208
|
+
]), u.dunningCase.canSendReminder ? (C(), h(D(ue), {
|
|
209
209
|
key: 0,
|
|
210
|
-
"icon-right": D(
|
|
210
|
+
"icon-right": D(l),
|
|
211
211
|
"is-loading": G.value === "sending",
|
|
212
212
|
label: D(d).t("module.dunning_case.detail.send"),
|
|
213
213
|
class: "w-fit self-start lg:ml-auto",
|
|
@@ -235,10 +235,10 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
235
235
|
"bg-error-solid": t === 3,
|
|
236
236
|
"bg-warning-solid": t === 2
|
|
237
237
|
}, "h-full"]),
|
|
238
|
-
style:
|
|
238
|
+
style: se({ width: `${Vt(e.amount)}%` })
|
|
239
239
|
}, null, 6))), 128))])
|
|
240
240
|
]),
|
|
241
|
-
v("div", Pe, [(C(!0), _(p, null, T(Bt.value, (e) => (C(), h(D(
|
|
241
|
+
v("div", Pe, [(C(!0), _(p, null, T(Bt.value, (e) => (C(), h(D(he), {
|
|
242
242
|
key: e.level,
|
|
243
243
|
"popover-side-offset": 8,
|
|
244
244
|
"popover-align": "start",
|
|
@@ -254,13 +254,13 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
254
254
|
"bg-error-solid": e.level === 3,
|
|
255
255
|
"bg-warning-solid": e.level === 2
|
|
256
256
|
}, "size-(--spacing-sm) shrink-0 rounded-full"]) }, null, 2), v("span", Le, E(X(e.level)), 1)]), v("span", Re, E(D(j).formatMonetary(e.amount)), 1)], 8, Fe)]),
|
|
257
|
-
content: O(() => [b(D(
|
|
257
|
+
content: O(() => [b(D(ge), { class: "max-w-80! text-sm!" }, {
|
|
258
258
|
default: O(() => [y(E(Z(e.level, e.amount)), 1)]),
|
|
259
259
|
_: 2
|
|
260
260
|
}, 1024)]),
|
|
261
261
|
_: 2
|
|
262
262
|
}, 1024))), 128))]),
|
|
263
|
-
v("div", ze, [v("span", Be, [b(D(
|
|
263
|
+
v("div", ze, [v("span", Be, [b(D(o), { class: "size-(--spacing-xl) text-brand-700" })]), v("div", Ve, [v("p", He, E(D(d).t("module.dunning_case.detail.next_reminder")), 1), v("p", Ue, E(u.dunningCase.nextReminderOn === null ? D(d).t("module.dunning_case.overview.not_scheduled") : D(P).formatPlainDate(u.dunningCase.nextReminderOn)), 1)])]),
|
|
264
264
|
v("div", We, [v("span", Ge, [b(D(s), { class: "size-(--spacing-xl) text-brand-700" })]), v("div", null, [
|
|
265
265
|
v("p", Ke, E(D(d).t("module.dunning_case.detail.invoices")), 1),
|
|
266
266
|
v("p", qe, E(u.dunningCase.invoices.length), 1),
|
|
@@ -268,13 +268,13 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
268
268
|
])])
|
|
269
269
|
]),
|
|
270
270
|
v("div", Ye, [v("main", Xe, [v("div", Ze, [
|
|
271
|
-
v("div", Qe, [b(D(
|
|
271
|
+
v("div", Qe, [b(D(pe), {
|
|
272
272
|
modelValue: R.value,
|
|
273
273
|
"onUpdate:modelValue": t[0] ||= (e) => R.value = e,
|
|
274
274
|
"aria-label": D(d).t("module.dunning_case.detail.invoice_tabs"),
|
|
275
275
|
variant: "underline"
|
|
276
276
|
}, {
|
|
277
|
-
default: O(() => [b(D(
|
|
277
|
+
default: O(() => [b(D(me), null, {
|
|
278
278
|
default: O(() => [b(D(M), {
|
|
279
279
|
label: D(d).t("module.dunning_case.detail.overdue_invoices"),
|
|
280
280
|
value: "overdue"
|
|
@@ -355,7 +355,7 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
355
355
|
amount: D(j).formatMonetary(e.grossAmount),
|
|
356
356
|
date: D(P).formatPlainDate(e.finalizedOn),
|
|
357
357
|
sequence: e.sequence
|
|
358
|
-
})), 1)]))), 128))])])], 2)])], 10, bt)) : g("", !0)], 64))), 128))])])) : (C(), _("div", wt, [v("span", Tt, [b(D(
|
|
358
|
+
})), 1)]))), 128))])])], 2)])], 10, bt)) : g("", !0)], 64))), 128))])])) : (C(), _("div", wt, [v("span", Tt, [b(D(c), { class: "size-(--spacing-xl) text-primary" })]), v("p", Et, E(D(d).t(R.value === "overdue" ? "module.dunning_case.detail.empty_overdue" : "module.dunning_case.detail.empty_outstanding")), 1)]))]),
|
|
359
359
|
R.value === "overdue" ? (C(), _("div", Dt, [v("div", Ot, [v("span", null, E(D(d).t("module.dunning_case.detail.total_outstanding")), 1), v("span", kt, E(D(j).formatMonetary(q.value)), 1)]), v("div", At, [v("span", null, E(u.dunningCase.level === 0 ? D(d).t("module.dunning_case.detail.reminder_fee") : D(d).t("module.dunning_case.detail.fee", { level: u.dunningCase.level })), 1), v("span", jt, E(D(j).formatMonetary(u.dunningCase.totalFee)), 1)])])) : g("", !0)
|
|
360
360
|
])]), v("aside", Mt, [v("h2", Nt, E(D(d).t("module.dunning_case.detail.activity")), 1), v("ol", Pt, [(C(!0), _(p, null, T(V.value, (e, t) => (C(), _("li", {
|
|
361
361
|
key: e.key,
|
|
@@ -365,7 +365,7 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
365
365
|
"bg-error-secondary": e.type === "reminder-due",
|
|
366
366
|
"bg-success-secondary": e.type === "payment" || e.type === "case-closed",
|
|
367
367
|
"bg-tertiary": e.type === "credit-note"
|
|
368
|
-
}, "flex size-(--spacing-3xl) shrink-0 items-center justify-center rounded-full"]) }, [e.type === "reminder-due" ? (C(), h(D(
|
|
368
|
+
}, "flex size-(--spacing-3xl) shrink-0 items-center justify-center rounded-full"]) }, [e.type === "reminder-due" ? (C(), h(D(o), {
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "size-(--spacing-lg) text-error-primary"
|
|
371
371
|
})) : e.type === "payment" ? (C(), h(D(te), {
|
|
@@ -374,10 +374,10 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
374
374
|
})) : e.type === "credit-note" ? (C(), h(D(s), {
|
|
375
375
|
key: 2,
|
|
376
376
|
class: "size-(--spacing-lg) text-secondary"
|
|
377
|
-
})) : e.type === "reminder-sent" ? (C(), h(D(
|
|
377
|
+
})) : e.type === "reminder-sent" ? (C(), h(D(l), {
|
|
378
378
|
key: 3,
|
|
379
379
|
class: "size-(--spacing-lg) text-brand-tertiary"
|
|
380
|
-
})) : e.type === "case-closed" ? (C(), h(D(
|
|
380
|
+
})) : e.type === "case-closed" ? (C(), h(D(c), {
|
|
381
381
|
key: 4,
|
|
382
382
|
class: "size-(--spacing-lg) text-success-primary"
|
|
383
383
|
})) : g("", !0)], 2), t < V.value.length - 1 ? (C(), _("span", It)) : g("", !0)]), v("div", { class: S([{ "pb-xl": t < V.value.length - 1 }, "pt-xs"]) }, [v("p", Lt, E(Gt(e)), 1), v("p", Rt, E(Kt(e)), 1)], 2)]))), 128))])])])
|