Skip to content
Snippets Groups Projects
Commit 680ce297 authored by Charles Benke's avatar Charles Benke
Browse files

Update mouvement.php

sometime $year not filled then made "bug" the search
propose to fill with current year in this case
parent d98a5d4c
Branches
Tags
No related merge requests found
...@@ -537,8 +537,8 @@ if ($resql) ...@@ -537,8 +537,8 @@ if ($resql)
$productidselected=$key; $productidselected=$key;
$productlabelselected=$val; $productlabelselected=$val;
} }
$datebefore=dol_get_first_day($year, $month?$month:1, true); $datebefore=dol_get_first_day($year?$year:strftime("%Y",time()), $month?$month:1, true);
$dateafter=dol_get_last_day($year, $month?$month:12, true); $dateafter=dol_get_last_day($year?$year:strftime("%Y",time()), $month?$month:12, true);
$balancebefore=$movement->calculateBalanceForProductBefore($productidselected, $datebefore); $balancebefore=$movement->calculateBalanceForProductBefore($productidselected, $datebefore);
$balanceafter=$movement->calculateBalanceForProductBefore($productidselected, $dateafter); $balanceafter=$movement->calculateBalanceForProductBefore($productidselected, $dateafter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment