Manual PO Line Closure

By | December 31, 2025

In Sage X3, when a Purchase Receipt is created against a Purchase Order and the received quantity is equal to or greater than the ordered quantity, the system automatically updates the Purchase Order status from “Pending” to “Closed.”

However, one of our clients has requested an enhancement that allows Purchase Orders to be closed manually, regardless of the quantity received. This functionality should apply at the line level, enabling users to update the status of individual lines to “Closed” based solely on a user confirmation.

To support this, the client requires a simple “Yes or No” confirmation pop-up during Purchase Receipt creation, allowing them to close any selected line even if the received quantity is less than the ordered quantity.

For example, in Purchase Order BLR102512POH0334, two products have been added on separate lines with quantities of 10 and 100, both of which currently show a status of “Pending.”

New Stuff: Sales Order Update Routine Module functionality overview

[Fig 1. Quantity entered in Purchase Order]
[Fig 1. Quantity entered in Purchase Order]

Next, we created a Purchase Receipt against the same Purchase Order with received quantities of 8 and 80, respectively, as shown in the screenshot below.

In this scenario, the quantity received for both lines is less than the quantity specified in the Purchase Order.

Quantity of purchase receipt < Quantity of Purchase Order

Under the standard Sage X3 behaviour, the Purchase Order lines would remain in a “Pending” status; however, with the proposed enhancement, the system should allow the user to manually close each line through the confirmation pop-up during receipt creation, even when the received quantity is lower than the ordered quantity.

[Fig 2. Quantity entered in Purchase Receipt]
[Fig 2. Quantity entered in Purchase Receipt]

Logically, the Purchase Order lines should remain open because the full ordered quantities have not yet been received.

However, based on the client’s requirement, we have introduced a confirmation pop-up that enables users to manually close the lines, as shown in the screenshot below. This pop-up appears during Purchase Receipt creation and allows users to choose whether they want to close each line regardless of the remaining pending quantity.

[Fig 3. Closing line confirmation pop-up]
[Fig 3. Closing line confirmation pop-up]

This confirmation pop-up is displayed for each line of the Purchase Order to capture the client’s line-wise decision on whether the line should be closed.

In this case, we selected “Yes” for both lines.

As a result, when reviewing the Purchase Order lines afterward, the “Closed” status for each line is updated to “Yes,” as shown in the screenshot below.

[Fig 4. Lines closed on Purchas Order]
[Fig 4. Lines closed on Purchas Order]

This means that, irrespective of the quantities, we have introduced functionality that allows Purchase Order lines to be closed manually. Whether the Purchase Receipt quantity is less than, greater than, or equal to the Purchase Order quantity, the system will now close the lines based on the user’s selection in the confirmation pop-up rather than relying on the standard automatic logic.

Since both lines were manually closed through the pop-up in this example, the overall status of the Purchase Order is updated to “Closed.”