Look: Ajout picto sur statut commande client
This commit is contained in:
parent
8b12e546ba
commit
0b6aebdd05
@ -252,7 +252,7 @@ if ($_GET["id"] > 0) {
|
|||||||
|
|
||||||
// Statut
|
// Statut
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td>';
|
print '<tr><td>'.$langs->trans("Status").'</td>';
|
||||||
print "<td colspan=\"2\">".$commande->statuts[$commande->statut]."</td>\n";
|
print "<td colspan=\"2\">".$commande->getLibStatut(4)."</td>\n";
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Date
|
// Date
|
||||||
|
|||||||
@ -1308,7 +1308,7 @@ class Commande
|
|||||||
*/
|
*/
|
||||||
function getLibStatut($mode)
|
function getLibStatut($mode)
|
||||||
{
|
{
|
||||||
return $this->LibStatut($this->statut);
|
return $this->LibStatut($this->statut,$mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
||||||
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
|
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
|
||||||
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
||||||
@ -666,8 +666,9 @@ else
|
|||||||
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>';
|
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
// Statut
|
||||||
print '<tr><td>'.$langs->trans('Status').'</td>';
|
print '<tr><td>'.$langs->trans('Status').'</td>';
|
||||||
print '<td colspan="2">'.$commande->statuts[$commande->statut].'</td>';
|
print '<td colspan="2">'.$commande->getLibStatut(4).'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('Date').'</td>';
|
print '<tr><td>'.$langs->trans('Date').'</td>';
|
||||||
@ -1006,11 +1007,7 @@ else
|
|||||||
{
|
{
|
||||||
print '<div class="tabsAction">';
|
print '<div class="tabsAction">';
|
||||||
|
|
||||||
if ($conf->expedition->enabled && $commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer)
|
// Valid
|
||||||
{
|
|
||||||
print '<a class="butAction" href="'.DOL_URL_ROOT.'/expedition/commande.php?id='.$_GET['id'].'">'.$langs->trans('Send').'</a>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($commande->statut == 0)
|
if ($commande->statut == 0)
|
||||||
{
|
{
|
||||||
if ($user->rights->commande->valider)
|
if ($user->rights->commande->valider)
|
||||||
@ -1019,6 +1016,18 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Build PDF
|
||||||
|
if ($user->rights->commande->creer)
|
||||||
|
{
|
||||||
|
print '<a class="butAction" href="fiche.php?id='.$commande->id.'&action=builddoc">'.$langs->trans("BuildPDF").'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ship
|
||||||
|
if ($conf->expedition->enabled && $commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer)
|
||||||
|
{
|
||||||
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/expedition/commande.php?id='.$_GET['id'].'">'.$langs->trans('ShipProduct').'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
if ($commande->statut == 1 || $commande->statut == 2)
|
if ($commande->statut == 1 || $commande->statut == 2)
|
||||||
{
|
{
|
||||||
if ($user->rights->commande->creer)
|
if ($user->rights->commande->creer)
|
||||||
@ -1027,11 +1036,6 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($commande->statut == 0 && $user->rights->commande->supprimer)
|
|
||||||
{
|
|
||||||
print '<a class="butActionDelete" href="fiche.php?id='.$id.'&action=delete">'.$langs->trans('Delete').'</a>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($commande->statut == 1)
|
if ($commande->statut == 1)
|
||||||
{
|
{
|
||||||
$nb_expedition = $commande->nb_expedition();
|
$nb_expedition = $commande->nb_expedition();
|
||||||
@ -1040,11 +1044,11 @@ else
|
|||||||
print '<a class="butActionDelete" href="fiche.php?id='.$id.'&action=annuler">'.$langs->trans('CancelOrder').'</a>';
|
print '<a class="butActionDelete" href="fiche.php?id='.$id.'&action=annuler">'.$langs->trans('CancelOrder').'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Build PDF
|
|
||||||
if ($user->rights->commande->creer)
|
if ($commande->statut == 0 && $user->rights->commande->supprimer)
|
||||||
{
|
{
|
||||||
print '<a class="butAction" href="fiche.php?id='.$commande->id.'&action=builddoc">'.$langs->trans("BuildPDF").'</a>';
|
print '<a class="butActionDelete" href="fiche.php?id='.$id.'&action=delete">'.$langs->trans('Delete').'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -185,7 +185,7 @@ if ($resql)
|
|||||||
print strftime('%B',$objp->date_commande).'</a>';
|
print strftime('%B',$objp->date_commande).'</a>';
|
||||||
print ' <a href="liste.php?year='.$y.'">';
|
print ' <a href="liste.php?year='.$y.'">';
|
||||||
print strftime('%Y',$objp->date_commande).'</a></td>';
|
print strftime('%Y',$objp->date_commande).'</a></td>';
|
||||||
print '<td align="center">'.$generic_commande->status_label_short[$objp->fk_statut].'</td>';
|
print '<td align="right">'.$generic_commande->LibStatut($objp->fk_statut,5).'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
$total = $total + $objp->price;
|
$total = $total + $objp->price;
|
||||||
$subtotal = $subtotal + $objp->price;
|
$subtotal = $subtotal + $objp->price;
|
||||||
|
|||||||
@ -137,7 +137,7 @@ if ($_GET["id"] > 0)
|
|||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
// Ref
|
// Ref
|
||||||
print '<tr><td width="15%">'.$langs->trans('Ref').'</td>';
|
print '<tr><td width="18%">'.$langs->trans('Ref').'</td>';
|
||||||
print '<td colspan="2">'.$commande->ref.'</td>';
|
print '<td colspan="2">'.$commande->ref.'</td>';
|
||||||
print '<td width="50%">'.$langs->trans('Source').' : ' . $commande->sources[$commande->source] ;
|
print '<td width="50%">'.$langs->trans('Source').' : ' . $commande->sources[$commande->source] ;
|
||||||
if ($commande->source == 0)
|
if ($commande->source == 0)
|
||||||
@ -149,32 +149,33 @@ if ($_GET["id"] > 0)
|
|||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Société
|
|
||||||
print '<tr><td>'.$langs->trans('Customer').'</td>';
|
|
||||||
print '<td colspan="3">';
|
|
||||||
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>';
|
|
||||||
print '</tr>';
|
|
||||||
|
|
||||||
$nbrow=3;
|
|
||||||
|
|
||||||
// Ref commande client
|
// Ref commande client
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print '<table class="nobordernopadding" width="100%"><tr><td nowrap>';
|
print '<table class="nobordernopadding" width="100%"><tr><td nowrap>';
|
||||||
print $langs->trans('RefCdeClient').'</td><td align="left">';
|
print $langs->trans('RefCustomer').'</td><td align="left">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr></table>';
|
print '</tr></table>';
|
||||||
print '</td><td colspan="2">';
|
print '</td><td colspan="2">';
|
||||||
print $commande->ref_client;
|
print $commande->ref_client;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
$nbrow=3;
|
||||||
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans('Note').' :<br>';
|
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans('Note').' :<br>';
|
||||||
print nl2br($commande->note);
|
print nl2br($commande->note);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans('Status').'</td>';
|
// Société
|
||||||
print '<td colspan="2">'.$commande->statuts[$commande->statut].'</td>';
|
print '<tr><td>'.$langs->trans('Customer').'</td>';
|
||||||
|
print '<td>';
|
||||||
|
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
// Statut
|
||||||
|
print '<tr><td>'.$langs->trans('Status').'</td>';
|
||||||
|
print '<td colspan="2">'.$commande->getLibStatut(4).'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
|
// Date
|
||||||
print '<tr><td>'.$langs->trans('Date').'</td>';
|
print '<tr><td>'.$langs->trans('Date').'</td>';
|
||||||
print '<td colspan="2">'.dolibarr_print_date($commande->date,'%A %d %B %Y').'</td>';
|
print '<td colspan="2">'.dolibarr_print_date($commande->date,'%A %d %B %Y').'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|||||||
@ -22,6 +22,7 @@ MenuOrdersToBill=Orders to bill
|
|||||||
SearchOrder=Search order
|
SearchOrder=Search order
|
||||||
Sending=Sending
|
Sending=Sending
|
||||||
Sendings=Sendings
|
Sendings=Sendings
|
||||||
|
ShipProduct=Ship product
|
||||||
VAT=VAT
|
VAT=VAT
|
||||||
Discount=Discount
|
Discount=Discount
|
||||||
CreateOrder=Create Order
|
CreateOrder=Create Order
|
||||||
|
|||||||
@ -22,6 +22,7 @@ SearchOrder=Rechercher une commande
|
|||||||
MenuOrdersToBill=Commandes à facturer
|
MenuOrdersToBill=Commandes à facturer
|
||||||
Sending=Expédition
|
Sending=Expédition
|
||||||
Sendings=Expéditions
|
Sendings=Expéditions
|
||||||
|
ShipProduct=Expédier produit
|
||||||
VAT=TVA
|
VAT=TVA
|
||||||
Discount=Remise
|
Discount=Remise
|
||||||
CreateOrder=Créer Commande
|
CreateOrder=Créer Commande
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user