diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 8e6fecaca13..66999bdb779 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -232,7 +232,7 @@ if ($_GET["action"] == 'create') if ($_GET["socid"]) { print ''.$langs->trans("ActionOnContact").''; - print $html->select_contacts($_GET["socid"],'','contactid',1,1); + $html->select_contacts($_GET["socid"],'','contactid',1,1); print ''; } @@ -324,7 +324,7 @@ if ($_GET["action"] == 'create') if ($_GET["socid"]) { print ''.$langs->trans("ActionOnContact").''; - print $html->select_contacts($_GET["socid"],'','contactid',1,1); + $html->select_contacts($_GET["socid"],'','contactid',1,1); print ''; } diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index b1e8cd3a653..2989df6d446 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -538,7 +538,7 @@ if ($_GET['propalid'] > 0) print ''.$langs->trans('Ref').''.$propal->ref_url.''; - $rowspan=6; + $rowspan=9; // Société print ''.$langs->trans('Company').''; @@ -557,14 +557,22 @@ if ($_GET['propalid'] > 0) print ''.$langs->trans('Date').''; print dolibarr_print_date($propal->date,'%a %d %B %Y'); print ''; + + if ($conf->projet->enabled) $rowspan++; + // Notes + print ''.$langs->trans('Note').' :
'. nl2br($propal->note).''; + print ''; + + // Date fin propal + print ''; print ''; print ''; if ($_GET['action'] != 'editecheance' && $propal->brouillon) print ''; print '
'; print $langs->trans('DateEndPropal'); print 'id.'">'.img_edit($langs->trans('SetConditions'),1).'
'; - print ''; + print ''; if ($propal->brouillon && $_GET['action'] == 'editecheance') { print '
'; @@ -589,28 +597,33 @@ if ($_GET['propalid'] > 0) print ''; - // date de livraison - print ''; - print ''; - if ($_GET['action'] != 'editdate_livraison' && $propal->brouillon) print ''; - print '
'; - print $langs->trans('DateDelivery'); - print 'id.'">'.img_edit($langs->trans('SetDateLivraison'),1).'
'; - print ''; - if ($_GET['action'] == 'editdate_livraison') + // date de livraison (conditonné sur PROPAL_ADD_SHIPPING_DATE car carac à + // gérer par les commandes et non les propal + if ($conf->global->PROPAL_ADD_SHIPPING_DATE) { - print ''; - print ''; - $html->select_date($propal->date_livraison,'liv_','','','',"editdate_livraison"); - print ''; - print '
'; + print ''; + print ''; + if ($_GET['action'] != 'editdate_livraison' && $propal->brouillon) print ''; + print '
'; + print $langs->trans('DateDelivery'); + print 'id.'">'.img_edit($langs->trans('SetDateLivraison'),1).'
'; + print ''; + if ($_GET['action'] == 'editdate_livraison') + { + print '
'; + print ''; + $html->select_date($propal->date_livraison,'liv_','','','',"editdate_livraison"); + print ''; + print '
'; + } + else + { + print dolibarr_print_date($propal->date_livraison,'%a %d %B %Y'); + } + print ''; + print ''; } - else - { - print dolibarr_print_date($propal->date_livraison,'%a %d %B %Y'); - } - print ''; - + // Conditions et modes de réglement print ''; print ''; + print ''; + // Mode paiement + print ''; print ''; + print ''; - if ($conf->projet->enabled) $rowspan++; - - print ''; - // Projet if ($conf->projet->enabled) { @@ -716,6 +729,7 @@ if ($_GET['propalid'] > 0) } // Remise globale +/* print '
'; @@ -628,14 +641,17 @@ if ($_GET['propalid'] > 0) $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->cond_reglement_id,'none'); } print '
'; print ''; if ($_GET['action'] != 'editmode' && $propal->brouillon) print ''; print '
'; print $langs->trans('PaymentMode'); print 'id.'">'.img_edit($langs->trans('SetMode'),1).'
'; - print '
'; + print ''; if ($_GET['action'] == 'editmode') { $html->form_modes_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->mode_reglement_id,'mode_reglement_id'); @@ -664,11 +680,8 @@ if ($_GET['propalid'] > 0) $html->form_contacts($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$societe,$propal->contactid,'none'); } print '
'.$langs->trans('Note').' :
'. nl2br($propal->note).'
'; print ''; +*/ // Amount print ''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 01c407105c8..362bc63e0dc 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -498,7 +498,7 @@ class Form } } if ($htmlname != 'none') print ''; - // return 1; // affiche 1 à l'écran ! + return 1; } else {
'; print $langs->trans('GlobalDiscount'); @@ -737,6 +751,7 @@ if ($_GET['propalid'] > 0) print $propal->remise_percent.'%'; } print '
'.$langs->trans('AmountHT').'