mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-17 04:35:26 +00:00
Sales order barcode (#466)
* Add barcode handler for allocating stock to sales order * Refactor sales order allocation fields * Improve barcode handling * Handle barcode scan from sales order line detail view * Remove debug statements
This commit is contained in:
@ -132,6 +132,29 @@ class InvenTreeSOLineItem extends InvenTreeOrderLine {
|
||||
};
|
||||
}
|
||||
|
||||
Map<String, Map<String, dynamic>> allocateFormFields() {
|
||||
|
||||
return {
|
||||
"line_item": {
|
||||
"parent": "items",
|
||||
"nested": true,
|
||||
"hidden": true,
|
||||
},
|
||||
"stock_item": {
|
||||
"parent": "items",
|
||||
"nested": true,
|
||||
"filters": {},
|
||||
},
|
||||
"quantity": {
|
||||
"parent": "items",
|
||||
"nested": true,
|
||||
},
|
||||
"shipment": {
|
||||
"filters": {}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@override
|
||||
Map<String, String> defaultGetFilters() {
|
||||
return {
|
||||
|
Reference in New Issue
Block a user