This repository was archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
update inventory-cli-reference.md incorrect info #8023
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7ef9fa1
update inventory-cli-reference.md incorrect info
irajneeshgupta 2927e38
Format error message as terminal text
meker12 b48328f
Remove trailing space
meker12 c1c6998
Remove duplicated content and fix syntax errors
meker12 3f096d1
Merge branch 'master' into patch-3
meker12 b75a95a
Merge branch 'master' into patch-3
meker12 f999567
Added examples and missing option
meker12 ba4b963
Apply suggestions from code review
meker12 92ac095
Updates based on review feedback
meker12 2c2022c
Merge branch 'master' into patch-3
meker12 e13816c
Merge branch 'master' into patch-3
meker12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -53,6 +53,7 @@ Command options: | |
|
||
- `-c`, `--complete-orders` - Returns inconsistencies for completed orders. Incorrect reservations may still be on hold for completed orders. | ||
- `-i`, `--incomplete-orders` - Returns inconsistencies for incomplete orders (partially shipped, unshipped). Incorrect reservations may hold too much or not enough salable quantity for the orders. | ||
- `-b`, `--bunchsize` - Defines how many orders to load at once. | ||
- `-r`, `--raw` - Raw output. | ||
|
||
Responses using `-r` return in `<ORDER_INCREMENT_ID>:<SKU>:<QUANTITY>:<STOCK-ID>` format: | ||
|
@@ -109,30 +110,44 @@ Following reservations were created: | |
- Product bike-123 was compensated by +2.000000 for stock 1 | ||
``` | ||
|
||
You can run both commands by piping `list-inconsistencies` and `create-compensations` to detect inconsistencies and immediately create compensations. Use the `-r` command option to generate and submit the raw data to `create-compensations`. | ||
### Detect inconsistencies and create compensations | ||
|
||
You can detect inconsistences and immediately create compensations by using a pipe to run both the `list-inconsistencies` and `create-compensations`. Use the `-r` command option to generate and submit the raw data to `create-compensations`. | ||
|
||
```bash | ||
bin/magento inventory:reservation:list-inconsistencies -r | bin/magento inventory:reservation:create-compensations | ||
``` | ||
|
||
Example response: | ||
|
||
```terminal | ||
```bash | ||
bin/magento inventory:reservation:list-inconsistencies -r | bin/magento inventory:reservation:create-compensations | ||
``` | ||
|
||
```terminal | ||
Following reservations were created: | ||
- Product bike-123 was compensated by +2.000000 for stock 1 | ||
- Product bikehat-456 was compensated by +1.000000 for stock 1 | ||
``` | ||
|
||
After updates complete, run the list command to verify: | ||
|
||
```terminal | ||
```bash | ||
bin/magento inventory:reservation:list-inconsistencies -r | ||
|
||
No order inconsistencies were found. | ||
``` | ||
|
||
You can also pipe the commands to detect inconsistencies and create compensations for only incomplete (`-i`) or complete (`-c`) orders. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The line "No order inconsistencies were found." above is output. Separate the output from the input, as you did for the previous example. |
||
|
||
```bash | ||
bin/magento inventory:reservation:list-inconsistencies -r -i | bin/magento inventory:reservation:create-compensations | ||
``` | ||
|
||
```bash | ||
bin/magento inventory:reservation:list-inconsistencies -r -c | bin/magento inventory:reservation:create-compensations | ||
``` | ||
|
||
## Import geocodes | ||
|
||
{{site.data.var.im}} provides the [Distance Priority](https://docs.magento.com/m2/ce/user_guide/catalog/inventory-configure-distance-priority.html) algorithm, which helps determine the best option for shipping a full or partial order. The algorithm uses GPS information or geocodes to calculate the distance between the source (a warehouse or other physical location) of each item in an order and the shipping address. Based on those results, the algorithm recommends which source should be used to ship out each item in the order. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.