Skip to content

chore: UI changes - #52

Merged
pepakriz merged 1 commit into
mainfrom
evolu
Apr 1, 2026
Merged

chore: UI changes#52
pepakriz merged 1 commit into
mainfrom
evolu

Conversation

@pepakriz

@pepakriz pepakriz commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@pepakriz
pepakriz merged commit 6526a04 into main Apr 1, 2026
2 checks passed
@pepakriz
pepakriz deleted the evolu branch April 1, 2026 17:22

@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: 03e204ae31

ℹ️ 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 on lines +545 to +548
items: props.bill.items.map((item) => ({
...item,
optionalityChecked: null,
})),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use computed bill total when creating POS payments

This change stops sending totalAmount: props.total and relies on raw items totals, so createPayment now trusts posBillItemLine.totalAmount for the persisted payment amount. In this codebase that field can diverge from the UI total when quantity is incremented (see useBill.addItem math), so a bill with repeated items can be saved with an incorrect paid amount. Keep using the computed bill total here (or recompute from price × quantity) when creating the payment.

Useful? React with 👍 / 👎.

Comment on lines +62 to +63
"invoiceSettings.defaultDueDateDays as defaultDueDateDays",
"invoiceSettings.defaultPaymentMethod as defaultPaymentMethod",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Migrate legacy invoice defaults before reading new table

New-invoice defaults are now read only from invoiceSettings, but this commit also moved those fields out of billingSettings without a backfill path for existing profiles (only onboarding seeds new rows). For existing installations, invoiceSettings will be empty and previously configured due-date/payment defaults silently reset to fallbacks, changing invoice behavior until users manually re-save settings. Add a migration (or legacy fallback reads) before depending solely on this table.

Useful? React with 👍 / 👎.

Comment on lines +175 to +178
nextCursor = {
id: last.id,
[sortingField]: last[sortingField],
};

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 Store pagination cursor with the qualified sort key

The cursor is written under sortingField (for example createdAt), but the next-page query reads previousCursor[finalSorting.id] where finalSorting.id is a qualified column name (for example reconciliationClaim.createdAt). Because those keys differ, subsequent page filters compare against undefined, which can break pagination after the first page. Write the cursor value using the same key that the query later reads.

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