Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Validate POS (#2828)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Oct 18, 2024
1 parent 94f00cf commit bfdef1c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/store/modules/ADempiere/form/VPOS/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
} from '@/api/ADempiere/form/VPOS/CommandShortcut'
// Utils and Helper Methods
import { isEmptyValue } from '@/utils/ADempiere/valueUtils.js'
import { showMessage, showNotification } from '@/utils/ADempiere/notification'
import { showMessage } from '@/utils/ADempiere/notification'

const VPOS = {
listDocumentTypes: [],
Expand Down Expand Up @@ -91,15 +91,6 @@ export default {
return new Promise(resolve => {
const currentRouter = router.app.$route
const { posId } = currentRouter.query
if (isEmptyValue(posId)) {
showNotification({
title: language.t('pointOfSales.withoutPOSTerminal'),
message: router.app.$route.title,
summary: router.app.$route.description,
type: 'error'
})
return
}
if (!isEmptyValue(posId)) id = posId
if (isEmptyValue(id)) {
dispatch('listPointOfSale')
Expand Down

0 comments on commit bfdef1c

Please sign in to comment.