noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 185/323: Task #0001535: TVA : réécriture du


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 185/323: Task #0001535: TVA : réécriture du module , missing file
Date: Wed, 14 Mar 2018 17:38:46 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 388a39a6d3761996a62399dbaaf2444e39e9ad3c
Author: Dany De Bontridder <address@hidden>
Date:   Sat Feb 10 14:54:08 2018 +0100

     Task #0001535: TVA : réécriture du module , missing file
---
 include/ajax/ajax_tva_parameter.php | 78 +++++++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)

diff --git a/include/ajax/ajax_tva_parameter.php 
b/include/ajax/ajax_tva_parameter.php
new file mode 100644
index 0000000..9dffd57
--- /dev/null
+++ b/include/ajax/ajax_tva_parameter.php
@@ -0,0 +1,78 @@
+<?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 (2018) Author Dany De Bontridder <address@hidden>
+
+if (!defined('ALLOWED'))
+    die('Appel direct ne sont pas permis');
+
+/**
+ * @file
+ * @brief 
+ * @param type $name Descriptionara
+ */
+require_once NOALYSS_INCLUDE."/class/tva_rate_mtable.class.php";
+
+if ( $g_user->check_module('CFGTVA') ==0 )
+{
+    return;
+}
+try
+{
+    $table=$http->request('table');
+    $action=$http->request('action');
+    $p_id=$http->request('p_id', "number");
+    $ctl_id=$http->request('ctl');
+}
+catch (Exception $e)
+{
+    record_log($e->getTraceAsString());
+    return;
+}
+
+$tva_rate=new V_Tva_Rate_SQL($cn);
+$p_id=$http->request('p_id', "number");
+$tva_rate->set_pk_value($p_id);
+$tva_rate->load();
+$manage_table=new Tva_Rate_MTable($tva_rate);
+$manage_table->set_callback("ajax_misc.php");
+$manage_table->add_json_param("op", "tva_parameter");
+
+if ($action=="input")
+{
+
+    $manage_table->set_object_name($ctl_id);
+    header('Content-type: text/xml; charset=UTF-8');
+    echo $manage_table->ajax_input()->saveXML();
+    return;
+}
+elseif ($action=="save")
+{
+    $manage_table->set_object_name($ctl_id);
+    header('Content-type: text/xml; charset=UTF-8');
+    echo $manage_table->ajax_save()->saveXML();
+    return;
+}
+elseif ($action=="delete")
+{
+    $manage_table->set_object_name($ctl_id);
+    header('Content-type: text/xml; charset=UTF-8');
+    echo $manage_table->ajax_delete()->saveXML();
+}
+return;



reply via email to

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