update pmp real even if it's not edit

This commit is contained in:
Quentin VIAL-GOUTEYRON 2022-03-28 16:02:18 +02:00
parent b904ea73a6
commit 6462fd8306

View File

@ -268,6 +268,8 @@ if (empty($reshook)) {
$result = $inventoryline->fetch($lineid);
if ($result > 0) {
$inventoryline->qty_view = null; // The new value we want
$inventoryline->pmp_real = price2num(GETPOST('realpmp_'.$lineid, 'alpha'), 'MS');
$inventoryline->pmp_expected = price2num(GETPOST('expectedpmp_'.$lineid, 'alpha'), 'MS');
$resultupdate = $inventoryline->update($user);
}
}