To use endpoint /api/build/$buildId/complete/
we need to provide output ids.
But there is no way from docs to obtain output ids some how.
It should be returned when we create it with endpoint /api/build/$buildId/create-output/
/api/build/
/api/build/$buildId/complete/
From step 2 we should obtain output id which later we can use in completing build request /api/build/$buildId/complete/
which required output id.
InvenTree-Version: 0.16.3
Django Version: 4.2.15
Commit Hash: b0b05e4
Commit Date: 2024-09-21
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-6.8.0-1019-aws-x86_64-with
Installer: DOC
Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.1.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.1.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}]
[23-Nov-2024 03:48:03 UTC] trying to create buildArray
(
[reference] => BO-4850
[part] => 62
[quantity] => 1
[sales_order] => 761
[create_child_builds] => 1
[take_from] => 1
[destination] => 1
[priority] => 0
[target_date] => 2024-11-23
)
[23-Nov-2024 03:48:04 UTC] ## create build response: 201 - stdClass Object
(
[pk] => 134
[url] => /build/134/
[title] =>
[barcode_hash] =>
[batch] =>
[creation_date] => 2024-11-23
[completed] => 0
[completion_date] =>
[destination] => 1
[parent] =>
[part] => 62
[part_name] => Some name
[project_code] =>
[project_code_detail] =>
[reference] => BO-4850
[sales_order] => 761
[quantity] => 1
[status] => 10
[status_text] => Pending
[target_date] => 2024-11-23
[take_from] => 1
[notes] =>
[link] =>
[issued_by] =>
[issued_by_detail] =>
[responsible] =>
[responsible_detail] =>
[priority] => 0
)
[23-Nov-2024 03:48:04 UTC] -- run api createBuildOutput
[23-Nov-2024 03:48:05 UTC] ## create build output response: 201 - stdClass Object
(
[quantity] => 1.00000
[batch_code] => BO-4850
[location] => 1
[auto_allocate] => 1
)
[23-Nov-2024 03:48:05 UTC] Build output result: stdClass Object
(
[quantity] => 1.00000
[batch_code] => BO-4850
[location] => 1
[auto_allocate] => 1
)
[23-Nov-2024 03:48:05 UTC] -- run api completeBuild
[23-Nov-2024 03:48:05 UTC] ## complete build response: 400 - stdClass Object
(
[outputs] => Array
(
[0] => stdClass Object
(
[output] => Array
(
[0] => Build output does not match the parent build
)
)
)
)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too