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.
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
/
- 1Download the file
s07-depenses-brutes-sans-credit-notes.mdusing the button above. - 2Place 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 - 3Use 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