@actual-app/api 26.1.0-nightly.20251209 → 26.1.0-nightly.20251210

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.
@@ -115921,7 +115921,8 @@ async function runSchedule(template_lines, current_month, balance, remainder, la
115921
115921
  const totalPayMonthOf = getPayMonthOfTotal(t_payMonthOf);
115922
115922
  const totalSinking = getSinkingTotal(t_sinking);
115923
115923
  const totalSinkingBaseContribution = getSinkingBaseContributionTotal(t_sinking);
115924
- if (balance >= totalSinking + totalPayMonthOf) {
115924
+ const lastMonthGoal = await getSheetValue(sheetForMonth(subMonths(current_month, 1)), `goal-${category.id}`);
115925
+ if (balance >= totalSinking + totalPayMonthOf || lastMonthGoal < totalSinking + totalPayMonthOf && lastMonthGoal !== 0 && balance >= lastMonthGoal) {
115925
115926
  to_budget += Math.round(totalPayMonthOf + totalSinkingBaseContribution);
115926
115927
  }
115927
115928
  else {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actual-app/api",
3
- "version": "26.1.0-nightly.20251209",
3
+ "version": "26.1.0-nightly.20251210",
4
4
  "license": "MIT",
5
5
  "description": "An API for Actual",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actual-app/api",
3
- "version": "26.1.0-nightly.20251209",
3
+ "version": "26.1.0-nightly.20251210",
4
4
  "license": "MIT",
5
5
  "description": "An API for Actual",
6
6
  "engines": {