From 4a7d66527af1a48bc00d5d704efc57d9098e65f0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 May 2004 19:59:22 +0000 Subject: [PATCH] =?UTF-8?q?New:=20Le=20lien=20entre=20le=20contrat=20et=20?= =?UTF-8?q?la=20ligne=20de=20facture=20qui=20l'a=20g=E9n=E9r=E9=20est=20fa?= =?UTF-8?q?it.=20New:=20Lors=20de=20la=20mise=20en=20service,=20les=20date?= =?UTF-8?q?=20de=20d=E9but=20et=20fin=20propos=E9e=20sont=20mises=20par=20?= =?UTF-8?q?d=E9faut=20aux=20valeurs=20saisies=20dans=20la=20ligne=20de=20f?= =?UTF-8?q?acture.=20Si=20pas=20de=20date=20ont=20=E9t=E9=20saisies,=20les?= =?UTF-8?q?=20valeurs=20par=20d=E9faut=20sont=20positionn=E9es=20=E0=20la?= =?UTF-8?q?=20date=20courante=20pour=20le=20d=E9but=20et=20la=20date=20de?= =?UTF-8?q?=20fin=3Ddate=20courante+dur=E9e=20du=20service.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture/facture-rec.class.php | 3 ++- htdocs/facture.class.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture/facture-rec.class.php b/htdocs/compta/facture/facture-rec.class.php index 40cb7e0f654..6dbd95d3476 100644 --- a/htdocs/compta/facture/facture-rec.class.php +++ b/htdocs/compta/facture/facture-rec.class.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * 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 @@ -189,7 +190,7 @@ class FactureRec while ($i < $num) { $objp = $this->db->fetch_object($i); - $faclig = new FactureLigne(); + $faclig = new FactureLigne($this->db); $faclig->produit_id = $objp->fk_product; $faclig->desc = stripslashes($objp->description); $faclig->qty = $objp->qty; diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 7b6153f6ffb..ed510e802a6 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -317,7 +317,7 @@ class Facture while ($i < $num) { $objp = $this->db->fetch_object($i); - $faclig = new FactureLigne(); + $faclig = new FactureLigne($this->db); $faclig->desc = stripslashes($objp->description); $faclig->qty = $objp->qty; $faclig->price = $objp->price;