Skip to content

Commit

Permalink
Updates README.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk committed Oct 17, 2019
1 parent 575de74 commit 9842d47
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,24 @@ $order->lines->first()->replace();

This will delete the reserved product from the inventory and replaces it with another item (if available).

### Stock

To query stock quantities you may use the `\Just\Warehouse\Facades\Stock` facade:

```php
Stock::available();
Stock::backorder();
Stock::reserved();
```

For a specific GTIN:

```php
Stock::gtin('1300000000000')->available();
Stock::gtin('1300000000000')->backorder();
Stock::gtin('1300000000000')->reserved();
```

### Events

This packages fires several events:
Expand Down

0 comments on commit 9842d47

Please sign in to comment.