mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 21:46:16 +02:00
correct mistake in stock controller
This commit is contained in:
parent
75367598ea
commit
75a3c6c62e
|
|
@ -51,15 +51,16 @@ class StockController extends BaseController
|
||||||
|
|
||||||
public function Consume(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
public function Consume(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||||
{
|
{
|
||||||
$fp = fopen('/www/data/sql.log', 'a');
|
#$fp = fopen('/www/data/sql.log', 'a');
|
||||||
fwrite($fp, "???executing consume stock");
|
#fwrite($fp, "???executing consume stock");
|
||||||
$time_start = microtime(true);
|
#$time_start = microtime(true);
|
||||||
$result = $this->AppContainer->view->render($response, 'consume', [
|
$result = $this->AppContainer->view->render($response, 'consume', [
|
||||||
'products' => $this->Database->products()->orderBy('name'),
|
'products' => $this->Database->products()->orderBy('name'),
|
||||||
'recipes' => $this->Database->recipes()->orderBy('name')
|
'recipes' => $this->Database->recipes()->orderBy('name')
|
||||||
]);
|
]);
|
||||||
fwrite($fp, "???Total execution time in seconds: " . round((microtime(true) - $time_start),6) . "\n");
|
#fwrite($fp, "???Total execution time in seconds: " . round((microtime(true) - $time_start),6) . "\n");
|
||||||
fclose($fp);
|
#fclose($fp);
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Inventory(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
public function Inventory(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user