Bugfix multiplie le poids par la quantite

This commit is contained in:
Rodolphe Quiedeville 2006-12-12 18:42:18 +00:00
parent 5f6bc0fe7e
commit 2fd8527e35

View File

@ -124,7 +124,7 @@ class InterfaceFraisport
* Calcul le poids du colis
*
*/
$sql = "SELECT p.weight, p.weight_units";
$sql = "SELECT (p.weight*fd.qty), p.weight_units";
$sql.= " FROM ".MAIN_DB_PREFIX."product as p,".MAIN_DB_PREFIX."commandedet as fd";
$sql.= " WHERE fd.fk_product = p.rowid";
$sql.= " AND fd.fk_commande = '".$object->fk_commande."'";