Gross spending by type (excluding credit notes)

Calculates gross spending by payment type, explicitly excluding credit notes and reimbursements. Provides a clean view of actual company cash outflows.

โ†“ Download skill (.md)
88/100ยท๐Ÿ“† MonthlyยทBeginnerControllerFinance Analyst
Spend analysisERP exportspendesk_analyze_spend

๐ŸŽฏ Skill purpose

Calculates gross spending by payment type, explicitly excluding credit notes and reimbursements. Provides a clean view of actual company cash outflows.

๐Ÿ“Š What it produces

Gross spending breakdown by type (cards, reimbursements, invoices) cleaned of credit notes.

โšก Benefit

Before

Credit notes distorted totals โ€” manual correction required in Excel for every report.

After

True gross spending by type, without distortion, ready for reporting.



# Instructions โ€” Gross spend by type (with creditNote exclusion)

## โš ๏ธ Critical rule

`spendesk_analyze_spend` includes `creditNote` by default. Their amount is **negative** โ€” they reduce `summary.totalAmount`.

On an observed demo account: `creditNote` accounted for **-6.5% of the total** (-EUR 58,950 out of EUR 910,699).
Same for `cardRefund`: negative amounts (-0.1%).

**For gross spend**: exclude `creditNote` and `cardRefund` via the `payableTypes` filter.
**For net spend**: include them (this is the default behavior).

## Step 1 โ€” Identify the company and period

Call `list_companies` to get the `companyId`. Define `fromDate` and `toDate` (YYYY-MM-DD, max 366 days).

## Step 2a โ€” GROSS spend (excluding credit notes)

Call `spendesk_analyze_spend` with:
```json
{
  "groupBy": ["payableType"],
  "fromDate": "...",
  "toDate": "...",
  "filters": {
    "payableTypes": ["invoicePurchase","mileageAllowance","perDiemAllowance",
                     "singleCardPurchase","physicalCardPurchase",
                     "multiUseCardPurchase","subscription","expenseClaim"]
  }
}
```
โ†’ `creditNote` and `cardRefund` excluded โ†’ `summary.totalAmount` = gross spend

## Step 2b โ€” NET spend (with credit notes)

Call `spendesk_analyze_spend` without the `payableTypes` filter.
โ†’ `summary.totalAmount` includes credit notes (net accounting value)

## Step 3 โ€” Compare and present

Present both totals:
- Gross spend: X EUR
- Credit notes and refunds: -Y EUR  
- Net spend: X - Y EUR

By type:
| Type | Amount | Share |
|------|---------|------|
| invoicePurchase | ... | 93.1% |
| subscription | ... | 9.7% |
| ... | | |
| creditNote | -... | -6.5% |

## Example prompt

- "What is our gross spend in June 2026?"
- "Show me the total spend by type this month, excluding credit notes"

How to install this skill

/
  1. 1
    Download the file s07-depenses-brutes-sans-credit-notes.md using the button above.
  2. 2
    Place the file in the .claude/ directory of your project (or ~/.claude/ for a global install).
    cp s07-depenses-brutes-sans-credit-notes.md .claude/s07-depenses-brutes-sans-credit-notes.md
  3. 3
    Use in Claude Code โ€” the skill is automatically discovered. Describe your need in natural language and Claude will apply the skill instructions.
๐Ÿ’ก Make sure the Spendesk MCP is configured in your .claude/settings.json with the tools spendesk_analyze_spend.

Similar skills

โ˜… Top
95/100ยท๐Ÿ” Ad hocยทExpert

MCP coverage audit & gap analysis

Probes all available MCP tools, re-evaluates coverage of 50 persona use cases, detects new fields or tools, and regenerates the gap analysis report.

CFOControllerAP Manager
90/100ยท๐Ÿ“… WeeklyยทBeginner

Card requests via get_requests

Explains how to use get_requests for card requests and why expense reimbursements don't appear there. Avoids a frequent source of confusion between two distinct workflows.

ControllerFinance Analyst
90/100ยท๐Ÿ” Ad hocยทIntermediate

Active vs archived cost centers

Distinguishes active cost centers from archived ones with correct use of get_cost_centers. Avoids the counter-intuitive isArchived vs isActive naming convention pitfall.

ControllerFinance Analyst