[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 48/219: Rewriting for PLANANC ajax add, delet
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 48/219: Rewriting for PLANANC ajax add, delete and update analytic accounting |
Date: |
Mon, 18 Dec 2017 13:22:36 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit f939627e1e34cd05c55c3204b76297ca4b35de7b
Author: Dany De Bontridder <address@hidden>
Date: Wed Sep 13 19:17:18 2017 +0200
Rewriting for PLANANC ajax add,delete and update analytic accounting
---
include/ajax/ajax_anc_accounting.php | 60 ++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/include/ajax/ajax_anc_accounting.php
b/include/ajax/ajax_anc_accounting.php
new file mode 100644
index 0000000..e9b2a2a
--- /dev/null
+++ b/include/ajax/ajax_anc_accounting.php
@@ -0,0 +1,60 @@
+<?php
+
+/*
+ * This file is part of NOALYSS.
+ *
+ * PhpCompta is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * PhpCompta is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with PhpCompta; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+// Copyright (2016) Author Dany De Bontridder <address@hidden>
+
+if (!defined('ALLOWED'))
+ die('Appel direct ne sont pas permis');
+
+require_once NOALYSS_INCLUDE."/class/anc_account_table.class.php";
+/**
+ * @file
+ * @brief Insert , update delete anc accounting
+ */
+$http=new HttpInput();
+$cn=Dossier::connect();
+
+$action=$http->request("action");
+$p_id=$http->request("p_id", "numeric");
+$ctl_id=$http->request("ctl");
+$pa_id=$http->request("pa_id");
+
+$anc=new Poste_analytique_SQL($cn, $p_id);
+$anc->pa_id=$pa_id;
+$accounting=new Anc_Account_Table($anc);
+$accounting->set_object_name($ctl_id);
+$accounting->set_callback("ajax_misc.php");
+$accounting->add_json_param("op", "anc_accounting");
+
+if ($action=="input")
+{
+
+ $accounting->send_header();
+ echo $accounting->ajax_input()->saveXML();
+}
+elseif ($action=="save")
+{
+ $accounting->send_header();
+ echo $accounting->ajax_save()->saveXML();
+}
+elseif ($action=="delete")
+{
+ $accounting->send_header();
+ echo $accounting->ajax_delete()->saveXML();
+}
\ No newline at end of file
- [Noalyss-commit] [noalyss] branch master updated (1d55507 -> 689dfc2), Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 51/219: task #0001463: Calculatrice - 4 décimales, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 41/219: SQL : protection injection, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 23/219: improve doc, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 48/219: Rewriting for PLANANC ajax add, delete and update analytic accounting,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 84/219: Improve appearance, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 65/219: CFGSEC : the ledgers are now updated thanks an inplace class, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 105/219: CSS : change menu, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 06/219: Fix bug and esthetic : the var. dep can be empty, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 09/219: profil : CFGPRO , correct, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 72/219: Warning : use new icon, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 36/219: Task #0001411: Faire des boutons du menu des... boutons. uniquement classic & light, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 66/219: CFGSEC : action and ledger are set thanks ajax Inplace_Switch : new class for ajax with a swith button, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 96/219: esthetic style-r692 : size icon, arrow ..., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 04/219: Translation, Dany De Bontridder, 2017/12/18