import{st as e}from"./index-Cz-yne81.js";const t={getAll:async t=>(await e.get(`/api/receipts/`,{params:t})).data,getById:async t=>(await e.get(`/api/receipts/${t}/`)).data,create:async t=>(await e.post(`/api/receipts/create/`,t,{headers:{"Content-Type":`multipart/form-data`}})).data,update:async(t,n)=>(await e.put(`/api/receipts/${t}/`,n,{headers:{"Content-Type":`multipart/form-data`}})).data,delete:async t=>(await e.delete(`/api/receipts/${t}/`)).data,getPendingInvoices:async(t,n)=>(await e.get(`/api/receipts/pending-invoices/`,{params:{customer_type:t,customer_id:n}})).data,generateReceiptNumber:async t=>(await e.get(`/api/receipts/generate-number/`,{params:{location:t}})).data,getCustomerCreditBalance:async(t,n,r,i)=>(await e.get(`/api/receipts/customer-credit-balance/`,{params:{customer_type:t,customer_id:n,receipt_date:r,receipt_id:i}})).data,getCustomerLedger:async t=>(await e.get(`/api/receipts/customer-ledger/`,{params:t})).data,getCustomerLedgerSummary:async(t,n,r,i)=>(await e.get(`/api/receipts/customer-ledger-summary/`,{params:{customer_type:t,customer_id:n,posting_date_from:r,posting_date_to:i}})).data};export{t};