Fix order billed online payment

This commit is contained in:
ptibogxiv 2018-11-23 11:40:38 +01:00 committed by GitHub
parent ea7c77d788
commit 1cc6763950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 '<br><br><span class="amountpaymentcomplete">'.$langs->trans("OrderBilled").'</span>';
}
elseif ($source == 'invoice' && $object->paye)
{
print '<br><br><span class="amountpaymentcomplete">'.$langs->trans("InvoicePaid").'</span>';
}