News arrow Forum
Home    Contacts
Forum Dolibarr
Welcome, Guest
Please Login or Register.    Lost Password?
Fiche livraison (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Fiche livraison
#9647
eldy (Admin)
Admin
Posts: 1681
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male Site web personnel eldy10 ldestailleur@hotmail.com Location: Montigny-le-Bretonneux (St-Quentin en Yvelines) Birthdate: 1972-10-10
Re:Fiche livraison 2008/08/05 10:42 Karma: 40  
Ok, cette fois je comprends mieux.
L'evol est complexe car l'info n'est pas stocké, donc on corrigera après la 2.4.
 
Logged Logged  
  The administrator has disabled public write access.
#9649
sladame (User)
Expert Boarder
Posts: 117
graphgraph
User Offline Click here to see the profile of this user
Gender: Male mon site (joomla) Location: lyon Birthdate: 1984-05-13
Re:Fiche livraison 2008/08/05 10:57 Karma: 1  
a oui effectivement je suis aller voir ça ce matin et il manque des insert et le select ne va pas non plus .
 
Logged Logged  
 
  The administrator has disabled public write access.
#9651
sladame (User)
Expert Boarder
Posts: 117
graphgraph
User Offline Click here to see the profile of this user
Gender: Male mon site (joomla) Location: lyon Birthdate: 1984-05-13
Re:Fiche livraison 2008/08/05 16:08 Karma: 1  
bon j'ai fais ça est ça marche ...
Code:
--- dolibarr/htdocs/livraison/livraison.class.php 2008-07-18 05:00:16.000000000 +0200 +++ new_dolibarr/htdocs/livraison/livraison.class.php 2008-08-05 15:59:02.000000000 +0200 @@ -133,7 +133,15 @@ $error++; } } - + if (! $conf->livraison->enabled) + { + $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'co_liv (fk_livraison, fk_commande) VALUES ('.$this->id.','.$this->origin_id.')'; + if (!$this->db->query($sql)) + { + $error++; + } + + } if (! $conf->expedition->enabled) { $sql = "UPDATE ".MAIN_DB_PREFIX."commande";
 
Logged Logged  
 
  The administrator has disabled public write access.
#9652
eldy (Admin)
Admin
Posts: 1681
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male Site web personnel eldy10 ldestailleur@hotmail.com Location: Montigny-le-Bretonneux (St-Quentin en Yvelines) Birthdate: 1972-10-10
Re:Fiche livraison 2008/08/05 16:15 Karma: 40  
Le test n'est-il pas a l'envers ?

if (! $conf->livraison->enabled)
=>
if ($conf->livraison->enabled)
 
Logged Logged  
  The administrator has disabled public write access.
#9654
sladame (User)
Expert Boarder
Posts: 117
graphgraph
User Offline Click here to see the profile of this user
Gender: Male mon site (joomla) Location: lyon Birthdate: 1984-05-13
Re:Fiche livraison 2008/08/05 16:25 Karma: 1  
et bien logiquement oui mais ça marche avec
if (! $conf->livraison->enabled)
et ça marche pas avec
if ($conf->livraison->enabled)

je ne comprend pas trop ...
 
Logged Logged  
 
Last Edit: 2008/08/18 10:01 By sladame.
 
  The administrator has disabled public write access.
#9786
sladame (User)
Expert Boarder
Posts: 117
graphgraph
User Offline Click here to see the profile of this user
Gender: Male mon site (joomla) Location: lyon Birthdate: 1984-05-13
Re:Fiche livraison 2008/08/20 10:11 Karma: 1  
une petite relance pour un petit bug
 
Logged Logged  
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop