Allow passing COGS in Invoice AIP

Goal: Allow passing COGS in Invoice API

Use Case: Enable the Invoice API to accept explicit Cost of Goods Sold (COGS) values directly upon invoice line item creation. While Striven calculates inventory values using First-In, First-Out (FIFO) by default, organizations that calculate inventory valuation using Average Cost in external systems need to pass accurate COGS values through API integrations. Passing COGS directly ensures external accounting systems match Striven's posted general ledger entries without relying on post-sync inventory adjustment workarounds.

Frequency: Continuous (for every API-generated invoice transaction)

Attempted Solutions: Executing secondary API Inventory Adjustments to manually overwrite and correct the inventory cost value after the invoice is created.

Deep Dive & Context:

Original Description: We use average cost for inventory values. Because Striven is doing FIFO, this enables us to pass the COGS directly. Our prior iteration enabled us to directly pass COGS directly through invoice creations.

Previous System/Software: Prior system integration allowed passing COGS directly through the invoice API payload.