C/AL code for posting item charges on the fly??

Hi experts,

I have freight charges field in sales line and in Sales Order subform I have added this field, when ever I am posting the sales order by selecting the item in type field, the freight charges should come as item charges without selecting the second line as type charge(Item),and it should added on the fly

Can any one please explain me the code to achieve this.

Thanks in advance

To be honest I didnot understand you 100% :), Can you please add some screenshot so that we can understand the question better.

There are many add-on solutions for handling this type of functionality. Just try to search Google for “Dynamics NAV freight charges add-on”. So may I suggest that you check out some of these solution.