Update status display in charge list

This commit is contained in:
ptibogxiv 2018-09-11 12:30:24 +02:00 committed by GitHub
parent d011204624
commit 26a8b5ba4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,14 +190,16 @@ if (!$rowid)
// Status
print '<TD align="right">';
if ($charge->refunded=='1'){
print $langs->trans("refunded");
print img_picto($langs->trans("refunded"),'statut6');
} elseif ($charge->paid=='1'){
print $langs->trans("".$charge->status."");
print img_picto($langs->trans("".$charge->status.""),'statut4');
} else {
$label="Message: ".$charge->failure_message."<br>";
$label.="Réseau: ".$charge->outcome->network_status."<br>";
$label.="Statut: ".$langs->trans("".$charge->outcome->seller_message."");
print $form->textwithpicto($langs->trans("".$charge->status.""),$label,1);
print $form->textwithpicto(img_picto($langs->trans("".$charge->status.""),'statut8'),$label,1);
}
print "</TD>\n";