Skip to content

Commit

Permalink
FIX [ bug #1308 ] Stock movements on a product with batch
Browse files Browse the repository at this point in the history
  • Loading branch information
KreizIT committed Jun 12, 2014
1 parent b090af9 commit 3c3bc8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/expedition/class/expedition.class.php
Expand Up @@ -1128,6 +1128,10 @@ function fetch_lines()

// Eat-by date
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);
}
$this->lines[$i] = $line;
Expand Down

0 comments on commit 3c3bc8b

Please sign in to comment.