Merge pull request #4713 from marcosgdf/bug-4414

FIX #4414 Supplier invoices use FAC_FORCE_DATE_VALIDATION client invoices property
This commit is contained in:
Laurent Destailleur 2016-03-02 20:56:34 +01:00
commit ad3bd2c339

View File

@ -1577,12 +1577,6 @@ else
if ($objectref == 'PROV') if ($objectref == 'PROV')
{ {
$savdate=$object->date; $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); $numref = $object->getNextNumRef($societe);
} }
else else