-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
208 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Limited supply boxes | ||
==================== | ||
|
||
In standard/basic use, BoxPacker will assume you have an adequate enough supply of each box type on hand to cover all | ||
eventualities i.e. your warehouse will be very well stocked and the concept of "running low" is not applicable. | ||
|
||
However, if you only have limited quantities of boxes available and you have accurate stock control information, you can | ||
feed this information into BoxPacker which will then take it into account so that it won't suggest a packing which would | ||
take you into negative stock. | ||
|
||
To do this, have your box objects implement the ``BoxPacker\LimitedSupplyBox`` interface which has a single additional method | ||
over the standard ``BoxPacker\Box`` namely ``getQuantityAvailable()``. The library will automatically detect this and | ||
use the information accordingly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.. _positional_information: | ||
|
||
Positional information | ||
====================== | ||
|
||
It is possible to see the precise positional and dimensional information of each item as packed. This is exposed as x,y,z | ||
co-ordinates from origin, alongside width/length/depth in the packed orientation. :: | ||
|
||
z y | ||
| / | ||
| / | ||
| / | ||
|/ | ||
0------x | ||
|
||
Example: | ||
|
||
.. code-block:: php | ||
<?php | ||
// assuming packing already took place | ||
foreach ($packedBoxes as $packedBox) { | ||
$packedItems = $packedBox->getItems(); | ||
foreach ($packedItems as $packedItem) { // $packedItem->getItem() is your own item object | ||
echo $packedItem->getItem()->getDescription() . ' was packed at co-ordinate ' ; | ||
echo '(' . $packedItem->getX() . ', ' . $packedItem->getY() . ', ' . $packedItem->getZ() . ') with '; | ||
echo 'l' . $packedItem->getLength() . ', w' . $packedItem->getWidth() . ', d' . $packedItem->getDepth(); | ||
echo PHP_EOL; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _sortation: | ||
|
||
Sortation | ||
========= | ||
|
||
|
Oops, something went wrong.