Add exposed filters to administrative payment overview, because there will usually be a lot of payments and administrators might need to find a particular one.

Comments

xano’s picture

Assigned: Unassigned » xano
Status: Active » Needs review
StatusFileSize
new5.9 KB
xano’s picture

Status: Needs review » Fixed
xano’s picture

Status: Fixed » Needs work

An amount filter was added rather than a total amount filter.

clemens.tolboom’s picture

    SELECT payment_status_item_payment.created AS payment_status_item_payment_created, payment_status_item_payment.STATUS AS payment_status_item_payment_status, payment.currency_code AS payment_currency_code, payment_method_payment.title_specific AS payment_method_payment_title_specific, payment.pid AS pid, SUM((amount * quantity * (tax_rate + 1))) AS amount_total
    FROM
    {payment} payment
    LEFT JOIN {payment_method} payment_method_payment ON payment.pmid = payment_method_payment.pmid
    LEFT JOIN {payment_line_item} payment_line_item_payment ON payment.pid = payment_line_item_payment.pid
    INNER JOIN {payment_status_item} payment_status_item_payment ON payment.psiid_last = payment_status_item_payment.psiid

where this fails

    WHERE (( (payment_line_item_payment.amount BETWEEN '10' AND '100') ))
    GROUP BY payment_status_item_payment_created, payment_status_item_payment_status, payment_currency_code, payment_method_payment_title_specific, pid
    ORDER BY payment_status_item_payment_created DESC
    LIMIT 50 OFFSET 0
xano’s picture

Status: Needs work » Needs review
StatusFileSize
new50.68 KB

A lot of view code was removed, but I believe that's because Views' export functionality was changed, by looking at the code.

xano’s picture

StatusFileSize
new52.28 KB

This patch deletes the redundant views field handler as well.

xano’s picture

Status: Needs review » Fixed
clemens.tolboom’s picture

Nice work :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

xano’s picture

Assigned: xano » Unassigned