From 7d336bd5d4ada8f0d89b0f6bcdd5f4b878c92914 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?=
 <marcosgdf@gmail.com>
Date: Wed, 2 Mar 2016 11:43:55 +0100
Subject: [PATCH] FIX #4414 Supplier invoices use FAC_FORCE_DATE_VALIDATION
 client invoices property

Close #4414
---
 htdocs/fourn/facture/card.php | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index 1919faadee4..c2b2c587736 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -1577,12 +1577,6 @@ else
             if ($objectref == 'PROV')
             {
                 $savdate=$object->date;
-                if (! empty($conf->global->FAC_FORCE_DATE_VALIDATION))
-                {
-                    $object->date=dol_now();
-                    //TODO: Possibly will have to control payment information into suppliers
-                    //$object->date_lim_reglement=$object->calculate_date_lim_reglement();
-                }
                 $numref = $object->getNextNumRef($societe);
             }
             else
-- 
GitLab