mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 04:31:08 -04:00
change route for mark as sent
This commit is contained in:
@ -222,6 +222,7 @@ export default {
|
|||||||
action: 'Acción',
|
action: 'Acción',
|
||||||
notes: 'Notas',
|
notes: 'Notas',
|
||||||
tax: 'Impuesto',
|
tax: 'Impuesto',
|
||||||
|
send_estimate: 'Enviar presupuesto',
|
||||||
estimate_template: 'Plantilla de estimación',
|
estimate_template: 'Plantilla de estimación',
|
||||||
convert_to_invoice: 'Convertir a factura',
|
convert_to_invoice: 'Convertir a factura',
|
||||||
mark_as_sent: 'Marcar como enviado',
|
mark_as_sent: 'Marcar como enviado',
|
||||||
|
|||||||
@ -130,7 +130,7 @@ export const markAsRejected = ({ commit, dispatch, state }, data) => {
|
|||||||
|
|
||||||
export const markAsSent = ({ commit, dispatch, state }, data) => {
|
export const markAsSent = ({ commit, dispatch, state }, data) => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
window.axios.post(`/api/estimates/sent`, data).then((response) => {
|
window.axios.post(`/api/estimates/mark-as-sent`, data).then((response) => {
|
||||||
// commit(types.UPDATE_INVOICE, response.data)
|
// commit(types.UPDATE_INVOICE, response.data)
|
||||||
resolve(response)
|
resolve(response)
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user