Skip to content

Commit

Permalink
fix: #1516 Set warehouse value. (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt authored Feb 9, 2022
1 parent eb11f7b commit 08957b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
import { resetRouter } from '@/router'
import { showMessage } from '@/utils/ADempiere/notification'
import { isEmptyValue } from '@/utils/ADempiere/valueUtils'
import { ORGANIZATION } from '@/utils/ADempiere/constants/systemColumns'
import { ORGANIZATION, WAREHOUSE } from '@/utils/ADempiere/constants/systemColumns'
import language from '@/lang'

const state = {
Expand Down Expand Up @@ -483,7 +483,7 @@ const actions = {
setCurrentWarehouse(warehouse.uuid)
commit('SET_WAREHOUSE', warehouse)
commit('setPreferenceContext', {
columnName: '#' + ORGANIZATION,
columnName: `#${WAREHOUSE}`,
value: warehouse.id
}, {
root: true
Expand All @@ -504,7 +504,7 @@ const actions = {
commit('SET_WAREHOUSE', currentWarehouse)

commit('setPreferenceContext', {
columnName: '#' + ORGANIZATION,
columnName: `#${WAREHOUSE}`,
value: currentWarehouse.id
}, {
root: true
Expand Down
2 changes: 2 additions & 0 deletions src/utils/ADempiere/constants/systemColumns.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export const PROCESSED = 'Processed'

export const UUID = 'UUID'

export const WAREHOUSE = 'M_Warehouse_ID'

/**
* Log columns list into table
* Manages with user session
Expand Down

0 comments on commit 08957b5

Please sign in to comment.