From 10bb3f19ea3f4971af67a378a9a72afd8e5bd535 Mon Sep 17 00:00:00 2001 From: elsiosanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Thu, 30 Apr 2020 15:46:56 -0400 Subject: [PATCH] add get country to system core (#476) --- src/api/ADempiere/system-core.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/ADempiere/system-core.js b/src/api/ADempiere/system-core.js index 5a7e0725..817dd137 100644 --- a/src/api/ADempiere/system-core.js +++ b/src/api/ADempiere/system-core.js @@ -44,6 +44,14 @@ export function getWarehousesList({ }) } +// Get Country definition from server using id or uuid for record +export function getCountryDefinition({ countryUuid, countryId }) { + return Instance.call(this).requestGetCountry({ + countryUuid, + countryId + }) +} + // Get languages from api export function requestLanguages({ pageToken, pageSize }) { return Instance.call(this).requestListLanguages({ pageToken, pageSize })