Update api_supplier_invoices.class.php

fixes #14831
This commit is contained in:
Egils Consulting 2020-08-04 22:02:15 +02:00 committed by Laurent Destailleur
parent 022fb23cee
commit c52c4229c5

View File

@ -454,7 +454,7 @@ class SupplierInvoices extends DolibarrApi
$paiement->amounts = $amounts; // Array with all payments dispatching with invoice id
$paiement->multicurrency_amounts = $multicurrency_amounts; // Array with all payments dispatching
$paiement->paiementid = $paiementid;
$paiement->paiementcode = dol_getIdFromCode($this->db, $paiementid, 'c_paiement', 'id', 'code', 1);
$paiement->oper = dol_getIdFromCode($this->db, $paiementid, 'c_paiement', 'id', 'code', 1);
$paiement->num_payment = $num_payment;
$paiement->note_public = $comment;