* SPDX-License-Identifier: AGPL-3.0-only ************************************/ global $adb,$table_prefix; $crmid = $_REQUEST["pid"]; $sql="DELETE FROM ".$table_prefix."_pdfmaker_breakline WHERE crmid=?"; $adb->pquery($sql,array($crmid)); $breaklines = rtrim($_REQUEST["breaklines"],"|"); if($breaklines!="") { $show_header=0; $show_subtotal=0; if($_REQUEST["show_header"]=="true") $show_header=1; if($_REQUEST["show_subtotal"]=="true") $show_subtotal=1; $products = explode("|",$breaklines); for($i=0;$ipquery($sql, array($crmid, $productid, $sequence, $show_header, $show_subtotal)); } } exit;