1(function() { 2 try { 3 var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}; 4 e.SENTRY_RELEASE = { id: "live_2026-09-24-1148" }; 5 var t = new e.Error().stack; 6 t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "db04df1c-ce8f-4dd4-ab52-5333796eeaea", e._sentryDebugIdIdentifier = "sentry-dbid-db04df1c-ce8f-4dd4-ab52-5333796eeaea"); 7 } catch (e) {} 8})(); 9import { r as e } from "./App_BJ6QR7FH.min.js"; 10import { $o as t, Ac as n, Ec as r, bi as i, en as a, os as ee, qc as o, rn as s, sc as c, sl as te, vn as l, yn as ne, za as re, zo as u, zs as ie } from "./topMessageHandler_BfquHqnZ.min.js"; 11import { $ as ae, At as d, F as f, L as oe, N as p, Ot as se, R as m, T as ce, X as h, Y as g, _, c as v, d as y, f as b, g as x, i as S, jt as C, l as w, lt as T, nt as E, q as le, u as D, y as O } from "./runtime-core.esm-bundler_Bi-f_fgM.min.js"; 12import { n as k, t as A } from "./asyncToGenerator_SUcgKOYT.min.js"; 13import { a as ue, o as de } from "./vue-router_BHFpZAgN.min.js"; 14import { r as fe } from "./vuex.esm-bundler_BYiu1CGj.min.js"; 15import { s as pe } from "./addresses_BSoHW556.min.js"; 16import { t as me } from "./ListPager_CDbzRUPQ.min.js"; 17import { t as he } from "./searchAbstract_D4oRJGb4.min.js"; 18import { t as ge } from "./AppContent_CRi7sAir.min.js"; 19import { t as j } from "./TableSearch_BvyCJS9P.min.js"; 20import { t as _e } from "./IndeterminateCheckbox_7tTZsb1m.min.js"; 21import { t as ve } from "./customer_CxIVf7p6.min.js"; 22import { t as M } from "./ChoiceButton_BT65e80B.min.js"; 23import { a as N, f as P, h as F, i as ye, l as I, n as be, p as L, s as xe, t as Se, u as Ce } from "./invoice_Vk6NL3XF.min.js"; 24import { t as we } from "./CustomerInvoiceDunningCreatePopup_B4bMC-jv.min.js"; 25//#region src/views/customer/invoice/dunning/CustomerInvoiceDunningList.vue?vue&type=script&setup=true&lang.ts 26k(); 27var Te = { class: "button-row breakpoint-md" }, Ee = { class: "portuna-table portuna-table-bordered" }, De = { 28 key: 0, 29 style: { width: "90px" } 30}, Oe = { key: 0 }, ke = ["colspan"], Ae = ["id", "onUpdate:modelValue"], je = ["for"], Me = { 31 key: 0, 32 class: "text-center" 33}, Ne = ["href"], Pe = { 34 "aria-label": "Dateien anzeigen", 35 class: "text-dark-grey", 36 title: "Dateien anzeigen" 37}, Fe = { 38 "aria-hidden": "true", 39 class: "material-icons", 40 role: "img" 41}, Ie = { class: "portuna-menu" }, Le = ["href"], Re = { 42 "aria-hidden": "true", 43 class: "material-icons", 44 role: "img" 45}, ze = { 46 key: 1, 47 class: "material-icons text-success", 48 "aria-hidden": "true", 49 role: "img" 50}, Be = { 51 key: 2, 52 class: "material-icons text-danger", 53 "aria-hidden": "true", 54 role: "img" 55}, Ve = ["aria-label", "title"], He = ["title"], R = ["title"], Ue = ["href"], We = { class: "edit-cell" }, Ge = { key: 0 }, Ke = { key: 0 }
55, qe = { key: 1 }, z = /* @__PURE__ */ O({ 56 __name: "CustomerInvoiceDunningList", 57 props: { 58 state: {}, 59 simpleList: { 60 type: Boolean, 61 default: !1 62 } 63 }, 64 setup(O, { expose: k }) { 65 let z = function() { 66 var e = A(function* (e) { 67 return V.dispatch("loadAll", e); 68 }); 69 return function(t) { 70 return e.apply(this, arguments); 71 }; 72 }(), B = o(), V = fe(), H = ue(), Je = de(), U = ve(), Ye = U.invoicingPartyNoPlaceholder, W = O, Xe = [{ 73 label: "Kunden", 74 href: { name: "customer-index" } 75 }], Ze = function() { 76 var e = A(function* (e) { 77 return V.dispatch("errorPage", e); 78 }); 79 return function(t) { 80 return e.apply(this, arguments); 81 }; 82 }(), Qe = E(), G = E([]), K = E([]), q = E(!1), J = s("pdf"), $e = a, et = ye, tt = Se, Y = be, nt = v(() => "/customer/invoice/dunning-fetch-list/state/" + W.state), rt = v(() => "customer-invoice-dunning-list-" + W.state), it = v(() => I[W.state]), at = v(() => { 83 let e = 10; 84 return W.simpleList && e--, W.state === "open" && e--, e; 85 }), ot = v(() => { 86 let e = []; 87 for (let t of ie(I)) !I.hasOwnProperty(t) || W.state === t || e.push({ 88 label: "Verschieben zu: " + I[t], 89 icon: "arrow_right_alt", 90 popupAction: { 91 url: "/customer/invoice/dunning-move/state/" + t, 92 size: "medium", 93 text: `<div class="margin-bottom-15">Möchten Sie wirklich <strong>[count] Rechnungen von "${I[W.state]}" in den Stand "${I[t]}"</strong> verschieben?</div>` + Y 94 } 95 }); 96 return e; 97 }), st = (e) => { 98 W.state !== "open" && (e.is_created = [0]); 99 }, X = (e = !0) => (q.value = !0, n.get(nt.value).then(({ data: { data: { entries: t } } }) => { 100 e && $.setSort("invoice_id", "asc"), G.value = t; 101 }).catch(Ze).finally(() => { 102 q.value = !1; 103 })), ct = (e, t) => { 104 r({ 105 message: { 106 title: "Verschieben zu: " + I[t], 107 success: "Der Eintrag wurde erfolgreich verschoben.", 108 failed: "Der Eintrag konnte nicht verschoben werden.", 109 message: `<div>Möchten Sie wirklich die Rechnung <strong>RN #${e.invoice_id} von "${I[W.state]}" in den Stand "${I[t]}"</strong> verschieben?</div>` + Y 110 }, 111 options: { 112 titleIcon: "arrow_right_alt", 113 textIcon: "arrow_right_alt", 114 size: "medium" 115 }, 116 url: "/customer/invoice/dunning-move/state/" + t, 117 data: { ids: [e.id] } 118 }).then(() => X(!1)); 119 }, lt = (e) => { 120 Ce(e).then(() => { 121 X().catch(t); 122 }).catch(t); 123 }, ut = (e) => { 124 K.value = e; 125 }, dt = () => { 126 X(); 127 }, Z = (e, n) => { 128 V.dispatch("createPopup", Object.assign(n, { 129 titleIcon: "receipt", 130 component: ae(we), 131 size: "medium", 132 events: { saved: (n) => { 133 n.state === W.state ? (e.dunning = n, e.is_created = !0) : X().catch(t); 134 } } 135 })).then((e) => e.open()); 136 }, Q = v(() => ({ 137 headline: "Zahlungsstand: " + it.value, 138 breadcrumb: Xe 139 })), ft = () => { 140 X(); 141 }; 142 H.params.state || Je.replace({ 143 name: H.name, 144 params: { state: "open" } 145 }), z([U.fetchResourceData(), X()]).catch(t); 146 let pt = (e) => { 147 Z(e, { 148 title: `${I[W.state]} bearbeiten: RN #${e.invoice_id}`, 149 componentProps: { 150 id: e.dunning.id, 151 state: W.state 152 } 153 }); 154 }, mt = (e, t) => { 155 Z(e, { 156 title: `${I[t]} erstellen: RN #${e.invoice_id}`, 157 componentProps: { 158 invoice: e.id, 159 state: t, 160 showWarning: t !== W.state 161 } 162 }); 163 }; 164 le(() => W.state, ft); 165 let $ = he({ 166 emitter: B.emitter, 167 searchStorageScope: rt, 168 preInitSearch: st 169 }); 170 return k(Object.assign({}, B, $.expose)), (t, n) => { 171 let r = oe("router-link"), a = m("search"), o = m("interact"), s = m("tooltip"); 172 return p(), D(ge, { 173 breadcrumb: Q.value.breadcrumb, 174 headline: Q.value.headline, 175 "sidebar-space": "" 176 }, { 177 default: g(() => [ 178 O.simpleList ? y("", !0) : (p(), D(l, { 179 key: 0, 180 class: "no-grow-center", 181 group: "invoice-dunning-list-tabs", 182 "param-name": "state" 183 }, { 184 default: g(() => [(p(!0), b(S, null, f(T(I), (e, t) => (p(), D(ne, { 185 key: `invoice-tab-${t}`, 186 name: t, 187 class: "step-label", 188 group: "invoice-dunning-list-tabs" 189 }, {
190 default: g(() => [x(C(e), 1)]), 191 _: 2 192 }, 1032, ["name"]))), 128))]), 193 _: 1 194 })), 195 n[65] || (n[65] = x()), 196 q.value ? (p(), D(pe, { key: 1 })) : (p(), D(me, ce({ 197 key: 2, 198 ref_key: "listPager", 199 ref: Qe 200 }, T($).properties, { entries: G.value }), { 201 default: g(({ listEntries: t, filteredEntries: l }) => [ 202 w("div", Te, [ 203 _(M, { 204 actions: ot.value, 205 items: K.value, 206 onButtonAction: dt 207 }, null, 8, ["actions", "items"]), 208 n[13] || (n[13] = x()), 209 _(e, { 210 modelValue: T($).model["invoice_id,institution_id,institution_name,party_name,invoice_date,payment_method_type,total_gross"], 211 "onUpdate:modelValue": n[0] || (n[0] = (e) => T($).model["invoice_id,institution_id,institution_name,party_name,invoice_date,payment_method_type,total_gross"] = e), 212 placeholder: "Alles durchsuchen" 213 }, null, 8, ["modelValue"]), 214 n[14] || (n[14] = x()), 215 h((p(), D(re, { 216 modelValue: T($).model.party_id, 217 "onUpdate:modelValue": n[1] || (n[1] = (e) => T($).model.party_id = e), 218 options: T(Ye), 219 "inherit-width": "at-least", 220 multiple: "" 221 }, { 222 all: g(() => [...n[9] || (n[9] = [x("Alle Rechnungssteller ausgewählt", -1)])]), 223 multiple: g(({ count: e }) => [x(C(e) + " Rechnungssteller ausgewählt", 1)]), 224 placeholder: g(() => [...n[10] || (n[10] = [x("Kein Rechnungssteller ausgewählt", -1)])]), 225 _: 1 226 }, 8, ["modelValue", "options"])), [[a, "search.party_id"]]) 227 ]), 228 n[64] || (n[64] = x()), 229 w("table", Ee, [ 230 w("colgroup", null, [ 231 n[15] || (n[15] = w("col", { style: { width: "45px" } }, null, -1)), 232 n[16] || (n[16] = x()), 233 O.state === "open" ? y("", !0) : (p(), b("col", De)), 234 n[17] || (n[17] = x()), 235 n[18] || (n[18] = w("col", { style: { width: "120px" } }, null, -1)), 236 n[19] || (n[19] = x()), 237 n[20] || (n[20] = w("col", { style: { width: "120px" } }, null, -1)), 238 n[21] || (n[21] = x()), 239 n[22] || (n[22] = w("col", { style: { width: "auto" } }, null, -1)), 240 n[23] || (n[23] = x()), 241 n[24] || (n[24] = w("col", { style: { width: "150px" } }, null, -1)), 242 n[25] || (n[25] = x()), 243 n[26] || (n[26] = w("col", { style: { width: "150px" } }, null, -1)), 244 n[27] || (n[27] = x()), 245 n[28] || (n[28] = w("col", { style: { width: "150px" } }, null, -1)), 246 n[29] || (n[29] = x()), 247 n[30] || (n[30] = w("col", { style: { width: "45px" } }, null, -1)), 248 n[31] || (n[31] = x()), 249 n[32] || (n[32] = w("col", { class: "edit-cell" }, null, -1)) 250 ]), 251 n[62] || (n[62] = x()), 252 w("thead", null, [w("tr", null, [ 253 O.simpleList ? y("", !0) : (p(), D(_e, { 254 key: 0, 255 entries: l, 256 class: "text-center background-dark", 257 field: "checked", 258 onSelected: ut 259 }, null, 8, ["entries"])), 260 n[33] || (n[33] = x()), 261 O.state === "open" ? y("", !0) : (p(), D(j, { 262 key: 1, 263 modelValue: T($).model.is_created, 264 "onUpdate:modelValue": n[2] || (n[2] = (e) => T($).model.is_created = e), 265 options: [{ 266 label: "Erstellt", 267 value: 1 268 }, { 269 label: "Offen", 270 value: 0 271 }], 272 text: "Erstellt" 273 }, null, 8, ["modelValue"])), 274 n[34] || (n[34] = x()), 275 _(j, { 276 modelValue: T($).model.invoice_id, 277 "onUpdate:modelValue": n[3] || (n[3] = (e) => T($).model.invoice_id = e), 278 "default-sort": !0, 279 "sort-field": "invoice_id", 280 text: "RN" 281 }, null, 8, ["modelValue"]), 282 n[35] || (n[35] = x()), 283 _(j, { 284 modelValue: T($).model.institution_id, 285 "onUpdate:modelValue": n[4] || (n[4] = (e) => T($).model.institution_id = e), 286 "sort-field": "institution_id", 287 text: "Knd-Nr." 288 }, null, 8, ["modelValue"]), 289 n[36] || (n[36] = x()), 290 _(j, { 291 modelValue: T($).model.institution_name, 292 "onUpdate:modelValue": n[5] || (n[5] = (e) => T($).model.institution_name = e), 293 "sort-field": "institution_name", 294 text: "Kunde" 295 }, null, 8, ["modelValue"]), 296 n[37] || (n[37] = x()), 297 _(j, { 298 modelValue: T($).model.invoice_date, 299 "onUpdate:modelValue": n[6] || (n[6] = (e) => T($).model.invoice_date = e), 300 "sort-field": ["invoice_date", "institution_id"], 301 datepicker: "", 302 text: "Datum" 303 }, null, 8, ["modelValue"]), 304 n[38] || (n[38] = x()), 305 _(j, { 306 modelValue: T($).model.payment_method_type, 307 "onUpdate:modelValue": n[7] || (n[7] = (e) => T($).model.payment_method_type = e), 308 options: T(L), 309 text: "Zahlungsweise" 310 }, null, 8, ["modelValue", "options"]), 311 n[39] || (n[39] = x()), 312 _(j, { 313 modelValue: T($).model.total_gross, 314 "onUpdate:modelValue": n[8] || (n[8] = (e) => T($).model.total_gross = e), 315 "sort-field": "total_gross", 316 text: "Preis" 317 }, null, 8, ["modelValue"]), 318 n[40] || (n[40] = x()), 319 n[41] || (n[41] = w("th", null, "\xA0", -1)), 320 n[42] || (n[42] = x()), 321 n[43] || (n[43] = w("th", { class: "edit-cell" }, "\xA0", -1)) 322 ])]), 323 n[63] || (n[63] = x()), 324 w("tbody", null, [t.length === 0 ? (p(), b("tr", Oe, [w("td", { colspan: at.value }, "\n Es wurden keine Einträge gefunden.\n ", 8, ke)])) : (p(!0), b(S, { key: 1 }, f(t, (e) => (p(), b("tr", null, [ 325 w("td", null, [ 326 h(w("input", { 327 id: `invoice-dunning-${e.id}`, 328 "onUpdate:modelValue": (t) => e.checked = t, 329 class: "portuna-checkbox md-24", 330 type: "checkbox" 331 }, null, 8, Ae), [[te, e.checked]]), 332 n[44] || (n[44] = x()), 333 w("label", { for: `invoice-dunning-${e.id}` }, null, 8, je) 334 ]), 335 n[53] || (n[53] = x()), 336 O.state === "open" ? y("", !0) : (p(), b("td", Me, [e.is_created && e.dunning && e.dunning.files && e.dunning.files.length ? (p(), b(S, { key: 0 }, [e.dunning.files.length === 1 ? (p(), b("a", { 337 key: 0, 338 href: e.dunning.files[0].paths.data, 339 target: "_blank", 340 title: "PDF im neuen Tab öffnen" 341 }, [w("i", { 342 style: d({ color: `rgb(${T(J).color})` }), 343 "aria-hidden": "true", 344 class: "material-icons", 345 role: "img" 346 }, C(T(J).icon), 5)], 8, Ne)) : (p(), D(c, { 347 key: 1, 348 position: "bottom-left" 349 }, {
350 default: g(({ toggle: e }) => [h((p(), b("a", Pe, [w("i", Fe, C(T(J).icon), 1)])), [[o, e]])]), 351 container: g(() => [w("ul", Ie, [(p(!0), b(S, null, f(e.dunning.files, (e) => (p(), b("li", { key: "dunning-file-" + e.id }, [e.paths.data ? (p(), b("a", { 352 key: 0, 353 href: e.paths.data, 354 target: "_blank" 355 }, [w("i", Re, C(T(J).icon), 1), x(" " + C(e.namespace.substring(e.namespace.length - 4) === "-old" ? "Datei vom " + T(u)("d.m.Y, H:i", e.created) : "Aktuelle PDF"), 1)], 8, Le)) : y("", !0)]))), 128))])]), 356 _: 2 357 }, 1024))], 64)) : e.is_created ? (p(), b("i", ze, "\n check\n ")) : (p(), b("i", Be, "clear"))])), 358 n[54] || (n[54] = x()), 359 w("td", null, [ 360 e.paid_state ? h((p(), b("span", { 361 key: 0, 362 "aria-label": T(P)[e.paid_state].label, 363 title: T(P)[e.paid_state].label 364 }, [w("i", { 365 class: se([T(P)[e.paid_state].iconClass, "material-icons md-18"]), 366 "aria-hidden": "true", 367 role: "img" 368 }, C(T(P)[e.paid_state].icon), 3)], 8, Ve)), [[o, () => T(F)(e.id)]]) : y("", !0), 369 x(" " + C(e.invoice_id) + " ", 1), 370 e.dunning_state_locked ? (p(), b("i", { 371 key: 1, 372 title: T(tt), 373 "aria-hidden": "true", 374 class: "material-icons text-warning md-20", 375 role: "img" 376 }, "warning", 8, He)) : y("", !0) 377 ]), 378 n[55] || (n[55] = x()), 379 w("td", null, [_(r, { to: { 380 name: "customer-entry-view", 381 params: { id: e.institution_id } 382 } }, { 383 default: g(() => [x(C(e.institution_id), 1)]), 384 _: 2 385 }, 1032, ["to"])]), 386 n[56] || (n[56] = x()), 387 w("td", null, [h((p(), D(r, { to: { 388 name: "customer-entry-view", 389 params: { id: e.institution_id } 390 } }, { 391 default: g(() => [x(C(e.institution_name), 1)]), 392 _: 2 393 }, 1032, ["to"])), [[s, `${e.institution_name} (${e.institution_id})`]])]), 394 n[57] || (n[57] = x()), 395 w("td", null, C(T(u)("d.m.Y", e.invoice_date)), 1), 396 n[58] || (n[58] = x()), 397 w("td", null, C(T(L)[e.payment_method_type].label), 1), 398 n[59] || (n[59] = x()), 399 h((p(), b("td", { 400 title: T(xe)(e), 401 class: "text-right" 402 }, [x(C(T(ee)(e.total_gross)), 1)], 8, R)), [[s]]), 403 n[60] || (n[60] = x()), 404 w("td", null, [w("a", { 405 href: T($e) + e.path + e.filename, 406 target: "_blank", 407 title: "Rechnung im neuen Tab öffnen" 408 }, [w("i", { 409 style: d({ color: `rgb(${T(J).color})` }), 410 "aria-hidden": "true", 411 class: "material-icons", 412 role: "img" 413 }, C(T(J).icon), 5)], 8, Ue)]), 414 n[61] || (n[61] = x()), 415 w("td", We, [_(i, null, { 416 default: g(() => [ 417 T(N).includes(O.state) ? (p(), b(S, { key: 0 }, [e.is_created ? h((p(), b("li", Ge, [w("div", null, [n[46] || (n[46] = w("i", { 418 "aria-hidden": "true", 419 class: "material-icons", 420 role: "img" 421 }, "edit", -1)), x(" " + C(T(I)[O.state]) + " bearbeiten\n ", 1)])])), [[o, () => pt(e)]]) : y("", !0)], 64)) : y("", !0), 422 n[50] || (n[50] = x()), 423 (p(!0), b(S, null, f(T(N), (t) => h((p(), b("li", null, [w("div", null, [n[47] || (n[47] = w("i", { 424 "aria-hidden": "true", 425 class: "material-icons", 426 role: "img" 427 }, "add", -1)), x(" " + C(t === O.state && e.is_created ? "Weitere " : "") + C(T(I)[t]) + " erstellen\n ", 1)])])), [[o, () => mt(e, t)]])), 256)), 428 n[51] || (n[51] = x()), 429 (p(!0), b(S, null, f(T(I), (t, r) => (p(), b(S, null, [r === O.state ? y("", !0) : h((p(), b("li", Ke, [w("div", null, [n[48] || (n[48] = w("i", { 430 "aria-hidden": "true", 431 class: "material-icons", 432 role: "img" 433 }, "arrow_right_alt", -1)), x("\n Verschieben zu: " + C(t), 1)])])), [[o, () => ct(e, r)]])], 64))), 256)), 434 n[52] || (n[52] = x()), 435 T(et) === e.paid_state ? y("", !0) : h((p(), b("li", qe, [...n[49] || (n[49] = [w("div", null, [w("i", { 436 "aria-hidden": "true", 437 class: "material-icons", 438 role: "img" 439 }, "cancel"), x("\n Abschreiben\n ")], -1)])])), [[o, () => lt(e)]]) 440 ]), 441 _: 2 442 }, 1024)]) 443 ]))), 256))]) 444 ]) 445 ]), 446 _: 1 447 }, 16, ["entries"])) 448 ]), 449 _: 1 450 }, 8, ["breadcrumb", "headline"]); 451 }; 452 } 453}); 454//#endregion 455export { z as default }; 456 457//# sourceMappingURL=CustomerInvoiceDunningList_DJx73nkq.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.