Skip to main content

run-payroll

This skill should be used when the task asks to "run payroll", "kjør lønn", "registrer lønn", "process salary", "traiter la paie", "processar folha de pagamento", "Gehaltsabrechnung durchführen", "ejecute la nómina", or involves registering salary, wages, bonuses, or payroll for an employee.

跳到安装

来源信息

仓库
JardarIversen/ainm-2026
最近来源活动
2026年3月21日 11:30
检测到的 SKILL.md 语言
英语
星标
18
分支
14

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
run_payroll
tier
2
task
T12
description
This skill should be used when the task asks to "run payroll", "kjør lønn", "registrer lønn", "process salary", "traiter la paie", "processar folha de pagamento", "Gehaltsabrechnung durchführen", "ejecute la nómina", or involves registering salary, wages, bonuses, or payroll for an employee.
# Run Payroll 3 API calls. Use manual salary voucher with correct accounts. ## Call 1: Find Employee ``` GET /employee?email=<email>&fields=id,firstName,lastName&count=5 ``` ## Call 2: Find Salary Accounts (ONE call) ``` GET /ledger/account?number=5000,2600,2930&fields=id,number,name ``` - **5000** = "Lønn til ansatte" (salary expense, debit) - **2600** = "Forskuddstrekk" (tax withholding, credit) - **2930** = "Skyldig lønn" (net salary payable, credit) ## Call 3: Create Salary Voucher Calculate: gross = base_salary + bonus. Tax = gross × 0.40 (standard ~40% tax). Net = gross - tax. ```json POST /ledger/voucher { "date": "2026-03-01", "description": "Lønn mars 2026 - <employee name>", "postings": [ { "date": "2026-03-01", "account": {"id": <account_5000_id>}, "amountGross": <base_salary>, "amountGrossCurrency": <base_salary>, "description": "Grunnlønn", "row": 1, "employee": {"id": <employee_id>} }, { "date": "2026-03-01", "account": {"id": <account_5000_id>}, "amountGross": <bonus>, "amountGrossCurrency": <bonus>, "description": "Bonus", "row": 2, "employee": {"id": <employee_id>} }, { "date": "2026-03-01", "account": {"id": <account_2600_id>}, "amountGross": -<tax_amount>, "amountGrossCurrency": -<tax_amount>, "description": "Skattetrekk", "row": 3, "employee": {"id": <employee_id>} }, { "date": "2026-03-01", "account": {"id": <account_2930_id>}, "amountGross": -<net_amount>, "amountGrossCurrency": -<net_amount>, "description": "Skyldig lønn", "row": 4, "employee": {"id": <employee_id>} } ] } ``` Use first of current month for date. Separate base salary and bonus into individual postings on account 5000. **Total: 3 calls, 0 errors.** ## Tax Calculation Standard Norwegian tax withholding is approximately 40% of gross: - Tax = round(gross × 0.40) - Net = gross - tax ## Gotchas - Use account **5000** for salary expense (NOT 5001 or other variants) - Use account **2600** for tax withholding (Forskuddstrekk) - Use account **2930** for net salary payable (Skyldig lønn) - **employee** reference is REQUIRED on every posting — this is how the scoring links postings to the employee - Separate base salary and bonus into individual rows on account 5000 - Postings MUST balance: base + bonus - tax - net = 0 - Both `amountGross` AND `amountGrossCurrency` are required - Use first of month as date (2026-03-01) - No voucherType needed — POST /ledger/voucher works without it
在 GitHub 查看