forked from Wavyzz/dolibarr
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -1691,6 +1691,8 @@ class Reception extends CommonObject
|
||||
if ($resql) {
|
||||
// Set order billed if 100% of order is received (qty in reception lines match qty in order lines)
|
||||
if ($this->origin == 'order_supplier' && $this->origin_id > 0) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
||||
|
||||
$order = new CommandeFournisseur($this->db);
|
||||
$order->fetch($this->origin_id);
|
||||
|
||||
@@ -1953,6 +1955,8 @@ class Reception extends CommonObject
|
||||
}
|
||||
|
||||
if (!$error && $this->origin == 'order_supplier') {
|
||||
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
||||
|
||||
$commande = new CommandeFournisseur($this->db);
|
||||
$commande->fetch($this->origin_id);
|
||||
$result = $commande->setStatus($user, 4);
|
||||
|
||||
Reference in New Issue
Block a user