[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 182/323: Task #0001535: TVA : réécriture du
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 182/323: Task #0001535: TVA : réécriture du module , fichier test pour TVA_RATE_MTABLE |
Date: |
Wed, 14 Mar 2018 17:38:46 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit dc34dbb0662428bb536ad9408f47c1e12d0c00dc
Author: Dany De Bontridder <address@hidden>
Date: Sat Feb 10 14:14:32 2018 +0100
Task #0001535: TVA : réécriture du module , fichier test
pour TVA_RATE_MTABLE
---
scenario/tva_parameter.php | 80 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/scenario/tva_parameter.php b/scenario/tva_parameter.php
new file mode 100644
index 0000000..d721c51
--- /dev/null
+++ b/scenario/tva_parameter.php
@@ -0,0 +1,80 @@
+<?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>
+
+
+/**
+ * @file
+ * @brief Test the tva parameters file
+ */
+//@description:Scenario file for VAT parameters
+$_POST['gDossier']=$gDossierLogInput;
+$_GET['gDossier']=$gDossierLogInput;
+$_REQUEST=array_merge($_GET, $_POST);
+require_once NOALYSS_INCLUDE."/class/tva_rate_mtable.class.php";
+
+$is_ajax=$http->request("TestAjaxFile", "string", "-");
+
+$tva_rate=new V_Tva_Rate_SQL($cn);
+if ($is_ajax!="-")
+{
+ $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_test.php");
+$manage_table->add_json_param("TestAjaxFile", __FILE__);
+
+if ($is_ajax!="-")
+{
+ $table=$http->request('table');
+ $action=$http->request('action');
+ $p_id=$http->request('p_id', "number");
+ $ctl_id=$http->request('ctl');
+ /*
+ * we're in ajax part
+ */
+ 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;
+}
+$manage_table->create_js_script();
+
+$manage_table->display_table();
- [Noalyss-commit] [noalyss] 306/323: Task #0001563: check date paiement VEN, (continued)
- [Noalyss-commit] [noalyss] 306/323: Task #0001563: check date paiement VEN, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 300/323: Cosmetic, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 193/323: SQL : fix create extension for account_repository, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 248/323: Install improve message, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 202/323: Improve : New DEFINE NOALYSS_URL, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 218/323: element go_up : fix height, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 235/323: Set version, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 257/323: Tag : box for adding a tag : add a close button, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 283/323: Todo List : fix bug in sort after zooming, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 287/323: Improve favicon.ico, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 182/323: Task #0001535: TVA : réécriture du module , fichier test pour TVA_RATE_MTABLE,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 185/323: Task #0001535: TVA : réécriture du module , missing file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 229/323: index.css : CSS responsive, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 310/323: Cosmetic : use Icon_Action::trash, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 206/323: install : check the module XML , SimpleXML, ..., Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 299/323: Bug : action_late show also action for today, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 318/323: Bug fix : History filter : do not filter on the last columns, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 317/323: Dashboard : cannot zoom event from follow-up, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 261/323: remove dead code, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 271/323: Periode : fix , the second periode is wrong when opening day is asked, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 303/323: Some dialog must be fixed but draggable, Dany De Bontridder, 2018/03/14