'; if(data.quick_view){ addQBTableAtPosition(data.quick_view.el,table); } else{ addQBTableAtPosition(data.el,table); } } } function percent_grid(product,data, table_Id){ if(product.volume_discount.length > 0){ var table_data = ""; var currency_symbol = ""; var percent_symbol = ""; product.volume_discount.sort(compareAndSortVD); product.volume_discount.forEach( function(vd,i){ var next_qty = waioTranslations.range_so_on; if(product.volume_discount[i+1]){ next_qty = Number(product.volume_discount[i+1].qty) - 1; } if(product.qb_calculation_type === "percent_discount"){ percent_symbol = waioTranslations.percent_symbol; } else{ currency_symbol = waioTranslations.currency_symbol; } table_data += '