Skip to content

Commit

Permalink
Bumped version, updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Mar 23, 2015
1 parent 769e955 commit 82fc05d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,23 @@ Now we can add stock to our inventory by supplying a number (int or string), and

$item->createStockOnLocation(20, $location);

/*
* Or instantiate a new stock. This will automatically
* assign the location ID and inventory ID to the new stock
* record so we don't have to.
*/

$stock = $item->newStockOnLocation($location);
$stock->quantity = 20;
$stock->cost = '5.20';
$stock->reason = 'I bought some';
$stock->save();

/*
* Or we can create a stock manually.
* If you want to set the cost and reason for the creation of the stock, be sure to do so
*/

$stock = new InventoryStock;
$stock->inventory_id = $item->id;
$stock->location_id = $location->id;
Expand Down
2 changes: 1 addition & 1 deletion src/Stevebauman/Inventory/InventoryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class InventoryServiceProvider extends ServiceProvider
*
* @var string
*/
const VERSION = '1.4.0';
const VERSION = '1.4.1';

/**
* Stores the package configuration separator
Expand Down

0 comments on commit 82fc05d

Please sign in to comment.