Why does the COGS doesnt cakculate (=zero) when i make Income statement

This is closely related to this topic:

Which is already an idea for improvement.

For now, you can create temporary Journal Entries to correct for the timing differences.