dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] Commandes


From: Antoine
Subject: [Dolibarr-dev] Commandes
Date: Wed, 21 Jan 2004 20:12:35 +0100
User-agent: KMail/1.5.4

Bonne année a tous,

2 petits patchs sur lesquels je suis tombé tout a l'heure par hasard ...
dans le fichier commande.class.php ci dessous il y avais un '  en trop
et une chtite optimisation (à mon sens) dans fiche.php.

++

cvs server: Diffing .
Index: commande.class.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/commande/commande.class.php,v
retrieving revision 1.12
diff -u -w -r1.12 commande.class.php
--- commande.class.php  8 Jan 2004 11:43:33 -0000       1.12
+++ commande.class.php  21 Jan 2004 19:07:02 -0000
@@ -288,7 +288,7 @@
            }

          $sql = "INSERT INTO llx_commandedet (fk_commande, fk_product, qty, 
price, tva_tx, description, remise_percent, subprice) VALUES ";
-         $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','". 
$price."','".$p_tva_tx."',''".addslashes($p_desc)."','$remise_percent', 
'$subprice') ; ";
+         $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','". 
$price."','".$p_tva_tx."','".addslashes($p_desc)."','$remise_percent', 
'$subprice') ; ";

          if ($this->db->query($sql) )
            {
Index: fiche.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/commande/fiche.php,v
retrieving revision 1.9
diff -u -w -r1.9 fiche.php
--- fiche.php   28 Nov 2003 13:41:52 -0000      1.9
+++ fiche.php   21 Jan 2004 19:07:03 -0000
@@ -457,7 +457,7 @@
              /* Propale */
              $propal = new Propal($db);
              $propal->fetch($commande->propale_id);
-             print ' -> <a href="'.DOL_URL_ROOT.'/comm/propal.php?propalid='.
$propal->id.'">'.$propal->ref.'</a>';
+             print ' -> '.$propal->ref_url;
            }
          print "</td></tr>";





-- 
Antoine Cuvellard.

http://www.wifi-connexion.com

WiFi - Connexion
6 Allée de Villeflix 
93160 Noisy-le-grand
Tel : +33(0)143035335





reply via email to

[Prev in Thread] Current Thread [Next in Thread]