Fix "sales_order" filter for buildId (#8024)

This commit is contained in:
Oliver 2024-08-29 08:15:14 +10:00 committed by GitHub
parent c096f2f43a
commit 99e822213d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -309,10 +309,7 @@ export default function BuildDetail() {
label: t`Child Build Orders`, label: t`Child Build Orders`,
icon: <IconSitemap />, icon: <IconSitemap />,
content: build.pk ? ( content: build.pk ? (
<BuildOrderTable <BuildOrderTable parentBuildId={build.pk} />
parentBuildId={build.pk}
salesOrderId={build.sales_order}
/>
) : ( ) : (
<Skeleton /> <Skeleton />
) )

View File

@ -194,6 +194,7 @@ export function BuildOrderTable({
params: { params: {
part: partId, part: partId,
ancestor: parentBuildId, ancestor: parentBuildId,
sales_order: salesOrderId,
part_detail: true part_detail: true
}, },
tableActions: tableActions, tableActions: tableActions,