NEW : Added of the field "include_sub_warehouse" in the table "llx_inventory"

This commit is contained in:
Adrien Raze 2022-02-17 16:20:35 +01:00
parent 3697cb9ca4
commit 7e7638792e
3 changed files with 5 additions and 2 deletions

View file

@ -237,4 +237,6 @@ ALTER TABLE llx_advtargetemailing RENAME TO llx_mailing_advtarget;
ALTER TABLE llx_mailing ADD UNIQUE uk_mailing(titre, entity);
ALTER TABLE llx_inventory ADD COLUMN include_sub_warehouse boolean NOT NULL DEFAULT FALSE;

View file

@ -30,7 +30,8 @@ CREATE TABLE llx_inventory
fk_warehouse integer DEFAULT NULL,
fk_product integer DEFAULT NULL,
status integer DEFAULT 0,
title varchar(255) NOT NULL,
title varchar(255) NOT NULL,
include_sub_warehouse boolean NOT NULL DEFAULT FALSE,
date_inventory datetime DEFAULT NULL,
date_validation datetime DEFAULT NULL,
import_key varchar(14) -- import key

View file

@ -37,13 +37,13 @@ if (empty($conf) || !is_object($conf)) {
// Other attributes
if (!isset($parameters)) $parameters = array();
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $movement, $action); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
if (empty($reshook)) {
$params = array();
if (isset($tpl_context)) $params['tpl_context'] = $tpl_context;
$params['cols'] = $parameters['colspanvalue'];
var_dump($movement);
print $movement->showOptionals($extrafields, 'create', $params);
}