noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 27/34: Bug #0002206: CA - impossible de suppr


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 27/34: Bug #0002206: CA - impossible de supprimer un poste analytique
Date: Sun, 5 Feb 2023 04:41:42 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit f25e0434b37870c83dfdec86057dc59fab2d95be
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Jan 30 19:34:33 2023 +0100

    Bug #0002206: CA - impossible de supprimer un poste analytique
---
 include/class/anc_account_table.class.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/class/anc_account_table.class.php 
b/include/class/anc_account_table.class.php
index 98ac210b2..b6769962f 100644
--- a/include/class/anc_account_table.class.php
+++ b/include/class/anc_account_table.class.php
@@ -122,6 +122,8 @@ class Anc_Account_Table extends Manage_Table_SQL
                         je1.status  = 'CL' and  oa.po_id=$1 
",[$this->table->po_id]);
        if ( $count_closed > 0 ) {
            throw new \Exception(_("Effacement impossible : le poste est 
utilisé dans une période fermée"));
+       } else {
+           $cn->exec_sql("delete from public.poste_analytique where 
po_id=$1",[$this->table->po_id]);
        }
        
    }



reply via email to

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