AODB not get the lastInsertID anymore
Hello , on the file include/util/inventoryutils.php:
$query = 'INSERT INTO vtiger_inventoryproductrel(id, productid, sequence_no, quantity, listprice, comment, description, purchase_cost, margin) VALUES(?,?,?,?,?,?,?,?,?)'; qparams = array(focus->id,prod_id,prod_seq,qty,listprice,comment,description, $purchaseCost, $margin); adb->pquery(query,$qparams);
$lineitem_id = $adb->getLastInsertID();
$lineitem_id is alway egal to 0, it is used by the rest of the code to update TAX.