PageSourceSearch

https://app.dailycentral.de/assets/OpenInvoicesList-c7ba3973.js

js dailycentral.de collected 2026-10-07 12:32:00 UTC 2,063 bytes, 1 lines download raw bytes

1import{r as o,u as j,a as y,E as l,j as t,S as L,x as D,y as i,s as O,h as T,X as N,i as C}from"./index-7a27b5bf.js";import{W as R}from"./WidgetFrame-38864d64.js";import{T as b}from"./TileTitle-2667018b.js";import{T as H}from"./TileFrame-2f17785b.js";const m="OPENINVOICESLIST_GETDATA",P=s=>{const[u,f]=o.useState([]),v=o.useRef(s.data.id),[S,a]=o.useState(!1),[g,w]=j(),[n]=y(),r=async()=>{await d()},d=async()=>{if(!s.preview){a(!0);try{const e=await g(`homedashboard?type=${v.current}`,void 0,m,"GET");f(e==null?void 0:e.data)}finally{a(!1)}}};o.useEffect(()=>(s.preview||(d(),l.on("SALESHEADERCHANGED",r)),()=>{s.preview||(w(m),l.off("SALESHEADERCHANGED",r))}),[]);const h=e=>{s.preview||O("INVOICECARD",{objectId:e})},E=e=>T(e.remainingAmount),A=e=>{var c;const x=((c=N.find(I=>I.value===e.documentState))==null?void 0:c.label)??"",p=C(e.documentState);return t.jsx("span",{className:"noSelect",style:p,children:x})};return t.jsx(R,{name:s.data.type,onRemove:s.onRemove,caption:n("widgets.OpenInvoicesList.title"),tooltip:n("widgets.OpenInvoicesList.tooltip"),preview:s.preview,onAdd:s.onAdd,children:t.jsxs(H,{
1children:[S&&t.jsx(L,{hideProgress:!0,rounded:!0}),t.jsx(b,{title:n("widgets.OpenInvoicesList.title")}),t.jsx("div",{className:"noSelect devim_listwidgetcontainer",children:t.jsxs(D,{value:u??[],style:{height:"100%",width:"100%"},scrollHeight:"100%",dataKey:"id",selectionMode:"single",tableStyle:{fontSize:"0.8rem"},onRowSelect:e=>{h(e.data.id)},responsiveLayout:"scroll",size:"small",children:[t.jsx(i,{field:"documentNo",header:n("widgets.OpenInvoicesList.colNo")},"column_documentNo"),t.jsx(i,{field:"documentDate",header:n("widgets.OpenInvoicesList.colDate")},"column_documentDate"),t.jsx(i,{field:"customerName",header:n("widgets.OpenInvoicesList.colCustomer")},"column_customerName"),t.jsx(i,{field:"documentState",header:n("widgets.OpenInvoicesList.colState"),body:A},"column_documentstate"),t.jsx(i,{field:"remainingAmount",header:n("widgets.OpenInvoicesList.colAmount"),body:E},"column_remainingAmount")]})})]})})};export{P as default};

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.