diff --git a/htdocs/comm/askpricesupplier.php b/htdocs/comm/askpricesupplier.php
index de6cf4fefa6..f286dc03039 100644
--- a/htdocs/comm/askpricesupplier.php
+++ b/htdocs/comm/askpricesupplier.php
@@ -211,11 +211,13 @@ if (empty($reshook))
{
$datep = dol_mktime(12, 0, 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
+ /* PHFAVRE
if (empty($datep)) {
$error ++;
setEventMessage($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Date")), 'errors');
}
-
+ */
+
if (! $error) {
$result = $object->set_date($user, $datep);
if ($result < 0)
@@ -250,12 +252,14 @@ if (empty($reshook))
$datep = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear'));
$date_delivery = dol_mktime(12, 0, 0, GETPOST('liv_month'), GETPOST('liv_day'), GETPOST('liv_year'));
+ /* PHFAVRE
if (empty($datep)) {
setEventMessage($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Date")), 'errors');
$action = 'create';
$error ++;
}
-
+ */
+
if ($socid < 1) {
setEventMessage($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Customer")), 'errors');
$action = 'create';
@@ -1305,11 +1309,15 @@ if ($action == 'create')
print '';
}
*/
+
// Date
- print '
| ' . $langs->trans('Date') . ' | ';
+
+ /* PHFAVRE retrait en temporaire
+ print ' |
| ' . $langs->trans('AskPriceSupplierDate') . ' | ';
$form->select_date('', '', '', '', '', "addask", 1, 1);
print ' |
';
-
+ */
+
// Validaty duration
/* PHFAVRE retrait en temporaire
print '| ' . $langs->trans("ValidityDuration") . ' | ' . $langs->trans("days") . ' |
';
@@ -1354,7 +1362,6 @@ if ($action == 'create')
}
// Delivery date (or manufacturing)
- /* PHFAVRE retrait en temporaire
print '| ' . $langs->trans("DeliveryDate") . ' | ';
print '';
if ($conf->global->DATE_LIVRAISON_WEEK_DELAY != "") {
@@ -1367,7 +1374,7 @@ if ($action == 'create')
$form->select_date(-1, 'liv_', '', '', '', "addask", 1, 1);
}
print ' |
';
- */
+
// Model
print '';
@@ -1378,7 +1385,6 @@ if ($action == 'create')
print "
";
// Project
- /* PHFAVRE retrait en temporaire
if (! empty($conf->projet->enabled) && $socid > 0) {
$formproject = new FormProjets($db);
@@ -1398,7 +1404,7 @@ if ($action == 'create')
print '';
print '';
}
- */
+
// Other attributes
$parameters = array('colspan' => ' colspan="3"');
@@ -1708,10 +1714,11 @@ if ($action == 'create')
*/
// Date of proposal
+ /* PHFAVRE retrait en temporaire
print '';
print '';
print '| ';
- print $langs->trans('Date');
+ print $langs->trans('AskPriceSupplierDate');
print ' | ';
if ($action != 'editdate' && ! empty($object->brouillon))
print 'id . '">' . img_edit($langs->trans('SetDate'), 1) . ' | ';
@@ -1732,7 +1739,8 @@ if ($action == 'create')
}
}
print '';
-
+ */
+
// Date end proposal
/* PHFAVRE retrait en temporaire
print ' ';
@@ -1782,7 +1790,6 @@ if ($action == 'create')
print ' ';
// Delivery date
- /* PHFAVRE retrait en temporaire
$langs->load('deliveries');
print '';
print '| ';
@@ -1804,7 +1811,7 @@ if ($action == 'create')
}
print ' | ';
print ' ';
- */
+
// Delivery delay
/* PHFAVRE retrait en temporaire
@@ -2079,6 +2086,7 @@ if ($action == 'create')
* Form to close proposal (signed or not)
*/
$form_close = '
|
|