Commit 87ed38e6 authored by Ayolo's avatar Ayolo

cacaboum

parent 10d885c0
...@@ -16,7 +16,7 @@ echo "==== ".date("d/m/Y")." ====\n"; ...@@ -16,7 +16,7 @@ echo "==== ".date("d/m/Y")." ====\n";
require_once($topdir . "comptoir/include/venteproduit.inc.php"); require_once($topdir . "comptoir/include/venteproduit.inc.php");
$req = new requete($site->db,"SELECT * FROM `cpt_verrou` WHERE DATEDIFF(NOW(),date_res) >= 1"); $req = new requete($site->db,"SELECT * FROM `cpt_verrou` WHERE TIMEDIFF(NOW(),date_res) >= 1");
$vp = new venteproduit($site->db,$site->dbrw); $vp = new venteproduit($site->db,$site->dbrw);
$client = new utilisateur($site->db); $client = new utilisateur($site->db);
...@@ -25,7 +25,7 @@ while ( $row = $req->get_row() ) ...@@ -25,7 +25,7 @@ while ( $row = $req->get_row() )
{ {
echo "debloquer('".$row['id_utilisateur']."','".$row['id_produit']."','".$row['id_comptoir']."','".$row['quantite']."');\n"; echo "debloquer('".$row['id_utilisateur']."','".$row['id_produit']."','".$row['id_comptoir']."','".$row['quantite']."');\n";
$client->id = $row['id_utilisateur']; $client->load_by_id($row['id_utilisateur']);
$vp->load_by_id ( $row['id_produit'], $row['id_comptoir'], true ); $vp->load_by_id ( $row['id_produit'], $row['id_comptoir'], true );
$vp->debloquer ( $client, $row['quantite'] ); $vp->debloquer ( $client, $row['quantite'] );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment