Update InventTrans.CostAmountPosted value in ax 2012 r3 using X++

I’m adding misc charges for Inventory Transfer Order lines. While receiving I have to add the Misc. Charges ( X amount ) on InventTrans table on CostAmountPosted.

For example.

Transferring 1 ‘ItemA’ from A to B site with Misc Charges of 10 and Item price is 100/Pc.

By default system creates only 100 cost amount in InventTrans table and I have to add the 10 charges while receiving the Transfer order.

So it should be 110 on CostAmountPosted field on InventTrans table

Can u suggest me any X++ methods to update it easily.