Landed Costs
Release: Landed Costs - 26.0.9825.61403
Description
This release lets unposted landed cost assignments carry the Dimension Set ID of their source document line, and inherit the currency code and exchange rate of their originating landed cost. Local-currency (LCY) unit cost and amount to assign are calculated on each assignment, so landed costs (freight, customs, and similar charges) can be used in company-currency cost and profitability reporting. The same currency and LCY information is also exposed on posted landed cost assignments and in the related API pages.
User Stories
| Title | Description | Setup Instructions | Impact on previous version |
|---|---|---|---|
| 24738 - Add Dimension Set ID for Landed Cost Assignment | Landed cost assignments now store a Dimension Set ID (field 18, not editable) taken from the source document line. It is set when Landed Cost Entry No. or Dimension Set ID is validated. It is also updated when the related purchase line or sales line is modified. A Dimensions action on the assignments page opens the dimension set entries. The API page briLCO_APIV1 LC Assignment now returns the stored Dimension Set ID, and falls back to the dimension set of the source document line when the stored value is 0. |
No setup required. Impacted objects: table briLCO_LandedCostAssignment (71925580), codeunit briLCO_LandedCostAssigmtMgt (71925591), page briLCO_Landed Cost Assignments (71925583), page briLCO_APIV1 LC Assignment (71925607). |
Additive schema change (new field 18). No data upgrade is included in the reviewed changes. Existing assignments keep Dimension Set ID = 0 until they are modified; the API page falls back to the source line dimensions for them. The work item says a manual change of Dimension Set ID triggers re-sync; the field is Editable = false, so this can only happen through code. The explicit call to GetDimensionSetIDFromSourceDocumentLine() that the work item describes for InsertLandedCostAssignment() is not visible in the diff, so the new-assignment sync could not be verified from the diff alone. |
| 24755 - Apply landed cost currency and exchange rate to unposted assignments | Unposted landed cost assignments now inherit Currency Code and Currency Rate from the originating landed cost. Unit Cost (LCY) and Amount to Assign (LCY) are calculated as the original value divided by the rate; a rate of 0 is treated as 1. When a landed cost is converted through ConvertAmountToLocalCurrency, the currency and rate of its unposted assignments are updated and the LCY values recalculated. The rate is now the exchange rate at the landed cost date (ExchangeRate) instead of being derived from Amount / Amount (LCY). The new fields are hidden by default on the assignments page and are exposed on the API page as currencyCode, currencyRate, unitCostLCY and amountToAssignLCY. |
No setup required. Impacted objects: table briLCO_LandedCostAssignment (71925580, fields 14-17), codeunit briLCO_LandedCostAssigmtMgt (71925591), codeunit briLCO_LandedCostsManagement (71925579), tables briLCO_Landed Cost (71925578) and briLCO_Posted Landed Cost (71925581), page briLCO_Landed Cost Assignments (71925583), page briLCO_APIV1 LC Assignment (71925607). |
Currency Rate on briLCO_Landed Cost and briLCO_Posted Landed Cost now has up to 15 decimals (was 5) and is calculated differently. Rates on records created before this release are not recalculated. No data upgrade is included, so existing unposted assignments keep empty currency and LCY values until their landed cost is converted again or the assignment is updated. ConvertAmountToLocalCurrency no longer exits early when the amount is 0; it now sets the LCY amount and rate to 0 and still updates the assignments. The work item scopes the change to unposted assignments only, but this release also adds currency, rate and LCY fields to posted assignments: table briLCO_PostedLCAssignment (71925582, fields 18-23), a new Open Amount (LCY) FlowField (field 41) on briLCO_Posted Landed Cost, and related pages and API pages (71925585, 71925588, 71925584, 71925605, 71925604). A SumIndexFields change on a key of table 71925582 and the new FlowField have performance and upgrade implications. The new LCY values on posted assignments are only set when records are inserted or validated, so existing posted assignments have no LCY values. A test for the AC05 scenario is not part of the reviewed diff, and the work item says it was not executed. |
Bugs
No bugs were fixed in this release.
Events
No event added or updated in this release.