Browse Source

Minor modif

Ghislain Loaec 5 years ago
parent
commit
f09bed5abc
2 changed files with 2 additions and 2 deletions
  1. 2
    2
      class/phcp.class.php
  2. BIN
      doc/cahier_de_tests.odt

+ 2
- 2
class/phcp.class.php View File

@@ -192,8 +192,8 @@ class Phcp extends CommonObject
192 192
             foreach($this->phcp_type->products as $product){
193 193
               $sql = "INSERT INTO ";
194 194
               $sql.= MAIN_DB_PREFIX."compteur (";
195
-              $sql.= "fk_phcp, fk_product, compteur, last_compteur, last_modification";
196
-              $sql.= "VALUES ('".$this->id."','".$product->id."', '0', '0', NOW())";
195
+              $sql.= "fk_phcp, fk_product, compteur, last_compteur";
196
+              $sql.= "VALUES ('".$this->id."','".$product->id."', '0', '0')";
197 197
 		          $this->db->begin();
198 198
 
199 199
 	            dol_syslog(get_class($this)."::create sql=".$sql, LOG_DEBUG);

BIN
doc/cahier_de_tests.odt View File