Skip to content

Commit

Permalink
Fix type of variable in api_invoices (#28474)
Browse files Browse the repository at this point in the history
* Fix type of variable in api_invoices

* remove coma

* replace strtotime

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
  • Loading branch information
lamrani002 and eldy authored Mar 1, 2024
1 parent dd7be6c commit 94b9686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/compta/facture/class/api_invoices.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1494,9 +1494,9 @@ public function addPayment($id, $datepaye, $paymentid, $closepaidinvoices, $acco

// Creation of payment line
$paymentobj = new Paiement($this->db);
$paymentobj->datepaye = $datepaye;
$paymentobj->amounts = $amounts;
$paymentobj->multicurrency_amounts = $multicurrency_amounts;
$paymentobj->datepaye = dol_stringtotime($datepaye);
$paymentobj->amounts = $amounts; // Array with all payments dispatching with invoice id
$paymentobj->multicurrency_amounts = $multicurrency_amounts; // Array with all payments dispatching
$paymentobj->paiementid = $paymentid;
$paymentobj->paiementcode = (string) dol_getIdFromCode($this->db, $paymentid, 'c_paiement', 'id', 'code', 1);
$paymentobj->num_payment = $num_payment;
Expand Down

0 comments on commit 94b9686

Please sign in to comment.