Files
docker-invoiceninja/docker/app/public/bundle.c98f05ce.js
2024-10-19 18:17:42 +00:00

2 lines
807 B
JavaScript

import{bP as r,Z as m,c,k as u,h as s,a5 as d,aB as l,aC as p}from"./bundle.0b839d67.js";import{u as y}from"./bundle.f4f5b597.js";import{u as h}from"./bundle.6b201db4.js";import"./bundle.12eb4452.js";import"./bundle.51e1486d.js";import"./bundle.ee417884.js";function _(){const{id:t}=r(),i=m(),a=y(),o=h();return c(u,{resource:"payment",endpoint:s("/api/v1/payments?include=client,invoices&client_id=:id&sort=id|desc",{id:t}),columns:a,customActions:o,withResourcefulActions:!0,bulkRoute:"/api/v1/payments/bulk",linkToCreate:s("/payments/create?client=:id",{id:t}),linkToEdit:"/payments/:id/edit",excludeColumns:["client_id"],showRestore:e=>!e.is_deleted,linkToCreateGuards:[d("create_payment")],hideEditableOptions:!i("edit_payment"),showRestoreBulk:e=>e.every(n=>l(n)===p.Archived)})}export{_ as default};