diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index ce60d68fade..49aad3aa3be 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -267,6 +267,9 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) $soc = new Societe($db); $soc->fetch($obj->idp); + $nbrow=4; + if ($conf->projet->enabled) $nbrow++; + print '
'; print ''; print '' ."\n"; @@ -275,18 +278,18 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) print ''; + // Reference print ''; print ''; - $nbrow=4; - if ($conf->projet->enabled) $nbrow++; - - print ''; + // Reference client + print ''; print ''; print ''; - print ''; + // Client + print ''; print ''; print '
'.$langs->trans('Ref').'Provisoire'.$langs->trans('Comments').'
'.$langs->trans('Customer').''.$soc->nom_url.'
'.$langs->trans('RefCustomer').''; + print '
'.$langs->trans('RefCdeClient').''; - print '
'.$langs->trans('Customer').''.$soc->nom_url.'
'.$langs->trans('Date').''; @@ -500,13 +503,16 @@ else */ if ($_GET['action'] == 'annuler') { - $html->form_confirm('fiche.php?id='.$id, $langs->trans('Cancel'), $langs->trans('ConfirmCancel'), 'confirm_cancel'); + $html->form_confirm('fiche.php?id='.$id, $langs->trans('Cancel'), $langs->trans('ConfirmCancelOrder'), 'confirm_cancel'); print '
'; } /* * Commande */ + $nbrow=8; + if ($conf->projet->enabled) $nbrow++; + print ''; // Ref @@ -522,19 +528,10 @@ else } print ''; - // Société - print ''; - print ''; - print ''; - - $nbrow=7; - if ($conf->projet->enabled) $nbrow++; - // Ref commande client print ''; print ''; + // Société + print ''; + print ''; + print ''; + print ''; print ''; print ''; @@ -597,10 +600,6 @@ else } print ''; } - else - { - print ''; - } // Lignes de 3 colonnes diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index 56947ec29d2..54efa592fcf 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -119,54 +119,58 @@ if ($_GET["id"] > 0) /* * Commande */ + + $nbrow=8; + if ($conf->projet->enabled) $nbrow++; + print '
'.$langs->trans('Customer').''; - print ''.$soc->nom.'
'; print ''; if ($_GET['action'] != 'refcdeclient') print ''; print '
'; - print $langs->trans('RefCdeClient').''; + print $langs->trans('RefCustomer').''; print ''.img_edit($langs->trans('Edit')).'
'; @@ -568,6 +565,12 @@ else print '
'.$langs->trans('Customer').''; + print ''.$soc->nom.'
'.$langs->trans('Status').''.$commande->statuts[$commande->statut].'
  
'; + // Reference print '"; print ''; print '"; + // Ref cde client + print ''; + print ''; + print ''; + print ''; + // Client print ""; - print ''; + print ''; print ''; - $nbrow=7; - if ($conf->projet->enabled) $nbrow++; - - // Ref cde client - print ''; - print ''; - print ''; - // Statut print ''; print "\n"; @@ -178,9 +182,9 @@ if ($_GET["id"] > 0) print ''; // Projet - print ''; if ($conf->projet->enabled) { + print ''; $langs->load("projects"); print '
'.$langs->trans("Ref")."'.$commande->ref.''.$langs->trans("Source").' : ' . $commande->sources[$commande->source] ; if ($commande->source == 0) { - /* Propale */ + // Propale $propal = new Propal($db); $propal->fetch($commande->propale_id); print ' -> '.$propal->ref.''; } print "
'; + print ''; + print '
'; + print $langs->trans('RefCustomer').''; + print '
'; + print '
'; + print $commande->ref_client; + print ''.$langs->trans('Note').' :
'; + if ($commande->brouillon == 1 && $user->rights->commande->creer) + { + print ''; + print ''; + print '
'; + print '
'; + print ''; + } + else + { + print nl2br($commande->note); + } + print '
".$langs->trans("Customer")."'; - print ''.$soc->nom.''; + print ''.$soc->nom.''; + print '
'; - print ''; - print '
'; - print $langs->trans('RefCdeClient').''; - print '
'; - print '
'; - print $commande->ref_client; - print ''.$langs->trans('Note').' :
'; - if ($commande->brouillon == 1 && $user->rights->commande->creer) - { - print '
'; - print ''; - print '
'; - print '
'; - print '
'; - } - else - { - print nl2br($commande->note); - } - print '
'.$langs->trans("Status").'".$commande->statuts[$commande->statut]."
'; print '"; + print ''; } - else - { - print ''; - } - print ''; // Lignes de 3 colonnes diff --git a/htdocs/langs/en_US/orders.lang b/htdocs/langs/en_US/orders.lang index 8bd5f843f26..500f62c1852 100755 --- a/htdocs/langs/en_US/orders.lang +++ b/htdocs/langs/en_US/orders.lang @@ -50,6 +50,7 @@ ComptaCard=Accountancy card DraftOrders=Draft orders RelatedOrders=Related orders OnProcessOrders=On process orders +RefCustomer=Ref. customer RefCdeClient=Ref. customer order RefCdeClientShort=Ref. cust. order # Sources diff --git a/htdocs/langs/fr_FR/orders.lang b/htdocs/langs/fr_FR/orders.lang index 12f626c84e2..eedaf4d1d81 100755 --- a/htdocs/langs/fr_FR/orders.lang +++ b/htdocs/langs/fr_FR/orders.lang @@ -50,6 +50,7 @@ ComptaCard=Fiche compta DraftOrders=Commandes brouillons RelatedOrders=Commandes rattachées OnProcessOrders=Commandes en cours de traitement +RefCustomer=Réf. client RefCdeClient=Réf. commande client RefCdeClientShort=Réf. com. client # Sources
'; @@ -198,12 +202,8 @@ if ($_GET["id"] > 0) $html->form_project($_SERVER["PHP_SELF"]."?id=$commande->id",$commande->fk_soc,$commande->projetid,"none"); } print "