Page 1 of 1

Shipment Apportion Method  Topic is solved

PostPosted: Wed Feb 27, 2019 11:45 am
by perry
Hi

Jiwa 7.2

We have a customisation request to apportion a cost only to selected lines. e.g. apportion this cost to this line if item's property = X

Only thing I can find is to basically do our own apportion by cancelling ImportCost.ApportionStart event.
Can you please advise if there is way to not write our own apportion code? It will be ideal if we could modify list of shipment lines those are used by standard apportion method.

Re: Shipment Apportion Method

PostPosted: Tue Mar 26, 2019 1:26 pm
by Mike.Sheen
perry wrote:We have a customisation request to apportion a cost only to selected lines. e.g. apportion this cost to this line if item's property = X

Only thing I can find is to basically do our own apportion by cancelling ImportCost.ApportionStart event.
Can you please advise if there is way to not write our own apportion code? It will be ideal if we could modify list of shipment lines those are used by standard apportion method.


No, there is no way currently to selectively include / exclude shipment lines for apportioning costs based on a property value.

As you suspected you'll have to write your own apportioning logic.

I've added improvement DEV-7357 to allow a predicate function be provided somewhere to allow you to be selective about which shipment lines are considered when apportioning.

Re: Shipment Apportion Method

PostPosted: Tue Mar 26, 2019 1:33 pm
by perry
Thank Mike