126 |
|
|
127 |
// Onglet expedition |
// Onglet expedition |
128 |
print '<table class="border" width="100%">'; |
print '<table class="border" width="100%">'; |
|
print '<tr><td width="20%">'.$langs->trans("Customer").'</td>'; |
|
|
print '<td width="30%">'; |
|
|
print '<b><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></b></td>'; |
|
|
|
|
|
print '<td width="50%">'; |
|
|
print $commande->statuts[$commande->statut]; |
|
|
print "</td></tr>"; |
|
|
|
|
|
print '<tr><td width="20%">'.$langs->trans("Date").'</td>'; |
|
|
print '<td width="30%">'.strftime("%A %d %B %Y",$commande->date)."</td>\n"; |
|
|
|
|
|
print '<td width="50%">Source : ' . $commande->sources[$commande->source] ; |
|
|
if ($commande->source == 0) |
|
|
{ |
|
|
/* Propale */ |
|
|
$propal = new Propal($db); |
|
|
$propal->fetch($commande->propale_id); |
|
|
print ' -> <a href="'.DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id.'">'.$propal->ref.'</a>'; |
|
|
} |
|
|
print "</td></tr>"; |
|
|
|
|
|
if ($commande->note) |
|
|
{ |
|
|
print '<tr><td>'.$langs->trans("Note").'</td></tr>'; |
|
|
print '<tr><td colspan="3">'.nl2br($commande->note)."</td></tr>"; |
|
|
} |
|
129 |
|
|
130 |
|
// Ref |
131 |
|
print '<tr><td width="15%">'.$langs->trans('Ref').'</td>'; |
132 |
|
print '<td colspan="2">'.$commande->ref.'</td>'; |
133 |
|
print '<td width="50%">'.$langs->trans('Source').' : ' . $commande->sources[$commande->source] ; |
134 |
|
if ($commande->source == 0) |
135 |
|
{ |
136 |
|
// Si source = propal |
137 |
|
$propal = new Propal($db); |
138 |
|
$propal->fetch($commande->propale_id); |
139 |
|
print ' -> <a href="'.DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id.'">'.$propal->ref.'</a>'; |
140 |
|
} |
141 |
|
print '</td></tr>'; |
142 |
|
|
143 |
|
// Société |
144 |
|
print '<tr><td>'.$langs->trans('Customer').'</td>'; |
145 |
|
print '<td colspan="3">'; |
146 |
|
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>'; |
147 |
|
print '</tr>'; |
148 |
|
|
149 |
|
$nbrow=3; |
150 |
|
|
151 |
|
// Ref commande client |
152 |
|
print '<tr><td>'; |
153 |
|
print '<table class="nobordernopadding" width="100%"><tr><td nowrap>'; |
154 |
|
print $langs->trans('RefCdeClient').'</td><td align="left">'; |
155 |
|
print '</td>'; |
156 |
|
print '</tr></table>'; |
157 |
|
print '</td><td colspan="2">'; |
158 |
|
print $commande->ref_client; |
159 |
|
print '</td>'; |
160 |
|
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans('Note').' :<br>'; |
161 |
|
print nl2br($commande->note); |
162 |
|
print '</td>'; |
163 |
|
print '</tr>'; |
164 |
|
|
165 |
|
print '<tr><td>'.$langs->trans('Status').'</td>'; |
166 |
|
print '<td colspan="2">'.$commande->statuts[$commande->statut].'</td>'; |
167 |
|
print '</tr>'; |
168 |
|
|
169 |
|
print '<tr><td>'.$langs->trans('Date').'</td>'; |
170 |
|
print '<td colspan="2">'.dolibarr_print_date($commande->date,'%A %d %B %Y').'</td>'; |
171 |
|
print '</tr>'; |
172 |
|
|
173 |
print '</table>'; |
print '</table>'; |
174 |
|
|
175 |
/** |
/** |