Skip to content

Commit 44bfde2

Browse files
authored
Commeting
1 parent 2640672 commit 44bfde2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/Models/ProductUnitQuantity.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ class ProductUnitQuantity extends NsModel
1313

1414
protected $table = 'nexopos_' . 'products_unit_quantities';
1515

16+
/**
17+
* Fetch products unique a barcode filter
18+
* @param QueryBuilder $query
19+
* @param string $reference
20+
* @return QueryBuilder
21+
**/
1622
public function scopeBarcode( $query, $reference )
1723
{
1824
return $query->where( 'barcode', $reference );
@@ -42,4 +48,4 @@ public function scopeWithProduct( Builder $query, $id )
4248
{
4349
return $query->where( 'product_id', $id );
4450
}
45-
}
51+
}

0 commit comments

Comments
 (0)