From 55423783785b719ffb3ccf9dfb638ce5e61764c2 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Wed, 16 Feb 2022 17:25:42 -0400 Subject: [PATCH] #1585 #1586 (#1587) --- .../ADempiere/Form/VPOS/Options/index.vue | 78 ++++++++++++++++++- src/store/modules/ADempiere/utils.js | 14 ++++ src/store/modules/tagsView.js | 1 - 3 files changed, 90 insertions(+), 3 deletions(-) diff --git a/src/components/ADempiere/Form/VPOS/Options/index.vue b/src/components/ADempiere/Form/VPOS/Options/index.vue index 51a7da1e3cf..77926972b08 100644 --- a/src/components/ADempiere/Form/VPOS/Options/index.vue +++ b/src/components/ADempiere/Form/VPOS/Options/index.vue @@ -339,7 +339,8 @@ style="cursor: pointer; text-align: center !important; color: black;min-height: 50px;" @click="adviserPin ? validateOption($t('form.pos.optionsPoinSales.cashManagement.assignSeller')) : assignSeller()" > - + +
{{ $t('form.pos.optionsPoinSales.cashManagement.assignSeller') }}

@@ -351,12 +352,37 @@ style="cursor: pointer; text-align: center !important; color: black;min-height: 50px;" @click="adviserPin ? validateOption($t('form.pos.optionsPoinSales.cashManagement.unassignSeller')) : unassignSeller()" > - + +
{{ $t('form.pos.optionsPoinSales.cashManagement.unassignSeller') }}

+ + +

+ +
+ {{ $t('form.pos.optionsPoinSales.cashManagement.transfer') }} +

+
+
+ + +

+ +
+ {{ $t('form.pos.optionsPoinSales.cashManagement.moneyIncome') }} +

+
+
@@ -434,6 +460,26 @@ > + + + + + + @@ -586,6 +632,22 @@ export default { this.$store.commit('setShowUnassignSeller', value) } }, + showTransfer: { + get() { + return this.$store.getters.getShowTransfer + }, + set(value) { + this.$store.commit('setShowTransfer', value) + } + }, + showMoneyIncome: { + get() { + return this.$store.getters.getShowMoneyIncome + }, + set(value) { + this.$store.commit('setShowMoneyIncome', value) + } + }, adviserPin() { return this.$store.getters.posAttributes.currentPointOfSales.isPosRequiredPin }, @@ -724,6 +786,12 @@ export default { unassignSeller() { this.$store.commit('setShowUnassignSeller', true) }, + moneyIncome() { + this.$store.commit('setShowMoneyIncome', true) + }, + transfer() { + this.$store.commit('setShowTransfer', true) + }, openListOrdes() { this.showFieldListOrder = true }, @@ -820,6 +888,12 @@ export default { case this.$t('form.pos.optionsPoinSales.cashManagement.unassignSeller'): this.unassignSeller() break + case this.$t('form.pos.optionsPoinSales.cashManagement.moneyIncome'): + this.moneyIncome() + break + case this.$t('form.pos.optionsPoinSales.cashManagement.transfer'): + this.transfer() + break } }, printTicket() { diff --git a/src/store/modules/ADempiere/utils.js b/src/store/modules/ADempiere/utils.js index b551ea64ff8..3c33cc1b52c 100644 --- a/src/store/modules/ADempiere/utils.js +++ b/src/store/modules/ADempiere/utils.js @@ -40,6 +40,8 @@ const initStateUtils = { showAssignSeller: false, showUnassignSeller: false, showPanelAddress: false, + showTransfer: false, + showMoneyIncome: false, quickSearchOrder: {} } @@ -163,6 +165,12 @@ export default { }, setShowPanelAddress(state, showPanelAddress) { state.showPanelAddress = showPanelAddress + }, + setShowTransfer(state, showTransfer) { + state.showTransfer = showTransfer + }, + setShowMoneyIncome(state, showMoneyIncome) { + state.showMoneyIncome = showMoneyIncome } }, actions: { @@ -364,6 +372,12 @@ export default { getShowUnassignSeller: (state) => { return state.showUnassignSeller }, + getShowTransfer: (state) => { + return state.showTransfer + }, + getShowMoneyIncome: (state) => { + return state.showMoneyIncome + }, getQuickSearchOrder: (state) => { return state.quickSearchOrder } diff --git a/src/store/modules/tagsView.js b/src/store/modules/tagsView.js index 04c96c39fc1..d4031f5826d 100644 --- a/src/store/modules/tagsView.js +++ b/src/store/modules/tagsView.js @@ -88,7 +88,6 @@ const actions = { dispatch('addCachedView', view) }, addVisitedView({ commit }, view) { - console.log({ view }) commit('ADD_VISITED_VIEW', view) }, addCachedView({ commit }, view) {