noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 16/23: Bug : date for payment incorrect


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 16/23: Bug : date for payment incorrect
Date: Sun, 26 Feb 2023 14:47:30 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 034b93b6f4515969b21eb1faf81abbe1bf70cac7
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Wed Feb 15 19:40:38 2023 +0100

    Bug : date for payment incorrect
---
 include/class/acc_ledger_purchase.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class/acc_ledger_purchase.class.php 
b/include/class/acc_ledger_purchase.class.php
index d94beb516..1ffaf5cbd 100644
--- a/include/class/acc_ledger_purchase.class.php
+++ b/include/class/acc_ledger_purchase.class.php
@@ -1000,7 +1000,7 @@ class  Acc_Ledger_Purchase extends Acc_Ledger
 
                 /* Insert supplier  */
                 $acc_pay=new Acc_Operation($this->db);
-                $acc_pay->date=$mp_date;
+                $acc_pay->date=empty($mp_date)?$e_date:$mp_date;
                 $acc_pay->poste=$poste;
                 $acc_pay->qcode=$e_client;
                 $acc_pay->amount=abs(round($famount,2));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]