Skip to content

fix: show create payment entries as an inner button on row selection#57320

Open
Shllokkk wants to merge 1 commit into
frappe:developfrom
Shllokkk:create-payment-entries-from-payable-report
Open

fix: show create payment entries as an inner button on row selection#57320
Shllokkk wants to merge 1 commit into
frappe:developfrom
Shllokkk:create-payment-entries-from-payable-report

Conversation

@Shllokkk

@Shllokkk Shllokkk commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Problem

The Create Payment Entries action on the Accounts Payable report was placed in the page's primary-action slot. That slot is shared with the framework: when a report becomes a prepared report , core puts its "Generate New Report" button in the same slot. The Toggle/clear logic would then clobber that button, breaking prepared-report generation.

Fix

Moved the action to inner button instead.

Ref #56747

@Shllokkk
Shllokkk requested a review from ruthra-kumar as a code owner July 21, 2026 08:52
@mergify

mergify Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@greptile-apps

greptile-apps Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

Safe to merge — the change is purely a UI wiring refactor in a single JS file with no database queries touched.

The logic correctly handles all edge cases: the create_pe_btn guard in toggle_create_pe_button means the function is a no-op when the user lacks permission or when the datatable hasn't been built yet; after_refresh hides the button after unchecking all rows, which is the intended reset behavior; and no external code depended on the removed global namespace functions.

No files require special attention.

Reviews (1): Last reviewed commit: "fix: show create payment entries as an i..." | Re-trigger Greptile

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.

2 participants