[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-bugtrack] [bug #18642] bon de livrasion ne mentione pas l'adre
From: |
Franky Van Liedekerke |
Subject: |
[Dolibarr-bugtrack] [bug #18642] bon de livrasion ne mentione pas l'adresse de livraison (avec solution) |
Date: |
Thu, 04 Jan 2007 13:08:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061219 Fedora/1.5.0.9-1.fc6 Firefox/1.5.0.9 pango-text |
Follow-up Comment #2, bug #18642 (project dolibarr):
(c'est bizarre ... je vois pas ce commentaire ici mais c'est sur le
bugtrack-archive, alors je fais un repost)
Et dans mon fix, j'avais encore oubliƩ le cas ou une adresse de livraison
est defini mais pas choisi. Alors le code suivante prends soin de tous les
problemes:
$pdf->MultiCell(80,5,
$langs->transnoentities("DeliveryAddress").":");
$commande = new Commande ($this->db);
$commande->fetch($delivery->commande_id);
$client = new Societe($this->db);
// if there's at least one delivery address defined
if ($commande->adresse_livraison_id>0) {
$client->fetch_adresse_livraison($commande->adresse_livraison_id);
} else {
$client->fetch($delivery->socid);
}
$delivery->client = $client;
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?18642>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/