Problem/Motivation
Currently the payment gateways are hardcoded. See commerce_pos_reports_get_payment_gateway_options(). The module should support other payment gatewayss enabled in the site.
This restricts the EOD report. If an order has been paid via any other payment gateway, it does not shows up in the report.
Proposed resolution
The payment gateways should be loaded dynamically.
Remaining tasks
Not sure but I think #2738915: Add better support for Commerce payment methods is same as this problem. The issue belongs to 7.x. Should the fix be made as part of that issue and we close this one?
User interface changes
The EOD report is going to show all payment gateways.
API changes
commerce_pos_reports_get_payment_gateway_options() will now dynamically load all enabled payment gateways.
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2975396-2.patch | 1.14 KB | subhojit777 |
Comments
Comment #2
subhojit777Comment #3
subhojit777Comment #4
jnrfred commentedPatch works fine.
Comment #6
smccabe commentedCommitted, thnx guys!