Fix: deliveray date must not be mandatory
This commit is contained in:
parent
55b5fea651
commit
495efac896
@ -24,7 +24,7 @@
|
|||||||
* \file htdocs/comm/addpropal.php
|
* \file htdocs/comm/addpropal.php
|
||||||
* \ingroup propal
|
* \ingroup propal
|
||||||
* \brief Page to add a new commercial proposal
|
* \brief Page to add a new commercial proposal
|
||||||
* \version $Id$
|
* \version $Id: addpropal.php,v 1.130 2011/07/17 19:08:33 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
@ -121,12 +121,12 @@ if ($_GET["action"] == 'create')
|
|||||||
// Ref
|
// Ref
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans("Ref").'</td><td colspan="2"><input name="ref" value="'.$numpr.'"></td></tr>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("Ref").'</td><td colspan="2"><input name="ref" value="'.$numpr.'"></td></tr>';
|
||||||
|
|
||||||
// Reference client
|
// Ref customer
|
||||||
print '<tr><td>'.$langs->trans('RefCustomer').'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans('RefCustomer').'</td><td colspan="2">';
|
||||||
print '<input type="text" name="ref_client" value=""></td>';
|
print '<input type="text" name="ref_client" value=""></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Societe
|
// Third party
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans('Company').'</td><td colspan="2">'.$soc->getNomUrl(1);
|
print '<tr><td class="fieldrequired">'.$langs->trans('Company').'</td><td colspan="2">'.$soc->getNomUrl(1);
|
||||||
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -153,10 +153,11 @@ if ($_GET["action"] == 'create')
|
|||||||
$html->select_date('','','','','',"addprop");
|
$html->select_date('','','','','',"addprop");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Validaty duration
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans("ValidityDuration").'</td><td colspan="2"><input name="duree_validite" size="5" value="'.$conf->global->PROPALE_VALIDITY_DURATION.'"> '.$langs->trans("days").'</td></tr>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("ValidityDuration").'</td><td colspan="2"><input name="duree_validite" size="5" value="'.$conf->global->PROPALE_VALIDITY_DURATION.'"> '.$langs->trans("days").'</td></tr>';
|
||||||
|
|
||||||
// Terms of payment
|
// Terms of payment
|
||||||
print '<tr><td nowrap>'.$langs->trans('PaymentConditionsShort').'</td><td colspan="2">';
|
print '<tr><td nowrap="nowrap" class="fieldrequired">'.$langs->trans('PaymentConditionsShort').'</td><td colspan="2">';
|
||||||
$html->select_conditions_paiements($soc->cond_reglement,'cond_reglement_id');
|
$html->select_conditions_paiements($soc->cond_reglement,'cond_reglement_id');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
@ -170,9 +171,9 @@ if ($_GET["action"] == 'create')
|
|||||||
$html->select_demand_reason($propal->demand_reason,'demand_reason_id',"SRC_PROP",1);
|
$html->select_demand_reason($propal->demand_reason,'demand_reason_id',"SRC_PROP",1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// delai de livraison
|
// Delivery delay
|
||||||
print '<tr><td>'.$langs->trans('AvailabilityPeriod').'</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans('AvailabilityPeriod').'</td><td colspan="2">';
|
||||||
$html->select_availability($propal->availability,'availability_id');
|
$html->select_availability($propal->availability,'availability_id','',1);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Delivery date (or manufacturing)
|
// Delivery date (or manufacturing)
|
||||||
@ -338,5 +339,5 @@ if ($_GET["action"] == 'create')
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooter('$Date: 2011/07/17 19:08:33 $ - $Revision: 1.130 $');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user