Shipment Apportion Method  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Shipment Apportion Method  Topic is solved

Postby perry » Wed Feb 27, 2019 11:45 am

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.
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: Shipment Apportion Method

Postby Mike.Sheen » Tue Mar 26, 2019 1:26 pm

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Shipment Apportion Method

Postby perry » Tue Mar 26, 2019 1:33 pm

Thank Mike
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 3 guests