cancel
Showing results for 
Search instead for 
Did you mean: 

Can SAP CCO read the bar code which might contain the item code, weight, unit price and total price?

We have a potential customer where their line of business is supermarkets, petrol or gas stations and wholesale.

With regards to their supermarket business, the barcode for meat will come from the weighting scale.

Can SAP Customer Checkout correctly read the bar code generated by the weighting scale which might contain the item code, weight, unit price and total price?

Hello everyone,

I would apprecciate if you could please send me the demo plugin?

<private information removed by a SAP Community moderator>

Best regards

Piotr

View Entire Topic
ramzychehab
Explorer
0 Kudos

Same question here. I am trying to read the price from the barcode but I can't find any resources on how to do that. 
As for quantity, this worked for me:

   @PluginAt(method = "addSalesItemToReceipt", pluginClass = ReceiptPosService.class, where = POSITION.BEFORE)
    public void beforeAddSalesItemToReceipt(Object caller, Object[] args, Object stack) {
    if (runok) {
   
        if (forcedQuantity.get() != null) {
            //Check the ThreadLocal which was set earlier. If a price was set, then the forth parameter is changed accordingly, since this holds the price for the sales item
            args[4] = forcedQuantity.get();
        }
    }
    }

Where 
private ThreadLocal<BigDecimal> forcedQuantity = new ThreadLocal<>();
forcedQuantity.set(new BigDecimal(quantity));