add external modepayment in payment

This commit is contained in:
ptibogxiv 2018-10-16 16:57:16 +02:00 committed by GitHub
parent 4bdcb17694
commit 00f839e8b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -629,8 +629,10 @@ if ($ispaymentok)
}
$paiement->paiementid = $paymentTypeId;
$paiement->num_paiement = '';
$paiement->note_public = 'Online payment '.dol_print_date($now, 'standard').' using '.$paymentmethod.' from '.$ipaddress.' - Transaction ID = '.$TRANSACTIONID;
$paiement->note_public = 'Online payment '.dol_print_date($now, 'standard').' from '.$ipaddress;
$paiement->payment_id = $TRANSACTIONID;
$paiement->payment_site = $paymentmethod;
if (! $error)
{
$paiement_id = $paiement->create($user, 1); // This include closing invoices and regenerating documents