Repository navigation
Filter payment transactions by method, PO number and overdue; show more on the details screen - #1073
Merged
Merged
Conversation
added 5 commits
November 19, 2026 17:21
The PO number and the due date live on the order, so the handler finds the matching orders first and keeps the payments of those orders; overdue is the same rule as the order list.
An order number that finds no order now finds no payment, instead of listing every payment.
The authorization code and result, the capture id and result, the currency rate and the store were in the view but never filled. The screen now also shows the payment errors, the gateway's custom values, what is left to pay and to refund, an abandoned-checkout chip, the last change, and an order card with its status, payment status, total and billing name.
Amounts paid in parts add up with floating-point residue, so a 123.45 payment with 100 paid showed 23.450000000000003 left.
| </div> | ||
| } | ||
| @if (Model.PaymentDueDate.HasValue) | ||
| @if (Model.CurrencyRate > 0 && Model.CurrencyRate != 1) |
added 2 commits
November 19, 2026 18:34
…ilters The payment rules, the popups and the details screen now count what is left the same way, with the floating-point residue of part payments rounded off. The order list and the payment transaction list filter overdue orders and purchase order numbers through one rule.
- the store panel lists only its own store's payment methods (payment transactions and orders), built in one place - left to pay is shown only while the transaction can still be paid; refundable is the refund limit, shown only while a refund can be made - a Temp transaction is marked 'Checkout not completed' rather than abandoned: it may still be in progress at the gateway - last changed is formatted like created on - Go to order number ignores a number that is not a number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type: feature
Issue
Staff can find a payment transaction only by customer e-mail, order number, status and date. Questions staff actually ask — "which on-account payments are overdue?", "where is the payment for PO 4711?", "what did Stripe take this week?" — need the order list instead, which has those filters. An unknown order number on the transaction list was ignored, so it listed every payment.
The transaction details screen was sparse. The authorization code and result, capture id and result, currency rate and store were in the view but never filled by the controller, so they never showed. The payment errors a failed checkout stores, the gateway's custom values and the order the payment belongs to were not shown at all.
Roadmap item P6.
Solution
Transaction list (Admin and Store)
PaymentExtensions.UnpaidOnCreditand due date before today; due today is not overdue).GetPaymentTransactionQuerygainsPaymentMethodSystemName,PurchaseOrderNumberandOverdueOnly. PO number and due date live on the order, so the handler first reads the matching orders'OrderGuid(store-filtered, not deleted) and keeps the payments of those orders. A filter that matches no order returns nothing.Transaction details
DefaultLanguage.xmlandUpgrade/en_250.xml.No migration, no new index, no new setting.
Breaking changes
BasePaymentTransactionControllertakes three more constructor parameters (IPaymentService,IStoreService,IOrderStatusService), and itsList()GET is nowasync Task<IActionResult>. A subclass outside this repository has to forward them.GetPaymentTransactionQueryHandlertakesIRepository<Order>as well.Testing
dotnet test:Grand.Business.Checkout.Tests944,Grand.Web.Admin.Tests2074,Grand.Web.Store.Tests241 passed. Not checked in a browser (this worktree has no installed database).