---
title: "Codeunit 7320 Whse. Undo Quantity"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7320-whse-undo-quantity/
type: codeunit
id: 7320
name: "Whse. Undo Quantity"
app: "Base Application"
namespace: Microsoft.Warehouse.History
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7320-whse-undo-quantity/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 7320 Whse. Undo Quantity

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7320-whse-undo-quantity/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Warehouse.History |
| Versions | 17-28 |
| Source file | Warehouse/History/WhseUndoQuantity.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InsertTempWhseJnlLine | (Record Item Journal Line, Integer, Integer, Code[20], Integer, Integer, var Record Warehouse Journal Line, var Integer) | - | public | 17-28 | - | - |
| PostTempWhseJnlLine | (var Record Warehouse Journal Line) | - | public | 17-28 | - | - |
| PostTempWhseJnlLineCache | (var Record Warehouse Journal Line, var Codeunit Whse. Jnl.-Register Line) | - | public | 17-28 | - | - |
| UndoPostedWhseRcptLine | (var Record Posted Whse. Receipt Line) | - | public | 17-28 | - | - |
| UndoPostedWhseShptLine | (var Record Posted Whse. Shipment Line) | - | public | 17-28 | - | - |
| UpdateRcptSourceDocLines | (var Record Posted Whse. Receipt Line) | - | public | 17-28 | - | - |
| UpdateShptSourceDocLines | (var Record Posted Whse. Shipment Line) | - | public | 17-28 | - | - |
| FindPostedWhseRcptLine | (var Record Posted Whse. Receipt Line, Integer, Code[20], Integer, Integer, Code[20], Integer) | Boolean | public | 17-28 | - | - |
| FindPostedWhseShptLine | (var Record Posted Whse. Shipment Line, Integer, Code[20], Integer, Integer, Code[20], Integer) | Boolean | public | 17-28 | - | - |
| InsertPostedWhseShptLine | (Record Posted Whse. Shipment Line) | - | public | 23-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterUndoPostedWhseRcptLine | (var Record Posted Whse. Receipt Line) | 17-28 | - | - |
| Integration event | OnAfterUndoPostedWhseShptLine | (var Record Posted Whse. Shipment Line) | 17-28 | - | - |
| Integration event | OnAfterUpdateWhseRequestRcpt | (var Record Posted Whse. Receipt Line) | 17-28 | - | - |
| Integration event | OnAfterUpdateWhseRequestShpt | (var Record Posted Whse. Shipment Line) | 17-28 | - | - |
| Integration event | OnBeforeOldPostedWhseRcptLineModify | (var Record Posted Whse. Receipt Line) | 17-28 | - | - |
| Integration event | OnBeforePostTempWhseJnlLine | (var Record Warehouse Journal Line) | 17-28 | - | - |
| Integration event | OnBeforePostedWhseRcptLineInsert | (var Record Posted Whse. Receipt Line, Record Posted Whse. Receipt Line) | 17-18 | - | - |
| Integration event | OnBeforePostedWhseShptLineInsert | (var Record Posted Whse. Shipment Line, Record Posted Whse. Shipment Line) | 17 | - | - |
| Integration event | OnBeforeTempWhseJnlLineInsert | (var Record Warehouse Journal Line, Record Warehouse Entry, Record Item Journal Line) | 17-28 | - | - |
| Integration event | OnBeforeUpdateWhseRequestShpt | (var Record Posted Whse. Shipment Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeWhseRcptLineModify | (var Record Warehouse Receipt Line, var Record Posted Whse. Receipt Line) | 17-28 | - | - |
| Integration event | OnBeforeWhseShptLineModify | (var Record Warehouse Shipment Line, var Record Posted Whse. Shipment Line) | 17-28 | - | - |
| Integration event | OnFindPostedWhseRcptLineOnAfterSetFilters | (var Record Posted Whse. Receipt Line) | 17-28 | - | - |
| Integration event | OnFindPostedWhseShptLineOnAfterSetFilters | (var Record Posted Whse. Shipment Line) | 17-28 | - | - |
| Integration event | OnAfterUpdateWhseRcptLine | (var Record Posted Whse. Receipt Line, var Record Warehouse Receipt Line) | 17-28 | - | - |
| Integration event | OnInsertTempWhseJnlLineOnAfterWhseEntrySetFilters | (Record Item Journal Line, Integer, Integer, Code[20], Integer, Integer, var Record Warehouse Entry) | 17-28 | - | - |
| Integration event | OnBeforeGetWhseShptLineSpacing | (Record Posted Whse. Shipment Line, var Record Posted Whse. Shipment Line, var Integer, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforePostedWhseShptLineInsert | (var Record Posted Whse. Shipment Line, Record Posted Whse. Shipment Line, Integer) | 18-28 | - | - |
| Integration event | OnInsertTempWhseJnlLineOnAfterTempWhseJnlLineInit | (var Record Item Journal Line, var Record Warehouse Entry, var Record Warehouse Journal Line) | 18-28 | - | - |
| Integration event | OnBeforeUpdateWhseRcptLine | (Record Posted Whse. Receipt Line, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeUpdateWhseShptLine | (Record Posted Whse. Shipment Line, var Boolean) | 18-28 | - | - |
| Integration event | OnAfterPostTempWhseJnlLineCache | (var Record Warehouse Journal Line) | 19-28 | - | - |
| Integration event | OnBeforeGetWhseRcptLineSpacing | (Record Posted Whse. Receipt Line, var Record Posted Whse. Receipt Line, var Integer, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforePostedWhseRcptLineInsert | (var Record Posted Whse. Receipt Line, Record Posted Whse. Receipt Line, Integer) | 19-28 | - | - |
| Integration event | OnPostTempWhseJnlLineCacheOnBeforeRegisterWhseJnlLine | (var Record Warehouse Journal Line) | 19-28 | - | - |
| Integration event | OnBeforeFindPostedWhseRcptLine | (var Record Posted Whse. Receipt Line, Integer, Code[20], Integer, Integer, Code[20], Integer, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeFindPostedWhseShptLine | (var Record Posted Whse. Shipment Line, Integer, Code[20], Integer, Integer, Code[20], Integer, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnAfterIsShipmentLine | (Integer, var Boolean) | 25-28 | - | - |
| Integration event | OnInsertTempWhseJnlLineOnBeforeCreateWhseJnlLine | (var Record Item Journal Line) | 27-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
