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-10-01-1531" }; 5 var t = new e.Error().stack; 6 t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e0fd8dd9-54ad-4456-926f-8cfd3a16f9d9", e._sentryDebugIdIdentifier = "sentry-dbid-e0fd8dd9-54ad-4456-926f-8cfd3a16f9d9"); 7 } catch (e) {} 8})(); 9import { Bo as e, Jc as t, On as n, Ua as r, Xt as i, cc as a, jc as o, mc as s, ss as c, xi as l } from "./topMessageHandler_CaWydTPF.min.js"; 10import { $ as u, F as d, L as f, N as p, R as m, T as h, X as g, Y as _, _ as v, c as y, d as b, f as x, g as S, i as C, jt as w, l as T, lt as E, m as D, nt as O, q as k, u as A, y as j } from "./runtime-core.esm-bundler_DscPLG0X.min.js"; 11import { n as M, t as N } from "./asyncToGenerator_CnehwrQ8.min.js"; 12import { t as P } from "./PhoneNumber_Bz3LUtmm.min.js"; 13import { r as F } from "./vuex.esm-bundler_ByHC_Vqx.min.js"; 14import { s as I } from "./addresses_BKkK47Xf.min.js"; 15import { t as L } from "./ListPager_ClTN-8nC.min.js"; 16import { t as ee } from "./EntryHistory_5eJJkBfo.min.js"; 17import { t as R } from "./searchAbstract_DeMDx6Lx.min.js"; 18import { t as z } from "./AppContent_DtiJZ3PY.min.js"; 19import { t as B } from "./ContactAddressDisplay_DMTUTxkj.min.js"; 20import { t as V } from "./customer_BNhcZn43.min.js"; 21import { t as H } from "./ContactContractList_Cgv94WMr.min.js"; 22//#region src/views/customer/agent/CustomerAgentMonthList.vue?vue&type=script&setup=true&lang.ts 23M(); 24var U = { class: "portuna-table portuna-table-bordered contract-list-table" }, W = { key: 0 }, G = ["colspan"], K = { key: 1 }, q = ["colspan"], J = { class: "text-overflow" }, Y = { class: "text-overflow no-print hidden-md-down" }, X = { class: "no-print hidden-md-down" }, Z = { class: "text-overflow" }, Q = ["onMouseleave", "onMouseover"], $ = { class: "padding-small" }, te = { class: "no-margin-top margin-bottom-5 intranet-headline-color" }, ne = { class: "margin-bottom-5 font-size-12" }, re = { class: "break-spaces" }, ie = /* @__PURE__ */ j({ 25 __name: "CustomerAgentMonthList", 26 props: { 27 id: { default: 0 }, 28 date: {} 29 }, 30 setup(n, { expose: i }) { 31 let l = t(), u = V(), b = n, D = y(() => 7), k = [{ 32 label: "Kunden", 33 href: { name: "customer-index" } 34 }], j = y(() => "customer-agent-month-list-" + b.id), M = O(), N = O([]), P = y(() => ({ 35 headline: "Handelsvertreter", 36 breadcrumb: k 37 })); 38 u.loadAll({ 39 promises: [u.fetchResourceData(), o.get(`/customer/agent/fetch-invoice-list/id/${b.id}/date/${b.date}`).then(({ data: { data: e } }) => { 40 N.value = e.entries; 41 }).catch((e) => { 42 s(e); 43 })], 44 setLoading: !1 45 }); 46 let F = R({ 47 emitter: l.emitter, 48 searchStorageScope: j 49 }); 50 return i(Object.assign({}, l, F.expose)), (t, n) => { 51 let i = f("router-link"), o = m("tooltip"); 52 return p(), A(z, h(P.value, { class: "module-customer" }), { 53 default: _(() => [v(L, h({ 54 ref_key: "listPager", 55 ref: M 56 }, E(F).properties, { entries: N.value }), { 57 default: _(({ listEntries: t, loading: s }) => [T("table", U, [ 58 n[10] || (n[10] = T("colgroup", null, [ 59 T("col", { style: { width: "45px" } }), 60 S(), 61 T("col", { style: { width: "110px" } }), 62 S(), 63 T("col", { 64 class: "no-print hidden-md-down", 65 style: { width: "auto" } 66 }), 67 S(), 68 T("col", { 69 class: "no-print hidden-md-down", 70 style: { width: "200px" } 71 }), 72 S(), 73 T("col", { 74 class: "no-print", 75 style: { width: "200px" } 76 }), 77 S(), 78 T("col", { 79 class: "no-print hidden-md-down", 80 style: { width: "200px" } 81 }), 82 S(), 83 T("col", { style: { width: "auto" } }) 84 ], -1)), 85 n[11] || (n[11] = S()), 86 n[12] || (n[12] = T("thead", null, [T("tr", null, [ 87 T("th", { class: "text-center background-dark" }, [T("i", { 88 "aria-hidden": "true", 89 class: "material-icons md-18", 90 role: "img" 91 }, "list")]), 92 S(), 93 T("th", null, "Knd-Nr."), 94 S(), 95 T("th", null, "Kunde"), 96 S(), 97 T("th", null, "Datum"), 98 S(), 99 T("th", null, "Provision Netto"), 100 S(), 101 T("th", null, "Provision Brutto"), 102 S(), 103 T("th", null, "Produkte") 104 ])], -1)), 105 n[13] || (n[13] = S()), 106 T("tbody", null, [s ? (p(), x("tr", W, [T("td", { colspan: D.value }, [v(I)], 8, G)])) : t.length === 0 ? (p(), x("tr", K, [T("td", { colspan: D.value }, "\n Es wurden keine Einträge gefunden.\n ", 8, q)])) : (p(!0), x(C, { key: 2 }, d(t, (t) => (p(), x("tr", null, [ 107 n[3] || (n[3] = T("td", null, null, -1)), 108 n[4] || (n[4] = S()), 109 T("td", J, [v(i, { 110 to: {
111 name: "contact-entry-view", 112 params: { id: t.institution_id } 113 }, 114 target: "_blank" 115 }, { 116 default: _(() => [S("\n #" + w(t.institution_id), 1)]), 117 _: 2 118 }, 1032, ["to"])]), 119 n[5] || (n[5] = S()), 120 T("td", Y, [g((p(), A(i, { 121 to: { 122 name: "contact-entry-view", 123 params: { id: t.institution_id } 124 }, 125 target: "_blank" 126 }, { 127 default: _(() => [S(w(t.institution_name), 1)]), 128 _: 2 129 }, 1032, ["to"])), [[o, `${t.institution_name} (${t.institution_id})`]])]), 130 n[6] || (n[6] = S()), 131 T("td", X, w(E(e)("d.m.Y", t.date)), 1), 132 n[7] || (n[7] = S()), 133 T("td", null, w(E(c)(t.total_provision_net)), 1), 134 n[8] || (n[8] = S()), 135 T("td", null, w(E(c)(t.total_provision_gross)), 1), 136 n[9] || (n[9] = S()), 137 T("td", Z, [(p(!0), x(C, null, d(t.product, (e) => (p(), x("span", null, [v(a, { 138 "max-width": 400, 139 class: "label" 140 }, { 141 default: _(({ open: t, mouseleave: n }) => [T("span", { 142 onMouseleave: n, 143 onMouseover: t 144 }, w(e.matchcode), 41, Q)]), 145 container: _(() => [T("div", $, [ 146 T("h4", te, w(e.title), 1), 147 n[0] || (n[0] = S()), 148 T("div", ne, "Verkäufer: " + w(E(r)(e.seller, "employee")), 1), 149 n[1] || (n[1] = S()), 150 T("div", re, w(e.description.length > 350 ? e.description.substring(0, 350) + "..." : e.description), 1) 151 ])]), 152 _: 2 153 }, 1024)]))), 256))]) 154 ]))), 256))]) 155 ])]), 156 _: 1 157 }, 16, ["entries"])]), 158 _: 1 159 }, 16); 160 }; 161 } 162}), ae = { class: "row" }, oe = { class: "col-lg-6" }, se = ["href"], ce = ["href"], le = { class: "col-lg-6" }, ue = { class: "portuna-table portuna-table-bordered" }, de = { key: 0 }, fe = { colspan: "4" }, pe = { key: 1 }, me = { class: "text-right" }, he = { class: "text-right" }, ge = { class: "entry-history" }, _e = /* @__PURE__ */ j({ 163 __name: "CustomerAgentView", 164 props: { id: { default: 0 } }, 165 setup(t) { 166 let r = t, a = F(), s = y(() => [{ 167 label: "Kunden", 168 href: { name: "customer-index" } 169 }, { 170 label: "Handelsvertreter", 171 href: { name: "customer-agent-list" } 172 }]), h = function() { 173 var e = N(function* (e) { 174 return a.dispatch("errorPage", e); 175 }); 176 return function(t) { 177 return e.apply(this, arguments); 178 }; 179 }(), j = function() { 180 var e = N(function* (e) { 181 return a.dispatch("getPage", e); 182 }); 183 return function(t) { 184 return e.apply(this, arguments); 185 }; 186 }(), M = O({}), L = O(null), R = O(!1), V = y(() => ({ 187 headline: `${M.value.institution_name} (${M.value.institution_id})`, 188 breadcrumb: s.value 189 })), U = () => { 190 o.get("/customer/agent/fetch-invoice-list/id/" + r.id).then(({ data: { data: e } }) => { 191 L.value = e.entries; 192 }); 193 }, W = (e) => { 194 a.dispatch("createPopup", { 195 title: `${M.value.institution_name} (${M.value.institution_id})`, 196 titleIcon: "info", 197 component: u(ie), 198 componentProps: { 199 id: M.value.id, 200 date: e.date 201 }, 202 id: "customer-agent-month-list" 203 }).then((e) => { 204 e.open(); 205 }); 206 }, G = () => { 207 j({ url: "/customer/agent/fetch/type/view/id/" + r.id }).then(({ data: e }) => { 208 if (e.status !== "OK") throw e; 209 M.value = e.data.entry, U(); 210 }).catch(h); 211 }; 212 return G(), k(() => r.id, () => { 213 G(); 214 }), (r, a) => { 215 let o = f("router-link"), s = m("tooltip"), u = m("interact"); 216 return p(), A(z, { 217 breadcrumb: V.value.breadcrumb, 218 headline: V.value.headline 219 }, D({ 220 sidebar: _(() => [ 221 v(n, { 222 title: "Weitere Informationen", 223 "title-icon": "info", 224 "title-type": "light" 225 }, { 226 default: _(() => [T("div", ge, [v(ee, { 227 "entry-id": M.value.id, 228 history: M.value, 229 module: "skeleton", 230 namespace: "skeleton" 231 }, null, 8, ["entry-id", "history"])])]), 232 _: 1 233 }), 234 a[21] || (a[21] = S()), 235 v(n, { 236 title: "Verträge", 237 "title-icon": "info", 238 "title-type": "light" 239 }, {
240 default: _(() => [v(H, { "agent-id": t.id }, null, 8, ["agent-id"])]), 241 _: 1 242 }) 243 ]), 244 default: _(() => [ 245 a[22] || (a[22] = S()), 246 T("div", ae, [ 247 T("div", oe, [v(n, { 248 title: "Allgemeine Informationen", 249 "title-icon": "info" 250 }, { 251 default: _(() => [ 252 v(i, { label: "Handelsvertreter" }, { 253 default: _(() => [g((p(), A(o, { to: { 254 name: "customer-entry-view", 255 params: { id: M.value.institution_id } 256 } }, { 257 default: _(() => [S(w(M.value.institution_name) + " (" + w(M.value.institution_id) + ")\n ", 1)]), 258 _: 1 259 }, 8, ["to"])), [[s, `${M.value.institution_name} (${M.value.institution_id})`]])]), 260 _: 1 261 }), 262 a[1] || (a[1] = S()), 263 v(i, { label: "Adresse" }, { 264 default: _(() => [v(B, { address: M.value }, null, 8, ["address"])]), 265 _: 1 266 }), 267 a[2] || (a[2] = S()), 268 v(i, { label: "E-Mail" }, { 269 default: _(() => [T("a", { href: `mailto:${M.value.mail.address}` }, w(M.value.mail.address), 9, se)]), 270 _: 1 271 }), 272 a[3] || (a[3] = S()), 273 v(i, { label: "Telefon" }, { 274 default: _(() => [v(P, { 275 number: M.value.phone.number, 276 prefix: M.value.phone.prefix, 277 type: M.value.phone.type 278 }, null, 8, [ 279 "number", 280 "prefix", 281 "type" 282 ])]), 283 _: 1 284 }), 285 a[4] || (a[4] = S()), 286 M.value.fax.number ? (p(), A(i, { 287 key: 0, 288 label: "Fax" 289 }, { 290 default: _(() => [v(P, { 291 number: M.value.fax.number, 292 prefix: M.value.fax.prefix, 293 type: M.value.fax.type 294 }, null, 8, [ 295 "number", 296 "prefix", 297 "type" 298 ])]), 299 _: 1 300 })) : b("", !0), 301 a[5] || (a[5] = S()), 302 M.value.homepage.url ? (p(), A(i, { 303 key: 1, 304 label: "Webseite" 305 }, { 306 default: _(() => [T("a", { 307 href: M.value.homepage.url, 308 target: "_blank" 309 }, w(M.value.homepage.url), 9, ce)]), 310 _: 1 311 })) : b("", !0) 312 ]), 313 _: 1 314 })]), 315 a[12] || (a[12] = S()), 316 T("div", le, [v(n, { 317 title: "Bankdaten", 318 "title-icon": "account_balance" 319 }, { 320 default: _(() => [ 321 M.value.creditor_identifier ? (p(), x(C, { key: 0 }, [ 322 v(i, { label: "Gläubiger-Id" }, { 323 default: _(() => [S(w(M.value.creditor_identifier), 1)]), 324 _: 1 325 }), 326 a[6] || (a[6] = S()), 327 a[7] || (a[7] = T("hr", null, null, -1)) 328 ], 64)) : b("", !0), 329 a[8] || (a[8] = S()), 330 v(i, { label: "Name des Kontoinhabers" }, { 331 default: _(() => [S(w(M.value.bank_account.depositor), 1)]), 332 _: 1 333 }), 334 a[9] || (a[9] = S()), 335 v(i, { label: "IBAN" }, { 336 default: _(() => [S(w(M.value.bank_account.iban), 1)]), 337 _: 1 338 }), 339 a[10] || (a[10] = S()), 340 v(i, { label: "Kreditinstitut" }, { 341 default: _(() => [S(w(M.value.bank_account.bank), 1)]), 342 _: 1 343 }), 344 a[11] || (a[11] = S()), 345 v(i, { label: "BIC" }, { 346 default: _(() => [S(w(M.value.bank_account.bic), 1)]), 347 _: 1 348 }) 349 ]), 350 _: 1 351 })]) 352 ]), 353 a[23] || (a[23] = S()), 354 v(n, { 355 title: "Rechnungen der letzten 12 Monate", 356 "title-icon": "receipt" 357 }, { 358 default: _(() => [T("table", ue, [ 359 a[17] || (a[17] = T("colgroup", null, [ 360 T("col", { style: { width: "auto" } }), 361 S(), 362 T("col", { style: { width: "40px" } }), 363 S(), 364 T("col", { style: { width: "auto" } }), 365 S(), 366 T("col", { style: { width: "auto" } }) 367 ], -1)), 368 a[18] || (a[18] = S()), 369 a[19] || (a[19] = T("thead", null, [T("tr", null, [ 370 T("th", null, "Monat"), 371 S(), 372 T("th", null, "#"), 373 S(), 374 T("th", null, "Netto"), 375 S(), 376 T("th", null, "Brutto") 377 ])], -1)), 378 a[20] || (a[20] = S()), 379 T("tbody", null, [L.value === null ? (p(), x("tr", de, [T("td", fe, [v(I)])])) : L.value.length ? (p(!0), x(C, { key: 2 }, d(L.value, (t) => (p(), x("tr", null, [ 380 T("td", null, [g((p(), x("a", null, [S(w(E(e)("m.Y", t.date + "-01")), 1)])), [[u, () => W(t)]])]), 381 a[14] || (a[14] = S()), 382 T("td", null, w(t.count_invoices), 1), 383 a[15] || (a[15] = S()), 384 T("td", me, w(E(c)(t.total_provision_net)), 1), 385 a[16] || (a[16] = S()), 386 T("td", he, w(E(c)(t.total_provision_gross)), 1) 387 ]))), 256)) : (p(), x("tr", pe, [...a[13] || (a[13] = [T("td", { colspan: "4" }, "Keine Rechnungen gefunden.", -1)])]))]) 388 ])]), 389 _: 1 390 }), 391 a[24] || (a[24] = S()) 392 ]), 393 _: 2 394 }, [R.value ? { 395 name: "action-menu", 396 fn: _(() => [v(l, null, { 397 default: _(() => [T("li", null, [v(o, { to: { 398 name: "customer-agent-edit", 399 params: { id: M.value.id } 400 } }, { 401 default: _(() => [...a[0] || (a[0] = [T("i", { 402 "aria-hidden": "true", 403 class: "material-icons no-select", 404 role: "img" 405 }, "edit", -1), T("span", null, "Bearbeiten", -1)])]), 406 _: 1 407 }, 8, ["to"])])]), 408 _: 1 409 })]), 410 key: "0" 411 } : void 0]), 1032, ["breadcrumb", "headline"]); 412 }; 413 } 414}); 415//#endregion 416export { _e as default }; 417 418//# sourceMappingURL=CustomerAgentView_CzESpeFn.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.