From 78a007890641f85e4ba6a71d75ee5a8e8e328856 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 10 Apr 2011 09:09:14 +0000 Subject: [PATCH] Fix: not update total with special line (for the moment) --- htdocs/commande/class/commande.class.php | 4 ++-- htdocs/compta/facture/class/facture.class.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 76cae62813b..c1dd64cb80c 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -1003,7 +1003,7 @@ class Commande extends CommonObject { // Mise a jour informations denormalisees au niveau de la commande meme $this->id=$commandeid; // TODO A virer - $result=$this->update_price($commandeid); + $result=$this->update_price(1); if ($result > 0) { $this->db->commit(); @@ -2023,7 +2023,7 @@ class Commande extends CommonObject if ($result > 0) { // Mise a jour info denormalisees - $this->update_price(); + $this->update_price(1); $this->db->commit(); return $result; diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 47602d392bd..c0a8c7b6cb9 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1,13 +1,13 @@ - * Copyright (C) 2004-2010 Laurent Destailleur + * Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2005 Marc Barilley / Ocebo - * Copyright (C) 2005-2010 Regis Houssin + * Copyright (C) 2005-2011 Regis Houssin * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2007 Franky Van Liedekerke - * Copyright (C) 2010 Juanjo Menent + * Copyright (C) 2010-2011 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1787,7 +1787,7 @@ class Facture extends CommonObject { // Mise a jour informations denormalisees au niveau de la facture meme $this->id=$facid; // TODO To move this we must remove parameter facid into this function declaration - $result=$this->update_price(); + $result=$this->update_price(1); if ($result > 0) { $this->db->commit(); @@ -1902,7 +1902,7 @@ class Facture extends CommonObject if ($result > 0) { // Mise a jour info denormalisees au niveau facture - $this->update_price(); + $this->update_price(1); $this->db->commit(); return $result; }