Openbravo Issue Tracking System - POS2
View Issue Details
0049041POS2Restaurantspublic2022-04-12 15:302022-04-18 23:54
timothee_catteeuw 
mtaal 
normalcriticalalways
closedfixed 
5
 
 
No
0049041: JIRA 1919 - DIGIBOARD - It is not necessary to send call digiboard after switching a product from stocked product to non-stocked
It is not necessary to send call digiboard after switching a product from stocked product to non-stocked product because it send a stock equals to 0 like below :

127.0.0.1 - - [12/Apr/2022:15:19:14 +0200] "GET /api/updateStocks?code=12671&quantite=00000 HTTP/1.1" 200 - "-" "Jetty/9.4.26.v20200117"

And at the end the product is removed from digiboard

However it is necessary to call digiborad when a product switch from non-stocked to stocked.
Correctly configure your stockserver by adding this configuration in openbravohw.properties file :
stockserver.digiboard.url = http://127.0.0.1/api/updateStocks [^]

restart the Hardware manager.

go to Webpos and login
open stock server screen
switch a product to stocked product and change its quantity
2 calls are done, example :
127.0.0.1 - - [12/Apr/2022:15:28:23 +0200] "GET /api/updateStocks?code=12671&quantite=00000 HTTP/1.1" 200 - "-" "Jetty/9.4.26.v20200117"
127.0.0.1 - - [12/Apr/2022:15:28:23 +0200] "GET /api/updateStocks?code=12671&quantite=00002 HTTP/1.1" 200 - "-" "Jetty/9.4.26.v20200117"

--> OK

switch the same product from stocked to non-stocked product

1 call is done like below
127.0.0.1 - - [12/Apr/2022:15:29:50 +0200] "GET /api/updateStocks?code=12671&quantite=00000 HTTP/1.1" 200 - "-" "Jetty/9.4.26.v20200117"

--> KO no call needed here
No tags attached.
Issue History
2022-04-12 15:30timothee_catteeuwNew Issue
2022-04-12 15:30timothee_catteeuwAssigned To => Retail
2022-04-12 15:30timothee_catteeuwTriggers an Emergency Pack => No
2022-04-12 15:31timothee_catteeuwSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23913#r23913
2022-04-18 23:52mtaalAssigned ToRetail => mtaal
2022-04-18 23:54mtaalStatusnew => scheduled
2022-04-18 23:54mtaalNote Added: 0136555
2022-04-18 23:54mtaalStatusscheduled => resolved
2022-04-18 23:54mtaalResolutionopen => fixed
2022-04-18 23:54mtaalStatusresolved => closed

Notes
(0136555)
mtaal   
2022-04-18 23:54   
https://gitlab.com/obcustomers/AGAP/org.openbravo.stockserver/-/merge_requests/19 [^]