Skip to main content

matchBidActuals

Requires permission biddesk:cost_sheet:edit.

Links the purchase and receipt lines of a handed-over bid's sales order to the cost lines of its approved sheet. A source links only to a cost line of the same product with exactly that quantity left; a posted receipt replaces its purchase-order line; a link a person removed is never made again. Safe to run again. Refused with ACTUALS_NO_HANDOVER or ACTUALS_NO_SALES_ORDER. Requires Bid Desk, permission to edit cost sheets and to view costs.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation MatchBidActuals($bidId: ID!) {
matchBidActuals(bidId: $bidId) {
linked
sourceLineCount
unlinked
unmatchedCount
}
}

Variables:

{
"bidId": "id"
}

Response:

{
"data": {
"matchBidActuals": {
"linked": 0,
"sourceLineCount": 0,
"unlinked": 0,
"unmatchedCount": 0
}
}
}
matchBidActuals(
bidId: ID!
): BidActualsMatchResult!

Arguments​

matchBidActuals.bidId ● ID! non-null scalar​

The handed-over won bid.

Type​

BidActualsMatchResult object​

What one matching run did.