Skip to content
Snippets Groups Projects
Commit 80354cd8 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX Can correct stock of lot using eatby or sell by date

parent 2d037eb3
No related branches found
No related tags found
No related merge requests found
......@@ -109,8 +109,12 @@ if ($action == "correct_stock")
if ($product->hasbatch())
{
$batch=GETPOST('batch_number');
$eatby=GETPOST('eatby');
$sellby=GETPOST('sellby');
//$eatby=GETPOST('eatby');
//$sellby=GETPOST('sellby');
$eatby=dol_mktime(12, 0, 0, GETPOST('eatbymonth'), GETPOST('eatbyday'), GETPOST('eatbyyear'));
$sellby=dol_mktime(12, 0, 0, GETPOST('sellbymonth'), GETPOST('sellbyday'), GETPOST('sellbyyear'));
$result=$product->correct_stock_batch(
$user,
$id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment