104 |
$h++; |
$h++; |
105 |
} |
} |
106 |
|
|
107 |
dolibarr_fiche_head($head, $hselected, $soc->nom." / ".$langs->trans("Order")." : $commande->ref"); |
dolibarr_fiche_head($head, $hselected, $langs->trans("Order").": $commande->ref"); |
108 |
|
|
109 |
/* |
/* |
110 |
* Confirmation de la validation |
* Confirmation de la validation |
111 |
* |
* |
112 |
*/ |
*/ |
113 |
if ($_GET["action"] == 'cloture') |
if ($_GET["action"] == 'cloture') |
114 |
{ |
{ |
115 |
$html->form_confirm("commande.php?id=".$_GET["id"],"Clôturer la commande","Etes-vous sûr de vouloir clôturer cette commande ?","confirm_cloture"); |
$html->form_confirm("commande.php?id=".$_GET["id"],"Clôturer la commande","Etes-vous sûr de vouloir clôturer cette commande ?","confirm_cloture"); |
144 |
print '<tr><td colspan="3">'.nl2br($commande->note)."</td></tr>"; |
print '<tr><td colspan="3">'.nl2br($commande->note)."</td></tr>"; |
145 |
} |
} |
146 |
|
|
147 |
print '</table><br />'; |
print '</table>'; |
148 |
|
|
149 |
|
|
150 |
/* |
/* |
151 |
* Lignes de commandes |
* Lignes de commandes |
152 |
* |
* |
153 |
*/ |
*/ |
154 |
echo '<table class="liste" width="100%">'; |
echo '<br><table class="liste" width="100%">'; |
155 |
|
|
156 |
$sql = "SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_tx, l.remise_percent, l.subprice"; |
$sql = "SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_tx, l.remise_percent, l.subprice"; |
157 |
$sql.= " FROM ".MAIN_DB_PREFIX."commandedet as l "; |
$sql.= " FROM ".MAIN_DB_PREFIX."commandedet as l "; |
235 |
if (! $num) |
if (! $num) |
236 |
{ |
{ |
237 |
print $langs->trans("None").'<br>'; |
print $langs->trans("None").'<br>'; |
|
print '<br>'; |
|
238 |
} |
} |
239 |
|
|
240 |
} |
} |
249 |
*/ |
*/ |
250 |
if ($reste_a_livrer_total > 0 && $commande->brouillon == 0) |
if ($reste_a_livrer_total > 0 && $commande->brouillon == 0) |
251 |
{ |
{ |
|
|
|
252 |
print '<form method="post" action="fiche.php">'; |
print '<form method="post" action="fiche.php">'; |
253 |
print '<input type="hidden" name="action" value="create">'; |
print '<input type="hidden" name="action" value="create">'; |
254 |
print '<input type="hidden" name="commande_id" value="'.$commande->id.'">'; |
print '<input type="hidden" name="commande_id" value="'.$commande->id.'">'; |