Purchase Recipes reflect on Cost of good sold

After submitting Sales/Tax Invoices, some or most of the Purchase Receipts reflect the Cost of good sold account

this one of the Purchase Receipts,

This effect take place only after entering the Sales/Tax invoices

I did a different iterations each with new items, purchase rescripts and Tax/Sales invoices, trying the following conditions:

  1. allow/denied negative stock value
  2. decreasing the presession format
  3. tried it on version 14 and version 15

Available options:
Periodical Inventory

Things could help:
What are the values that affects the Cost of good sold?