mirror of
https://github.com/crater-invoice/crater.git
synced 2026-02-10 21:02:41 -05:00
new build 603
This commit is contained in:
1
public/build/assets/invoice.edbe361c.js
Normal file
1
public/build/assets/invoice.edbe361c.js
Normal file
@@ -0,0 +1 @@
|
||||
import{h as a}from"./auth.e6e11d4c.js";import{a as n}from"./vendor.d12b5734.js";const{defineStore:s}=window.pinia,h=s({id:"customerInvoiceStore",state:()=>({totalInvoices:0,invoices:[],selectedViewInvoice:[]}),actions:{fetchInvoices(t,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices`,{params:t}).then(e=>{this.invoices=e.data.data,this.totalInvoices=e.data.meta.invoiceTotalCount,o(e)}).catch(e=>{a(e),c(e)})})},fetchViewInvoice(t,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices/${t.id}`,{params:t}).then(e=>{this.selectedViewInvoice=e.data.data,o(e)}).catch(e=>{a(e),c(e)})})},searchInvoice(t,i){return new Promise((o,c)=>{n.get(`/api/v1/${i}/customer/invoices`,{params:t}).then(e=>{this.invoices=e.data,o(e)}).catch(e=>{a(e),c(e)})})}}});export{h as u};
|
||||
Reference in New Issue
Block a user