Skip to content

Align overview invoice focus filters#44

Merged
mihape merged 1 commit into
mainfrom
fix-overview-invoice-focus-count
Jul 2, 2026
Merged

Align overview invoice focus filters#44
mihape merged 1 commit into
mainfrom
fix-overview-invoice-focus-count

Conversation

@mihape

@mihape mihape commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a visible invoice due-date filter for overdue and 7-day due invoices
  • make Overview / Mai fókusz invoice cards open the matching filtered invoice list
  • align Overview invoice date parsing with local YYYY-MM-DD handling
  • exclude cash/KP invoices from open overdue focus totals even when older/imported data still says payment pending

Verification

  • node --check for all JavaScript files covered by the Windows build workflow
  • git diff --check
  • targeted smoke check for open overdue counting excluding cash and paid invoices

Refs #43

@mihape mihape merged commit 200eeb1 into main Jul 2, 2026
1 check passed
@mihape mihape deleted the fix-overview-invoice-focus-count branch July 2, 2026 06:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5adccbf88b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/app.js
if (match) {
return new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]));
}
var date = new Date(value);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve missing due dates as non-overdue

When an imported or older record has dueDate: null, this fallback now calls new Date(null), which is a valid Jan 1, 1970 date; isPastDate(null) therefore returns true and undated open invoices or utility settlements are shown as overdue dashboard/focus items. The previous falsy guard skipped these records, so keep a falsy check here or parse the normalized string instead of the original value.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant