Skip to content

sd 140 openpost aging filter sort search - #464

Open
sawaneh1 wants to merge 27 commits into
DANOSOFT:masterfrom
sawaneh1:Sawaneh/SD-140-openpost-aging-filter-sort-search
Open

sd 140 openpost aging filter sort search#464
sawaneh1 wants to merge 27 commits into
DANOSOFT:masterfrom
sawaneh1:Sawaneh/SD-140-openpost-aging-filter-sort-search

Conversation

@sawaneh1

@sawaneh1 sawaneh1 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What are the changes about?

Provide a brief explanation of the changes you have made

Have you checked the following?

The debtor/creditor open posts report had no way to narrow a long list once on screen: no way to show only accounts owing in ">90", no sort by amount, and changing the account range meant going back to the front page. This adds three things to the report itself, with all state carried in the query string so pagination, the BS toggle, udlign links and accountChart links keep it:

Aging filter — each of the five column headers (>90 … 0-8) is a link; clicking one shows only accounts with an amount in that bucket, with a "Ryd filter" link and a "Filter: …" marker.
Amount sort — ▼/▲ on "I alt" (or on the filtered column) sorts by amount desc/asc.
In-report account search — a field in the header accepting a kontonr, a fra:til range or a firm-name pattern (* wildcard), same rules as the front page. kreditor/rapport.php accepts kontonr for this like debitor/rapport.php.
Implementation: the per-account bucket maths moved unchanged out of the display loop into openpost_account_aging(), and the show-rule into openpost_account_visible(), so filter/sort and the rendered page share one implementation — including the SST-717/SST-730 open-balance rules. When a filter or sort is active, a streaming pre-pass aggregates every matching account (from the same grouped superset the count query uses) and pages the resulting ids; without filter/sort the existing queries run untouched. Request values are whitelisted in openpost_report_state() before reaching SQL/URLs. openpost() no longer overwrites dato/konto with the stored DRV row when the request carries konto_fra/kontonr. Texts 5120–5124 added.

Merged with master twice during review; MB-5, SST-672, SST-717/730 and the async-shell changes are all preserved.

sawaneh1 added 25 commits June 8, 2026 13:07
…er-lock side effects so it no longer locks/overwrites, allow clearing to blank, and keep other order types' locks intact
@sawaneh1
sawaneh1 requested a review from a team August 13, 2026 12:34
@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 44 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bf1c73d3-9e52-4f2d-a32c-2712b5cb41f2

📥 Commits

Reviewing files that changed from the base of the PR and between f96c2b4 and 35f0b29.

⛔ Files ignored due to path filters (1)
  • importfiler/tekster.csv is excluded by !**/*.csv
📒 Files selected for processing (4)
  • debitor/rapport.php
  • includes/rapportfunc.php
  • includes/reportFunc/showOpenPosts.php
  • kreditor/rapport.php

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sawaneh1 sawaneh1 changed the title Sawaneh/sd 140 openpost aging filter sort search sd 140 openpost aging filter sort search Aug 14, 2026
…enpost-aging-filter-sort-search

# Conflicts:
#	api/updateShopCostPrice.php
#	debitor/rapport.php
#	importfiler/tekster.csv
#	includes/reportFunc/showOpenPosts.php
#	includes/stdFunc/shopApiRequest.php
#	includes/std_func.php
…enpost-aging-filter-sort-search

# Conflicts:
#	includes/reportFunc/showOpenPosts.php
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