mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
New logo
This commit is contained in:
@@ -59,7 +59,7 @@ class PrintService extends BaseService
|
||||
$printer->selectPrintMode(Printer::MODE_DOUBLE_WIDTH);
|
||||
$printer->setTextSize(4, 4);
|
||||
$printer->setReverseColors(true);
|
||||
$printer->text('grocy');
|
||||
$printer->text('Grocy');
|
||||
$printer->setJustification();
|
||||
$printer->setTextSize(1, 1);
|
||||
$printer->setReverseColors(false);
|
||||
|
@@ -821,13 +821,13 @@ class StockService extends BaseService
|
||||
|
||||
public function GetProductIdFromBarcode(string $barcode)
|
||||
{
|
||||
// first, try to parse this as a product grocycode
|
||||
// first, try to parse this as a product Grocycode
|
||||
if (Grocycode::Validate($barcode))
|
||||
{
|
||||
$gc = new Grocycode($barcode);
|
||||
if ($gc->GetType() != Grocycode::PRODUCT)
|
||||
{
|
||||
throw new \Exception('Invalid grocycode');
|
||||
throw new \Exception('Invalid Grocycode');
|
||||
}
|
||||
return $gc->GetId();
|
||||
}
|
||||
|
Reference in New Issue
Block a user