disable unit price excluding VAT and line amount excluding vat

Hi guys we are on BC i would like to make inactive unit price excluding VAT and line amount excluding vat when raising an order only make the item line and quantity active i cant see this fields in the sales sub form nor in the sales line.

Exactly what is it that you’re trying to do?

That it should only calculate VAT, based on a field telling you if the line is active or not?

Or that it should hide it or?

And WHY? Is it to save time calculating or?

If you want to prevent it from calculating on individual lines then what you could do is to change the VAT Prod. Posting Group from a group with or without VAT. So in your example the validate code on your Activated field would be set or unset the VAT prod. posting group code of the line.

And remember that this requires more code than this. Like you would need to make sure that codeunit 80 is not posting any inactive lines.