Fix date selection for supplier proposal not yet supported

This commit is contained in:
Laurent Destailleur 2019-09-06 12:41:34 +02:00
parent 2e8c915b88
commit 0ed7ab07fd

View File

@ -1711,7 +1711,7 @@ if ($action == 'create')
if (! empty($conf->global->SUPPLIER_PROPOSAL_WITH_PREDEFINED_PRICES_ONLY)) $senderissupplier=1;
if (! empty($object->lines))
$ret = $object->printObjectLines($action, $soc, $mysoc, $lineid, 1);
$ret = $object->printObjectLines($action, $soc, $mysoc, $lineid, $dateSelector);
// Form to add new line
if ($object->statut == SupplierProposal::STATUS_DRAFT && $user->rights->supplier_proposal->creer)
@ -1719,7 +1719,7 @@ if ($action == 'create')
if ($action != 'editline')
{
// Add products/services form
$object->formAddObjectLine(1, $soc, $mysoc);
$object->formAddObjectLine($dateSelector, $soc, $mysoc);
$parameters = array();
$reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook