Merge pull request #10073 from ptibogxiv/patch-95
Fix order&co billed on online payment page
This commit is contained in:
commit
0cc4ee2b01
@ -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 '<br><br><span class="amountpaymentcomplete">'.$langs->trans("OrderBilled").'</span>';
|
||||
}
|
||||
elseif ($source == 'invoice' && $object->paye)
|
||||
{
|
||||
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("InvoicePaid").'</span>';
|
||||
}
|
||||
elseif ($source == 'membersubscription' && $object->datefin > dol_now())
|
||||
{
|
||||
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("MembershipPaid").'</span>';
|
||||
}
|
||||
elseif ($source == 'donation' && $object->paid)
|
||||
{
|
||||
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("DonationPaid").'</span>';
|
||||
}
|
||||
else
|
||||
{
|
||||
// Buttons for all payments registration methods
|
||||
|
||||
Loading…
Reference in New Issue
Block a user