Doc: Mise a jour documentation
This commit is contained in:
parent
9895e9dde9
commit
80afe6f646
@ -13,7 +13,6 @@ English Dolibarr changelog
|
|||||||
- Little enhancements to OSCommerce module.
|
- Little enhancements to OSCommerce module.
|
||||||
- Building a PDF document for invoices works like other modules. You
|
- Building a PDF document for invoices works like other modules. You
|
||||||
can change model just before generating the PDF.
|
can change model just before generating the PDF.
|
||||||
- Provide PDF generation for orders.
|
|
||||||
- Can generate documents (PDF) for customer orders. Can send them by mail.
|
- Can generate documents (PDF) for customer orders. Can send them by mail.
|
||||||
- Can make one payment for several supplier invoices.
|
- Can make one payment for several supplier invoices.
|
||||||
- Rule to suggests passwords when creating a user are in modules
|
- Rule to suggests passwords when creating a user are in modules
|
||||||
|
|||||||
4
INSTALL
4
INSTALL
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
English: See file docs/install/en_US/README.
|
English: See file README.
|
||||||
|
|
||||||
French: Voir fichier dans docs/install/fr_FR/README-FR.
|
French: Voir fichier README-FR.
|
||||||
|
|||||||
@ -180,23 +180,23 @@ class Expedition
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
*
|
/**
|
||||||
* Lit une expedition
|
* \brief Lit une expedition
|
||||||
*
|
* \param id
|
||||||
*/
|
*/
|
||||||
function fetch ($id)
|
function fetch ($id)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$sql = "SELECT e.rowid, e.date_creation, e.ref, e.fk_user_author, e.fk_statut, e.fk_commande, e.fk_entrepot";
|
$sql = "SELECT e.rowid, e.date_creation, e.ref, e.fk_user_author, e.fk_statut, e.fk_commande, e.fk_entrepot";
|
||||||
$sql .= ", ".$this->db->pdate("e.date_expedition")." as date_expedition, c.fk_adresse_livraison";
|
$sql.= ", ".$this->db->pdate("e.date_expedition")." as date_expedition, c.fk_adresse_livraison";
|
||||||
if ($conf->livraison->enabled) $sql.=", l.rowid as livraison_id";
|
if ($conf->livraison->enabled) $sql.=", l.rowid as livraison_id";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."expedition as e";
|
$sql.= " FROM ".MAIN_DB_PREFIX."commande as c";
|
||||||
$sql .= ", ".MAIN_DB_PREFIX."commande as c";
|
$sql.= ", ".MAIN_DB_PREFIX."expedition as e";
|
||||||
if ($conf->livraison->enabled) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."livraison as l ON e.rowid = l.fk_expedition";
|
if ($conf->livraison->enabled) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."livraison as l ON e.rowid = l.fk_expedition";
|
||||||
$sql .= " WHERE e.rowid = $id";
|
$sql.= " WHERE e.rowid = ".$id;
|
||||||
$sql .= " AND e.fk_commande = c.rowid";
|
$sql.= " AND e.fk_commande = c.rowid";
|
||||||
|
|
||||||
$result = $this->db->query($sql) ;
|
$result = $this->db->query($sql) ;
|
||||||
|
|
||||||
@ -221,17 +221,17 @@ class Expedition
|
|||||||
if ($this->statut == 0) $this->brouillon = 1;
|
if ($this->statut == 0) $this->brouillon = 1;
|
||||||
|
|
||||||
// ligne de produit associée à une expédition
|
// ligne de produit associée à une expédition
|
||||||
$this->lignes = array();
|
$this->lignes = array();
|
||||||
$sql = "SELECT c.description, c.qty as qtycom, e.qty as qtyexp, e.fk_commande_ligne";
|
$sql = "SELECT c.description, c.qty as qtycom, e.qty as qtyexp, e.fk_commande_ligne";
|
||||||
$sql .= ", c.fk_product, c.label, p.ref";
|
$sql .= ", c.fk_product, c.label, p.ref";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."expeditiondet as e";
|
$sql .= " FROM ".MAIN_DB_PREFIX."expeditiondet as e";
|
||||||
$sql .= " , ".MAIN_DB_PREFIX."commandedet as c";
|
$sql .= " , ".MAIN_DB_PREFIX."commandedet as c";
|
||||||
$sql .= " , ".MAIN_DB_PREFIX."product as p";
|
$sql .= " , ".MAIN_DB_PREFIX."product as p";
|
||||||
$sql .= " WHERE e.fk_expedition = ".$this->id;
|
$sql .= " WHERE e.fk_expedition = ".$this->id;
|
||||||
$sql .= " AND e.fk_commande_ligne = c.rowid";
|
$sql .= " AND e.fk_commande_ligne = c.rowid";
|
||||||
$sql .= " AND c.fk_product = p.rowid";
|
$sql .= " AND c.fk_product = p.rowid";
|
||||||
|
|
||||||
$resultp = $this->db->query($sql);
|
$resultp = $this->db->query($sql);
|
||||||
|
|
||||||
if ($resultp)
|
if ($resultp)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -149,6 +149,8 @@ if ($_REQUEST['action'] == 'builddoc') // En get ou en post
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
llxHeader('','Fiche expedition','ch-expedition.html',$form_search);
|
||||||
|
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
@ -158,7 +160,6 @@ $html = new Form($db);
|
|||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
if ($_GET["action"] == 'create')
|
if ($_GET["action"] == 'create')
|
||||||
{
|
{
|
||||||
llxHeader('','Fiche expedition','ch-expedition.html',$form_search);
|
|
||||||
|
|
||||||
print_titre($langs->trans("CreateASending"));
|
print_titre($langs->trans("CreateASending"));
|
||||||
|
|
||||||
@ -334,14 +335,12 @@ else
|
|||||||
$expedition = New Expedition($db);
|
$expedition = New Expedition($db);
|
||||||
$result = $expedition->fetch($_GET["id"]);
|
$result = $expedition->fetch($_GET["id"]);
|
||||||
|
|
||||||
if ( $expedition->id > 0)
|
if ($expedition->id > 0)
|
||||||
{
|
{
|
||||||
$author = new User($db);
|
$author = new User($db);
|
||||||
$author->id = $expedition->user_author_id;
|
$author->id = $expedition->user_author_id;
|
||||||
$author->fetch();
|
$author->fetch();
|
||||||
|
|
||||||
llxHeader('','Fiche expedition','ch-expedition.html',$form_search,$author);
|
|
||||||
|
|
||||||
$commande = New Commande($db);
|
$commande = New Commande($db);
|
||||||
$commande->fetch($expedition->commande_id);
|
$commande->fetch($expedition->commande_id);
|
||||||
|
|
||||||
@ -409,8 +408,7 @@ else
|
|||||||
|
|
||||||
// Client
|
// Client
|
||||||
print '<tr><td width="20%">'.$langs->trans("Customer").'</td>';
|
print '<tr><td width="20%">'.$langs->trans("Customer").'</td>';
|
||||||
print '<td width="30%">';
|
print '<td width="30%">'.$soc->getNomUrl(1).'</td>';
|
||||||
print '<b><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></b></td>';
|
|
||||||
|
|
||||||
// Auteur
|
// Auteur
|
||||||
print '<td width="20%">'.$langs->trans("Author").'</td><td width="30%">'.$author->fullname.'</td>';
|
print '<td width="20%">'.$langs->trans("Author").'</td><td width="30%">'.$author->fullname.'</td>';
|
||||||
@ -419,7 +417,7 @@ else
|
|||||||
|
|
||||||
// Commande liée
|
// Commande liée
|
||||||
print '<tr><td>'.$langs->trans("Order").'</td>';
|
print '<tr><td>'.$langs->trans("Order").'</td>';
|
||||||
print '<td><a href="'.DOL_URL_ROOT.'/expedition/commande.php?id='.$commande->id.'">'.$commande->ref."</a></td>\n";
|
print '<td><a href="'.DOL_URL_ROOT.'/expedition/commande.php?id='.$commande->id.'">'.img_object($langs->trans("ShowOrder"),'order').' '.$commande->ref."</a></td>\n";
|
||||||
print '<td> </td><td> </td></tr>';
|
print '<td> </td><td> </td></tr>';
|
||||||
|
|
||||||
// Date
|
// Date
|
||||||
@ -713,15 +711,11 @@ else
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Expedition non trouvée */
|
dolibarr_print_error($db);
|
||||||
llxHeader('','Fiche expedition','ch-expedition.html',$form_search);
|
|
||||||
print "Expedition inexistante ou accés refusé";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Expedition non trouvée */
|
|
||||||
llxHeader('','Fiche expedition','ch-expedition.html',$form_search);
|
|
||||||
print "Expedition inexistante ou accés refusé";
|
print "Expedition inexistante ou accés refusé";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user