Looking for help?
< All Topics
Print

How to change scale barcode weight decimal

default , scale weight accept decimal number = 2 ( for example : 0.15 ) . If you want change to make it accept other number ( ex: 3 or 0.154 ) . you can add this snippet code to do it



add_filter('op_get_login_cashdrawer_data',function ($session_response_data){
    $session_response_data['setting']['openpos_barcode_weight_decimal'] =  3; // change to number you want , this is accept 0.154 number
    
    return $session_response_data;
},12,1); 

Table of Contents