import{a5 as m,$ as p,b as o,c as _,j as n,x as l,o as d}from"./app-583c7dce.js";import{x as u,j as b,u as y}from"./invoice-63485875.js";import{a as f,n as g}from"./helpers-7af1206d.js";const h={class:"content-wrapper"},S={__name:"TransactionReport",setup(k){const{canAccess:t}=m(),{t:a}=p(),s=o("transaction-report-table"),r=o({url:u,pageSize:5,rowLimit:10,orderBy:"desc",showGridView:!1,actionType:"dropdown",paginationType:"pagination",enableRowSelect:!1,enableBulkSelect:!1,showSearch:!0,showFilter:t("manage_global_access"),columns:[{title:a("customer"),type:"object",key:"customer",modifier:e=>e?e.full_name:"",permission:t("manage_global_access")},{title:a("number"),type:"text",key:"invoice_full_number"},{title:a("payment_date"),type:"object",key:"received_on",modifier:e=>f(e)},{title:a("reference_invoice_number"),type:"object",key:"invoice",modifier:e=>e?e.invoice_full_number:"-"},{title:a("payment_method"),type:"object",key:"payment_method",modifier:e=>e?e.name:""},{title:a("amount"),type:"object",key:"amount",accountAble:!0,modifier:e=>g(e)}],filters:[{label:a("customer"),type:"advance-search-select",key:"customer",listKeyField:"id",listValueField:"full_name",rowPerLoad:10,fetchUrl:`${b}`,permission:t("manage_global_access")},{label:a("payment_method"),type:"advance-search-select",key:"payment_method",listKeyField:"id",listValueField:"name",rowPerLoad:10,fetchUrl:`${y}`,permission:t("manage_global_access")},{label:a("date"),type:"date-range",key:"date",placeholder:a("select_a_range"),permission:t("manage_global_access")}],actions:[]});return(e,T)=>{const i=l("app-breadcrumb"),c=l("app-datatable");return d(),_("div",h,[n(i,{"page-title":e.$t("transaction_report")},null,8,["page-title"]),n(c,{id:s.value,options:r.value},null,8,["id","options"])])}}};export{S as default};
