| '.$langs->trans('Date').' | ';
print ''.dolibarr_print_date($fac->date,'%A %d %B %Y').' | ';
print ''.$langs->trans('DateClosing').' | ' . dolibarr_print_date($fac->date_lim_reglement,'%A %d %B %Y');
@@ -1195,7 +1199,7 @@ else
print '';
print ' | ';
if ($_GET['action'] == 'editconditions')
@@ -1211,7 +1215,7 @@ else
print '';
print ' | ';
if ($_GET['action'] == 'editmode')
diff --git a/htdocs/compta/propal.php b/htdocs/compta/propal.php
index 887ff85de05..9d8c36407d6 100644
--- a/htdocs/compta/propal.php
+++ b/htdocs/compta/propal.php
@@ -87,15 +87,17 @@ if ( $action == 'delete' )
llxHeader();
-$form = new Form($db);
+$html = new Form($db);
/*
*
* Mode fiche
*
*/
-if ($_GET["propalid"])
+if ($_GET["propalid"] > 0)
{
+ if ($msg) print "$msg ";
+
$propal = new Propal($db);
$propal->fetch($_GET["propalid"]);
$h=0;
@@ -153,7 +155,9 @@ if ($_GET["propalid"])
print '';
$rowspan=6;
- print '| '.$langs->trans('Company').' | ';
+
+ // Société
+ print ' | | '.$langs->trans('Company').' | ';
if ($societe->client == 1)
{
$url ='fiche.php?socid='.$societe->id;
@@ -163,10 +167,9 @@ if ($_GET["propalid"])
$url = DOL_URL_ROOT.'/comm/prospect/fiche.php?socid='.$societe->id;
}
print ''.$societe->nom.' | ';
- print 'Conditions de réglement | ';
- print ''.' '.' | ';
print ' ';
+ // Dates
print '| '.$langs->trans('Date').' | ';
print dolibarr_print_date($propal->date,'%a %d %B %Y');
print ' | ';
@@ -184,6 +187,40 @@ if ($_GET["propalid"])
print '';
print ' ';
+ // Conditions et modes de réglement
+ print '| ';
+ print '';
+ print ' | ';
+ if ($_GET['action'] == 'editconditions')
+ {
+ $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?facid='.$prop->id,$prop->cond_reglement_id,'cond_reglement_id');
+ }
+ else
+ {
+ $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?facid='.$prop->id,$prop->cond_reglement_id,'none');
+ }
+ print ' | ';
+ print '';
+ print '';
+ print ' | ';
+ if ($_GET['action'] == 'editmode')
+ {
+ $html->form_modes_reglement($_SERVER['PHP_SELF'].'?facid='.$prop->id,$prop->mode_reglement_id,'mode_reglement_id');
+ }
+ else
+ {
+ $html->form_modes_reglement($_SERVER['PHP_SELF'].'?facid='.$prop->id,$prop->mode_reglement_id,'none');
+ }
+ print ' | ';
+
// Destinataire
$langs->load('mails');
print '';
@@ -205,7 +242,7 @@ if ($_GET["propalid"])
print '| ';
print ' | ';
print '';
print '';
@@ -469,7 +506,7 @@ if ($_GET["propalid"])
$var=true;
- $form->show_documents('propal',$filename,$filedir,$urlsource,$genallowed,$delallowed);
+ $html->show_documents('propal',$filename,$filedir,$urlsource,$genallowed,$delallowed);
/*
| |