Fix: on inclus les commandes clients valides pas encore expdies dans l'onglet stock
This commit is contained in:
parent
bda79cba8f
commit
5564915254
@ -40,6 +40,7 @@ StatusOrderRefused=Refused
|
||||
StatusOrderReceivedPartially=Partially received
|
||||
StatusOrderReceivedAll=Everything received
|
||||
DraftOrWaitingApproved=Draft or approved not yet ordered
|
||||
DraftOrWaitingShipped=Draft or validated not yet shipped
|
||||
MenuOrdersToBill=Orders to bill
|
||||
SearchOrder=Search order
|
||||
Sending=Sending
|
||||
|
||||
@ -40,6 +40,7 @@ StatusOrderRefused=Refus
|
||||
StatusOrderReceivedPartially=Reçu partiellement
|
||||
StatusOrderReceivedAll=Reçu complètement
|
||||
DraftOrWaitingApproved=Brouillon ou approuvée pas encore commandée
|
||||
DraftOrWaitingShipped=Brouillon ou validée pas encore expédiée
|
||||
SearchOrder=Rechercher une commande
|
||||
MenuOrdersToBill=Commandes à facturer
|
||||
Sending=Expédition
|
||||
|
||||
@ -1059,7 +1059,7 @@ class Product extends CommonObject
|
||||
|
||||
if ($filtrestatut <> '')
|
||||
{
|
||||
$sql.= " AND c.fk_statut = ".$filtrestatut;
|
||||
$sql.= " AND c.fk_statut in (".$filtrestatut.")";
|
||||
}
|
||||
|
||||
$result = $this->db->query($sql) ;
|
||||
|
||||
@ -164,9 +164,9 @@ if ($_GET["id"] || $_GET["ref"])
|
||||
print '<tr><td>'.$langs->trans("CustomersOrdersRunning").'</td>';
|
||||
print '<td>';
|
||||
print $product->stats_commande['qty'];
|
||||
$result=$product->load_stats_commande(0,'0');
|
||||
$result=$product->load_stats_commande(0,'0,1');
|
||||
if ($result < 0) dolibarr_print_error($db,$product->error);
|
||||
print ' ('.$langs->trans("Draft").': '.$product->stats_commande['qty'].')';
|
||||
print ' ('.$langs->trans("DraftOrWaitingShipped").': '.$product->stats_commande['qty'].')';
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user