-
-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Stock Adjustment API as a documented endpoint #4637
Comments
Should probably consider backporting any change to 0.8.x since 0.9.x is not officially released yet. |
So I was able to test this, but unfortunately there's a bug that's going to prevent this from working for the time being. The error message
And the Stock Adjustment API code with the bug // FIXME Forgot there was already a command object for this
stockAdjustments.each { StockAdjustment stockAdjustment ->
AdjustStockCommand adjustStockCommand = new AdjustStockCommand()
adjustStockCommand.inventoryItem = stockAdjustment.inventoryItem
> adjustStockCommand.quantity = stockAdjustment.quantityAdjusted
adjustStockCommand.comment = stockAdjustment.comments
adjustStockCommand.location = location
adjustStockCommand.binLocation = stockAdjustment.binLocation
inventoryService.adjustStock(adjustStockCommand)
} Thankfully this should be an easy fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://community.openboxes.com/t/adjustmenttransaction/959/2
Possible URLs
The text was updated successfully, but these errors were encountered: