View Categories

Get quantity from price embedded barcodes

< 1 min read

Below script can be used to get quantity from price embedded barcodes.


Copy paste below code in event.addline:

if(line.printCode()!=null && line.printCode().startsWith("210") && line.getPrice()>0) 
{
     line.setMultiply(line.getSalePrice()/line.getPrice());
     line.setSalePrice(line.getPrice());
}

Save

0 Comments

Leave a Reply

Arrow-up