cancel
Showing results for 
Search instead for 
Did you mean: 

PLUGIN CODE WORKING WITH RETAIL MODE BUT NOT WORKING WITH QUICK SERVICE MODE

former_member673826
Discoverer
0 Kudos

Dear All,

We are using SAP Customer Checkout 2.0 FP10 PL01 in Quick Service Mode with SAP Business One HANA 10.0 FP2008.

We have a weighing machine which will generate dynamic barcodes based on the weight. We are using a plugin for scanning weighing machine generated barcodes at the CCO. The plugin was working in Retail mode but it is not working on Quick service mode. We don't want to go back to Retail Mode which is going to deprecate soon. I have attached the java script code using to manipulate weighing machine barcode. Kindly let us know what are we missing in this to make it work on Quick Service mode.

var originAddNewSalesItem = addNewSalesItem;


addNewSalesItem = function (rowid, materialId, amount, unitOfMeasure, materialUsed, additionalParams) {


if (materialId) {


 var result = materialId.toString();
        var resUoM = unitOfMeasure;
        
        if (result.length > 1) {
			
			if (result.substr(0,1) == "1" || result.substr(0,1) == "2")
        		{
					
					materialId = result.substr(1, 6);
					if (result.substr(0,1) == 1)
		        	{
			        	materialId = result.substr(1, 6);
		        		amount = ((result.substr(7, 5)) / 1000);
		        		originAddNewSalesItem(rowid, materialId, amount, unitOfMeasure, materialUsed, additionalParams);
		        	}
		        	else if (result.substr(0,1) == 2)
		        	{
		        		materialId = result.substr(1, 6);
		        		amount = ((result.substr(7, 5)) / 1);
		        		originAddNewSalesItem(rowid, materialId, amount, unitOfMeasure, materialUsed, additionalParams);
		        	}	      
				
				}
				else
				{
					originAddNewSalesItem(rowid, materialId, amount, unitOfMeasure, materialUsed, additionalParams);
				}
		
		}
	}
};

Kindly help us to resolve the issue.

Thanks.

Accepted Solutions (0)

Answers (0)