mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 11:56:16 +02:00
Code formatting
This commit is contained in:
parent
4513e850c3
commit
6d7bfb87e2
|
|
@ -584,9 +584,11 @@ class StockApiController extends BaseApiController
|
||||||
{
|
{
|
||||||
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']);
|
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']);
|
||||||
|
|
||||||
if (Grocycode::Validate($args['barcode'])) {
|
if (Grocycode::Validate($args['barcode']))
|
||||||
|
{
|
||||||
$gc = new Grocycode($args['barcode']);
|
$gc = new Grocycode($args['barcode']);
|
||||||
if ($gc->GetExtraData()) {
|
if ($gc->GetExtraData())
|
||||||
|
{
|
||||||
$requestBody = $request->getParsedBody();
|
$requestBody = $request->getParsedBody();
|
||||||
$requestBody['stock_entry_id'] = $gc->GetExtraData()[0];
|
$requestBody['stock_entry_id'] = $gc->GetExtraData()[0];
|
||||||
$request = $request->withParsedBody($requestBody);
|
$request = $request->withParsedBody($requestBody);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user