Table of Contents

R39788 WarehouseOrder - Void Related Warehouse Counts on Document Voiding

Name Value
Code R39788
Entity Logistics.Wms.WarehouseOrders
Name VoidRelatedWarehouseCountsOnDocumentVoiding
Attribute WarehouseCounts.Void, WarehouseCounts.VoidReason, WarehouseCounts.VoidTime, WarehouseCounts.VoidUser, WarehouseReconciliationDetails.WarehouseOrder, WarehouseReconciliationDetails.ReviewStatus
Layer Back-End
Events Voiding
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action For each WarehouseCount related to the current document:
- Set Void = True
- Set VoidTime = Now
- Set VoidUser = Document.VoidUser
- Set VoidReason = Document.VoidReason

For each WarehouseReconciliationDetail related to the current document:
- Set WarehouseOrder = Null
- If ReviewStatus <> Cancelled:
  - Set ReviewStatus = Recount
- Else:
  - Keep ReviewStatus = Cancelled
Description When a Warehouse Order is voided, the rule must automatically find all Warehouse Counts created for the current document and void them.
For each of these Warehouse Counts, the rule must populate the voiding fields as follows: Void = True, VoidTime = Now, VoidUser = Document.VoidUser, and VoidReason = Document.VoidReason.

The rule must also find all Warehouse Reconciliation Details related to the current Warehouse Order and remove the link to it by setting WarehouseOrder = Null.
For each affected Warehouse Reconciliation Detail, if ReviewStatus is Cancelled, it must remain Cancelled; otherwise, ReviewStatus must be set to Recount.
Message -
Introduced In Version Introduced: v.26.2
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.