|
@@ -2,7 +2,7 @@ const actions = {
|
|
|
notify({ commit }, payload) {
|
|
|
openerp.web.notification.do_warn('Atención', payload)
|
|
|
},
|
|
|
- fetchData({ dispatch }) {
|
|
|
+ initSale({ dispatch }) {
|
|
|
let promises = [
|
|
|
dispatch('fetchCompany'),
|
|
|
dispatch('fetchCurrencies'),
|
|
@@ -15,9 +15,10 @@ const actions = {
|
|
|
}).catch(error => {
|
|
|
console.log(error)
|
|
|
})
|
|
|
+ },
|
|
|
+ completeSale({ commit }) {
|
|
|
+ console.log(payload)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export default {
|
|
|
- actions
|
|
|
-}
|
|
|
+export default actions
|