@adempiere/grpc-api
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -203,2 +203,23 @@ /************************************************************************************* | ||
// Convert cash summary movements from gRPC to JSON | ||
convertCashSummaryMovements(movement) { | ||
const { convertCurrencyFromGRPC } = require('./convertCoreFunctionality.js'); | ||
const { getDecimalFromGRPC } = require('./convertBaseDataType.js'); | ||
if(movement) { | ||
return { | ||
payment_method_uuid: movement.getPaymentMethodUuid(), | ||
payment_method_name: movement.getPaymentMethodName(), | ||
tender_type_code: movement.getTenderTypeCode(), | ||
currency: getDecimalFromGRPC( | ||
movement.getCurrency() | ||
), | ||
amount: convertCurrencyFromGRPC( | ||
movement.getAmount() | ||
), | ||
is_refund: movement.getIsRefund() | ||
} | ||
} | ||
return undefined; | ||
}, | ||
// Convert available price list from gRPC to JSON | ||
@@ -205,0 +226,0 @@ convertAvailablePriceList(availablePriceList) { |
{ | ||
"name": "@adempiere/grpc-api", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "ADempiere Web Store write in Javascript for a node service", | ||
@@ -5,0 +5,0 @@ "author": "Yamel Senih", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
3133161
91377