mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Bug Fix for issue 34898, default warehause and obj->endbrowid not exist on receipt.class (#34959)
* bug fix for: https://github.com/Dolibarr/dolibarr/issues/34939 * Bug fix for: Dolibarr Issue #34939 * Revert "bug fix for: https://github.com/Dolibarr/dolibarr/issues/34939" This reverts commitbd4c1ccc41. * Revert "Bug fix for: Dolibarr Issue #34939" This reverts commit8e46f863b9. * Bug fix for issue https://github.com/Dolibarr/dolibarr/issues/34898 * fix bug on reception setClosed: ->edbrowid is not exist * Fix missing variable for obj->endbrowid in etDraft,valid,setClosed * fix white space * remove white space
This commit is contained in:
@@ -631,6 +631,7 @@ class Reception extends CommonObject
|
||||
if ($qty == 0 || ($qty < 0 && !getDolGlobalInt('RECEPTION_ALLOW_NEGATIVE_QTY'))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
dol_syslog(get_class($this)."::valid movement index ".$i." ed.rowid=".$obj->rowid);
|
||||
|
||||
//var_dump($this->lines[$i]);
|
||||
@@ -1748,7 +1749,8 @@ class Reception extends CommonObject
|
||||
if ($qty <= 0) {
|
||||
continue;
|
||||
}
|
||||
dol_syslog(get_class($this)."::valid movement index ".$i." ed.rowid=".$obj->rowid." edb.rowid=".$obj->edbrowid);
|
||||
|
||||
dol_syslog(get_class($this)."::valid movement index ".$i." ed.rowid=".$obj->rowid);
|
||||
|
||||
$mouvS = new MouvementStock($this->db);
|
||||
$mouvS->origin = &$this;
|
||||
@@ -1905,7 +1907,6 @@ class Reception extends CommonObject
|
||||
if ($qty <= 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
dol_syslog(get_class($this)."::reopen reception movement index ".$i." ed.rowid=".$obj->rowid);
|
||||
|
||||
//var_dump($this->lines[$i]);
|
||||
@@ -2038,6 +2039,10 @@ class Reception extends CommonObject
|
||||
|
||||
$qty = $obj->qty;
|
||||
|
||||
if ($qty <= 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
dol_syslog(get_class($this)."::reopen reception movement index ".$i." ed.rowid=".$obj->rowid);
|
||||
|
||||
//var_dump($this->lines[$i]);
|
||||
|
||||
Reference in New Issue
Block a user