Enable supplier price log table

This commit is contained in:
Florian HENRY 2014-08-12 18:16:59 +02:00
parent db7478098a
commit bab7533578
2 changed files with 4 additions and 3 deletions

View File

@ -57,6 +57,7 @@ For users:
- Fix: [ bug #1537 ] Difference between societe.nom and adherent.societe. - Fix: [ bug #1537 ] Difference between societe.nom and adherent.societe.
- New: [ task #1204 ] add a External reference to contract - New: [ task #1204 ] add a External reference to contract
- New: [ task #1204 ] add Numering contrat module free (like leopard in product module) - New: [ task #1204 ] add Numering contrat module free (like leopard in product module)
- New: Enable supplier price log table
For translators: For translators:
- Update language files. - Update language files.

View File

@ -263,9 +263,9 @@ class ProductFournisseur extends Product
$error++; $error++;
} }
/*if (! $error) if (! $error && !empty($cong->global->PRODUCT_PRICE_SUPPLIER_NO_LOG))
{ {
// Ajoute modif dans table log // Add record into log table
$sql = "INSERT INTO ".MAIN_DB_PREFIX."product_fournisseur_price_log("; $sql = "INSERT INTO ".MAIN_DB_PREFIX."product_fournisseur_price_log(";
$sql.= "datec, fk_product_fournisseur,fk_user,price,quantity)"; $sql.= "datec, fk_product_fournisseur,fk_user,price,quantity)";
$sql.= "values('".$this->db->idate($now)."',"; $sql.= "values('".$this->db->idate($now)."',";
@ -281,7 +281,7 @@ class ProductFournisseur extends Product
$error++; $error++;
} }
} }
*/
if (! $error) if (! $error)
{ {