Merge branch 'develop' of https://github.com/Dolibarr/dolibarr.git into
dev_importproduct_measuringunit Conflicts: htdocs/product/stock/movement_card.php
This commit is contained in:
commit
5bb260d3d1
@ -127,8 +127,7 @@ if (! GETPOST('confirmmassaction','alpha') && $massaction != 'presend' && $massa
|
|||||||
|
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
if ($reshook < 0)
|
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||||
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
|
||||||
|
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_changeselectedfields.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/actions_changeselectedfields.inc.php';
|
||||||
|
|
||||||
@ -200,7 +199,9 @@ if ($action == "correct_stock")
|
|||||||
GETPOST("mouvement", 'int'),
|
GETPOST("mouvement", 'int'),
|
||||||
GETPOST("label", 'san_alpha'),
|
GETPOST("label", 'san_alpha'),
|
||||||
GETPOST('unitprice', 'alpha'),
|
GETPOST('unitprice', 'alpha'),
|
||||||
$eatby,$sellby,$batch,
|
$eatby,
|
||||||
|
$sellby,
|
||||||
|
$batch,
|
||||||
GETPOST('inventorycode', 'alpha'),
|
GETPOST('inventorycode', 'alpha'),
|
||||||
$origin_element,
|
$origin_element,
|
||||||
$origin_id
|
$origin_id
|
||||||
@ -332,7 +333,9 @@ if ($action == "transfert_stock" && ! $cancel)
|
|||||||
1,
|
1,
|
||||||
GETPOST("label", 'san_alpha'),
|
GETPOST("label", 'san_alpha'),
|
||||||
$pricesrc,
|
$pricesrc,
|
||||||
$eatby,$sellby,$batch,
|
$eatby,
|
||||||
|
$sellby,
|
||||||
|
$batch,
|
||||||
GETPOST('inventorycode', 'alpha')
|
GETPOST('inventorycode', 'alpha')
|
||||||
);
|
);
|
||||||
// Add stock
|
// Add stock
|
||||||
@ -343,7 +346,9 @@ if ($action == "transfert_stock" && ! $cancel)
|
|||||||
0,
|
0,
|
||||||
GETPOST("label", 'san_alpha'),
|
GETPOST("label", 'san_alpha'),
|
||||||
$pricedest,
|
$pricedest,
|
||||||
$eatby,$sellby,$batch,
|
$eatby,
|
||||||
|
$sellby,
|
||||||
|
$batch,
|
||||||
GETPOST('inventorycode', 'alpha')
|
GETPOST('inventorycode', 'alpha')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -613,7 +618,7 @@ if ($resql)
|
|||||||
// Last movement
|
// Last movement
|
||||||
$sql = "SELECT MAX(m.datem) as datem";
|
$sql = "SELECT MAX(m.datem) as datem";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."stock_mouvement as m";
|
$sql .= " FROM ".MAIN_DB_PREFIX."stock_mouvement as m";
|
||||||
$sql .= " WHERE m.fk_entrepot = '".$object->id."'";
|
$sql .= " WHERE m.fk_entrepot = ".(int) $object->id;
|
||||||
$resqlbis = $db->query($sql);
|
$resqlbis = $db->query($sql);
|
||||||
if ($resqlbis)
|
if ($resqlbis)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user