item charge GL setup

in our company purchases is debited and direct cost applied account is credited.

packing and forwarding is considered as item charge, but it is debited to :P& L and no corresponding effect is given to direct cost applied account.

How can it also be added to inventory account when it has been taken to p&L.

When the FG is consumed, will the COGS include the freight charges?

kindly clarify…