This commit is contained in:
Bernd Bestel 2020-01-22 22:36:01 +01:00
parent ec2551d263
commit 6300a8fd09
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -592,7 +592,7 @@ class StockService extends BaseService
$logOldRowForStockUpdate->save();
$openedDate = $stockRow->opened_date;
if ($open && $openDate == null)
if ($open && $openedDate == null)
{
$openedDate = date('Y-m-d');
}
@ -1082,9 +1082,10 @@ class StockService extends BaseService
throw new \Exception('Booking does not exist or was already undone');
}
$openDate = $logRow->opened_date;
$openedDate = $logRow->opened_date;
$open = true;
if ($openDate == null) {
if ($openedDate == null)
{
$open = false;
}