sales invoice posting


I have created one new field called unit cost in sales line table. Here when i go for the posting of a salesorder i want to have this field value transferred to custinvoicetrans table,which is nothing but AX standard functionality. But i couldn’t able to do this. Can any of you please help me with this.

Thanks for your help!

you need to add code in tables\custInvoiceTrans\initFromSalesLine

Thanks for your reply Kranthi. I tried this earlier.,but it’s not working for me. Do you have any other suggestions? Thanks.

It will be running in IL, generate FULL CIL if you have not done it before else generate incremental CIL

You’re awesome. Thank you so much Kranthi. It’s working for me after running the Full CIL.