Update doc
This commit is contained in:
parent
f45abc1b2a
commit
bbb62f27c7
@ -605,9 +605,9 @@ if ($object->id > 0)
|
|||||||
$sql2.= ' WHERE c.fk_soc = s.rowid';
|
$sql2.= ' WHERE c.fk_soc = s.rowid';
|
||||||
$sql2.= " AND c.entity IN (".getEntity('commande_fournisseur').")";
|
$sql2.= " AND c.entity IN (".getEntity('commande_fournisseur').")";
|
||||||
$sql2.= ' AND s.rowid = '.$object->id;
|
$sql2.= ' AND s.rowid = '.$object->id;
|
||||||
// Show orders with status validated, shipping started and delivered (even if any order we can bill)
|
// Show orders with status validated, shipping started and delivered (even if any order we can bill).
|
||||||
//$sql2.= " AND c.fk_statut IN (".CommandeFournisseur::STATUS_ORDERSENT.", ".CommandeFournisseur::STATUS_RECEIVED_PARTIALLY.", ".CommandeFournisseur::STATUS_RECEIVED_COMPLETELY.")";
|
//$sql2.= " AND c.fk_statut IN (".CommandeFournisseur::STATUS_ORDERSENT.", ".CommandeFournisseur::STATUS_RECEIVED_PARTIALLY.", ".CommandeFournisseur::STATUS_RECEIVED_COMPLETELY.")";
|
||||||
$sql2.= " AND c.fk_statut IN (".CommandeFournisseur::STATUS_RECEIVED_COMPLETELY.")";
|
$sql2.= " AND c.fk_statut IN (".CommandeFournisseur::STATUS_RECEIVED_COMPLETELY.")"; // Must match filter in htdocs/fourn/orderstoinvoice.php
|
||||||
$sql2.= " AND c.billed = 0";
|
$sql2.= " AND c.billed = 0";
|
||||||
// Find order that are not already invoiced
|
// Find order that are not already invoiced
|
||||||
// just need to check received status because we have the billed status now
|
// just need to check received status because we have the billed status now
|
||||||
|
|||||||
@ -450,7 +450,7 @@ if (($action != 'create' && $action != 'add') && !$error) {
|
|||||||
$sql .= ' AND c.fk_soc = s.rowid';
|
$sql .= ' AND c.fk_soc = s.rowid';
|
||||||
|
|
||||||
// Show orders with status validated, shipping started and delivered (well any order we can bill)
|
// Show orders with status validated, shipping started and delivered (well any order we can bill)
|
||||||
$sql .= " AND c.fk_statut IN (5)";
|
$sql .= " AND c.fk_statut IN (".CommandeFournisseur::STATUS_RECEIVED_COMPLETELY.")"; // Must match filter in htdocs/fourn/card.php
|
||||||
$sql .= " AND c.billed = 0";
|
$sql .= " AND c.billed = 0";
|
||||||
|
|
||||||
// Find order that are not already invoiced
|
// Find order that are not already invoiced
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user