diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php index 2e0d346e62f..aaed882aab4 100644 --- a/htdocs/compta/facture/class/facture-rec.class.php +++ b/htdocs/compta/facture/class/facture-rec.class.php @@ -323,6 +323,8 @@ class FactureRec extends CommonInvoice { global $conf; + $error = 0; + $sql = "UPDATE ".MAIN_DB_PREFIX."facture_rec SET"; $sql.= " fk_soc = ".$this->fk_soc; // TODO Add missing fields