2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Adds API endpoint to allocate stock items against a SalesOrder

- SalesOrderAllocations are no longer created manually
- API endpoint performs data validation
- Multiple line items can be allocated at once
- Adds unit testing for new API endpoint
This commit is contained in:
Oliver
2021-10-26 23:51:36 +11:00
parent dd5eeb7c61
commit bff9f0828a
6 changed files with 437 additions and 113 deletions

View File

@ -69,6 +69,7 @@
name: 'Widget'
description: 'A watchamacallit'
category: 7
salable: true
assembly: true
trackable: true
tree_id: 0
@ -83,6 +84,7 @@
name: 'Orphan'
description: 'A part without a category'
category: null
salable: true
tree_id: 0
level: 0
lft: 0
@ -95,6 +97,7 @@
name: 'Bob'
description: 'Can we build it?'
assembly: true
salable: true
purchaseable: false
category: 7
active: False
@ -113,6 +116,7 @@
description: 'A chair'
is_template: True
trackable: true
salable: true
category: 7
tree_id: 1
level: 0