mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 02:05:29 +00:00
Refactor stock adjustment functions
- Provide compatibility with "modern" and "legacy" API versions
This commit is contained in:
@ -267,7 +267,7 @@ class StockItemScanIntoLocationHandler extends BarcodeHandler {
|
||||
}
|
||||
|
||||
// Transfer stock to specified location
|
||||
final result = await item.transferStock(location);
|
||||
final result = await item.transferStock(context, location);
|
||||
|
||||
if (result) {
|
||||
|
||||
@ -339,7 +339,7 @@ class StockLocationScanInItemsHandler extends BarcodeHandler {
|
||||
success: true
|
||||
);
|
||||
} else {
|
||||
final result = await item.transferStock(location.pk);
|
||||
final result = await item.transferStock(context, location.pk);
|
||||
|
||||
if (result) {
|
||||
|
||||
|
Reference in New Issue
Block a user