';
+
+ // Ref
+ print '| '.$langs->trans("Ref").' | ';
+ print ''.$expedition->ref.' |
';
+
+ // Customer
+ print '| '.$langs->trans("Customer").' | ';
+ print ''.$soc->getNomUrl(1).' | ';
+ print "
";
+
+ // Document liée
+ print '| ';
+ if ($conf->commande->enabled)
{
- $order=new Commande($db);
- $order->fetch($expedition->$object->id);
- print $langs->trans("RefOrder").' | ';
- print '';
- print $order->getNomUrl(1,4);
- print " | \n";
+ $order=new Commande($db);
+ $order->fetch($expedition->$object->id);
+ print $langs->trans("RefOrder").'';
+ print '';
+ print $order->getNomUrl(1,4);
+ print " | \n";
}
- else
+ else
{
- $propal=new Propal($db);
- $propal->fetch($livraison->origin_id);
- print $langs->trans("RefProposal").'';
- print '';
- print $propal->getNomUrl(1,'expedition');
- print " | \n";
+ $propal=new Propal($db);
+ $propal->fetch($livraison->origin_id);
+ print $langs->trans("RefProposal").'';
+ print '';
+ print $propal->getNomUrl(1,'expedition');
+ print " | \n";
}
- print '
';
+ print '';
+
+ // Ref client
+ print '| '.$langs->trans("RefCustomer").' | ';
+ print ''.$object->ref_client." | \n";
+ print '
';
+
+ // Date
+ print '| '.$langs->trans("Date").' | ';
+ print ''.dolibarr_print_date($expedition->date,"day")." | \n";
+ print '
';
+
+ // Poids Total
+ print '| '.$langs->trans("TotalWeight").' | ';
+ print ''.$totalWeight.' '.measuring_units_string($weightUnit,"weight")." | \n";
+ print '
';
+
+ // Volume Total
+ print '| '.$langs->trans("TotalVolume").' | ';
+ print ''.$totalVolume.' '.measuring_units_string($volumeUnit,"volume")." | \n";
+ print '
';
+
+ // Status
+ print '| '.$langs->trans("Status").' | ';
+ print ''.$expedition->getLibStatut(4)." | \n";
+ print '
';
+
+ // Tracking Number
+ print '| '.$langs->trans("TrackingNumber").' | ';
+ print ''.$expedition->tracking_number.' | '.$expedition->tracking_url." | \n";
+ print '
';
- // Ref client
- print '| '.$langs->trans("RefCustomer").' | ';
- print ''.$object->ref_client." | \n";
- print '
';
-
- // Date
- print '| '.$langs->trans("Date").' | ';
- print ''.dolibarr_print_date($expedition->date,"day")." | \n";
- print '
';
-
- // Poids Total
- print '| '.$langs->trans("TotalWeight").' | ';
- print ''.$totalWeight.' '.measuring_units_string($weightUnit,"weight")." | \n";
- print '
';
-
- // Volume Total
- print '| '.$langs->trans("TotalVolume").' | ';
- print ''.$totalVolume.' '.measuring_units_string($volumeUnit,"volume")." | \n";
- print '
';
-
- // Statut
- print '| '.$langs->trans("Status").' | ';
- print ''.$expedition->getLibStatut(4)." | \n";
- print '
';
-
- print "
\n";
-
- /*
- * Lignes produits
- */
- print '';
+ print '';
+ print '| '.$langs->trans("Products").' | ';
+ print ''.$langs->trans("QtyOrdered").' | ';
+ if ($expedition->fk_statut <= 1)
{
- print ''.$langs->trans("QtyToShip").' | ';
+ print ''.$langs->trans("QtyToShip").' | ';
}
- else
+ else
{
- print ''.$langs->trans("QtyShipped").' | ';
+ print ''.$langs->trans("QtyShipped").' | ';
}
-
- print ''.$langs->trans("Weight").' | ';
- print ''.$langs->trans("Volume").' | ';
-
- if ($conf->stock->enabled)
+
+ print ''.$langs->trans("Weight").' | ';
+ print ''.$langs->trans("Volume").' | ';
+
+ if ($conf->stock->enabled)
{
print ''.$langs->trans("WarehouseSource").' | ';
}
- print "
\n";
-
- $var=false;
-
- for ($i = 0 ; $i < $num_prod ; $i++)
+ print "\n";
+
+ $var=false;
+
+ for ($i = 0 ; $i < $num_prod ; $i++)
{
print "";
if ($lignes[$i]->fk_product > 0)
- {
+ {
print '';
print ''.img_object($langs->trans("ShowProduct"),"product").' '.$lignes[$i]->ref.' - '.$lignes[$i]->libelle;
if ($lignes[$i]->description) print ' '.nl2br($lignes[$i]->description);
|