From 1cc6763950f748167e803ee4b5bd00e6101f6ac6 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Fri, 23 Nov 2018 11:40:38 +0100 Subject: [PATCH 1/4] Fix order billed online payment --- htdocs/public/payment/newpayment.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 836540e6a58..1da245bf933 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -1437,7 +1437,11 @@ 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").''; } From 6a232a8754c11c6c276644a16684447d0813fc13 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Fri, 23 Nov 2018 12:27:24 +0100 Subject: [PATCH 2/4] Update newpayment.php --- htdocs/public/payment/newpayment.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 1da245bf933..6931b3b77f6 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -1445,6 +1445,10 @@ if ($action != 'dopayment') { print '

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

'.$langs->trans("DonationPaid").''; + } else { // Buttons for all payments registration methods From e8ba8814cdee6447097375fc55a1816db1fa6b21 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Fri, 23 Nov 2018 12:45:37 +0100 Subject: [PATCH 3/4] Update newpayment.php --- htdocs/public/payment/newpayment.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 6931b3b77f6..435655eec3a 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -1445,6 +1445,10 @@ if ($action != 'dopayment') { print '

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

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

'.$langs->trans("DonationPaid").''; From b5d1a340805f8fef7fa0a1a8a126953dd2b8dc16 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Nov 2018 11:08:05 +0100 Subject: [PATCH 4/4] Update newpayment.php --- htdocs/public/payment/newpayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 435655eec3a..5811e89aacc 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -1445,7 +1445,7 @@ if ($action != 'dopayment') { print '

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

'.$langs->trans("MembershipPaid").''; }