BeyondERP.Newsletter
Menu

Setup step on the Correct purchase order lines manually page · Procurement and sourcing

Correct inconsistent purchase order lines

Repair the status and remainders of a purchase order line so the order can be invoiced, finalized or closed.

See how to set it up Back to Procurement and sourcing

Used by
System administrator
Business process
Manage open purchases
Menu item
PurchLineManualCorrection
Main table
PurchLine
Data entity
PurchPurchaseOrderLineV2Entity
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Recalculate an invoice remainder and post the invoice”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA correction page where you fix purchase order lines whose status or deliver and invoice remainders don't match their inventory transactions, by recalculating them or editing the remainders directly.
What you do hereUse it when a purchase order can't be invoiced, finalized or closed because of inconsistent line data. It writes straight to the line, so only people who repair purchase order data should have it.
ExampleFor example, invoicing purchase order PO-003051 for vendor BEAT-000123 stops with the message that the quantity can't be invoiced because inventory transactions with a status of Received are insufficient. The administrator opens line 2 here, sees an invoice remainder of 25.00 against 20.00 received, recalculates the invoice remainder, and the invoice posts.
Correct purchase order lines manually page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

When to run it

When to run itWhen a purchase order line shows wrong remainders or status, for example the order can't be invoiced or finalized because of inconsistent data.
How oftenOn demand, only for purchase orders with data discrepancies.
What the output showsThe selected purchase order line with recalculated or corrected status and remainder quantities, and the header status updated to match.

Source: Microsoft Learn

Setup steps on this page

Correct inconsistent purchase order lines

Repair the status and remainders of a purchase order line so the order can be invoiced, finalized or closed.

Steps from Microsoft

  1. Go to Procurement and sourcing > Periodic tasks > Clean up > Correct purchase order lines manually.
  2. In the Purchase order field, select the purchase order that can't be invoiced, finalized or canceled.
  3. In the Purchase order lines section, select the line with the discrepancy and compare it with the Inventory transactions section.
  4. On the Action Pane, select Recalculate, then Recalculate deliver remainder, Recalculate invoice remainder or Recalculate status. The remainder recalculations work only for stocked items, not for non-stocked or catch-weight items.
  5. If the remainders are still wrong, edit Deliver remainder, Inventory deliver remainder, Invoice remainder or Inventory invoice remainder directly.
  6. Return to the purchase order and retry the step that failed, such as invoicing or finalizing.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExampleTable column
Purchase orderThe purchase order to correct.Microsoft Learn
Inventory transactionsA section that shows the inventory transactions for the selected line, so you can spot inconsistencies.Microsoft Learn
Deliver remainderThe quantity still to be delivered on the line. Edit it directly only if Recalculate deliver remainder doesn't fix it.Microsoft Learn 20.00RemainPurchPhysical
Invoice remainderThe quantity still to be invoiced on the line. Edit it directly only if Recalculate invoice remainder doesn't fix it.Microsoft Learn 20.00
Inventory deliver remainderA remainder field you can edit directly when the remainders are still inconsistent after recalculation.Microsoft Learn 20.00
Inventory invoice remainderA remainder field you can edit directly when the remainders are still inconsistent after recalculation.Microsoft Learn 20.00

Common errors and fixes

MessageWhat to do
The quantity cannot be invoiced because inventory transactions with a status of Received are insufficient.Open the order here, compare the line with its inventory transactions, and recalculate the invoice remainder or status. Microsoft Learn
Stopped (error): Transaction has already been posted.Recalculate the line status and remainders, then post the invoice again. Microsoft Learn
Insufficient inventory transactions with status "Purchased" for item %0 quantity %1.Compare the line with its inventory transactions here and recalculate the remainders or status before you post again. Microsoft Learn

Test checklist

  1. Note the invoice remainder of line 2 of PO-003051 (25.00) and the received quantity in Inventory transactions (20.00).
  2. Select Recalculate > Recalculate invoice remainder.
  3. Check that the invoice remainder now shows 20.00.
  4. Post the vendor invoice for PO-003051 and check it posts without the error.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Correct inconsistent purchase order linesUse the Recalculate actions first and edit the remainder fields directly only if the line still doesn't match its inventory transactions.Recalculation updates line and header status from the existing logic; a hand-typed remainder is only as right as the person who types it.Who may correct purchase order lines manually?Using Recalculate deliver remainder or Recalculate invoice remainder on non-stocked or catch-weight items, which these functions don't support.Test: Recalculate an invoice remainder and post the invoice

Feature management and licence

Licence or add-inOn the live system no security role includes this page. An administrator must grant the Correct purchase order lines manually duty or privilege on purpose, and only to the people who repair purchase order data.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: each legal entity has its own records. Microsoft data model
Can it be undoneReversible with effort: No undo action; recalculate again or edit the fields back.
If you change it laterChanges the status and deliver or invoice remainders of the selected purchase order line, and the order header status is updated to match the new line status. Microsoft Learn
Technical architect

6Technical

Menu itemPurchLineManualCorrection Checked in Dynamics 365
FormPurchLineManualCorrection Checked in Dynamics 365
TablePurchLineShown as “Purchase order lines” in Record infoKey field: PurchId, LineNumberChecked in Dynamics 365
Data entitiesPurchPurchaseOrderLineV2EntityPurchase order lines V2 Microsoft data model
Who can open it

1 security role.

No security role holds the privileges that grant this page, so only the System administrator role, which is not limited by security, can open it. To give it to others, add one of these privileges to a role.

  • PrivilegeCorrect purchase order lines manuallyPurchLineManualCorrection
  • RoleSystem administrator-SYSADMIN-
Checked against Microsoft's standard security setup and a working Dynamics 365 system (version 10.0.49): no role holds these privileges
Actions on the pagePurchase order: Maintain, Change management, Product receiptOptions: Page options, Edit, ShareChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=PurchLineManualCorrection
Integrate withPurchPurchaseOrderLineV2Entity data entity Microsoft data model
Data migrationPurchPurchaseOrderLineV2Entity Loads open purchase order lines. This page only repairs lines after they exist.Load order: Load vendors and released products first, then purchase order headers, then purchase order lines with Purchase order lines V2 before cut-over. Use this page only afterwards, to repair single lines whose remainders don't match their inventory transactions.Load first: Vendors, Released products, Purchase order headersMicrosoft data model
Table definitionPurchLine columns and relations Microsoft data model
Everyone

8Sources