diff --git a/src/api/ADempiere/field/location.js b/src/api/ADempiere/field/location.js index 4fa7320c..6debf3cb 100644 --- a/src/api/ADempiere/field/location.js +++ b/src/api/ADempiere/field/location.js @@ -4,7 +4,7 @@ const tableName = 'C_Location' * Create a location and return the created entity * @param {array} attributesList */ -export function requestCreateLocationAddress({ +export function createLocationAddress({ attributesList }) { const { requestCreateEntity } = require('@/api/ADempiere/persistence.js') @@ -20,7 +20,7 @@ export function requestCreateLocationAddress({ * @param {number} id as C_Location_ID * @param {string} uuid */ -export function requestGetLocationAddress({ +export function getLocationAddress({ id, uuid }) { @@ -39,7 +39,7 @@ export function requestGetLocationAddress({ * @param {string} uuid * @param {array} attributesList, all attributes (including empty values) */ -export function requestUpdateLocationAddress({ +export function updateLocationAddress({ id, uuid, attributesList diff --git a/src/components/ADempiere/Field/FieldLocation/index.vue b/src/components/ADempiere/Field/FieldLocation/index.vue index ac75505c..301ed942 100644 --- a/src/components/ADempiere/Field/FieldLocation/index.vue +++ b/src/components/ADempiere/Field/FieldLocation/index.vue @@ -91,7 +91,7 @@ export default { return } - this.requestGetLocationAddress({ + this.getLocationAddress({ id: value }) .then(responseLocation => { diff --git a/src/components/ADempiere/Field/FieldLocation/locationAddressForm.vue b/src/components/ADempiere/Field/FieldLocation/locationAddressForm.vue index f85f0d25..aaa89b0d 100644 --- a/src/components/ADempiere/Field/FieldLocation/locationAddressForm.vue +++ b/src/components/ADempiere/Field/FieldLocation/locationAddressForm.vue @@ -53,8 +53,8 @@ import formMixin from '@/components/ADempiere/Form/formMixin.js' import mixinLocation from './mixinLocation.js' import fieldsList from './fieldsList.js' import { - requestCreateLocationAddress, - requestUpdateLocationAddress + createLocationAddress, + updateLocationAddress } from '@/api/ADempiere/field/location.js' import { showNotification } from '@/utils/ADempiere/notification.js' import { getSequenceAsList } from '@/utils/ADempiere/location' @@ -289,7 +289,7 @@ export default { } if (this.isEmptyValue(locationId) || locationId === 0) { - requestCreateLocationAddress({ + createLocationAddress({ attributesList: attributesToServer }) .then(updateLocation) @@ -304,7 +304,7 @@ export default { // break to only create return } - requestUpdateLocationAddress({ + updateLocationAddress({ id: locationId, attributesList: attributesToServer }) @@ -336,7 +336,7 @@ export default { return } - this.requestGetLocationAddress({ + this.getLocationAddress({ id }) .then(responseLocation => { diff --git a/src/components/ADempiere/Field/FieldLocation/mixinLocation.js b/src/components/ADempiere/Field/FieldLocation/mixinLocation.js index afc99f24..f4a56636 100644 --- a/src/components/ADempiere/Field/FieldLocation/mixinLocation.js +++ b/src/components/ADempiere/Field/FieldLocation/mixinLocation.js @@ -1,5 +1,5 @@ import { requestGetCountryDefinition } from '@/api/ADempiere/system-core.js' -import { requestGetLocationAddress } from '@/api/ADempiere/field/location.js' +import { getLocationAddress } from '@/api/ADempiere/field/location.js' export default { name: 'MixinLocationField', @@ -17,7 +17,7 @@ export default { } }, methods: { - requestGetLocationAddress, + getLocationAddress, requestGetCountryDefinition, toggleShowedLocationForm() { this.$store.commit('setShowedLocation', !this.isShowedLocationForm)