@adempiere/grpc-pos-client v1.4.3
ADempiere POS Client for gRPC
ADempiere POS Client write in Javascript for gRPC service, use it for connect with ADempiere-gRPC-Server.
Requirements
Using it
# installing via NPM
npm i @adempiere/grpc-pos-client --save# installing via Yarn
yarn add @adempiere/grpc-pos-clientA Example
Declare POS
const POS = require('@adempiere/grpc-pos-client');
let data = new POS(GRPC_HOST, 'Session UUID');Declare POS with specific language
const POS = require('@adempiere/grpc-pos-client');
let data = new POS(GRPC_HOST, 'Session UUID', 'es_VE');Request a simple Object based on Table and UUID
// Request a single Object
data.getProductPrice(searchValue: 'Patio Fun', priceListUuid: '8cc49692-fb40-11e8-a479-7a0060f0aa01')
.then(productPrice => {
console.log("Product Price");
// Value
console.log(productPrice);
})
.catch(err => console.log("Error: " + err.message));Output
Product PriceRecreate proto stub class (only for contribute to project)
For recreate stub class you must have follow:
Note: You can also install protoc and protoc-gen-grpc-web by going to the repository directory and run the command:
sh install-protoc.shWhen installation is complete, check the version with
protoc --versionAfter installed it just go to source code folder and run it:
And run it for Point Of Sales
protoc proto/point_of_sales.proto \
--js_out=import_style=commonjs:src/grpc \
--grpc-web_out=import_style=commonjs,mode=grpcwebtext:src/grpcOr run:
sh generate-stub.shThe result is generated on: src/grpc folder
pont_of_sales_pb.jspont_of_sales_grpc_web_pb.js
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago