@adempiere/grpc-api
Advanced tools
Comparing version 1.6.4 to 1.6.5
@@ -29,3 +29,3 @@ /************************************************************************************* | ||
} = require('./convertCoreFunctionality.js'); | ||
const { getDecimalFromGRPC } = require('./convertBaseDataType.js'); | ||
return { | ||
@@ -70,6 +70,7 @@ uuid: pointOfSales.getUuid(), | ||
is_allows_collect_order: pointOfSales.getIsAllowsCollectOrder(), | ||
maximum_refund_allowed: convertCurrencyFromGRPC( | ||
maximum_refund_allowed: getDecimalFromGRPC( | ||
pointOfSales.getMaximumRefundAllowed() | ||
), | ||
maximum_daily_refund_allowed: convertCurrencyFromGRPC( | ||
maximum_daily_refund_allowed: getDecimalFromGRPC( | ||
pointOfSales.getMaximumRefundAllowed() | ||
@@ -110,2 +111,15 @@ ) | ||
// Convert available currency from gRPC to JSON | ||
convertAvailableCurrency(currency) { | ||
if(currency) { | ||
return { | ||
id: currency.getId(), | ||
uuid: currency.getUuid(), | ||
key: currency.getKey(), | ||
name: currency.getName() | ||
} | ||
} | ||
return undefined; | ||
}, | ||
// Convert available document type from gRPC to JSON | ||
@@ -112,0 +126,0 @@ convertAvailableDocumentType(availableDocumentType) { |
{ | ||
"name": "@adempiere/grpc-api", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "ADempiere Web Store write in Javascript for a node service", | ||
@@ -5,0 +5,0 @@ "author": "Yamel Senih", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2580954
75191