Update fournisseur.product.class.php

This commit is contained in:
Laurent Destailleur 2019-07-18 17:15:50 +02:00 committed by GitHub
parent 5daf0316f9
commit f53f314211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,7 +439,7 @@ class ProductFournisseur extends Product
$resql = $this->db->query($sql);
if ($resql) {
$this->product_fourn_price_id = $this->db->last_insert_id(MAIN_DB_PREFIX . "product_fournisseur_price");
$idinserted = $this->db->last_insert_id(MAIN_DB_PREFIX . "product_fournisseur_price");
}
else {
$error++;
@ -462,6 +462,7 @@ class ProductFournisseur extends Product
if (empty($error)) {
$this->db->commit();
$this->product_fourn_price_id = $idinserted;
return $this->product_fourn_price_id;
} else {
$this->db->rollback();