Implement compact PayPal refund summary feature in registration management
This commit introduces a new function, `renderPayPalRefundSummaryHtml`, to provide a concise overview of PayPal refunds within the registration management interface. The summary displays essential information such as status, captured amount, total refunded, and remaining balance, enhancing the user experience by presenting key details in a more accessible format. Additionally, the existing code is updated to utilize this new summary function, improving the overall clarity and usability of transaction information.
This commit is contained in:
@ -180,15 +180,15 @@ switch ($strAction) {
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/inc_fx_panier.php';
|
||||
$strResume = fxShowPanier($strNoPanier, 0, 'web', 1, $strLangue);
|
||||
|
||||
// Detail des remboursements PayPal (meme rendu que Super Admin). N'apparait que
|
||||
// s'il existe une capture PayPal exploitable ; sinon rien (les cas gratuits/non-PayPal
|
||||
// sont deja couverts par la facture ci-dessus).
|
||||
// Sommaire des remboursements PayPal (vue compacte, pas la grande table Super Admin).
|
||||
// N'apparait que s'il existe une capture PayPal exploitable ; sinon rien (les cas
|
||||
// gratuits/non-PayPal sont deja couverts par la facture ci-dessus).
|
||||
$strRefunds = '';
|
||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/superadm/php/inc_fx_paypal.php';
|
||||
$arrRefundCtx = fxRefundComputeContext($recCommandes);
|
||||
if (!empty($arrRefundCtx['ok'])) {
|
||||
$strRefunds = '<div style="margin-top:14px;border-top:1px solid #cfe0ff;padding-top:12px;">'
|
||||
. renderPayPalCaptureHtml($arrRefundCtx['paypaldetails'])
|
||||
. renderPayPalRefundSummaryHtml($arrRefundCtx['paypaldetails'])
|
||||
. '</div>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user