Invent trans is not updating

Dear Experts,

I am using in AX 2012 R2

Consider that in sales line we have qty 15000.

Now i am updating Sales qty ans sales price in sales line table from my customized button in prodtable form.

Qty , sales price and net amount is updating properly but if we go to invent transactions for that sales order still showing old records.

Thanks,

Sreenu

Please suggest me on above question.

Thanks

Sreenu

That’s correct - changing values in SalesLine doesn’t automatically have any impact on InventTrans. That requires reservation or posting.

Thanks Martin for your quick reply.

For reservation and posting what we need to do.

Can you please suggest the process or piece of code to do the process.

Thanks,

Sreenu

Updating quantity on sales line should also update InventTrans. Look at salesLine.update() method.

What is your code to update the sales line quantity?