Fix Invoice/Estimate template issues and Add Payment Receipt, Custom Payment Modes and Item units

This commit is contained in:
Jay Makwana
2020-01-05 07:22:36 +00:00
committed by Mohit Panjwani
parent 56a955befd
commit 4c33a5d88c
112 changed files with 5050 additions and 331 deletions

View File

@ -135,6 +135,16 @@ export const markAsSent = ({ commit, dispatch, state }, data) => {
})
}
export const cloneInvoice = ({ commit, dispatch, state }, data) => {
return new Promise((resolve, reject) => {
window.axios.post(`/api/invoices/clone`, data).then((response) => {
resolve(response)
}).catch((err) => {
reject(err)
})
})
}
export const searchInvoice = ({ commit, dispatch, state }, data) => {
return new Promise((resolve, reject) => {
window.axios.get(`/api/invoices?${data}`).then((response) => {