FIX [ bug #1308 ] Stock movements on a product with batch
This commit is contained in:
parent
b090af9cca
commit
3c3bc8b769
@ -1128,6 +1128,10 @@ class Expedition extends CommonObject
|
|||||||
|
|
||||||
// Eat-by date
|
// Eat-by date
|
||||||
if (! empty($conf->productbatch->enabled)) {
|
if (! empty($conf->productbatch->enabled)) {
|
||||||
|
/* test on conf at begining of file sometimes doesn't include expeditionbatch
|
||||||
|
* May be conf is not well initialized for dark reason
|
||||||
|
*/
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/expedition/class/expeditionbatch.class.php';
|
||||||
$line->detail_batch=ExpeditionLigneBatch::FetchAll($this->db,$obj->line_id);
|
$line->detail_batch=ExpeditionLigneBatch::FetchAll($this->db,$obj->line_id);
|
||||||
}
|
}
|
||||||
$this->lines[$i] = $line;
|
$this->lines[$i] = $line;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user