Associated Document Lines

Release: Associated Document Lines – 28.0.9803.53211

Description

This release lets associated document lines follow the quantity actually shipped or received when posting from inventory documents or warehouse documents, instead of failing or staying at the originally planned quantity. This matters for Food & Beverage scenarios where the posted quantity differs from the ordered quantity (for example catch weight items). A new per-associated-line setting controls which lines are adjusted. Updating associated lines on purchase and sales documents is now skipped when the document is not open.

User Stories

Title Description Setup Instructions Impact on previous version
24582 - Handle quantity variation on associated document lines when posting receipt and shipment from inventory / warehouse Posting a purchase or sales document from an inventory or warehouse document no longer raises the error “Status must be equal to ‘Open’” when associated lines are updated, because associated-line updates are skipped when the document header is not Open. A new field Adjust on Shipment/Receipt on the associated line (shown on the purchase, sales and service associated line pages, captioned “Adjust on Receipt” or “Adjust on Shipment”) lets you choose whether the associated line quantity is increased after posting to match the posted quantity. The associated line quantity is only ever increased, never reduced. It cannot be set to Yes for inventory items. Set Adjust on Shipment/Receipt to Yes on the relevant associated lines (table 8120400, field 500, enum 8120411; pages 8120401, 8120400, 8120402). Default is No. Adjustment logic: codeunits 8120405, 8120404; posting subscribers: codeunits 8120408, 8120407. Platform, application and runtime moved from 25.0 / 14.0 to 28.0 / 17.0 (app.json). AllowInCustomizations values changed on table 8120400 and on the Purchase, Sales and Service line extensions (see Notes). The old events OnBeforeInsertAssociated, OnAfterInsertAssociated, OnBeforeUpdateAssociated and OnAfterUpdateAssociated are no longer raised (see Events).

Bugs

No bugs were fixed in this release.

Events

Status Type Object Name Event Name Description
Removed IntegrationEvent isaADL_PurchaseADL OnBeforeInsertAssociated The call is now inside #if not CLEAN25, and CLEAN25 is defined in app.json, so the event is no longer raised. Use OnBeforeInsertAssociated2.
Removed IntegrationEvent isaADL_PurchaseADL OnAfterInsertAssociated No longer raised (#if not CLEAN25). Use OnAfterInsertAssociated2.
Removed IntegrationEvent isaADL_PurchaseADL OnBeforeUpdateAssociated No longer raised (#if not CLEAN25). Use OnBeforeUpdateAssociated2.
Removed IntegrationEvent isaADL_PurchaseADL OnAfterUpdateAssociated No longer raised (#if not CLEAN25). Use OnAfterUpdateAssociated2.
Removed IntegrationEvent isaADL_SalesADL OnBeforeInsertAssociated No longer raised (#if not CLEAN25). Use OnBeforeInsertAssociated2.
Removed IntegrationEvent isaADL_SalesADL OnAfterInsertAssociated No longer raised (#if not CLEAN25). Use OnAfterInsertAssociated2.
Removed IntegrationEvent isaADL_SalesADL OnBeforeUpdateAssociated No longer raised (#if not CLEAN25). Use OnBeforeUpdateAssociated2.
Removed IntegrationEvent isaADL_SalesADL OnAfterUpdateAssociated No longer raised (#if not CLEAN25). Use OnAfterUpdateAssociated2.
Removed IntegrationEvent isaADL_ServiceADL OnBeforeInsertAssociated No longer raised (#if not CLEAN25). Use OnBeforeInsertAssociated2.
Removed IntegrationEvent isaADL_ServiceADL OnAfterInsertAssociated No longer raised (#if not CLEAN25). Use OnAfterInsertAssociated2.
Removed IntegrationEvent isaADL_ServiceADL OnBeforeUpdateAssociated No longer raised (#if not CLEAN25). Use OnBeforeUpdateAssociated2.
Removed IntegrationEvent isaADL_ServiceADL OnAfterUpdateAssociated No longer raised (#if not CLEAN25). Use OnAfterUpdateAssociated2.
Previous