Why the sales invoice sometimes insert the valuation rate instead of selling rate

what is the source of the problem:
when i make a sales invoice and insert the items sometimes the system inserts the valuation rate in the invoice instead of the selling rate and that causes a huge problem in my accounting list.

P.S when i check the item in the command “edit” it reveals in the ‘discount and merge’ bar that the item is making an automatic discount?
why is that?

I know this is an old post, but it has no replies. I have to say that this is very disconcerting.

We have similar issues where sometimes, and that is the most worrying part - Somtimes

  1. No price gets inserted at at all
  2. No VAT from the item gets inserted
  3. No Customs Tariff Code gets inserted.

This causes chaos with our invoices. Trying to fix the issues is a never ending loop. We have yet to find a solution to it.

My worry is that the way the system is built is faulty. What other reason would something sometimes work and sometimes not? Race conditions on the JavaScript? Some weird cache issue?