Make purchased date on /stockedit editable / Dirty workaround for 2 datetimepickers on the same page (references #506)

This commit is contained in:
Bernd Bestel
2020-01-23 18:58:05 +01:00
parent 3baffcfe7b
commit 99d4b05a3c
7 changed files with 385 additions and 15 deletions

View File

@@ -147,7 +147,7 @@ class StockApiController extends BaseApiController
$locationId = $requestBody['location_id'];
}
$bookingId = $this->StockService->EditStockEntry($args['entryId'], $requestBody['amount'], $bestBeforeDate, $locationId, $price, $requestBody['open']);
$bookingId = $this->StockService->EditStockEntry($args['entryId'], $requestBody['amount'], $bestBeforeDate, $locationId, $price, $requestBody['open'], $requestBody['purchased_date']);
return $this->ApiResponse($this->Database->stock_log($bookingId));
}
catch (\Exception $ex)