forked from adempiere/adempiere-vue
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: Remove unused and dupicated definitions.
- Loading branch information
1 parent
3b85dc1
commit 048d117
Showing
22 changed files
with
179 additions
and
1,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution | ||
* Copyright (C) 201-Present E.R.P. Consultores y Asociados, C.A. www.erpya.com | ||
* Copyright (C) 2018-Present E.R.P. Consultores y Asociados, C.A. www.erpya.com | ||
* Contributor(s): Edwin Betancourt [email protected] https://github.com/EdwinBetanc0urt | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -139,32 +139,3 @@ export function requestDeleteEntities({ | |
return response | ||
}) | ||
} | ||
|
||
// /** | ||
// * Rollback entity (Create, Update, Delete) | ||
// * @param {string} tableName | ||
// * @param {number} recordId | ||
// * @param {string} eventType | ||
// */ | ||
// export function rollbackEntity({ | ||
// tableName, | ||
// recordId, | ||
// recordUuid, | ||
// eventType | ||
// }) { | ||
// return request({ | ||
// url: '/common/api/rollback-entity', | ||
// method: 'post', | ||
// data: { | ||
// table_name: tableName, | ||
// id: recordId, | ||
// uuid: recordUuid, | ||
// event_type: eventType | ||
// } | ||
// }) | ||
// .then(entityResponse => { | ||
// const { convertEntity } = require('@/utils/ADempiere/apiConverts/persistence.js') | ||
|
||
// return convertEntity(entityResponse) | ||
// }) | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution | ||
* Copyright (C) 2017-Present E.R.P. Consultores y Asociados, C.A. www.erpya.com | ||
* Copyright (C) 2018-Present E.R.P. Consultores y Asociados, C.A. www.erpya.com | ||
* Contributor(s): Elsio Sanchez [email protected] https://github.com/elsiosanchez | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -9,7 +9,7 @@ | |
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
|
@@ -864,19 +864,6 @@ export function processOrder({ | |
* |______________________________________| | ||
*/ | ||
|
||
/** | ||
* List Product Conversion UOM | ||
*/ | ||
|
||
export function listProductConversion({ | ||
id | ||
}) { | ||
return request({ | ||
url: `common/product-conversions/${id}`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
/** | ||
* List Stock: GET /api/stocks | ||
* @param {int32} posId | ||
|
@@ -898,32 +885,6 @@ export function listStocks({ | |
}) | ||
} | ||
|
||
/** | ||
* Get Currency Rate | ||
* @param {int32} conversion_type_id | ||
* @param {int32} currency_from_id | ||
* @param {int32} currency_to_id | ||
* @param {google.protobuf.Timestamp} conversion_date | ||
*/ | ||
|
||
export function getConversionRate({ | ||
conversionTypeId, | ||
currencyFromId, | ||
currencyToId, | ||
conversionDate | ||
}) { | ||
return request({ | ||
url: 'common/conversion-rates', | ||
method: 'get', | ||
params: { | ||
conversion_type_id: conversionTypeId, | ||
currency_from_id: currencyFromId, | ||
currency_to_id: currencyToId, | ||
conversion_date: conversionDate | ||
} | ||
}) | ||
} | ||
|
||
/** | ||
* List Banks | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
|
@@ -19,7 +19,9 @@ | |
// Get Instance for connection | ||
import { request } from '@/utils/ADempiere/request' | ||
import { config } from '@/utils/ADempiere/config' | ||
import { isEmptyValue } from '@/utils/ADempiere' | ||
|
||
// Utils and Helper Methods | ||
import { isEmptyValue } from '@/utils/ADempiere/valueUtils' | ||
import { camelizeObjectKeys } from '@/utils/ADempiere/transformObject.js' | ||
|
||
// Constants | ||
|
@@ -31,7 +33,6 @@ import { RECORD_ROWS_BY_LIST } from '@/utils/ADempiere/dictionary/field/lookups' | |
* @author elsiosanchez <[email protected]> | ||
*/ | ||
export { getProductPrice as findProduct } from '@/api/ADempiere/form/price-checking.js' | ||
export { requestGetConversionRate } from '@/api/ADempiere/common/index.ts' | ||
|
||
// List Point of sales | ||
export function getPointOfSales({ | ||
|
@@ -1609,23 +1610,6 @@ export function listStocks({ | |
}) | ||
} | ||
|
||
export function listUom({ | ||
posUuid, | ||
productId | ||
}) { | ||
return request({ | ||
url: 'common/list-product-conversion', | ||
method: 'get', | ||
params: { | ||
pos_uuid: posUuid, | ||
product_id: productId | ||
} | ||
}) | ||
.then(response => { | ||
return camelizeObjectKeys(response) | ||
}) | ||
} | ||
|
||
/** | ||
* GET List Banks | ||
* req.query.token - user token | ||
|
Oops, something went wrong.