diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 836540e6a58..5811e89aacc 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -1437,10 +1437,22 @@ if ($action != 'dopayment') { if ($found && ! $error) // We are in a management option and no error { - if ($source == 'invoice' && $object->paye) + if ($source == 'order' && $object->billed) + { + print '

'.$langs->trans("OrderBilled").''; + } + elseif ($source == 'invoice' && $object->paye) { print '

'.$langs->trans("InvoicePaid").''; } + elseif ($source == 'membersubscription' && $object->datefin > dol_now()) + { + print '

'.$langs->trans("MembershipPaid").''; + } + elseif ($source == 'donation' && $object->paid) + { + print '

'.$langs->trans("DonationPaid").''; + } else { // Buttons for all payments registration methods