[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-bugtrack] [bug #18616] small error in product/stock/product.ph
From: |
Franky Van Liedekerke |
Subject: |
[Dolibarr-bugtrack] [bug #18616] small error in product/stock/product.php |
Date: |
Thu, 28 Dec 2006 12:38:56 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy) |
URL:
<http://savannah.nongnu.org/bugs/?18616>
Summary: small error in product/stock/product.php
Project: Dolibarr
Submitted by: liedekef
Submitted on: Thursday 28/12/06 at 12:38
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
Operating System: None
_______________________________________________________
Details:
When viewing the stock fiche of a product (htdocs/product/stock/product.php),
the number of "Current customers' orders" is wrong. In the code it says:
// Nbre de commande clients en cours
if ($conf->commande->enabled)
{
$result=$product->load_stats_commande(0,'1');
if ($result < 0) dolibarr_print_error($db,$product->error);
print
'<tr><td>'.$langs->trans("CustomersOrdersRunning").'</td>';
print '<td>';
print $product->stats_commande['qty'];
$result=$product->load_stats_commande(0,'0');
if ($result < 0) dolibarr_print_error($db,$product->error);
print ' ('.$langs->trans("Draft").':
'.$product->stats_commande['qty'].')';
print '</td></tr>';
}
I think the load_stats_commande argument is wrong. For
"CustomersOrdersRunning" it should be 2 instead of 1:
$product->load_stats_commande(0,'2');
and for "Draft" is should be 1 instead of 0:
$product->load_stats_commande(0,'1');
then the reported numbers are ok.
Franky
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?18616>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dolibarr-bugtrack] [bug #18616] small error in product/stock/product.php,
Franky Van Liedekerke <=