indent fix, validation and mail sending put into else block to avoid errors

This commit is contained in:
Dorian Vabre 2021-04-23 16:46:09 +02:00
parent f8479b4a57
commit f65fa98c37

View File

@ -816,8 +816,6 @@ if ($ispaymentok) {
$ispostactionok = -1; $ispostactionok = -1;
$error++; // Not yet supported $error++; // Not yet supported
} else { } else {
}
$db->begin(); $db->begin();
// Creation of payment line // Creation of payment line
@ -942,6 +940,7 @@ if ($ispaymentok) {
} else { } else {
$db->rollback(); $db->rollback();
} }
}
} else { } else {
$postactionmessages[] = 'Failed to get a valid value for "amount paid" ('.$FinalPaymentAmt.') or "payment type" ('.$paymentType.') to record the payment of invoice '.$tmptag['ATT'].'. May be payment was already recorded.'; $postactionmessages[] = 'Failed to get a valid value for "amount paid" ('.$FinalPaymentAmt.') or "payment type" ('.$paymentType.') to record the payment of invoice '.$tmptag['ATT'].'. May be payment was already recorded.';
$ispostactionok = -1; $ispostactionok = -1;