mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Fixed formatting
This commit is contained in:
parent
e5989895d8
commit
c10e97f2bd
|
|
@ -697,10 +697,10 @@ class StockService extends BaseService
|
|||
if (Grocycode::Validate($barcode))
|
||||
{
|
||||
$gc = new Grocycode($barcode);
|
||||
if ($gc->GetType() != Grocycode::PRODUCT)
|
||||
{
|
||||
throw new \Exception("Grocycode $barcode is not a product code");
|
||||
}
|
||||
if ($gc->GetType() != Grocycode::PRODUCT)
|
||||
{
|
||||
throw new \Exception("Grocycode $barcode is not a product code");
|
||||
}
|
||||
return intval($gc->GetId());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user