Limit items to department when scanned

Hello,

On my SambaPOS configuration, I have 3 active departments :

  • Restaurant
  • Bar
  • Tabac.

The Bar/Restaurant are on the same menu, and the tabac is separate, as the sale of cigarettes must be separate for accounting reasons. However if i scan a packet of cigarettes on Bar or Restaurant, it appears on the ticket. Is there any way to make this so it will only recognize the barcode if on tabac mode? As i dont want my staff selling tabac on Bar or Restaurant mode…

Thanks !

Maybe use {:CURRENTMENU} on order added action.

Flow something like;
Scan tabaco, order added rule with constraints of
{:CURRENTMENU} not matches Tabaco
Menu Item Group Code matches Tabaco

Actions to cancel last order and an ask question prompt saying please use tabaco department for tabaco?

Remember that barcodes in product are not related to menu. It will allow item to be added even if its not on menu. What you need is a way to restrict that item completely based on department. I am not sure how to do this but I will do some testing and get back to you.

EDIT: So we can automate a system to automatically cancel the order if its tagged with wrong department, but I think that is clunky approach perhaps we could get some help from @emre here.

Perhaps a way to map product to department?

The Cancel Orders action with “Only Last Order” parameter set implemented to cancel orders in “Order Added” event. So we can setup a constraint to check if added order meets the criteria and cancel that.

Thats the approach I just did and it works fine just seems kind of silly to need an automation like that.

BTW @ashmiller here is what I did:


Yes it sounds silly but great solution as it will capture all order additions through menu, add order action or barcode.

Sorry for not getting back, but this done the trick ! Thank you, as helpful as always.