Problem with the sales invoice; the cost of the sales invoice is negative

I have a problem with the sales invoice; the cost of the sales invoice is negative for the quantity, resulting in a very high cost for the negative sales value. (For marble, the quantity for sale is always greater than the quantity in stock.)

[Moderated removed formatting as per @Ealfardan request]

Negative inventory is valued at an excessively high and illogical value.

[Moderated removed formatting as per @Ealfardan request]

Hello @TITANIUM_GROUP,

Kindly remove the preformatted text from your post because this makes them hard to read

Thanks to @eko for fixing the display issues.

@TITANIUM_GROUP, what version of Manager are you using?

Also, please share some screenshots of the transaction and the cost values you are getting.