2
0
forked from Wavyzz/dolibarr

Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
ldestailleur
2025-06-19 11:31:44 +02:00
25 changed files with 111 additions and 187 deletions

View File

@@ -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);