diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index dad5364d523..a89d7e1883d 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -27,7 +27,7 @@ * \file htdocs/comm/propal.php * \ingroup propale * \brief Page of commercial proposals card and list - * \version $Id: propal.php,v 1.610 2011/07/10 20:03:41 eldy Exp $ + * \version $Id: propal.php,v 1.611 2011/07/17 19:01:28 eldy Exp $ */ require("../main.inc.php"); @@ -1114,11 +1114,6 @@ if ($id > 0 || ! empty($ref)) print $formconfirm; - /* - * Fiche propal - * - */ - print ''; $linkback="".$langs->trans("BackToList").""; @@ -1233,7 +1228,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; - // Date fin propal + // Date end proposal print ''; print '
'.$langs->trans('NotePublic').' :
'. nl2br($object->note_public).'
'; print ''; print ''; + // Payment term + print ''; + print ''; + // Delivery date $langs->load('deliveries'); print ''; } - // Availability + // Delivery delay print '
'; @@ -1266,6 +1261,25 @@ if ($id > 0 || ! empty($ref)) print '
'; + print ''; + if ($action != 'editconditions' && $object->brouillon) print ''; + print '
'; + print $langs->trans('PaymentConditionsShort'); + print 'id.'">'.img_edit($langs->trans('SetConditions'),1).'
'; + print '
'; + if ($action == 'editconditions') + { + $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'cond_reglement_id'); + } + else + { + $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'none'); + } + print '
'; @@ -1314,7 +1328,7 @@ if ($id > 0 || ! empty($ref)) print '
'; print ''; @@ -1356,25 +1370,6 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; - // Payment term - print ''; - print ''; - // Payment mode print ''; print '
'; print $langs->trans('AvailabilityPeriod'); @@ -1325,11 +1339,11 @@ if ($id > 0 || ! empty($ref)) print ''; if ($action == 'editavailability') { - $html->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'availability_id'); + $html->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'availability_id',1); } else { - $html->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'none'); + $html->form_availability($_SERVER['PHP_SELF'].'?id='.$object->id,$object->availability_id,'none',1); } print '
'; - print ''; - if ($action != 'editconditions' && $object->brouillon) print ''; - print '
'; - print $langs->trans('PaymentConditionsShort'); - print 'id.'">'.img_edit($langs->trans('SetConditions'),1).'
'; - print '
'; - if ($action == 'editconditions') - { - $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'cond_reglement_id'); - } - else - { - $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->cond_reglement_id,'none'); - } - print '
'; @@ -1975,6 +1970,6 @@ else } $db->close(); -llxFooter('$Date: 2011/07/10 20:03:41 $ - $Revision: 1.610 $'); +llxFooter('$Date: 2011/07/17 19:01:28 $ - $Revision: 1.611 $'); ?> diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 5c7dbb3a456..0b45de0569c 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -31,7 +31,7 @@ * \file htdocs/core/class/html.form.class.php * \ingroup core * \brief File of class with all html predefined components - * \version $Id: html.form.class.php,v 1.189 2011/07/13 14:03:15 eldy Exp $ + * \version $Id: html.form.class.php,v 1.190 2011/07/17 19:01:26 eldy Exp $ */ @@ -1497,8 +1497,8 @@ class Form * Retourne la liste des types de delais de livraison possibles * @param selected Id du type de delais pre-selectionne * @param htmlname Nom de la zone select - * @param filtertype Pour filtre - * @param addempty Ajoute entree vide + * @param filtertype To add a filter + * @param addempty Add empty entry */ function select_availability($selected='',$htmlname='availid',$filtertype='',$addempty=0) { diff --git a/htdocs/langs/fr_FR/deliveries.lang b/htdocs/langs/fr_FR/deliveries.lang index 562ae3d2602..d903a380c95 100644 --- a/htdocs/langs/fr_FR/deliveries.lang +++ b/htdocs/langs/fr_FR/deliveries.lang @@ -5,7 +5,7 @@ Deliveries=Livraisons DeliveryCard=Fiche réception DeliveryOrder=Bon de réception DeliveryOrders=Bons de réception -DeliveryDate=Date de réception +DeliveryDate=Date de livraison DeliveryDateShort=Date réc. CreateDeliveryOrder=Générer bon de réception QtyDelivered=Qté livrée