import{a5 as m,$ as p,b as o,a8 as _,c as d,j as n,x as s,o as u}from"./app-583c7dce.js";import{t as b,j as y,u as f}from"./invoice-63485875.js";import{n as g,a as h}from"./helpers-7af1206d.js";import{N as k}from"./NoteColumn-e07229d7.js";const v={class:"content-wrapper"},L={__name:"TransactionList",setup(w){const{canAccess:t}=m(),{t:a}=p(),l=o("transaction-table"),i=o({url:b,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("number"),type:"text",key:"invoice_full_number"},{title:a("amount"),type:"object",key:"amount",modifier:e=>g(e)},{title:a("received_on"),type:"object",key:"received_on",modifier:e=>h(e)},{title:a("invoice_number"),type:"object",key:"invoice",modifier:e=>e?e.invoice_full_number:""},{title:a("customer"),type:"object",key:"customer",modifier:e=>e?e.full_name:"",permission:t("manage_global_access")},{title:a("payment_method"),type:"object",key:"payment_method",modifier:e=>e?e.name:""},{title:a("note"),type:"component",key:"note",componentName:_(k),permission:t("manage_global_access")}],filters:[{label:a("customer"),type:"advance-search-select",key:"customer",listKeyField:"id",listValueField:"full_name",rowPerLoad:10,fetchUrl:`${y}`,permission:t("manage_global_access")},{label:a("payment_method"),type:"advance-search-select",key:"payment_method",listKeyField:"id",listValueField:"name",rowPerLoad:10,fetchUrl:`${f}`,permission:t("manage_global_access")},{label:a("date"),type:"date-range",key:"date",placeholder:a("received_date"),permission:t("manage_global_access")}]});return(e,T)=>{const c=s("app-breadcrumb"),r=s("app-datatable");return u(),d("div",v,[n(c,{"page-title":e.$t("transaction_list")},null,8,["page-title"]),n(r,{id:l.value,options:i.value},null,8,["id","options"])])}}};export{L as default};
