@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
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
4
|
-
import { n as r } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as _, t as
|
|
8
|
-
import { i as te, r as v } from "./CustomFieldValueText-BGbQwhON.js";
|
|
1
|
+
import { t as e } from "./i18n.lib-Cvr8pcDw.js";
|
|
2
|
+
import "./api.util-C_kMGlJN.js";
|
|
3
|
+
import { r as t, y as n } from "./documentTitle.composable-DsBbzhXN.js";
|
|
4
|
+
import { n as r } from "./address.transformer-jGddczLV.js";
|
|
5
|
+
import { t as i } from "./download.util-B5Q7KUC9.js";
|
|
6
|
+
import { E as a, F as o, H as s, W as c, Z as l, _ as u, ct as d, h as f, i as p, j as m, k as h, l as g } from "./dist-Cxdm09Lp.js";
|
|
7
|
+
import { n as _, t as v } from "./dist-boJIIxnT.js";
|
|
9
8
|
import { t as y } from "./formango.util-D5c2ql--.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
9
|
+
import { i as b, n as ee } from "./CustomFieldValueText-CZQXGE5F.js";
|
|
10
|
+
import { n as x, r as S, t as C } from "./creditNoteDetail.query-DLR7L0Ep.js";
|
|
11
|
+
import { C as w, S as T, _ as E, a as D, b as te, c as O, d as k, f as A, g as ne, h as re, i as ie, m as ae, n as oe, o as se, p as ce, r as le, s as ue, t as de, u as fe, v as pe, x as me, y as he } from "./BillingDocumentDetailViewDataProvider-DDdtlW-2.js";
|
|
12
|
+
import { r as ge } from "./InvoicingFileUploadProvider-D9Xk4rQM.js";
|
|
13
|
+
import _e, { z as j } from "zod";
|
|
14
14
|
import { useI18n as M } from "vue-i18n";
|
|
15
|
-
import { Fragment as
|
|
16
|
-
import { useKeysetInfiniteQuery as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { Fragment as ve, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as ye, createElementVNode as be, createVNode as I, defineComponent as L, mergeProps as R, normalizeClass as z, openBlock as B, ref as V, renderSlot as xe, resolveDynamicComponent as Se, unref as H, withCtx as U } from "vue";
|
|
16
|
+
import { useKeysetInfiniteQuery as Ce, useMutation as W } from "@wisemen/vue-core-api-utils";
|
|
17
|
+
import { useRouter as we } from "vue-router";
|
|
18
|
+
import { UIAnimateHeight as Te, UIBadge as Ee, UIClickableElement as De, UIColumnLayout as G, UIDateField as Oe, UIDialogFooter as ke, UIDialogFooterCancel as Ae, UIDialogFooterSubmit as je, UIDialogHeader as Me, UIForm as K, UIFormDialog as Ne, UIRowLayout as q, UISeparator as Pe, UIText as J, UITextField as Fe, useOverlay as Ie, useToast as Y } from "@wisemen/vue-core-design-system";
|
|
19
|
+
import { useForm as X } from "formango";
|
|
19
20
|
//#region src/modules/credit-note/api/mutations/creditNoteUpdate.mutation.ts
|
|
20
|
-
function
|
|
21
|
+
function Z() {
|
|
21
22
|
return W({
|
|
22
|
-
queryFn: (e) =>
|
|
23
|
+
queryFn: (e) => x.update(e.params.creditNoteUuid, e.body),
|
|
23
24
|
queryKeysToInvalidate: {
|
|
24
25
|
creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
|
|
25
26
|
invoiceIndex: {}
|
|
@@ -28,8 +29,8 @@ function Q() {
|
|
|
28
29
|
}
|
|
29
30
|
//#endregion
|
|
30
31
|
//#region src/modules/credit-note/models/update/creditNoteUpdateForm.model.ts
|
|
31
|
-
var
|
|
32
|
-
issuedOn:
|
|
32
|
+
var Le = j.object({
|
|
33
|
+
issuedOn: v,
|
|
33
34
|
externalRemarks: j.string().nullable(),
|
|
34
35
|
poNumber: j.string().nullable(),
|
|
35
36
|
subject: j.string().nullable()
|
|
@@ -39,12 +40,12 @@ var Ie = j.object({
|
|
|
39
40
|
message: e.global.t("wise_invoicing.credit_note.finalize.validation.external_remarks_required"),
|
|
40
41
|
path: ["externalRemarks"]
|
|
41
42
|
});
|
|
42
|
-
}),
|
|
43
|
+
}), Re = j.object({ subject: j.string().nullable() });
|
|
43
44
|
//#endregion
|
|
44
45
|
//#region src/modules/credit-note/api/mutations/creditNoteFinalize.mutation.ts
|
|
45
|
-
function
|
|
46
|
+
function ze() {
|
|
46
47
|
return W({
|
|
47
|
-
queryFn: (e) =>
|
|
48
|
+
queryFn: (e) => x.finalize(e.params.creditNoteUuid),
|
|
48
49
|
queryKeysToInvalidate: {
|
|
49
50
|
creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
|
|
50
51
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
@@ -54,9 +55,9 @@ function Re() {
|
|
|
54
55
|
}
|
|
55
56
|
//#endregion
|
|
56
57
|
//#region src/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.ts
|
|
57
|
-
function
|
|
58
|
+
function Be() {
|
|
58
59
|
return W({
|
|
59
|
-
queryFn: (e) =>
|
|
60
|
+
queryFn: (e) => x.markAsDraft(e.params.creditNoteUuid),
|
|
60
61
|
queryKeysToInvalidate: {
|
|
61
62
|
creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
|
|
62
63
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
@@ -66,9 +67,9 @@ function ze() {
|
|
|
66
67
|
}
|
|
67
68
|
//#endregion
|
|
68
69
|
//#region src/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.ts
|
|
69
|
-
function
|
|
70
|
+
function Ve() {
|
|
70
71
|
return W({
|
|
71
|
-
queryFn: (e) =>
|
|
72
|
+
queryFn: (e) => x.markAsReady(e.params.creditNoteUuid),
|
|
72
73
|
queryKeysToInvalidate: {
|
|
73
74
|
creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
|
|
74
75
|
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
@@ -78,29 +79,29 @@ function Be() {
|
|
|
78
79
|
}
|
|
79
80
|
//#endregion
|
|
80
81
|
//#region src/modules/credit-note/api/mutations/creditNoteSend.mutation.ts
|
|
81
|
-
function
|
|
82
|
+
function He() {
|
|
82
83
|
return W({
|
|
83
|
-
queryFn: (e) =>
|
|
84
|
+
queryFn: (e) => x.send(e.params.creditNoteUuid),
|
|
84
85
|
queryKeysToInvalidate: { creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid } }
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
88
|
//#endregion
|
|
88
89
|
//#region src/modules/credit-note/api/mutations/creditNoteDelete.mutation.ts
|
|
89
|
-
function
|
|
90
|
+
function Ue() {
|
|
90
91
|
return W({
|
|
91
|
-
queryFn: (e) =>
|
|
92
|
+
queryFn: (e) => x.delete(e.params.creditNoteUuid),
|
|
92
93
|
queryKeysToInvalidate: { invoiceIndex: {} }
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
//#endregion
|
|
96
97
|
//#region src/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue
|
|
97
|
-
var
|
|
98
|
+
var We = /* @__PURE__ */ L({
|
|
98
99
|
__name: "CreditNoteDeleteDialog",
|
|
99
100
|
props: { creditNote: {} },
|
|
100
101
|
emits: ["close", "deleted"],
|
|
101
102
|
setup(e, { emit: t }) {
|
|
102
|
-
let n = e, r = t, i = M(), a =
|
|
103
|
-
schema:
|
|
103
|
+
let n = e, r = t, i = M(), a = we(), o = Y(), s = Ue(), c = N(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = X({
|
|
104
|
+
schema: _e.object({}),
|
|
104
105
|
onSubmit: async () => {
|
|
105
106
|
let e = await s.execute({ params: { creditNoteUuid: n.creditNote.uuid } });
|
|
106
107
|
if (e.isErr()) {
|
|
@@ -117,8 +118,7 @@ var Ue = /* @__PURE__ */ L({
|
|
|
117
118
|
}, {
|
|
118
119
|
default: U(() => [I(H(Me), {
|
|
119
120
|
title: H(i).t("wise_invoicing.credit_note.delete.title"),
|
|
120
|
-
description: H(i).t("wise_invoicing.credit_note.delete.description", { creditNoteIdentifier: c.value })
|
|
121
|
-
"is-description-visible": !0
|
|
121
|
+
description: H(i).t("wise_invoicing.credit_note.delete.description", { creditNoteIdentifier: c.value })
|
|
122
122
|
}, null, 8, ["title", "description"]), I(H(ke), null, {
|
|
123
123
|
right: U(() => [I(H(Ae), { label: "cancel" }), I(H(je), {
|
|
124
124
|
"is-destructive": !0,
|
|
@@ -132,117 +132,117 @@ var Ue = /* @__PURE__ */ L({
|
|
|
132
132
|
});
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.ts
|
|
135
|
-
function
|
|
136
|
-
let
|
|
137
|
-
async function
|
|
138
|
-
let
|
|
135
|
+
function Ge(e) {
|
|
136
|
+
let t = M(), r = Y(), o = Ie(), s = o.create(We), c = o.create(te), l = ze(), f = Be(), g = Ve(), _ = He(), { shouldSkipConfirmation: v } = me(), y = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), b = N(() => e.value.status !== n.DRAFT && e.value.status !== n.READY);
|
|
137
|
+
async function S() {
|
|
138
|
+
let n = await g.execute({ params: {
|
|
139
139
|
creditNoteUuid: e.value.uuid,
|
|
140
|
-
invoiceUuid:
|
|
140
|
+
invoiceUuid: y.value
|
|
141
141
|
} });
|
|
142
|
-
if (
|
|
143
|
-
|
|
142
|
+
if (n.isErr()) {
|
|
143
|
+
r.apiError(n.error);
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
r.show({ message: t.t("wise_invoicing.credit_note.mark_as_ready.success") });
|
|
147
147
|
}
|
|
148
|
-
async function
|
|
149
|
-
let
|
|
148
|
+
async function C() {
|
|
149
|
+
let n = await l.execute({ params: {
|
|
150
150
|
creditNoteUuid: e.value.uuid,
|
|
151
|
-
invoiceUuid:
|
|
151
|
+
invoiceUuid: y.value
|
|
152
152
|
} });
|
|
153
|
-
return
|
|
153
|
+
return n.isErr() ? (r.apiError(n.error), !1) : (r.show({ message: t.t("wise_invoicing.credit_note.finalize.success") }), !0);
|
|
154
154
|
}
|
|
155
|
-
async function
|
|
156
|
-
if (
|
|
157
|
-
await
|
|
155
|
+
async function w() {
|
|
156
|
+
if (v.value) {
|
|
157
|
+
await C();
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
|
-
await
|
|
160
|
+
await c.open({
|
|
161
161
|
billingDocumentType: "credit_note",
|
|
162
|
-
onConfirm:
|
|
162
|
+
onConfirm: C
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
async function
|
|
166
|
-
let
|
|
165
|
+
async function T() {
|
|
166
|
+
let n = await f.execute({ params: {
|
|
167
167
|
creditNoteUuid: e.value.uuid,
|
|
168
|
-
invoiceUuid:
|
|
168
|
+
invoiceUuid: y.value
|
|
169
169
|
} });
|
|
170
|
-
if (
|
|
171
|
-
|
|
170
|
+
if (n.isErr()) {
|
|
171
|
+
r.apiError(n.error);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
r.show({ message: t.t("wise_invoicing.credit_note.mark_as_draft.success") });
|
|
175
175
|
}
|
|
176
|
-
async function
|
|
177
|
-
let
|
|
178
|
-
if (
|
|
179
|
-
|
|
176
|
+
async function E() {
|
|
177
|
+
let n = await _.execute({ params: { creditNoteUuid: e.value.uuid } });
|
|
178
|
+
if (n.isErr()) {
|
|
179
|
+
r.apiError(n.error);
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
r.show({ message: t.t("wise_invoicing.credit_note.send.success") });
|
|
183
183
|
}
|
|
184
|
-
async function
|
|
184
|
+
async function D() {
|
|
185
185
|
await s.open({ creditNote: e.value });
|
|
186
186
|
}
|
|
187
|
-
async function
|
|
188
|
-
let
|
|
189
|
-
if (
|
|
190
|
-
|
|
187
|
+
async function O() {
|
|
188
|
+
let n = await x.getByUuid(e.value.uuid);
|
|
189
|
+
if (n.isErr()) {
|
|
190
|
+
r.apiError(n.error);
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
let a =
|
|
193
|
+
let a = n.value.file;
|
|
194
194
|
if (a === null) {
|
|
195
|
-
|
|
195
|
+
r.show({ message: t.t("wise_invoicing.invoice.download_pdf.generation_in_progress") });
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
-
let o = await
|
|
199
|
-
o !== null &&
|
|
198
|
+
let o = await ge.getDownloadUrl(a.uuid);
|
|
199
|
+
o !== null && i.downloadUrl(o, a.name);
|
|
200
200
|
}
|
|
201
|
-
let
|
|
201
|
+
let k = N(() => [
|
|
202
202
|
{
|
|
203
203
|
isLoading: _.isLoading.value,
|
|
204
|
-
iconLeft:
|
|
204
|
+
iconLeft: d,
|
|
205
205
|
key: "send",
|
|
206
|
-
label:
|
|
206
|
+
label: t.t("wise_invoicing.invoice.detail.actions.send"),
|
|
207
207
|
variant: "primary",
|
|
208
|
-
visible: e.value.status ===
|
|
209
|
-
onClick:
|
|
208
|
+
visible: e.value.status === n.FINALIZED,
|
|
209
|
+
onClick: E
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
isLoading:
|
|
213
|
-
iconRight:
|
|
212
|
+
isLoading: g.isLoading.value,
|
|
213
|
+
iconRight: p,
|
|
214
214
|
key: "markAsReady",
|
|
215
|
-
label:
|
|
216
|
-
visible: e.value.status ===
|
|
217
|
-
onClick:
|
|
215
|
+
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
|
|
216
|
+
visible: e.value.status === n.DRAFT,
|
|
217
|
+
onClick: S
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
isLoading:
|
|
221
|
-
iconRight:
|
|
220
|
+
isLoading: l.isLoading.value,
|
|
221
|
+
iconRight: a,
|
|
222
222
|
key: "finalize",
|
|
223
|
-
label:
|
|
224
|
-
visible: e.value.status ===
|
|
225
|
-
onClick:
|
|
223
|
+
label: t.t("wise_invoicing.invoice.detail.actions.finalize"),
|
|
224
|
+
visible: e.value.status === n.READY,
|
|
225
|
+
onClick: w
|
|
226
226
|
}
|
|
227
|
-
].filter((e) => e.visible)),
|
|
227
|
+
].filter((e) => e.visible)), A = N(() => {
|
|
228
228
|
let r = [{
|
|
229
229
|
icon: u,
|
|
230
230
|
key: "downloadPdf",
|
|
231
|
-
label:
|
|
232
|
-
visible:
|
|
233
|
-
onSelect:
|
|
231
|
+
label: t.t("wise_invoicing.common.download_pdf"),
|
|
232
|
+
visible: b.value,
|
|
233
|
+
onSelect: O
|
|
234
234
|
}, {
|
|
235
|
-
icon:
|
|
235
|
+
icon: m,
|
|
236
236
|
key: "backToDraft",
|
|
237
|
-
label:
|
|
238
|
-
visible: e.value.status ===
|
|
239
|
-
onSelect:
|
|
237
|
+
label: t.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
|
|
238
|
+
visible: e.value.status === n.READY,
|
|
239
|
+
onSelect: T
|
|
240
240
|
}], i = [{
|
|
241
|
-
icon:
|
|
241
|
+
icon: h,
|
|
242
242
|
key: "delete",
|
|
243
|
-
label:
|
|
244
|
-
visible:
|
|
245
|
-
onSelect:
|
|
243
|
+
label: t.t("wise_invoicing.credit_note.detail.actions.delete"),
|
|
244
|
+
visible: ee.isEditable(e.value.status),
|
|
245
|
+
onSelect: D
|
|
246
246
|
}];
|
|
247
247
|
return [{
|
|
248
248
|
items: r.filter((e) => e.visible),
|
|
@@ -253,52 +253,52 @@ function We(e) {
|
|
|
253
253
|
}].filter((e) => e.items.length > 0);
|
|
254
254
|
});
|
|
255
255
|
return {
|
|
256
|
-
isActionMenuVisible: N(() =>
|
|
257
|
-
menuGroups:
|
|
258
|
-
primaryButtons:
|
|
256
|
+
isActionMenuVisible: N(() => A.value.length > 0),
|
|
257
|
+
menuGroups: A,
|
|
258
|
+
primaryButtons: k
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region src/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue
|
|
263
|
-
var
|
|
263
|
+
var Ke = /* @__PURE__ */ L({
|
|
264
264
|
__name: "CreditNoteDetailHeaderSection",
|
|
265
265
|
props: {
|
|
266
266
|
isPdfViewActive: { type: Boolean },
|
|
267
267
|
creditNote: {}
|
|
268
268
|
},
|
|
269
269
|
emits: ["togglePdfView"],
|
|
270
|
-
setup(e, { emit:
|
|
271
|
-
let r = e, i =
|
|
270
|
+
setup(e, { emit: t }) {
|
|
271
|
+
let r = e, i = t, a = M(), o = Y(), s = Z(), { menuGroups: c, primaryButtons: u } = Ge(N(() => r.creditNote)), d = N(() => new T(r.creditNote.status)), f = N(() => d.value.color), p = N(() => a.t(d.value.translationKey)), m = N(() => r.creditNote.status !== n.DRAFT && r.creditNote.status !== n.READY), h = X({
|
|
272
272
|
initialState: { subject: r.creditNote.subject },
|
|
273
|
-
schema:
|
|
273
|
+
schema: Re,
|
|
274
274
|
onSubmit: async (e) => {
|
|
275
|
-
let t = await
|
|
275
|
+
let t = await s.execute({
|
|
276
276
|
body: {
|
|
277
|
-
...
|
|
277
|
+
...S.toForm(r.creditNote),
|
|
278
278
|
subject: e.subject
|
|
279
279
|
},
|
|
280
280
|
params: { creditNoteUuid: r.creditNote.uuid }
|
|
281
281
|
});
|
|
282
|
-
t.isErr() &&
|
|
282
|
+
t.isErr() && o.apiError(t.error);
|
|
283
283
|
}
|
|
284
284
|
}), g = h.register("subject");
|
|
285
|
-
return
|
|
285
|
+
return w({ form: h }), (e, t) => (B(), P(H(K), {
|
|
286
286
|
form: H(h),
|
|
287
287
|
"prompt-on-unsaved-changes": !1
|
|
288
288
|
}, {
|
|
289
|
-
default: U(() => [I(
|
|
289
|
+
default: U(() => [I(pe, {
|
|
290
290
|
"fallback-title": H(a).t("wise_invoicing.credit_note.detail.fallback_title"),
|
|
291
291
|
"is-disabled": m.value,
|
|
292
292
|
sequence: r.creditNote.sequence,
|
|
293
293
|
"status-color": f.value,
|
|
294
294
|
"status-label": p.value,
|
|
295
|
-
icon: H(
|
|
295
|
+
icon: H(l),
|
|
296
296
|
"subject-field": H(g),
|
|
297
297
|
"subject-placeholder": H(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
|
|
298
298
|
}, {
|
|
299
|
-
actions: U(() => [I(
|
|
299
|
+
actions: U(() => [I(E, {
|
|
300
300
|
"is-pdf-view-active": r.isPdfViewActive,
|
|
301
|
-
"menu-groups": H(
|
|
301
|
+
"menu-groups": H(c),
|
|
302
302
|
"primary-buttons": H(u),
|
|
303
303
|
onTogglePdfView: t[0] ||= (e) => i("togglePdfView")
|
|
304
304
|
}, null, 8, [
|
|
@@ -310,7 +310,7 @@ var Ge = /* @__PURE__ */ L({
|
|
|
310
310
|
gap: "xs",
|
|
311
311
|
class: "flex-wrap items-start"
|
|
312
312
|
}, {
|
|
313
|
-
default: U(() => [r.creditNote.isOverdue ? (B(), P(
|
|
313
|
+
default: U(() => [r.creditNote.isOverdue ? (B(), P(he, { key: 0 })) : F("", !0)]),
|
|
314
314
|
_: 1
|
|
315
315
|
})]),
|
|
316
316
|
_: 1
|
|
@@ -327,26 +327,26 @@ var Ge = /* @__PURE__ */ L({
|
|
|
327
327
|
_: 1
|
|
328
328
|
}, 8, ["form"]));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), qe = /* @__PURE__ */ L({
|
|
331
331
|
__name: "CreditNoteDetailRemarksSection",
|
|
332
332
|
props: { creditNote: {} },
|
|
333
333
|
setup(e) {
|
|
334
|
-
let
|
|
335
|
-
initialState: N(() =>
|
|
336
|
-
schema:
|
|
334
|
+
let t = e, r = M(), i = Y(), a = Z(), o = X({
|
|
335
|
+
initialState: N(() => S.toForm(t.creditNote)),
|
|
336
|
+
schema: Le,
|
|
337
337
|
onSubmit: async (e) => {
|
|
338
|
-
let
|
|
338
|
+
let n = await a.execute({
|
|
339
339
|
body: e,
|
|
340
|
-
params: { creditNoteUuid:
|
|
340
|
+
params: { creditNoteUuid: t.creditNote.uuid }
|
|
341
341
|
});
|
|
342
|
-
|
|
342
|
+
n.isErr() && i.apiError(n.error);
|
|
343
343
|
}
|
|
344
|
-
}), s = o.register("externalRemarks"), c = N(() =>
|
|
345
|
-
return
|
|
344
|
+
}), s = o.register("externalRemarks"), c = N(() => t.creditNote.status !== n.DRAFT && t.creditNote.status !== n.READY);
|
|
345
|
+
return w({ form: o }), (e, t) => (B(), P(H(K), {
|
|
346
346
|
form: H(o),
|
|
347
347
|
"prompt-on-unsaved-changes": !1
|
|
348
348
|
}, {
|
|
349
|
-
default: U(() => [I(
|
|
349
|
+
default: U(() => [I(ne, {
|
|
350
350
|
"is-disabled": c.value,
|
|
351
351
|
placeholder: H(r).t("wise_invoicing.invoice.detail.remarks.placeholder"),
|
|
352
352
|
"remarks-field": H(s),
|
|
@@ -363,26 +363,26 @@ var Ge = /* @__PURE__ */ L({
|
|
|
363
363
|
});
|
|
364
364
|
//#endregion
|
|
365
365
|
//#region src/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.ts
|
|
366
|
-
function
|
|
367
|
-
return
|
|
366
|
+
function Je(e) {
|
|
367
|
+
return Ce("creditNoteActivityLogIndex", {
|
|
368
368
|
params: { creditNoteUuid: e },
|
|
369
|
-
queryFn: (t) =>
|
|
369
|
+
queryFn: (t) => x.getActivityLogs(e.value, { pagination: t })
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
//#endregion
|
|
373
373
|
//#region src/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue
|
|
374
|
-
var
|
|
374
|
+
var Ye = /* @__PURE__ */ L({
|
|
375
375
|
__name: "CreditNoteDetailSidebarActivityTab",
|
|
376
376
|
props: { creditNote: {} },
|
|
377
377
|
setup(e) {
|
|
378
|
-
let
|
|
378
|
+
let n = e, r = M(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = Je(N(() => n.creditNote.uuid)), l = N(() => c.value.unwrapOr({
|
|
379
379
|
data: [],
|
|
380
380
|
meta: { next: null }
|
|
381
381
|
}).data);
|
|
382
|
-
return (e, c) => (B(), P(
|
|
382
|
+
return (e, c) => (B(), P(re, {
|
|
383
383
|
"current-billing-document": {
|
|
384
|
-
role: H(
|
|
385
|
-
uuid:
|
|
384
|
+
role: H(t).CREDIT_NOTE,
|
|
385
|
+
uuid: n.creditNote.uuid
|
|
386
386
|
},
|
|
387
387
|
"empty-message": H(r).t("wise_invoicing.credit_note.detail.sidebar.activity_empty"),
|
|
388
388
|
entries: l.value,
|
|
@@ -400,7 +400,7 @@ var Je = /* @__PURE__ */ L({
|
|
|
400
400
|
"is-loading"
|
|
401
401
|
]));
|
|
402
402
|
}
|
|
403
|
-
}),
|
|
403
|
+
}), Q = /* @__PURE__ */ L({
|
|
404
404
|
__name: "BillingDocumentDetailSidebarInfoItem",
|
|
405
405
|
props: {
|
|
406
406
|
hasError: {
|
|
@@ -414,23 +414,23 @@ var Je = /* @__PURE__ */ L({
|
|
|
414
414
|
let t = e;
|
|
415
415
|
return (e, n) => (B(), P(H(q), null, {
|
|
416
416
|
default: U(() => [
|
|
417
|
-
(B(), P(
|
|
417
|
+
(B(), P(Se(t.icon), { class: z([{
|
|
418
418
|
"text-error-primary": t.hasError,
|
|
419
419
|
"text-tertiary": !t.hasError
|
|
420
420
|
}, "size-3.5 shrink-0"]) }, null, 8, ["class"])),
|
|
421
|
-
I(H(
|
|
421
|
+
I(H(J), {
|
|
422
422
|
text: t.label,
|
|
423
423
|
class: z([{
|
|
424
424
|
"text-error-primary": t.hasError,
|
|
425
425
|
"text-tertiary": !t.hasError
|
|
426
426
|
}, "w-24 shrink-0 text-xs"])
|
|
427
427
|
}, null, 8, ["text", "class"]),
|
|
428
|
-
|
|
428
|
+
xe(e.$slots, "default")
|
|
429
429
|
]),
|
|
430
430
|
_: 3
|
|
431
431
|
}));
|
|
432
432
|
}
|
|
433
|
-
}),
|
|
433
|
+
}), $ = /* @__PURE__ */ L({
|
|
434
434
|
__name: "BillingDocumentDetailSidebarPartySection",
|
|
435
435
|
props: {
|
|
436
436
|
title: {},
|
|
@@ -443,18 +443,18 @@ var Je = /* @__PURE__ */ L({
|
|
|
443
443
|
},
|
|
444
444
|
setup(e) {
|
|
445
445
|
let t = e, n = V(t.isDefaultOpen);
|
|
446
|
-
function
|
|
446
|
+
function i() {
|
|
447
447
|
n.value = !n.value;
|
|
448
448
|
}
|
|
449
449
|
return (e, a) => (B(), P(H(G), { class: "w-full" }, {
|
|
450
450
|
default: U(() => [I(H(q), { justify: "between" }, {
|
|
451
451
|
default: U(() => [I(H(De), { class: "rounded-sm" }, {
|
|
452
|
-
default: U(() => [
|
|
452
|
+
default: U(() => [be("button", {
|
|
453
453
|
type: "button",
|
|
454
454
|
class: "flex w-full items-center gap-sm",
|
|
455
|
-
onClick:
|
|
455
|
+
onClick: i
|
|
456
456
|
}, [
|
|
457
|
-
I(H(
|
|
457
|
+
I(H(J), {
|
|
458
458
|
text: t.title,
|
|
459
459
|
class: "text-xs font-semibold text-primary"
|
|
460
460
|
}, null, 8, ["text"]),
|
|
@@ -463,7 +463,7 @@ var Je = /* @__PURE__ */ L({
|
|
|
463
463
|
color: "gray",
|
|
464
464
|
variant: "outline"
|
|
465
465
|
}, null, 8, ["label"]),
|
|
466
|
-
I(H(
|
|
466
|
+
I(H(c), { class: z([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
|
|
467
467
|
])]),
|
|
468
468
|
_: 1
|
|
469
469
|
})]),
|
|
@@ -473,13 +473,13 @@ var Je = /* @__PURE__ */ L({
|
|
|
473
473
|
key: 0,
|
|
474
474
|
gap: "xs"
|
|
475
475
|
}, {
|
|
476
|
-
default: U(() => [I(H(
|
|
476
|
+
default: U(() => [I(H(J), {
|
|
477
477
|
text: t.name,
|
|
478
478
|
class: "text-xs font-medium text-primary"
|
|
479
|
-
}, null, 8, ["text"]), t.address ? (B(), P(H(
|
|
479
|
+
}, null, 8, ["text"]), t.address ? (B(), P(H(J), {
|
|
480
480
|
key: 0,
|
|
481
481
|
truncate: !1,
|
|
482
|
-
text: H(
|
|
482
|
+
text: H(r).format(t.address),
|
|
483
483
|
class: "text-xs text-primary"
|
|
484
484
|
}, null, 8, ["text"])) : F("", !0)]),
|
|
485
485
|
_: 1
|
|
@@ -496,19 +496,19 @@ var Je = /* @__PURE__ */ L({
|
|
|
496
496
|
customFieldDefinitions: {}
|
|
497
497
|
},
|
|
498
498
|
setup(e) {
|
|
499
|
-
let
|
|
500
|
-
initialState: N(() =>
|
|
501
|
-
schema:
|
|
499
|
+
let t = e, r = M(), i = Y(), a = Z(), c = X({
|
|
500
|
+
initialState: N(() => S.toForm(t.creditNote)),
|
|
501
|
+
schema: Le,
|
|
502
502
|
onSubmit: async (e) => {
|
|
503
|
-
let
|
|
503
|
+
let n = await a.execute({
|
|
504
504
|
body: e,
|
|
505
|
-
params: { creditNoteUuid:
|
|
505
|
+
params: { creditNoteUuid: t.creditNote.uuid }
|
|
506
506
|
});
|
|
507
|
-
|
|
507
|
+
n.isErr() && i.apiError(n.error);
|
|
508
508
|
}
|
|
509
|
-
}),
|
|
510
|
-
return
|
|
511
|
-
form: H(
|
|
509
|
+
}), l = c.register("issuedOn"), u = c.register("poNumber"), d = N(() => t.creditNote.status !== n.DRAFT && t.creditNote.status !== n.READY);
|
|
510
|
+
return w({ form: c }), (e, n) => (B(), P(H(K), {
|
|
511
|
+
form: H(c),
|
|
512
512
|
"prompt-on-unsaved-changes": !1
|
|
513
513
|
}, {
|
|
514
514
|
default: U(() => [I(H(G), {
|
|
@@ -517,28 +517,28 @@ var Je = /* @__PURE__ */ L({
|
|
|
517
517
|
}, {
|
|
518
518
|
default: U(() => [
|
|
519
519
|
I(H(G), null, {
|
|
520
|
-
default: U(() => [I(H(
|
|
520
|
+
default: U(() => [I(H(J), {
|
|
521
521
|
text: H(r).t("wise_invoicing.invoice.detail.sidebar.general"),
|
|
522
522
|
class: "text-xs font-semibold text-primary"
|
|
523
523
|
}, null, 8, ["text"]), I(H(G), { gap: "lg" }, {
|
|
524
524
|
default: U(() => [
|
|
525
|
-
I(
|
|
526
|
-
icon: H(
|
|
525
|
+
I(Q, {
|
|
526
|
+
icon: H(f),
|
|
527
527
|
label: H(r).t("wise_invoicing.invoice.detail.header.invoice_id")
|
|
528
528
|
}, {
|
|
529
|
-
default: U(() => [I(H(
|
|
530
|
-
text:
|
|
529
|
+
default: U(() => [I(H(J), {
|
|
530
|
+
text: t.creditNote.sequence ?? "-",
|
|
531
531
|
class: "text-xs text-primary"
|
|
532
532
|
}, null, 8, ["text"])]),
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["icon", "label"]),
|
|
535
|
-
I(
|
|
536
|
-
icon: H(
|
|
537
|
-
"has-error": H(
|
|
535
|
+
I(Q, {
|
|
536
|
+
icon: H(o),
|
|
537
|
+
"has-error": H(u).errors.value.length > 0,
|
|
538
538
|
label: H(r).t("wise_invoicing.invoice.detail.header.po_number")
|
|
539
539
|
}, {
|
|
540
|
-
default: U(() => [I(H(
|
|
541
|
-
"is-disabled":
|
|
540
|
+
default: U(() => [I(H(Fe), R(H(y)(H(u)), {
|
|
541
|
+
"is-disabled": d.value,
|
|
542
542
|
label: null,
|
|
543
543
|
class: "w-full"
|
|
544
544
|
}), null, 16, ["is-disabled"])]),
|
|
@@ -548,54 +548,54 @@ var Je = /* @__PURE__ */ L({
|
|
|
548
548
|
"has-error",
|
|
549
549
|
"label"
|
|
550
550
|
]),
|
|
551
|
-
I(
|
|
552
|
-
icon: H(
|
|
551
|
+
I(Q, {
|
|
552
|
+
icon: H(g),
|
|
553
553
|
label: H(r).t("wise_invoicing.invoice.detail.header.issuer")
|
|
554
554
|
}, {
|
|
555
|
-
default: U(() => [I(H(
|
|
556
|
-
text:
|
|
555
|
+
default: U(() => [I(H(J), {
|
|
556
|
+
text: t.creditNote.issuer.name ?? "-",
|
|
557
557
|
class: "text-xs text-primary"
|
|
558
558
|
}, null, 8, ["text"])]),
|
|
559
559
|
_: 1
|
|
560
560
|
}, 8, ["icon", "label"]),
|
|
561
|
-
I(
|
|
561
|
+
I(Q, {
|
|
562
562
|
icon: H(s),
|
|
563
|
-
"has-error": H(
|
|
563
|
+
"has-error": H(l).errors.value.length > 0,
|
|
564
564
|
label: H(r).t("wise_invoicing.invoice.detail.header.invoice_date")
|
|
565
565
|
}, {
|
|
566
|
-
default: U(() => [I(H(Oe), R({ "is-disabled":
|
|
566
|
+
default: U(() => [I(H(Oe), R({ "is-disabled": d.value }, H(y)(H(l))), null, 16, ["is-disabled"])]),
|
|
567
567
|
_: 1
|
|
568
568
|
}, 8, [
|
|
569
569
|
"icon",
|
|
570
570
|
"has-error",
|
|
571
571
|
"label"
|
|
572
572
|
]),
|
|
573
|
-
I(
|
|
574
|
-
definitions:
|
|
575
|
-
values:
|
|
573
|
+
I(ae, {
|
|
574
|
+
definitions: t.customFieldDefinitions,
|
|
575
|
+
values: t.creditNote.customFields
|
|
576
576
|
}, null, 8, ["definitions", "values"])
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
579
|
})]),
|
|
580
580
|
_: 1
|
|
581
581
|
}),
|
|
582
|
-
I(H(
|
|
583
|
-
I(
|
|
584
|
-
I(
|
|
582
|
+
I(H(Pe)),
|
|
583
|
+
I(ce, { "original-invoice": t.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
|
|
584
|
+
I($, {
|
|
585
585
|
"is-default-open": !0,
|
|
586
|
-
name:
|
|
586
|
+
name: t.creditNote.customer.name ?? "-",
|
|
587
587
|
title: H(r).t("wise_invoicing.invoice.detail.header.bill_to"),
|
|
588
|
-
address:
|
|
588
|
+
address: t.creditNote.customer.address
|
|
589
589
|
}, null, 8, [
|
|
590
590
|
"name",
|
|
591
591
|
"title",
|
|
592
592
|
"address"
|
|
593
593
|
]),
|
|
594
|
-
I(H(
|
|
595
|
-
I(
|
|
596
|
-
name:
|
|
594
|
+
I(H(Pe)),
|
|
595
|
+
I($, {
|
|
596
|
+
name: t.creditNote.issuer.email ?? "-",
|
|
597
597
|
title: H(r).t("wise_invoicing.invoice.detail.header.bill_from"),
|
|
598
|
-
address:
|
|
598
|
+
address: t.creditNote.issuer.address
|
|
599
599
|
}, null, 8, [
|
|
600
600
|
"name",
|
|
601
601
|
"title",
|
|
@@ -615,11 +615,11 @@ var Je = /* @__PURE__ */ L({
|
|
|
615
615
|
},
|
|
616
616
|
setup(e) {
|
|
617
617
|
let t = e, n = M(), r = _(), i = N(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
|
|
618
|
-
return (e, n) => (B(), P(
|
|
618
|
+
return (e, n) => (B(), P(A, {
|
|
619
619
|
"billing-document": t.creditNote,
|
|
620
620
|
"updated-footer": i.value
|
|
621
621
|
}, {
|
|
622
|
-
activity: U(() => [I(
|
|
622
|
+
activity: U(() => [I(Ye, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
|
|
623
623
|
info: U(() => [I(Xe, {
|
|
624
624
|
"credit-note": t.creditNote,
|
|
625
625
|
"custom-field-definitions": t.customFieldDefinitions
|
|
@@ -632,7 +632,7 @@ var Je = /* @__PURE__ */ L({
|
|
|
632
632
|
//#region src/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.ts
|
|
633
633
|
function Qe() {
|
|
634
634
|
return W({
|
|
635
|
-
queryFn: (e) =>
|
|
635
|
+
queryFn: (e) => x.updateLines(e.params.creditNoteUuid, e.body),
|
|
636
636
|
queryKeysToInvalidate: {
|
|
637
637
|
creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
|
|
638
638
|
invoiceIndex: {}
|
|
@@ -648,7 +648,7 @@ var $e = /* @__PURE__ */ L({
|
|
|
648
648
|
customFieldDefinitions: {}
|
|
649
649
|
},
|
|
650
650
|
setup(e) {
|
|
651
|
-
let t = e, n = N(() => t.creditNote), r = Qe(), i =
|
|
651
|
+
let t = e, n = N(() => t.creditNote), r = Qe(), i = ie({
|
|
652
652
|
isSaving: N(() => r.isLoading.value),
|
|
653
653
|
billingDocument: () => n.value,
|
|
654
654
|
customFieldDefinitions: () => t.customFieldDefinitions,
|
|
@@ -657,12 +657,12 @@ var $e = /* @__PURE__ */ L({
|
|
|
657
657
|
params: { creditNoteUuid: t.creditNote.uuid }
|
|
658
658
|
})
|
|
659
659
|
});
|
|
660
|
-
return
|
|
660
|
+
return k(i), (e, n) => (B(), P(se, null, {
|
|
661
661
|
default: U(() => [
|
|
662
|
-
I(
|
|
663
|
-
I(
|
|
664
|
-
I(
|
|
665
|
-
I(
|
|
662
|
+
I(ue, { "show-apply-discount": !1 }),
|
|
663
|
+
I(O),
|
|
664
|
+
I(D, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
|
|
665
|
+
I(fe)
|
|
666
666
|
]),
|
|
667
667
|
_: 1
|
|
668
668
|
}));
|
|
@@ -689,25 +689,25 @@ var $e = /* @__PURE__ */ L({
|
|
|
689
689
|
{ label: n.t("wise_invoicing.invoice.detail.credit_notes.untitled") },
|
|
690
690
|
{ label: t.creditNote.sequence ?? n.t("wise_invoicing.credit_note.detail.fallback_title") }
|
|
691
691
|
]);
|
|
692
|
-
return (e, a) => (B(), P(
|
|
692
|
+
return (e, a) => (B(), P(le, {
|
|
693
693
|
"billing-document": t.creditNote,
|
|
694
694
|
breadcrumbs: i.value,
|
|
695
695
|
title: H(n).t("wise_invoicing.credit_note.detail.fallback_title")
|
|
696
696
|
}, {
|
|
697
|
-
header: U(() => [I(
|
|
697
|
+
header: U(() => [I(Ke, {
|
|
698
698
|
"credit-note": t.creditNote,
|
|
699
699
|
"is-pdf-view-active": r.value,
|
|
700
700
|
class: "w-full",
|
|
701
701
|
onTogglePdfView: a[0] ||= (e) => r.value = !r.value
|
|
702
702
|
}, null, 8, ["credit-note", "is-pdf-view-active"])]),
|
|
703
|
-
default: U(() => [r.value ? (B(), P(
|
|
703
|
+
default: U(() => [r.value ? (B(), P(oe, {
|
|
704
704
|
key: 0,
|
|
705
705
|
"billing-document": t.creditNote,
|
|
706
706
|
class: "w-full"
|
|
707
|
-
}, null, 8, ["billing-document"])) : (B(),
|
|
707
|
+
}, null, 8, ["billing-document"])) : (B(), ye(ve, { key: 1 }, [I($e, {
|
|
708
708
|
"credit-note": t.creditNote,
|
|
709
709
|
"custom-field-definitions": t.customFieldDefinitions
|
|
710
|
-
}, null, 8, ["credit-note", "custom-field-definitions"]), I(
|
|
710
|
+
}, null, 8, ["credit-note", "custom-field-definitions"]), I(qe, {
|
|
711
711
|
"credit-note": t.creditNote,
|
|
712
712
|
class: "w-full"
|
|
713
713
|
}, null, 8, ["credit-note"])], 64))]),
|
|
@@ -729,8 +729,8 @@ var $e = /* @__PURE__ */ L({
|
|
|
729
729
|
let t = e, n = M(), r = N(() => [{
|
|
730
730
|
label: n.t("wise_invoicing.invoice.overview.title"),
|
|
731
731
|
to: { name: "invoicing-invoice-overview" }
|
|
732
|
-
}]), i =
|
|
733
|
-
return (e, t) => (B(), P(
|
|
732
|
+
}]), i = C(N(() => t.creditNoteUuid)), a = b();
|
|
733
|
+
return (e, t) => (B(), P(de, {
|
|
734
734
|
"custom-field-definitions-query": H(a),
|
|
735
735
|
query: H(i),
|
|
736
736
|
"loading-breadcrumbs": r.value
|