compute_trade_spend
Split a trade-spend payment to a customer (co-op advertising, MDF, slotting, listing allowance) under ASC 606-10-32-26 / 705-20-25-2. If the payment buys a DISTINCT good or service the customer actually provides (e.g. advertising with proof-of-performance), it's a purchase/expense UP TO that good's fair value; any EXCESS over fair value reduces revenue. Give the payment amount, whether it buys a distinct good/service, and that good's fair value — it returns the expense leg and the revenue-reduction leg. It refuses (asks) for the fair value rather than guess; if it buys nothing distinct, the whole payment reduces revenue (no split). Nothing posts; a principal signs the close.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_usd | Yes | The trade-spend payment to the customer. | |
| fair_value_usd | No | Fair value of that distinct good/service. Required to split; omit and it will ask. | |
| buys_distinct_good_or_service | No | True if the customer transfers a distinct good/service (e.g. advertising with proof-of-performance). False → the whole payment reduces revenue (no split). |