From daf472b7816b6ac995ebfdb2ca9d3db962224d35 Mon Sep 17 00:00:00 2001 From: Anthony Berton <34568357+bb2a@users.noreply.github.com> Date: Sun, 17 Jan 2021 00:15:32 +0100 Subject: [PATCH] Update card.php --- htdocs/comm/card.php | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index cf64e0a1d04..fbf0f83acff 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -226,6 +226,12 @@ if (empty($reshook)) } if ($error) $action = 'edit_extras'; } + + // warehouse + if ($action == 'setwarehouse' && $user->rights->societe->creer) + { + $result = $object->setWarehouse(GETPOST('warehouse_id', 'int')); + } } @@ -480,7 +486,24 @@ if ($object->id > 0) print ""; print ''; } - + // Warehouse + if (!empty($conf->stock->enabled)) + { + $langs->load('stocks'); + require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php'; + $formproduct = new FormProduct($db); + print '