payrolla-mcp 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -294,6 +294,7 @@ async function simulateBudget(client, input) {
294
294
  let empTotalCost = 0;
295
295
  let empTotalNet = 0;
296
296
  let empTotalGross = 0;
297
+ const empPeriods = [];
297
298
  for (let i = 0; i < periodCount; i++) {
298
299
  const calcDate = new Date(year, i, 1);
299
300
  const calcYear = calcDate.getFullYear();
@@ -326,6 +327,7 @@ async function simulateBudget(client, input) {
326
327
  empTotalNet += result.totalNet;
327
328
  empTotalGross += result.totalGross;
328
329
  const lastPeriod = result.periods[0];
330
+ empPeriods.push(lastPeriod);
329
331
  cumulativeIncomeTaxBase = lastPeriod.cumulativeIncomeTaxBase;
330
332
  cumulativeMinWageIncomeTaxBase = lastPeriod.cumulativeMinWageIncomeTaxBase;
331
333
  transferredSSIBase1 = lastPeriod.transferredSSIBase1;
@@ -337,7 +339,8 @@ async function simulateBudget(client, input) {
337
339
  adjustedWage,
338
340
  yearlyCost: empTotalCost,
339
341
  yearlyNet: empTotalNet,
340
- yearlyGross: empTotalGross
342
+ yearlyGross: empTotalGross,
343
+ periods: empPeriods
341
344
  });
342
345
  totalYearlyCost += empTotalCost;
343
346
  totalYearlyNet += empTotalNet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payrolla-mcp",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "MCP server for Payrolla payroll budget simulations - enables LLMs to calculate Turkish payroll and simulate budget scenarios",
5
5
  "author": "Payrolla",
6
6
  "license": "MIT",